tidy up configure output, don't show gnomeprint/vfs/hildon for non-GTK ports
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.0'
274 PACKAGE_STRING='wxWidgets 2.7.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ac_pt_PKG_CONFIG PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790 ac_env_PKG_CONFIG_value=$PKG_CONFIG
791 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
793 ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
794 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
795 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
796 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
797 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
798 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
799 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
800 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
801 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
802 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
803 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
804 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
805 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
806 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
807 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
808 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
809 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
810 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
811 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
812 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
813 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
814 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
815 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
816 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
817 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
818 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
819 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
820 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
821 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
822 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
823 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
824 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
825 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
826 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
827 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
828 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
829 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
830 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
831 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
832 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
833 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
834 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
835 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
836 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
837 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
838 ac_env_HILDON_LIBS_value=$HILDON_LIBS
839 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
840 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
841 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
842 ac_env_GST_CFLAGS_value=$GST_CFLAGS
843 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
844 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
845 ac_env_GST_LIBS_set=${GST_LIBS+set}
846 ac_env_GST_LIBS_value=$GST_LIBS
847 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
848 ac_cv_env_GST_LIBS_value=$GST_LIBS
849
850 #
851 # Report the --help message.
852 #
853 if test "$ac_init_help" = "long"; then
854   # Omit some internal or obsolete options to make the list less imposing.
855   # This message is too long to be a string in the A/UX 3.1 sh.
856   cat <<_ACEOF
857 \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
858
859 Usage: $0 [OPTION]... [VAR=VALUE]...
860
861 To assign environment variables (e.g., CC, CFLAGS...), specify them as
862 VAR=VALUE.  See below for descriptions of some of the useful variables.
863
864 Defaults for the options are specified in brackets.
865
866 Configuration:
867   -h, --help              display this help and exit
868       --help=short        display options specific to this package
869       --help=recursive    display the short help of all the included packages
870   -V, --version           display version information and exit
871   -q, --quiet, --silent   do not print \`checking...' messages
872       --cache-file=FILE   cache test results in FILE [disabled]
873   -C, --config-cache      alias for \`--cache-file=config.cache'
874   -n, --no-create         do not create output files
875       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
876
877 _ACEOF
878
879   cat <<_ACEOF
880 Installation directories:
881   --prefix=PREFIX         install architecture-independent files in PREFIX
882                           [$ac_default_prefix]
883   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
884                           [PREFIX]
885
886 By default, \`make install' will install all the files in
887 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
888 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
889 for instance \`--prefix=\$HOME'.
890
891 For better control, use the options below.
892
893 Fine tuning of the installation directories:
894   --bindir=DIR           user executables [EPREFIX/bin]
895   --sbindir=DIR          system admin executables [EPREFIX/sbin]
896   --libexecdir=DIR       program executables [EPREFIX/libexec]
897   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
898   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
899   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
900   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
901   --libdir=DIR           object code libraries [EPREFIX/lib]
902   --includedir=DIR       C header files [PREFIX/include]
903   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
904   --infodir=DIR          info documentation [PREFIX/info]
905   --mandir=DIR           man documentation [PREFIX/man]
906 _ACEOF
907
908   cat <<\_ACEOF
909
910 X features:
911   --x-includes=DIR    X include files are in DIR
912   --x-libraries=DIR   X library files are in DIR
913
914 System types:
915   --build=BUILD     configure for building on BUILD [guessed]
916   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
917   --target=TARGET   configure for building compilers for TARGET [HOST]
918 _ACEOF
919 fi
920
921 if test -n "$ac_init_help"; then
922   case $ac_init_help in
923      short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
924    esac
925   cat <<\_ACEOF
926
927 Optional Features:
928   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
929   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
930   --enable-gui            use GUI classes
931   --enable-monolithic     build wxWidgets as single library
932   --enable-plugins        build parts of wxWidgets as loadable components
933   --enable-universal      use wxWidgets GUI controls instead of native ones
934   --enable-nanox          use NanoX
935   --disable-gtk2          use GTK+ 1.2 instead of 2.0
936   --enable-gpe            use GNOME PDA Environment features if possible
937   --enable-shared         create shared library code
938   --enable-optimise       create optimised code
939   --enable-debug          same as debug_flag and debug_info
940   --enable-stl            use STL for containers
941   --enable-omf            use OMF object format
942   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
943   --enable-debug_info     create code with debugging information
944   --enable-debug_gdb      create code with extra GDB debugging information
945   --enable-debug_cntxt    use wxDebugContext
946   --enable-mem_tracing    create code with memory tracing
947   --enable-profile        create code with profiling information
948   --enable-no_rtti        create code without RTTI information
949   --enable-no_exceptions  create code without C++ exceptions handling
950   --enable-permissive     compile code disregarding strict ANSI
951   --enable-no_deps        create code without dependency information
952   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
953   --enable-compat24       enable wxWidgets 2.4 compatibility
954   --disable-compat26      disable wxWidgets 2.6 compatibility
955   --disable-rpath         disable use of rpath for uninstalled builds
956   --enable-intl           use internationalization system
957   --enable-config         use wxConfig (and derived) classes
958   --enable-protocols      use wxProtocol and derived classes
959   --enable-ftp            use wxFTP (requires wxProtocol
960   --enable-http           use wxHTTP (requires wxProtocol
961   --enable-fileproto      use wxFileProto class (requires wxProtocol
962   --enable-sockets        use socket/network classes
963   --enable-ole            use OLE classes (Win32 only)
964   --enable-dataobj        use data object classes
965   --enable-ipc            use interprocess communication (wxSocket etc.)
966   --enable-apple_ieee     use the Apple IEEE codec
967   --enable-arcstream      use wxArchive streams
968   --enable-backtrace      use wxStackWalker class for getting backtraces
969   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
970   --enable-cmdline        use wxCmdLineParser class
971   --enable-datetime       use wxDateTime class
972   --enable-debugreport    use wxDebugReport class
973   --enable-dialupman      use dialup network classes
974   --enable-dynlib         use wxLibrary class for DLL loading
975   --enable-dynamicloader  use (new) wxDynamicLibrary class
976   --enable-exceptions     build exception-safe library
977   --enable-ffile          use wxFFile class
978   --enable-file           use wxFile class
979   --enable-filesystem     use virtual file systems classes
980   --enable-fontmap        use font encodings conversion classes
981   --enable-fs_inet        use virtual HTTP/FTP filesystems
982   --enable-fs_zip         use virtual ZIP filesystems
983   --enable-geometry       use geometry class
984   --enable-log            use logging system
985   --enable-longlong       use wxLongLong class
986   --enable-mimetype       use wxMimeTypesManager
987   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
988   --enable-snglinst       use wxSingleInstanceChecker class
989   --enable-std_iostreams  use standard C++ stream classes
990   --enable-std_string     use standard C++ string classes
991   --enable-stdpaths       use wxStandardPaths class
992   --enable-stopwatch      use wxStopWatch class
993   --enable-streams        use wxStream etc classes
994   --enable-sysoptions     use wxSystemOptions
995   --enable-textbuf        use wxTextBuffer class
996   --enable-textfile       use wxTextFile class
997   --enable-timer          use wxTimer class
998   --enable-unicode        compile wxString with Unicode support
999   --enable-sound          use wxSound class
1000   --enable-mediactrl      use wxMediaCtrl class
1001   --enable-gstreamer8      force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1002   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1003   --enable-zipstream      use wxZip streams
1004   --enable-url            use wxURL class
1005   --enable-protocol       use wxProtocol class
1006   --enable-protocol-http  HTTP support in wxProtocol
1007   --enable-protocol-ftp   FTP support in wxProtocol
1008   --enable-protocol-file  FILE support in wxProtocol
1009   --enable-threads        use threads
1010   --enable-docview        use document view architecture
1011   --enable-help           use help subsystem
1012   --enable-mshtmlhelp     use MS HTML Help (win32)
1013   --enable-html           use wxHTML sub-library
1014   --enable-htmlhelp       use wxHTML-based help
1015   --enable-xrc            use XRC resources sub-library
1016   --enable-aui            use AUI docking library
1017   --enable-constraints    use layout-constraints system
1018   --enable-printarch      use printing architecture
1019   --enable-mdi            use multiple document interface architecture
1020   --enable-mdidoc         use docview architecture with MDI
1021   --enable-loggui         use standard GUI logger
1022   --enable-logwin         use wxLogWindow
1023   --enable-logdialog      use wxLogDialog
1024   --enable-webkit         use wxWebKitCtrl (Mac)
1025   --enable-richtext       use wxRichTextCtrl
1026   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1027   --enable-prologio       not available; see contrib
1028   --enable-resources      not available; see contrib
1029   --enable-clipboard      use wxClipboard class
1030   --enable-dnd            use Drag'n'Drop classes
1031   --enable-metafile       use win32 metafiles
1032   --enable-controls       use all usual controls
1033   --enable-accel          use accelerators
1034   --enable-button         use wxButton class
1035   --enable-bmpbutton      use wxBitmapButton class
1036   --enable-calendar       use wxCalendarCtrl class
1037   --enable-caret          use wxCaret class
1038   --enable-checkbox       use wxCheckBox class
1039   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1040   --enable-choice         use wxChoice class
1041   --enable-choicebook     use wxChoicebook class
1042   --enable-colourpicker   use wxColourPickerCtrl class
1043   --enable-combobox       use wxComboBox class
1044   --enable-comboctrl      use wxComboCtrl class
1045   --enable-datepick       use wxDatePickerCtrl class
1046   --enable-dirpicker      use wxDirPickerCtrl class
1047   --enable-display        use wxDisplay class
1048   --enable-filepicker     use wxFilePickerCtrl class
1049   --enable-fontpicker     use wxFontPickerCtrl class
1050   --enable-gauge          use wxGauge class
1051   --enable-grid           use wxGrid class
1052   --enable-dataviewctrl,  use wxDataViewCtrl class
1053   --enable-hyperlink      use wxHyperlinkCtrl class
1054   --enable-imaglist       use wxImageList class
1055   --enable-listbook       use wxListbook class
1056   --enable-listbox        use wxListBox class
1057   --enable-listctrl       use wxListCtrl class
1058   --enable-notebook       use wxNotebook class
1059   --enable-odcombobox     use wxOwnerDrawnComboBox class
1060   --enable-radiobox       use wxRadioBox class
1061   --enable-radiobtn       use wxRadioButton class
1062   --enable-sash           use wxSashWindow class
1063   --enable-scrollbar      use wxScrollBar class and scrollable windows
1064   --enable-slider         use wxSlider class
1065   --enable-spinbtn        use wxSpinButton class
1066   --enable-spinctrl       use wxSpinCtrl class
1067   --enable-splitter       use wxSplitterWindow class
1068   --enable-statbmp        use wxStaticBitmap class
1069   --enable-statbox        use wxStaticBox class
1070   --enable-statline       use wxStaticLine class
1071   --enable-stattext       use wxStaticText class
1072   --enable-statusbar      use wxStatusBar class
1073   --enable-tabdialog      use wxTabControl class
1074   --enable-textctrl       use wxTextCtrl class
1075   --enable-togglebtn      use wxToggleButton class
1076   --enable-toolbar        use wxToolBar class
1077   --enable-tbarnative     use native wxToolBar class
1078   --enable-tbarsmpl       use wxToolBarSimple class
1079   --enable-treebook       use wxTreebook class
1080   --enable-toolbook       use wxToolbook class
1081   --enable-treectrl       use wxTreeCtrl class
1082   --enable-tipwindow      use wxTipWindow class
1083   --enable-popupwin       use wxPopUpWindow class
1084   --enable-commondlg      use all common dialogs
1085   --enable-choicedlg      use wxChoiceDialog
1086   --enable-coldlg         use wxColourDialog
1087   --enable-filedlg        use wxFileDialog
1088   --enable-finddlg        use wxFindReplaceDialog
1089   --enable-fontdlg        use wxFontDialog
1090   --enable-dirdlg         use wxDirDialog
1091   --enable-msgdlg         use wxMessageDialog
1092   --enable-numberdlg      use wxNumberEntryDialog
1093   --enable-splash         use wxSplashScreen
1094   --enable-textdlg        use wxTextDialog
1095   --enable-tipdlg         use startup tips
1096   --enable-progressdlg    use wxProgressDialog
1097   --enable-wizarddlg      use wxWizard
1098   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1099   --enable-miniframe      use wxMiniFrame class
1100   --enable-tooltips       use wxToolTip class
1101   --enable-splines        use spline drawing code
1102   --enable-mousewheel     use mousewheel
1103   --enable-validators     use wxValidator and derived classes
1104   --enable-busyinfo       use wxBusyInfo
1105   --enable-joystick       use wxJoystick
1106   --enable-metafiles      use wxMetaFile (Win32 only)
1107   --enable-dragimage      use wxDragImage
1108   --enable-accessibility  enable accessibility support
1109   --enable-dccache        cache temporary wxDC objects (Win32 only)
1110   --enable-palette        use wxPalette class
1111   --enable-image          use wxImage class
1112   --enable-gif            use gif images (GIF file format)
1113   --enable-pcx            use pcx images (PCX file format)
1114   --enable-iff            use iff images (IFF file format)
1115   --enable-pnm            use pnm images (PNM file format)
1116   --enable-xpm            use xpm images (XPM file format)
1117   --enable-icocur         use Windows ICO and CUR formats
1118   --enable-official_build official build of wxWidgets (win32 DLL only)
1119   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1120   --disable-largefile     omit support for large files
1121   --disable-gtktest       do not try to compile and run a test GTK+ program
1122   --disable-gtktest       Do not try to compile and run a test GTK program
1123   --disable-sdltest       Do not try to compile and run a test SDL program
1124   --enable-omf            use OMF object format (OS/2)
1125   --disable-dependency-tracking
1126                           don't use dependency tracking even if the compiler
1127                           can
1128   --disable-precomp-headers
1129                           don't use precompiled headers even if compiler can
1130
1131 Optional Packages:
1132   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1133   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1134   --without-subdirs       don't generate makefiles for samples/demos/...
1135   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1136   --with-motif            use Motif/Lesstif
1137   --with-mac              use Mac OS X
1138   --with-cocoa            use Cocoa
1139   --with-wine             use Wine
1140   --with-msw              use MS-Windows
1141   --with-pm               use OS/2 Presentation Manager
1142   --with-mgl              use SciTech MGL
1143   --with-microwin         use MicroWindows
1144   --with-x11              use X11
1145   --with-libpng           use libpng (PNG image format)
1146   --with-libjpeg          use libjpeg (JPEG file format)
1147   --with-libtiff          use libtiff (TIFF file format)
1148   --with-libxpm           use libxpm (XPM file format)
1149   --with-libmspack        use libmspack (CHM help files loading)
1150   --with-sdl              use SDL for audio on Unix
1151   --with-gnomeprint       use GNOME print for printing under GNOME
1152   --with-gnomevfs         use GNOME VFS for associating MIME types
1153   --with-hildon           use Hildon framework for Nokia 770
1154   --with-opengl           use OpenGL (or Mesa)
1155   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1156   --with-regex            enable support for wxRegEx class
1157   --with-zlib             use zlib for LZW compression
1158   --with-odbc             use the IODBC and wxODBC classes
1159   --with-expat            enable XML support using expat parser
1160   --with-flavour=NAME     specify a name to identify this build
1161   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1162   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1163   --with-x                use the X Window System
1164   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1165   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1166   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1167   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1168   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1169
1170 Some influential environment variables:
1171   CC          C compiler command
1172   CFLAGS      C compiler flags
1173   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1174               nonstandard directory <lib dir>
1175   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1176               headers in a nonstandard directory <include dir>
1177   CPP         C preprocessor
1178   CXX         C++ compiler command
1179   CXXFLAGS    C++ compiler flags
1180   CXXCPP      C++ preprocessor
1181   PKG_CONFIG  path to pkg-config utility
1182   PANGOX_CFLAGS
1183               C compiler flags for PANGOX, overriding pkg-config
1184   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1185   PANGOFT2_CFLAGS
1186               C compiler flags for PANGOFT2, overriding pkg-config
1187   PANGOFT2_LIBS
1188               linker flags for PANGOFT2, overriding pkg-config
1189   PANGOXFT_CFLAGS
1190               C compiler flags for PANGOXFT, overriding pkg-config
1191   PANGOXFT_LIBS
1192               linker flags for PANGOXFT, overriding pkg-config
1193   LIBGNOMEPRINTUI_CFLAGS
1194               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1195   LIBGNOMEPRINTUI_LIBS
1196               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1197   GNOMEVFS_CFLAGS
1198               C compiler flags for GNOMEVFS, overriding pkg-config
1199   GNOMEVFS_LIBS
1200               linker flags for GNOMEVFS, overriding pkg-config
1201   HILDON_CFLAGS
1202               C compiler flags for HILDON, overriding pkg-config
1203   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1204   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1205   GST_LIBS    linker flags for GST, overriding pkg-config
1206
1207 Use these variables to override the choices made by `configure' or to help
1208 it to find libraries and programs with nonstandard names/locations.
1209
1210 Report bugs to <wx-dev@lists.wxwidgets.org>.
1211 _ACEOF
1212 fi
1213
1214 if test "$ac_init_help" = "recursive"; then
1215   # If there are subdirs, report their specific --help.
1216   ac_popdir=`pwd`
1217   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218     test -d $ac_dir || continue
1219     ac_builddir=.
1220
1221 if test "$ac_dir" != .; then
1222   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223   # A "../" for each directory in $ac_dir_suffix.
1224   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225 else
1226   ac_dir_suffix= ac_top_builddir=
1227 fi
1228
1229 case $srcdir in
1230   .)  # No --srcdir option.  We are building in place.
1231     ac_srcdir=.
1232     if test -z "$ac_top_builddir"; then
1233        ac_top_srcdir=.
1234     else
1235        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236     fi ;;
1237   [\\/]* | ?:[\\/]* )  # Absolute path.
1238     ac_srcdir=$srcdir$ac_dir_suffix;
1239     ac_top_srcdir=$srcdir ;;
1240   *) # Relative path.
1241     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243 esac
1244
1245 # Do not use `cd foo && pwd` to compute absolute paths, because
1246 # the directories may not exist.
1247 case `pwd` in
1248 .) ac_abs_builddir="$ac_dir";;
1249 *)
1250   case "$ac_dir" in
1251   .) ac_abs_builddir=`pwd`;;
1252   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254   esac;;
1255 esac
1256 case $ac_abs_builddir in
1257 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1258 *)
1259   case ${ac_top_builddir}. in
1260   .) ac_abs_top_builddir=$ac_abs_builddir;;
1261   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263   esac;;
1264 esac
1265 case $ac_abs_builddir in
1266 .) ac_abs_srcdir=$ac_srcdir;;
1267 *)
1268   case $ac_srcdir in
1269   .) ac_abs_srcdir=$ac_abs_builddir;;
1270   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272   esac;;
1273 esac
1274 case $ac_abs_builddir in
1275 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1276 *)
1277   case $ac_top_srcdir in
1278   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281   esac;;
1282 esac
1283
1284     cd $ac_dir
1285     # Check for guested configure; otherwise get Cygnus style configure.
1286     if test -f $ac_srcdir/configure.gnu; then
1287       echo
1288       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1289     elif test -f $ac_srcdir/configure; then
1290       echo
1291       $SHELL $ac_srcdir/configure  --help=recursive
1292     elif test -f $ac_srcdir/configure.ac ||
1293            test -f $ac_srcdir/configure.in; then
1294       echo
1295       $ac_configure --help
1296     else
1297       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298     fi
1299     cd "$ac_popdir"
1300   done
1301 fi
1302
1303 test -n "$ac_init_help" && exit 0
1304 if $ac_init_version; then
1305   cat <<\_ACEOF
1306 wxWidgets configure 2.7.0
1307 generated by GNU Autoconf 2.59
1308
1309 Copyright (C) 2003 Free Software Foundation, Inc.
1310 This configure script is free software; the Free Software Foundation
1311 gives unlimited permission to copy, distribute and modify it.
1312 _ACEOF
1313   exit 0
1314 fi
1315 exec 5>config.log
1316 cat >&5 <<_ACEOF
1317 This file contains any messages produced by compilers while
1318 running configure, to aid debugging if configure makes a mistake.
1319
1320 It was created by wxWidgets $as_me 2.7.0, which was
1321 generated by GNU Autoconf 2.59.  Invocation command line was
1322
1323   $ $0 $@
1324
1325 _ACEOF
1326 {
1327 cat <<_ASUNAME
1328 ## --------- ##
1329 ## Platform. ##
1330 ## --------- ##
1331
1332 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1333 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1334 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1335 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1336 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1337
1338 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1339 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1340
1341 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1342 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1343 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1344 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1345 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1346 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1347 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1348
1349 _ASUNAME
1350
1351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352 for as_dir in $PATH
1353 do
1354   IFS=$as_save_IFS
1355   test -z "$as_dir" && as_dir=.
1356   echo "PATH: $as_dir"
1357 done
1358
1359 } >&5
1360
1361 cat >&5 <<_ACEOF
1362
1363
1364 ## ----------- ##
1365 ## Core tests. ##
1366 ## ----------- ##
1367
1368 _ACEOF
1369
1370
1371 # Keep a trace of the command line.
1372 # Strip out --no-create and --no-recursion so they do not pile up.
1373 # Strip out --silent because we don't want to record it for future runs.
1374 # Also quote any args containing shell meta-characters.
1375 # Make two passes to allow for proper duplicate-argument suppression.
1376 ac_configure_args=
1377 ac_configure_args0=
1378 ac_configure_args1=
1379 ac_sep=
1380 ac_must_keep_next=false
1381 for ac_pass in 1 2
1382 do
1383   for ac_arg
1384   do
1385     case $ac_arg in
1386     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1387     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1388     | -silent | --silent | --silen | --sile | --sil)
1389       continue ;;
1390     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1392     esac
1393     case $ac_pass in
1394     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1395     2)
1396       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1397       if test $ac_must_keep_next = true; then
1398         ac_must_keep_next=false # Got value, back to normal.
1399       else
1400         case $ac_arg in
1401           *=* | --config-cache | -C | -disable-* | --disable-* \
1402           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1403           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1404           | -with-* | --with-* | -without-* | --without-* | --x)
1405             case "$ac_configure_args0 " in
1406               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1407             esac
1408             ;;
1409           -* ) ac_must_keep_next=true ;;
1410         esac
1411       fi
1412       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1413       # Get rid of the leading space.
1414       ac_sep=" "
1415       ;;
1416     esac
1417   done
1418 done
1419 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422 # When interrupted or exit'd, cleanup temporary files, and complete
1423 # config.log.  We remove comments because anyway the quotes in there
1424 # would cause problems or look ugly.
1425 # WARNING: Be sure not to use single quotes in there, as some shells,
1426 # such as our DU 5.0 friend, will then `close' the trap.
1427 trap 'exit_status=$?
1428   # Save into config.log some information that might help in debugging.
1429   {
1430     echo
1431
1432     cat <<\_ASBOX
1433 ## ---------------- ##
1434 ## Cache variables. ##
1435 ## ---------------- ##
1436 _ASBOX
1437     echo
1438     # The following way of writing the cache mishandles newlines in values,
1439 {
1440   (set) 2>&1 |
1441     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1442     *ac_space=\ *)
1443       sed -n \
1444         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1445           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1446       ;;
1447     *)
1448       sed -n \
1449         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1450       ;;
1451     esac;
1452 }
1453     echo
1454
1455     cat <<\_ASBOX
1456 ## ----------------- ##
1457 ## Output variables. ##
1458 ## ----------------- ##
1459 _ASBOX
1460     echo
1461     for ac_var in $ac_subst_vars
1462     do
1463       eval ac_val=$`echo $ac_var`
1464       echo "$ac_var='"'"'$ac_val'"'"'"
1465     done | sort
1466     echo
1467
1468     if test -n "$ac_subst_files"; then
1469       cat <<\_ASBOX
1470 ## ------------- ##
1471 ## Output files. ##
1472 ## ------------- ##
1473 _ASBOX
1474       echo
1475       for ac_var in $ac_subst_files
1476       do
1477         eval ac_val=$`echo $ac_var`
1478         echo "$ac_var='"'"'$ac_val'"'"'"
1479       done | sort
1480       echo
1481     fi
1482
1483     if test -s confdefs.h; then
1484       cat <<\_ASBOX
1485 ## ----------- ##
1486 ## confdefs.h. ##
1487 ## ----------- ##
1488 _ASBOX
1489       echo
1490       sed "/^$/d" confdefs.h | sort
1491       echo
1492     fi
1493     test "$ac_signal" != 0 &&
1494       echo "$as_me: caught signal $ac_signal"
1495     echo "$as_me: exit $exit_status"
1496   } >&5
1497   rm -f core *.core &&
1498   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1499     exit $exit_status
1500      ' 0
1501 for ac_signal in 1 2 13 15; do
1502   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1503 done
1504 ac_signal=0
1505
1506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1507 rm -rf conftest* confdefs.h
1508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1509 echo >confdefs.h
1510
1511 # Predefined preprocessor variables.
1512
1513 cat >>confdefs.h <<_ACEOF
1514 #define PACKAGE_NAME "$PACKAGE_NAME"
1515 _ACEOF
1516
1517
1518 cat >>confdefs.h <<_ACEOF
1519 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1520 _ACEOF
1521
1522
1523 cat >>confdefs.h <<_ACEOF
1524 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1525 _ACEOF
1526
1527
1528 cat >>confdefs.h <<_ACEOF
1529 #define PACKAGE_STRING "$PACKAGE_STRING"
1530 _ACEOF
1531
1532
1533 cat >>confdefs.h <<_ACEOF
1534 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1535 _ACEOF
1536
1537
1538 # Let the site file select an alternate cache file if it wants to.
1539 # Prefer explicitly selected file to automatically selected ones.
1540 if test -z "$CONFIG_SITE"; then
1541   if test "x$prefix" != xNONE; then
1542     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1543   else
1544     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1545   fi
1546 fi
1547 for ac_site_file in $CONFIG_SITE; do
1548   if test -r "$ac_site_file"; then
1549     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1550 echo "$as_me: loading site script $ac_site_file" >&6;}
1551     sed 's/^/| /' "$ac_site_file" >&5
1552     . "$ac_site_file"
1553   fi
1554 done
1555
1556 if test -r "$cache_file"; then
1557   # Some versions of bash will fail to source /dev/null (special
1558   # files actually), so we avoid doing that.
1559   if test -f "$cache_file"; then
1560     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1561 echo "$as_me: loading cache $cache_file" >&6;}
1562     case $cache_file in
1563       [\\/]* | ?:[\\/]* ) . $cache_file;;
1564       *)                      . ./$cache_file;;
1565     esac
1566   fi
1567 else
1568   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1569 echo "$as_me: creating cache $cache_file" >&6;}
1570   >$cache_file
1571 fi
1572
1573 # Check that the precious variables saved in the cache have kept the same
1574 # value.
1575 ac_cache_corrupted=false
1576 for ac_var in `(set) 2>&1 |
1577                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1578   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1579   eval ac_new_set=\$ac_env_${ac_var}_set
1580   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1581   eval ac_new_val="\$ac_env_${ac_var}_value"
1582   case $ac_old_set,$ac_new_set in
1583     set,)
1584       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1585 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1586       ac_cache_corrupted=: ;;
1587     ,set)
1588       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1589 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1590       ac_cache_corrupted=: ;;
1591     ,);;
1592     *)
1593       if test "x$ac_old_val" != "x$ac_new_val"; then
1594         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1595 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1596         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1597 echo "$as_me:   former value:  $ac_old_val" >&2;}
1598         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1599 echo "$as_me:   current value: $ac_new_val" >&2;}
1600         ac_cache_corrupted=:
1601       fi;;
1602   esac
1603   # Pass precious variables to config.status.
1604   if test "$ac_new_set" = set; then
1605     case $ac_new_val in
1606     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1607       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1608     *) ac_arg=$ac_var=$ac_new_val ;;
1609     esac
1610     case " $ac_configure_args " in
1611       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1612       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1613     esac
1614   fi
1615 done
1616 if $ac_cache_corrupted; then
1617   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1618 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1619   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1620 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1621    { (exit 1); exit 1; }; }
1622 fi
1623
1624 ac_ext=c
1625 ac_cpp='$CPP $CPPFLAGS'
1626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659 ac_aux_dir=
1660 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1661   if test -f $ac_dir/install-sh; then
1662     ac_aux_dir=$ac_dir
1663     ac_install_sh="$ac_aux_dir/install-sh -c"
1664     break
1665   elif test -f $ac_dir/install.sh; then
1666     ac_aux_dir=$ac_dir
1667     ac_install_sh="$ac_aux_dir/install.sh -c"
1668     break
1669   elif test -f $ac_dir/shtool; then
1670     ac_aux_dir=$ac_dir
1671     ac_install_sh="$ac_aux_dir/shtool install -c"
1672     break
1673   fi
1674 done
1675 if test -z "$ac_aux_dir"; then
1676   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1677 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1678    { (exit 1); exit 1; }; }
1679 fi
1680 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1681 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1682 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1683
1684 # Make sure we can run config.sub.
1685 $ac_config_sub sun4 >/dev/null 2>&1 ||
1686   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1687 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1688    { (exit 1); exit 1; }; }
1689
1690 echo "$as_me:$LINENO: checking build system type" >&5
1691 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1692 if test "${ac_cv_build+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   ac_cv_build_alias=$build_alias
1696 test -z "$ac_cv_build_alias" &&
1697   ac_cv_build_alias=`$ac_config_guess`
1698 test -z "$ac_cv_build_alias" &&
1699   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1700 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1701    { (exit 1); exit 1; }; }
1702 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1703   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1704 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1705    { (exit 1); exit 1; }; }
1706
1707 fi
1708 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1709 echo "${ECHO_T}$ac_cv_build" >&6
1710 build=$ac_cv_build
1711 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1712 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1713 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1714
1715
1716 echo "$as_me:$LINENO: checking host system type" >&5
1717 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1718 if test "${ac_cv_host+set}" = set; then
1719   echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721   ac_cv_host_alias=$host_alias
1722 test -z "$ac_cv_host_alias" &&
1723   ac_cv_host_alias=$ac_cv_build_alias
1724 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1725   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1726 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1727    { (exit 1); exit 1; }; }
1728
1729 fi
1730 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1731 echo "${ECHO_T}$ac_cv_host" >&6
1732 host=$ac_cv_host
1733 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736
1737
1738 echo "$as_me:$LINENO: checking target system type" >&5
1739 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1740 if test "${ac_cv_target+set}" = set; then
1741   echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743   ac_cv_target_alias=$target_alias
1744 test "x$ac_cv_target_alias" = "x" &&
1745   ac_cv_target_alias=$ac_cv_host_alias
1746 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1747   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1748 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1749    { (exit 1); exit 1; }; }
1750
1751 fi
1752 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1753 echo "${ECHO_T}$ac_cv_target" >&6
1754 target=$ac_cv_target
1755 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758
1759
1760 # The aliases save the names the user supplied, while $host etc.
1761 # will get canonicalized.
1762 test -n "$target_alias" &&
1763   test "$program_prefix$program_suffix$program_transform_name" = \
1764     NONENONEs,x,x, &&
1765   program_prefix=${target_alias}-
1766
1767
1768
1769 wx_major_version_number=2
1770 wx_minor_version_number=7
1771 wx_release_number=0
1772 wx_subrelease_number=0
1773
1774 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1775 WX_VERSION=$WX_RELEASE.$wx_release_number
1776 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1777
1778 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1779
1780
1781
1782
1783 USE_UNIX=1
1784 USE_OS2=0
1785 USE_WIN32=0
1786 USE_DOS=0
1787 USE_BEOS=0
1788 USE_MAC=0
1789
1790 USE_AIX=
1791 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1792 USE_GNU=                            USE_HPUX=
1793 USE_LINUX=
1794 USE_NETBSD=
1795 USE_OPENBSD=
1796 USE_OSF=                            USE_SGI=
1797 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1798 USE_ULTRIX=
1799 USE_UNIXWARE=
1800
1801 USE_ALPHA=
1802
1803 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1804
1805 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1806
1807 DEFAULT_wxUSE_COCOA=0
1808 DEFAULT_wxUSE_GTK=0
1809 DEFAULT_wxUSE_MAC=0
1810 DEFAULT_wxUSE_MGL=0
1811 DEFAULT_wxUSE_MICROWIN=0
1812 DEFAULT_wxUSE_MOTIF=0
1813 DEFAULT_wxUSE_MSW=0
1814 DEFAULT_wxUSE_PM=0
1815 DEFAULT_wxUSE_X11=0
1816
1817 DEFAULT_DEFAULT_wxUSE_COCOA=0
1818 DEFAULT_DEFAULT_wxUSE_GTK=0
1819 DEFAULT_DEFAULT_wxUSE_MAC=0
1820 DEFAULT_DEFAULT_wxUSE_MGL=0
1821 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1822 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1823 DEFAULT_DEFAULT_wxUSE_MSW=0
1824 DEFAULT_DEFAULT_wxUSE_PM=0
1825 DEFAULT_DEFAULT_wxUSE_X11=0
1826
1827 PROGRAM_EXT=
1828 SO_SUFFIX=so
1829 SAMPLES_RPATH_FLAG=
1830 SAMPLES_RPATH_POSTLINK=
1831
1832 DEFAULT_STD_FLAG=yes
1833
1834 case "${host}" in
1835   *-hp-hpux* )
1836     USE_HPUX=1
1837     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1838     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1839     SO_SUFFIX=sl
1840     cat >>confdefs.h <<\_ACEOF
1841 #define __HPUX__ 1
1842 _ACEOF
1843
1844
1845             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1846   ;;
1847   *-*-linux* )
1848     USE_LINUX=1
1849     cat >>confdefs.h <<\_ACEOF
1850 #define __LINUX__ 1
1851 _ACEOF
1852
1853     TMP=`uname -m`
1854     if test "x$TMP" = "xalpha"; then
1855       USE_ALPHA=1
1856       cat >>confdefs.h <<\_ACEOF
1857 #define __ALPHA__ 1
1858 _ACEOF
1859
1860     fi
1861     DEFAULT_DEFAULT_wxUSE_GTK=1
1862   ;;
1863   *-*-gnu* | *-*-k*bsd*-gnu )
1864     USE_GNU=1
1865     TMP=`uname -m`
1866     if test "x$TMP" = "xalpha"; then
1867       USE_ALPHA=1
1868       cat >>confdefs.h <<\_ACEOF
1869 #define __ALPHA__ 1
1870 _ACEOF
1871
1872     fi
1873     DEFAULT_DEFAULT_wxUSE_GTK=1
1874   ;;
1875   *-*-irix5* | *-*-irix6* )
1876     USE_SGI=1
1877     USE_SVR4=1
1878     cat >>confdefs.h <<\_ACEOF
1879 #define __SGI__ 1
1880 _ACEOF
1881
1882     cat >>confdefs.h <<\_ACEOF
1883 #define __SVR4__ 1
1884 _ACEOF
1885
1886     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887   ;;
1888   *-*-solaris2* )
1889     USE_SUN=1
1890     USE_SOLARIS=1
1891     USE_SVR4=1
1892     cat >>confdefs.h <<\_ACEOF
1893 #define __SUN__ 1
1894 _ACEOF
1895
1896     cat >>confdefs.h <<\_ACEOF
1897 #define __SOLARIS__ 1
1898 _ACEOF
1899
1900     cat >>confdefs.h <<\_ACEOF
1901 #define __SVR4__ 1
1902 _ACEOF
1903
1904     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1905     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1906   ;;
1907   *-*-sunos4* )
1908     USE_SUN=1
1909     USE_SUNOS=1
1910     USE_BSD=1
1911     cat >>confdefs.h <<\_ACEOF
1912 #define __SUN__ 1
1913 _ACEOF
1914
1915     cat >>confdefs.h <<\_ACEOF
1916 #define __SUNOS__ 1
1917 _ACEOF
1918
1919     cat >>confdefs.h <<\_ACEOF
1920 #define __BSD__ 1
1921 _ACEOF
1922
1923     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1924   ;;
1925   *-*-freebsd*)
1926     USE_BSD=1
1927     USE_FREEBSD=1
1928     cat >>confdefs.h <<\_ACEOF
1929 #define __FREEBSD__ 1
1930 _ACEOF
1931
1932     cat >>confdefs.h <<\_ACEOF
1933 #define __BSD__ 1
1934 _ACEOF
1935
1936     DEFAULT_DEFAULT_wxUSE_GTK=1
1937   ;;
1938   *-*-openbsd*|*-*-mirbsd*)
1939     USE_BSD=1
1940     USE_OPENBSD=1
1941     cat >>confdefs.h <<\_ACEOF
1942 #define __OPENBSD__ 1
1943 _ACEOF
1944
1945     cat >>confdefs.h <<\_ACEOF
1946 #define __BSD__ 1
1947 _ACEOF
1948
1949     DEFAULT_DEFAULT_wxUSE_GTK=1
1950   ;;
1951   *-*-netbsd*)
1952     USE_BSD=1
1953     USE_NETBSD=1
1954     cat >>confdefs.h <<\_ACEOF
1955 #define __NETBSD__ 1
1956 _ACEOF
1957
1958     cat >>confdefs.h <<\_ACEOF
1959 #define __BSD__ 1
1960 _ACEOF
1961
1962     DEFAULT_DEFAULT_wxUSE_GTK=1
1963     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1964
1965             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1966   ;;
1967   *-*-osf* )
1968     USE_ALPHA=1
1969     USE_OSF=1
1970     cat >>confdefs.h <<\_ACEOF
1971 #define __ALPHA__ 1
1972 _ACEOF
1973
1974     cat >>confdefs.h <<\_ACEOF
1975 #define __OSF__ 1
1976 _ACEOF
1977
1978     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1979     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1980   ;;
1981   *-*-dgux5* )
1982     USE_ALPHA=1
1983     USE_SVR4=1
1984     cat >>confdefs.h <<\_ACEOF
1985 #define __ALPHA__ 1
1986 _ACEOF
1987
1988     cat >>confdefs.h <<\_ACEOF
1989 #define __SVR4__ 1
1990 _ACEOF
1991
1992     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1993   ;;
1994   *-*-sysv5* )
1995     USE_SYSV=1
1996     USE_SVR4=1
1997     cat >>confdefs.h <<\_ACEOF
1998 #define __SYSV__ 1
1999 _ACEOF
2000
2001     cat >>confdefs.h <<\_ACEOF
2002 #define __SVR4__ 1
2003 _ACEOF
2004
2005     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2006   ;;
2007   *-*-aix* )
2008     USE_AIX=1
2009     USE_SYSV=1
2010     USE_SVR4=1
2011                         SO_SUFFIX=a
2012     cat >>confdefs.h <<\_ACEOF
2013 #define __AIX__ 1
2014 _ACEOF
2015
2016     cat >>confdefs.h <<\_ACEOF
2017 #define __SYSV__ 1
2018 _ACEOF
2019
2020     cat >>confdefs.h <<\_ACEOF
2021 #define __SVR4__ 1
2022 _ACEOF
2023
2024     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2025   ;;
2026
2027   *-*-*UnixWare*)
2028     USE_SYSV=1
2029     USE_SVR4=1
2030     USE_UNIXWARE=1
2031     cat >>confdefs.h <<\_ACEOF
2032 #define __UNIXWARE__ 1
2033 _ACEOF
2034
2035   ;;
2036
2037   *-*-cygwin* | *-*-mingw32* )
2038                 SO_SUFFIX=dll
2039     PROGRAM_EXT=".exe"
2040     DEFAULT_DEFAULT_wxUSE_MSW=1
2041     DEFAULT_STD_FLAG=no
2042   ;;
2043
2044   *-pc-msdosdjgpp )
2045     USE_UNIX=0
2046     USE_DOS=1
2047     cat >>confdefs.h <<\_ACEOF
2048 #define __DOS__ 1
2049 _ACEOF
2050
2051     PROGRAM_EXT=".exe"
2052     DEFAULT_DEFAULT_wxUSE_MGL=1
2053   ;;
2054
2055   *-pc-os2_emx | *-pc-os2-emx )
2056     cat >>confdefs.h <<\_ACEOF
2057 #define __EMX__ 1
2058 _ACEOF
2059
2060     USE_OS2=1
2061     cat >>confdefs.h <<\_ACEOF
2062 #define __OS2__ 1
2063 _ACEOF
2064
2065     PROGRAM_EXT=".exe"
2066     DEFAULT_DEFAULT_wxUSE_PM=1
2067         CXX=gcc
2068     LDFLAGS="$LDFLAGS -Zcrtdll"
2069                         ac_executable_extensions=".exe"
2070     export ac_executable_extensions
2071             ac_save_IFS="$IFS"
2072     IFS='\\'
2073     ac_TEMP_PATH=
2074     for ac_dir in $PATH; do
2075       IFS=$ac_save_IFS
2076       if test -z "$ac_TEMP_PATH"; then
2077         ac_TEMP_PATH="$ac_dir"
2078       else
2079         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2080       fi
2081     done
2082     export PATH="$ac_TEMP_PATH"
2083     unset ac_TEMP_PATH
2084     DEFAULT_STD_FLAG=no
2085   ;;
2086
2087   *-*-darwin* )
2088         USE_BSD=1
2089     USE_DARWIN=1
2090     SO_SUFFIX=dylib
2091     cat >>confdefs.h <<\_ACEOF
2092 #define __BSD__ 1
2093 _ACEOF
2094
2095     cat >>confdefs.h <<\_ACEOF
2096 #define __DARWIN__ 1
2097 _ACEOF
2098
2099     cat >>confdefs.h <<\_ACEOF
2100 #define TARGET_CARBON 1
2101 _ACEOF
2102
2103     DEFAULT_DEFAULT_wxUSE_MAC=1
2104     DEFAULT_STD_FLAG=no
2105   ;;
2106   powerpc-apple-macos* )
2107         USE_UNIX=0
2108             ac_cv_c_bigendian=yes
2109     SO_SUFFIX=shlib
2110             DEFAULT_DEFAULT_wxUSE_MAC=1
2111     DEFAULT_STD_FLAG=no
2112   ;;
2113
2114   *-*-beos* )
2115         USE_BEOS=1
2116     cat >>confdefs.h <<\_ACEOF
2117 #define __BEOS__ 1
2118 _ACEOF
2119
2120   ;;
2121
2122   *)
2123     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2124 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2125     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2126 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2127 esac
2128
2129
2130
2131
2132           wx_arg_cache_file="configarg.cache"
2133           echo "loading argument cache $wx_arg_cache_file"
2134           rm -f ${wx_arg_cache_file}.tmp
2135           touch ${wx_arg_cache_file}.tmp
2136           touch ${wx_arg_cache_file}
2137
2138
2139 DEBUG_CONFIGURE=0
2140 if test $DEBUG_CONFIGURE = 1; then
2141   DEFAULT_wxUSE_UNIVERSAL=no
2142   DEFAULT_wxUSE_STL=no
2143
2144   DEFAULT_wxUSE_NANOX=no
2145
2146   DEFAULT_wxUSE_THREADS=yes
2147
2148   DEFAULT_wxUSE_SHARED=yes
2149   DEFAULT_wxUSE_OPTIMISE=no
2150   DEFAULT_wxUSE_PROFILE=no
2151   DEFAULT_wxUSE_NO_DEPS=no
2152   DEFAULT_wxUSE_NO_RTTI=no
2153   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2154   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2155   DEFAULT_wxUSE_RPATH=yes
2156   DEFAULT_wxUSE_PERMISSIVE=no
2157   DEFAULT_wxUSE_DEBUG_FLAG=yes
2158   DEFAULT_wxUSE_DEBUG_INFO=yes
2159   DEFAULT_wxUSE_DEBUG_GDB=yes
2160   DEFAULT_wxUSE_MEM_TRACING=no
2161   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2162   DEFAULT_wxUSE_DMALLOC=no
2163   DEFAULT_wxUSE_APPLE_IEEE=no
2164
2165   DEFAULT_wxUSE_EXCEPTIONS=no
2166   DEFAULT_wxUSE_LOG=yes
2167   DEFAULT_wxUSE_LOGWINDOW=no
2168   DEFAULT_wxUSE_LOGGUI=no
2169   DEFAULT_wxUSE_LOGDIALOG=no
2170
2171   DEFAULT_wxUSE_GUI=yes
2172   DEFAULT_wxUSE_CONTROLS=no
2173
2174   DEFAULT_wxUSE_REGEX=no
2175   DEFAULT_wxUSE_XML=no
2176   DEFAULT_wxUSE_EXPAT=no
2177   DEFAULT_wxUSE_ZLIB=no
2178   DEFAULT_wxUSE_LIBPNG=no
2179   DEFAULT_wxUSE_LIBJPEG=no
2180   DEFAULT_wxUSE_LIBTIFF=no
2181   DEFAULT_wxUSE_LIBXPM=no
2182   DEFAULT_wxUSE_LIBMSPACK=no
2183   DEFAULT_wxUSE_LIBSDL=no
2184   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2185   DEFAULT_wxUSE_LIBGNOMEVFS=no
2186   DEFAULT_wxUSE_LIBHILDON=no
2187   DEFAULT_wxUSE_ODBC=no
2188   DEFAULT_wxUSE_OPENGL=no
2189
2190   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2191   DEFAULT_wxUSE_STACKWALKER=no
2192   DEFAULT_wxUSE_DEBUGREPORT=no
2193   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2194   DEFAULT_wxUSE_STD_IOSTREAM=no
2195   DEFAULT_wxUSE_STD_STRING=no
2196   DEFAULT_wxUSE_CMDLINE_PARSER=no
2197   DEFAULT_wxUSE_DATETIME=no
2198   DEFAULT_wxUSE_TIMER=no
2199   DEFAULT_wxUSE_STOPWATCH=no
2200   DEFAULT_wxUSE_FILE=no
2201   DEFAULT_wxUSE_FFILE=no
2202   DEFAULT_wxUSE_STDPATHS=no
2203   DEFAULT_wxUSE_TEXTBUFFER=no
2204   DEFAULT_wxUSE_TEXTFILE=no
2205   DEFAULT_wxUSE_SOUND=no
2206   DEFAULT_wxUSE_MEDIACTRL=no
2207   DEFAULT_wxUSE_GSTREAMER8=no
2208   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2209   DEFAULT_wxUSE_INTL=no
2210   DEFAULT_wxUSE_CONFIG=no
2211   DEFAULT_wxUSE_FONTMAP=no
2212   DEFAULT_wxUSE_STREAMS=no
2213   DEFAULT_wxUSE_SOCKETS=no
2214   DEFAULT_wxUSE_OLE=no
2215   DEFAULT_wxUSE_DATAOBJ=no
2216   DEFAULT_wxUSE_DIALUP_MANAGER=no
2217   DEFAULT_wxUSE_JOYSTICK=no
2218   DEFAULT_wxUSE_DYNLIB_CLASS=no
2219   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2220   DEFAULT_wxUSE_LONGLONG=no
2221   DEFAULT_wxUSE_GEOMETRY=no
2222
2223   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2224   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2225   DEFAULT_wxUSE_POSTSCRIPT=no
2226
2227   DEFAULT_wxUSE_CLIPBOARD=no
2228   DEFAULT_wxUSE_TOOLTIPS=no
2229   DEFAULT_wxUSE_DRAG_AND_DROP=no
2230   DEFAULT_wxUSE_DRAGIMAGE=no
2231   DEFAULT_wxUSE_SPLINES=no
2232   DEFAULT_wxUSE_MOUSEWHEEL=no
2233
2234   DEFAULT_wxUSE_MDI=no
2235   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2236   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2237   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2238
2239   DEFAULT_wxUSE_RESOURCES=no
2240   DEFAULT_wxUSE_CONSTRAINTS=no
2241   DEFAULT_wxUSE_IPC=no
2242   DEFAULT_wxUSE_HELP=no
2243   DEFAULT_wxUSE_MS_HTML_HELP=no
2244   DEFAULT_wxUSE_WXHTML_HELP=no
2245   DEFAULT_wxUSE_TREELAYOUT=no
2246   DEFAULT_wxUSE_METAFILE=no
2247   DEFAULT_wxUSE_MIMETYPE=no
2248   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2249   DEFAULT_wxUSE_PROTOCOL=no
2250   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2251   DEFAULT_wxUSE_PROTOCOL_FTP=no
2252   DEFAULT_wxUSE_PROTOCOL_FILE=no
2253   DEFAULT_wxUSE_URL=no
2254
2255   DEFAULT_wxUSE_COMMONDLGS=no
2256   DEFAULT_wxUSE_CHOICEDLG=no
2257   DEFAULT_wxUSE_COLOURDLG=no
2258   DEFAULT_wxUSE_DIRDLG=no
2259   DEFAULT_wxUSE_FILEDLG=no
2260   DEFAULT_wxUSE_FINDREPLDLG=no
2261   DEFAULT_wxUSE_FONTDLG=no
2262   DEFAULT_wxUSE_MSGDLG=no
2263   DEFAULT_wxUSE_NUMBERDLG=no
2264   DEFAULT_wxUSE_TEXTDLG=no
2265   DEFAULT_wxUSE_SPLASH=no
2266   DEFAULT_wxUSE_STARTUP_TIPS=no
2267   DEFAULT_wxUSE_PROGRESSDLG=no
2268   DEFAULT_wxUSE_WIZARDDLG=no
2269
2270   DEFAULT_wxUSE_MENUS=no
2271   DEFAULT_wxUSE_MINIFRAME=no
2272   DEFAULT_wxUSE_HTML=no
2273   DEFAULT_wxUSE_RICHTEXT=no
2274   DEFAULT_wxUSE_XRC=no
2275   DEFAULT_wxUSE_AUI=no
2276   DEFAULT_wxUSE_WEBKIT=no
2277   DEFAULT_wxUSE_FILESYSTEM=no
2278   DEFAULT_wxUSE_FS_INET=no
2279   DEFAULT_wxUSE_FS_ZIP=no
2280   DEFAULT_wxUSE_BUSYINFO=no
2281   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2282   DEFAULT_wxUSE_ZIPSTREAM=no
2283   DEFAULT_wxUSE_VALIDATORS=no
2284
2285   DEFAULT_wxUSE_ACCEL=no
2286   DEFAULT_wxUSE_BUTTON=no
2287   DEFAULT_wxUSE_BMPBUTTON=no
2288   DEFAULT_wxUSE_CALCTRL=no
2289   DEFAULT_wxUSE_CARET=no
2290   DEFAULT_wxUSE_CHECKBOX=no
2291   DEFAULT_wxUSE_CHECKLST=no
2292   DEFAULT_wxUSE_CHOICE=no
2293   DEFAULT_wxUSE_CHOICEBOOK=no
2294   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2295   DEFAULT_wxUSE_COMBOBOX=no
2296   DEFAULT_wxUSE_COMBOCTRL=no
2297   DEFAULT_wxUSE_DATEPICKCTRL=no
2298   DEFAULT_wxUSE_DISPLAY=no
2299   DEFAULT_wxUSE_DIRPICKERCTRL=no
2300   DEFAULT_wxUSE_FILEPICKERCTRL=no
2301   DEFAULT_wxUSE_FONTPICKERCTRL=no
2302   DEFAULT_wxUSE_GAUGE=no
2303   DEFAULT_wxUSE_GRID=no
2304   DEFAULT_wxUSE_HYPERLINKCTRL=no
2305   DEFAULT_wxUSE_DATAVIEWCTRL=no
2306   DEFAULT_wxUSE_IMAGLIST=no
2307   DEFAULT_wxUSE_LISTBOOK=no
2308   DEFAULT_wxUSE_LISTBOX=no
2309   DEFAULT_wxUSE_LISTCTRL=no
2310   DEFAULT_wxUSE_NOTEBOOK=no
2311   DEFAULT_wxUSE_ODCOMBOBOX=no
2312   DEFAULT_wxUSE_RADIOBOX=no
2313   DEFAULT_wxUSE_RADIOBTN=no
2314   DEFAULT_wxUSE_SASH=no
2315   DEFAULT_wxUSE_SCROLLBAR=no
2316   DEFAULT_wxUSE_SLIDER=no
2317   DEFAULT_wxUSE_SPINBTN=no
2318   DEFAULT_wxUSE_SPINCTRL=no
2319   DEFAULT_wxUSE_SPLITTER=no
2320   DEFAULT_wxUSE_STATBMP=no
2321   DEFAULT_wxUSE_STATBOX=no
2322   DEFAULT_wxUSE_STATLINE=no
2323   DEFAULT_wxUSE_STATTEXT=no
2324   DEFAULT_wxUSE_STATUSBAR=yes
2325   DEFAULT_wxUSE_TAB_DIALOG=no
2326   DEFAULT_wxUSE_TEXTCTRL=no
2327   DEFAULT_wxUSE_TOGGLEBTN=no
2328   DEFAULT_wxUSE_TOOLBAR=no
2329   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2330   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2331   DEFAULT_wxUSE_TREEBOOK=no
2332   DEFAULT_wxUSE_TOOLBOOK=no
2333   DEFAULT_wxUSE_TREECTRL=no
2334   DEFAULT_wxUSE_POPUPWIN=no
2335   DEFAULT_wxUSE_TIPWINDOW=no
2336
2337   DEFAULT_wxUSE_UNICODE=no
2338   DEFAULT_wxUSE_UNICODE_MSLU=no
2339   DEFAULT_wxUSE_WCSRTOMBS=no
2340
2341   DEFAULT_wxUSE_PALETTE=no
2342   DEFAULT_wxUSE_IMAGE=no
2343   DEFAULT_wxUSE_GIF=no
2344   DEFAULT_wxUSE_PCX=no
2345   DEFAULT_wxUSE_PNM=no
2346   DEFAULT_wxUSE_IFF=no
2347   DEFAULT_wxUSE_XPM=no
2348   DEFAULT_wxUSE_ICO_CUR=no
2349   DEFAULT_wxUSE_ACCESSIBILITY=no
2350
2351   DEFAULT_wxUSE_MONOLITHIC=no
2352   DEFAULT_wxUSE_PLUGINS=no
2353   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2354 else
2355   DEFAULT_wxUSE_UNIVERSAL=no
2356   DEFAULT_wxUSE_STL=no
2357
2358   DEFAULT_wxUSE_NANOX=no
2359
2360   DEFAULT_wxUSE_THREADS=yes
2361
2362   DEFAULT_wxUSE_SHARED=yes
2363   DEFAULT_wxUSE_OPTIMISE=yes
2364   DEFAULT_wxUSE_PROFILE=no
2365   DEFAULT_wxUSE_NO_DEPS=no
2366   DEFAULT_wxUSE_NO_RTTI=no
2367   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2368   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2369   DEFAULT_wxUSE_RPATH=yes
2370   DEFAULT_wxUSE_PERMISSIVE=no
2371   DEFAULT_wxUSE_DEBUG_FLAG=no
2372   DEFAULT_wxUSE_DEBUG_INFO=no
2373   DEFAULT_wxUSE_DEBUG_GDB=no
2374   DEFAULT_wxUSE_MEM_TRACING=no
2375   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2376   DEFAULT_wxUSE_DMALLOC=no
2377   DEFAULT_wxUSE_APPLE_IEEE=yes
2378
2379   DEFAULT_wxUSE_EXCEPTIONS=yes
2380   DEFAULT_wxUSE_LOG=yes
2381   DEFAULT_wxUSE_LOGWINDOW=yes
2382   DEFAULT_wxUSE_LOGGUI=yes
2383   DEFAULT_wxUSE_LOGDIALOG=yes
2384
2385   DEFAULT_wxUSE_GUI=yes
2386
2387   DEFAULT_wxUSE_REGEX=yes
2388   DEFAULT_wxUSE_XML=yes
2389   DEFAULT_wxUSE_EXPAT=yes
2390   DEFAULT_wxUSE_ZLIB=yes
2391   DEFAULT_wxUSE_LIBPNG=yes
2392   DEFAULT_wxUSE_LIBJPEG=yes
2393   DEFAULT_wxUSE_LIBTIFF=yes
2394   DEFAULT_wxUSE_LIBXPM=yes
2395   DEFAULT_wxUSE_LIBMSPACK=yes
2396   DEFAULT_wxUSE_LIBSDL=no
2397   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2398   DEFAULT_wxUSE_LIBGNOMEVFS=no
2399   DEFAULT_wxUSE_LIBHILDON=no
2400   DEFAULT_wxUSE_ODBC=no
2401   DEFAULT_wxUSE_OPENGL=no
2402
2403   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2404   DEFAULT_wxUSE_STACKWALKER=yes
2405   DEFAULT_wxUSE_DEBUGREPORT=yes
2406   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2407   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2408   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2409   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2410   DEFAULT_wxUSE_DATETIME=yes
2411   DEFAULT_wxUSE_TIMER=yes
2412   DEFAULT_wxUSE_STOPWATCH=yes
2413   DEFAULT_wxUSE_FILE=yes
2414   DEFAULT_wxUSE_FFILE=yes
2415   DEFAULT_wxUSE_STDPATHS=yes
2416   DEFAULT_wxUSE_TEXTBUFFER=yes
2417   DEFAULT_wxUSE_TEXTFILE=yes
2418   DEFAULT_wxUSE_SOUND=yes
2419   DEFAULT_wxUSE_MEDIACTRL=no
2420   DEFAULT_wxUSE_GSTREAMER8=no
2421   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2422   DEFAULT_wxUSE_INTL=yes
2423   DEFAULT_wxUSE_CONFIG=yes
2424   DEFAULT_wxUSE_FONTMAP=yes
2425   DEFAULT_wxUSE_STREAMS=yes
2426   DEFAULT_wxUSE_SOCKETS=yes
2427   DEFAULT_wxUSE_OLE=yes
2428   DEFAULT_wxUSE_DATAOBJ=yes
2429   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2430   DEFAULT_wxUSE_JOYSTICK=yes
2431   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2432   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2433   DEFAULT_wxUSE_LONGLONG=yes
2434   DEFAULT_wxUSE_GEOMETRY=yes
2435
2436   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2437   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2438   DEFAULT_wxUSE_POSTSCRIPT=yes
2439
2440   DEFAULT_wxUSE_CLIPBOARD=yes
2441   DEFAULT_wxUSE_TOOLTIPS=yes
2442   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2443   DEFAULT_wxUSE_DRAGIMAGE=yes
2444   DEFAULT_wxUSE_SPLINES=yes
2445   DEFAULT_wxUSE_MOUSEWHEEL=yes
2446
2447   DEFAULT_wxUSE_MDI=yes
2448   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2449   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2450   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2451
2452   DEFAULT_wxUSE_RESOURCES=no
2453   DEFAULT_wxUSE_CONSTRAINTS=yes
2454   DEFAULT_wxUSE_IPC=yes
2455   DEFAULT_wxUSE_HELP=yes
2456   DEFAULT_wxUSE_MS_HTML_HELP=yes
2457   DEFAULT_wxUSE_WXHTML_HELP=yes
2458   DEFAULT_wxUSE_TREELAYOUT=yes
2459   DEFAULT_wxUSE_METAFILE=yes
2460   DEFAULT_wxUSE_MIMETYPE=yes
2461   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2462   DEFAULT_wxUSE_PROTOCOL=yes
2463   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2464   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2465   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2466   DEFAULT_wxUSE_URL=yes
2467
2468   DEFAULT_wxUSE_COMMONDLGS=yes
2469   DEFAULT_wxUSE_CHOICEDLG=yes
2470   DEFAULT_wxUSE_COLOURDLG=yes
2471   DEFAULT_wxUSE_DIRDLG=yes
2472   DEFAULT_wxUSE_FILEDLG=yes
2473   DEFAULT_wxUSE_FINDREPLDLG=yes
2474   DEFAULT_wxUSE_FONTDLG=yes
2475   DEFAULT_wxUSE_MSGDLG=yes
2476   DEFAULT_wxUSE_NUMBERDLG=yes
2477   DEFAULT_wxUSE_TEXTDLG=yes
2478   DEFAULT_wxUSE_SPLASH=yes
2479   DEFAULT_wxUSE_STARTUP_TIPS=yes
2480   DEFAULT_wxUSE_PROGRESSDLG=yes
2481   DEFAULT_wxUSE_WIZARDDLG=yes
2482
2483   DEFAULT_wxUSE_MENUS=yes
2484   DEFAULT_wxUSE_MINIFRAME=yes
2485   DEFAULT_wxUSE_HTML=yes
2486   DEFAULT_wxUSE_RICHTEXT=yes
2487   DEFAULT_wxUSE_XRC=yes
2488   DEFAULT_wxUSE_AUI=yes
2489   DEFAULT_wxUSE_WEBKIT=yes
2490   DEFAULT_wxUSE_FILESYSTEM=yes
2491   DEFAULT_wxUSE_FS_INET=yes
2492   DEFAULT_wxUSE_FS_ZIP=yes
2493   DEFAULT_wxUSE_BUSYINFO=yes
2494   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2495   DEFAULT_wxUSE_ZIPSTREAM=yes
2496   DEFAULT_wxUSE_VALIDATORS=yes
2497
2498   DEFAULT_wxUSE_ACCEL=yes
2499   DEFAULT_wxUSE_BUTTON=yes
2500   DEFAULT_wxUSE_BMPBUTTON=yes
2501   DEFAULT_wxUSE_CALCTRL=yes
2502   DEFAULT_wxUSE_CARET=yes
2503   DEFAULT_wxUSE_CHECKBOX=yes
2504   DEFAULT_wxUSE_CHECKLST=yes
2505   DEFAULT_wxUSE_CHOICE=yes
2506   DEFAULT_wxUSE_CHOICEBOOK=yes
2507   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2508   DEFAULT_wxUSE_COMBOBOX=yes
2509   DEFAULT_wxUSE_COMBOCTRL=yes
2510   DEFAULT_wxUSE_DATEPICKCTRL=yes
2511   DEFAULT_wxUSE_DISPLAY=yes
2512   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2513   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2514   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2515   DEFAULT_wxUSE_GAUGE=yes
2516   DEFAULT_wxUSE_GRID=yes
2517   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2518   DEFAULT_wxUSE_DATAVIEWCTRL=no
2519   DEFAULT_wxUSE_IMAGLIST=yes
2520   DEFAULT_wxUSE_LISTBOOK=yes
2521   DEFAULT_wxUSE_LISTBOX=yes
2522   DEFAULT_wxUSE_LISTCTRL=yes
2523   DEFAULT_wxUSE_NOTEBOOK=yes
2524   DEFAULT_wxUSE_ODCOMBOBOX=yes
2525   DEFAULT_wxUSE_RADIOBOX=yes
2526   DEFAULT_wxUSE_RADIOBTN=yes
2527   DEFAULT_wxUSE_SASH=yes
2528   DEFAULT_wxUSE_SCROLLBAR=yes
2529   DEFAULT_wxUSE_SLIDER=yes
2530   DEFAULT_wxUSE_SPINBTN=yes
2531   DEFAULT_wxUSE_SPINCTRL=yes
2532   DEFAULT_wxUSE_SPLITTER=yes
2533   DEFAULT_wxUSE_STATBMP=yes
2534   DEFAULT_wxUSE_STATBOX=yes
2535   DEFAULT_wxUSE_STATLINE=yes
2536   DEFAULT_wxUSE_STATTEXT=yes
2537   DEFAULT_wxUSE_STATUSBAR=yes
2538   DEFAULT_wxUSE_TAB_DIALOG=no
2539   DEFAULT_wxUSE_TEXTCTRL=yes
2540   DEFAULT_wxUSE_TOGGLEBTN=yes
2541   DEFAULT_wxUSE_TOOLBAR=yes
2542   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2543   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2544   DEFAULT_wxUSE_TREEBOOK=yes
2545   DEFAULT_wxUSE_TOOLBOOK=yes
2546   DEFAULT_wxUSE_TREECTRL=yes
2547   DEFAULT_wxUSE_POPUPWIN=yes
2548   DEFAULT_wxUSE_TIPWINDOW=yes
2549
2550   DEFAULT_wxUSE_UNICODE=no
2551   DEFAULT_wxUSE_UNICODE_MSLU=yes
2552   DEFAULT_wxUSE_WCSRTOMBS=no
2553
2554   DEFAULT_wxUSE_PALETTE=yes
2555   DEFAULT_wxUSE_IMAGE=yes
2556   DEFAULT_wxUSE_GIF=yes
2557   DEFAULT_wxUSE_PCX=yes
2558   DEFAULT_wxUSE_IFF=no
2559   DEFAULT_wxUSE_PNM=yes
2560   DEFAULT_wxUSE_XPM=yes
2561   DEFAULT_wxUSE_ICO_CUR=yes
2562   DEFAULT_wxUSE_ACCESSIBILITY=no
2563
2564   DEFAULT_wxUSE_MONOLITHIC=no
2565   DEFAULT_wxUSE_PLUGINS=no
2566   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2567
2568     DEFAULT_wxUSE_GTK2=yes
2569 fi
2570
2571
2572
2573
2574 for toolkit in `echo $ALL_TOOLKITS`; do
2575   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2576   if test "x$LINE" != "x" ; then
2577     has_toolkit_in_cache=1
2578     eval "DEFAULT_$LINE"
2579     eval "CACHE_$toolkit=1"
2580
2581     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2582     if test "x$LINE" != "x" ; then
2583         eval "DEFAULT_$LINE"
2584     fi
2585   fi
2586 done
2587
2588
2589
2590           enablestring=
2591           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2592 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2593           no_cache=0
2594           # Check whether --enable-gui or --disable-gui was given.
2595 if test "${enable_gui+set}" = set; then
2596   enableval="$enable_gui"
2597
2598                           if test "$enableval" = yes; then
2599                             ac_cv_use_gui='wxUSE_GUI=yes'
2600                           else
2601                             ac_cv_use_gui='wxUSE_GUI=no'
2602                           fi
2603
2604 else
2605
2606                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2607                           if test "x$LINE" != x ; then
2608                             eval "DEFAULT_$LINE"
2609                           else
2610                             no_cache=1
2611                           fi
2612
2613                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2614
2615 fi;
2616
2617           eval "$ac_cv_use_gui"
2618           if test "$no_cache" != 1; then
2619             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2620           fi
2621
2622           if test "$wxUSE_GUI" = yes; then
2623             echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625           else
2626             echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6
2628           fi
2629
2630
2631           enablestring=
2632           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2633 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2634           no_cache=0
2635           # Check whether --enable-monolithic or --disable-monolithic was given.
2636 if test "${enable_monolithic+set}" = set; then
2637   enableval="$enable_monolithic"
2638
2639                           if test "$enableval" = yes; then
2640                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2641                           else
2642                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2643                           fi
2644
2645 else
2646
2647                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2648                           if test "x$LINE" != x ; then
2649                             eval "DEFAULT_$LINE"
2650                           else
2651                             no_cache=1
2652                           fi
2653
2654                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2655
2656 fi;
2657
2658           eval "$ac_cv_use_monolithic"
2659           if test "$no_cache" != 1; then
2660             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2661           fi
2662
2663           if test "$wxUSE_MONOLITHIC" = yes; then
2664             echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6
2666           else
2667             echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2669           fi
2670
2671
2672           enablestring=
2673           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2674 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2675           no_cache=0
2676           # Check whether --enable-plugins or --disable-plugins was given.
2677 if test "${enable_plugins+set}" = set; then
2678   enableval="$enable_plugins"
2679
2680                           if test "$enableval" = yes; then
2681                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2682                           else
2683                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2684                           fi
2685
2686 else
2687
2688                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2689                           if test "x$LINE" != x ; then
2690                             eval "DEFAULT_$LINE"
2691                           else
2692                             no_cache=1
2693                           fi
2694
2695                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2696
2697 fi;
2698
2699           eval "$ac_cv_use_plugins"
2700           if test "$no_cache" != 1; then
2701             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2702           fi
2703
2704           if test "$wxUSE_PLUGINS" = yes; then
2705             echo "$as_me:$LINENO: result: yes" >&5
2706 echo "${ECHO_T}yes" >&6
2707           else
2708             echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710           fi
2711
2712
2713           withstring=without
2714           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2715 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2716           no_cache=0
2717
2718 # Check whether --with-subdirs or --without-subdirs was given.
2719 if test "${with_subdirs+set}" = set; then
2720   withval="$with_subdirs"
2721
2722                         if test "$withval" = yes; then
2723                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2724                         else
2725                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2726                         fi
2727
2728 else
2729
2730                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2731                         if test "x$LINE" != x ; then
2732                           eval "DEFAULT_$LINE"
2733                         else
2734                           no_cache=1
2735                         fi
2736
2737                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2738
2739 fi;
2740
2741           eval "$ac_cv_use_subdirs"
2742           if test "$no_cache" != 1; then
2743             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2744           fi
2745
2746           if test "$wxWITH_SUBDIRS" = yes; then
2747             echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2749           else
2750             echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2752           fi
2753
2754
2755 if test "$wxUSE_GUI" = "yes"; then
2756
2757
2758           enablestring=
2759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2760 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2761           no_cache=0
2762           # Check whether --enable-universal or --disable-universal was given.
2763 if test "${enable_universal+set}" = set; then
2764   enableval="$enable_universal"
2765
2766                           if test "$enableval" = yes; then
2767                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2768                           else
2769                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2770                           fi
2771
2772 else
2773
2774                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2775                           if test "x$LINE" != x ; then
2776                             eval "DEFAULT_$LINE"
2777                           else
2778                             no_cache=1
2779                           fi
2780
2781                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2782
2783 fi;
2784
2785           eval "$ac_cv_use_universal"
2786           if test "$no_cache" != 1; then
2787             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2788           fi
2789
2790           if test "$wxUSE_UNIVERSAL" = yes; then
2791             echo "$as_me:$LINENO: result: yes" >&5
2792 echo "${ECHO_T}yes" >&6
2793           else
2794             echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2796           fi
2797
2798
2799 # Check whether --with-gtk or --without-gtk was given.
2800 if test "${with_gtk+set}" = set; then
2801   withval="$with_gtk"
2802   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2803 fi;
2804
2805 # Check whether --with-motif or --without-motif was given.
2806 if test "${with_motif+set}" = set; then
2807   withval="$with_motif"
2808   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2809 fi;
2810
2811 # Check whether --with-mac or --without-mac was given.
2812 if test "${with_mac+set}" = set; then
2813   withval="$with_mac"
2814   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2815 fi;
2816
2817 # Check whether --with-cocoa or --without-cocoa was given.
2818 if test "${with_cocoa+set}" = set; then
2819   withval="$with_cocoa"
2820   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2821 fi;
2822
2823 # Check whether --with-wine or --without-wine was given.
2824 if test "${with_wine+set}" = set; then
2825   withval="$with_wine"
2826   wxUSE_WINE="$withval" CACHE_WINE=1
2827 fi;
2828
2829 # Check whether --with-msw or --without-msw was given.
2830 if test "${with_msw+set}" = set; then
2831   withval="$with_msw"
2832   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2833 fi;
2834
2835 # Check whether --with-pm or --without-pm was given.
2836 if test "${with_pm+set}" = set; then
2837   withval="$with_pm"
2838   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2839 fi;
2840
2841 # Check whether --with-mgl or --without-mgl was given.
2842 if test "${with_mgl+set}" = set; then
2843   withval="$with_mgl"
2844   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2845 fi;
2846
2847 # Check whether --with-microwin or --without-microwin was given.
2848 if test "${with_microwin+set}" = set; then
2849   withval="$with_microwin"
2850   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2851 fi;
2852
2853 # Check whether --with-x11 or --without-x11 was given.
2854 if test "${with_x11+set}" = set; then
2855   withval="$with_x11"
2856   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2857 fi;
2858
2859           enablestring=
2860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2861 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2862           no_cache=0
2863           # Check whether --enable-nanox or --disable-nanox was given.
2864 if test "${enable_nanox+set}" = set; then
2865   enableval="$enable_nanox"
2866
2867                           if test "$enableval" = yes; then
2868                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2869                           else
2870                             ac_cv_use_nanox='wxUSE_NANOX=no'
2871                           fi
2872
2873 else
2874
2875                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2876                           if test "x$LINE" != x ; then
2877                             eval "DEFAULT_$LINE"
2878                           else
2879                             no_cache=1
2880                           fi
2881
2882                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2883
2884 fi;
2885
2886           eval "$ac_cv_use_nanox"
2887           if test "$no_cache" != 1; then
2888             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2889           fi
2890
2891           if test "$wxUSE_NANOX" = yes; then
2892             echo "$as_me:$LINENO: result: yes" >&5
2893 echo "${ECHO_T}yes" >&6
2894           else
2895             echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897           fi
2898
2899
2900 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2901 if test "${enable_gtk2+set}" = set; then
2902   enableval="$enable_gtk2"
2903   wxUSE_GTK2="$enableval"
2904 fi;
2905
2906           enablestring=
2907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2908 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2909           no_cache=0
2910           # Check whether --enable-gpe or --disable-gpe was given.
2911 if test "${enable_gpe+set}" = set; then
2912   enableval="$enable_gpe"
2913
2914                           if test "$enableval" = yes; then
2915                             ac_cv_use_gpe='wxUSE_GPE=yes'
2916                           else
2917                             ac_cv_use_gpe='wxUSE_GPE=no'
2918                           fi
2919
2920 else
2921
2922                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2923                           if test "x$LINE" != x ; then
2924                             eval "DEFAULT_$LINE"
2925                           else
2926                             no_cache=1
2927                           fi
2928
2929                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2930
2931 fi;
2932
2933           eval "$ac_cv_use_gpe"
2934           if test "$no_cache" != 1; then
2935             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2936           fi
2937
2938           if test "$wxUSE_GPE" = yes; then
2939             echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6
2941           else
2942             echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944           fi
2945
2946
2947
2948           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2949 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2950           no_cache=0
2951
2952 # Check whether --with-libpng or --without-libpng was given.
2953 if test "${with_libpng+set}" = set; then
2954   withval="$with_libpng"
2955
2956                         if test "$withval" = yes; then
2957                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2958                         elif test "$withval" = no; then
2959                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2960                         elif test "$withval" = sys; then
2961                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2962                         elif test "$withval" = builtin; then
2963                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2964                         else
2965                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2966 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2967    { (exit 1); exit 1; }; }
2968                         fi
2969
2970 else
2971
2972                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2973                         if test "x$LINE" != x ; then
2974                           eval "DEFAULT_$LINE"
2975                         else
2976                           no_cache=1
2977                         fi
2978
2979                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2980
2981 fi;
2982
2983           eval "$ac_cv_use_libpng"
2984           if test "$no_cache" != 1; then
2985             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2986           fi
2987
2988           if test "$wxUSE_LIBPNG" = yes; then
2989             echo "$as_me:$LINENO: result: yes" >&5
2990 echo "${ECHO_T}yes" >&6
2991           elif test "$wxUSE_LIBPNG" = no; then
2992             echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6
2994           elif test "$wxUSE_LIBPNG" = sys; then
2995             echo "$as_me:$LINENO: result: system version" >&5
2996 echo "${ECHO_T}system version" >&6
2997           elif test "$wxUSE_LIBPNG" = builtin; then
2998             echo "$as_me:$LINENO: result: builtin version" >&5
2999 echo "${ECHO_T}builtin version" >&6
3000           else
3001             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3002 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3003    { (exit 1); exit 1; }; }
3004           fi
3005
3006
3007           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3008 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3009           no_cache=0
3010
3011 # Check whether --with-libjpeg or --without-libjpeg was given.
3012 if test "${with_libjpeg+set}" = set; then
3013   withval="$with_libjpeg"
3014
3015                         if test "$withval" = yes; then
3016                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3017                         elif test "$withval" = no; then
3018                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3019                         elif test "$withval" = sys; then
3020                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3021                         elif test "$withval" = builtin; then
3022                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3023                         else
3024                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3025 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3026    { (exit 1); exit 1; }; }
3027                         fi
3028
3029 else
3030
3031                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3032                         if test "x$LINE" != x ; then
3033                           eval "DEFAULT_$LINE"
3034                         else
3035                           no_cache=1
3036                         fi
3037
3038                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3039
3040 fi;
3041
3042           eval "$ac_cv_use_libjpeg"
3043           if test "$no_cache" != 1; then
3044             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3045           fi
3046
3047           if test "$wxUSE_LIBJPEG" = yes; then
3048             echo "$as_me:$LINENO: result: yes" >&5
3049 echo "${ECHO_T}yes" >&6
3050           elif test "$wxUSE_LIBJPEG" = no; then
3051             echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3053           elif test "$wxUSE_LIBJPEG" = sys; then
3054             echo "$as_me:$LINENO: result: system version" >&5
3055 echo "${ECHO_T}system version" >&6
3056           elif test "$wxUSE_LIBJPEG" = builtin; then
3057             echo "$as_me:$LINENO: result: builtin version" >&5
3058 echo "${ECHO_T}builtin version" >&6
3059           else
3060             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3061 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3062    { (exit 1); exit 1; }; }
3063           fi
3064
3065
3066           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3067 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3068           no_cache=0
3069
3070 # Check whether --with-libtiff or --without-libtiff was given.
3071 if test "${with_libtiff+set}" = set; then
3072   withval="$with_libtiff"
3073
3074                         if test "$withval" = yes; then
3075                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3076                         elif test "$withval" = no; then
3077                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3078                         elif test "$withval" = sys; then
3079                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3080                         elif test "$withval" = builtin; then
3081                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3082                         else
3083                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3084 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3085    { (exit 1); exit 1; }; }
3086                         fi
3087
3088 else
3089
3090                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3091                         if test "x$LINE" != x ; then
3092                           eval "DEFAULT_$LINE"
3093                         else
3094                           no_cache=1
3095                         fi
3096
3097                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3098
3099 fi;
3100
3101           eval "$ac_cv_use_libtiff"
3102           if test "$no_cache" != 1; then
3103             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3104           fi
3105
3106           if test "$wxUSE_LIBTIFF" = yes; then
3107             echo "$as_me:$LINENO: result: yes" >&5
3108 echo "${ECHO_T}yes" >&6
3109           elif test "$wxUSE_LIBTIFF" = no; then
3110             echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3112           elif test "$wxUSE_LIBTIFF" = sys; then
3113             echo "$as_me:$LINENO: result: system version" >&5
3114 echo "${ECHO_T}system version" >&6
3115           elif test "$wxUSE_LIBTIFF" = builtin; then
3116             echo "$as_me:$LINENO: result: builtin version" >&5
3117 echo "${ECHO_T}builtin version" >&6
3118           else
3119             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3120 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3121    { (exit 1); exit 1; }; }
3122           fi
3123
3124
3125           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3126 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3127           no_cache=0
3128
3129 # Check whether --with-libxpm or --without-libxpm was given.
3130 if test "${with_libxpm+set}" = set; then
3131   withval="$with_libxpm"
3132
3133                         if test "$withval" = yes; then
3134                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3135                         elif test "$withval" = no; then
3136                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3137                         elif test "$withval" = sys; then
3138                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3139                         elif test "$withval" = builtin; then
3140                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3141                         else
3142                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3143 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3144    { (exit 1); exit 1; }; }
3145                         fi
3146
3147 else
3148
3149                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3150                         if test "x$LINE" != x ; then
3151                           eval "DEFAULT_$LINE"
3152                         else
3153                           no_cache=1
3154                         fi
3155
3156                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3157
3158 fi;
3159
3160           eval "$ac_cv_use_libxpm"
3161           if test "$no_cache" != 1; then
3162             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3163           fi
3164
3165           if test "$wxUSE_LIBXPM" = yes; then
3166             echo "$as_me:$LINENO: result: yes" >&5
3167 echo "${ECHO_T}yes" >&6
3168           elif test "$wxUSE_LIBXPM" = no; then
3169             echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3171           elif test "$wxUSE_LIBXPM" = sys; then
3172             echo "$as_me:$LINENO: result: system version" >&5
3173 echo "${ECHO_T}system version" >&6
3174           elif test "$wxUSE_LIBXPM" = builtin; then
3175             echo "$as_me:$LINENO: result: builtin version" >&5
3176 echo "${ECHO_T}builtin version" >&6
3177           else
3178             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3179 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3180    { (exit 1); exit 1; }; }
3181           fi
3182
3183
3184           withstring=
3185           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3186 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3187           no_cache=0
3188
3189 # Check whether --with-libmspack or --without-libmspack was given.
3190 if test "${with_libmspack+set}" = set; then
3191   withval="$with_libmspack"
3192
3193                         if test "$withval" = yes; then
3194                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3195                         else
3196                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3197                         fi
3198
3199 else
3200
3201                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3202                         if test "x$LINE" != x ; then
3203                           eval "DEFAULT_$LINE"
3204                         else
3205                           no_cache=1
3206                         fi
3207
3208                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3209
3210 fi;
3211
3212           eval "$ac_cv_use_libmspack"
3213           if test "$no_cache" != 1; then
3214             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3215           fi
3216
3217           if test "$wxUSE_LIBMSPACK" = yes; then
3218             echo "$as_me:$LINENO: result: yes" >&5
3219 echo "${ECHO_T}yes" >&6
3220           else
3221             echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223           fi
3224
3225
3226           withstring=
3227           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3228 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3229           no_cache=0
3230
3231 # Check whether --with-sdl or --without-sdl was given.
3232 if test "${with_sdl+set}" = set; then
3233   withval="$with_sdl"
3234
3235                         if test "$withval" = yes; then
3236                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3237                         else
3238                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3239                         fi
3240
3241 else
3242
3243                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3244                         if test "x$LINE" != x ; then
3245                           eval "DEFAULT_$LINE"
3246                         else
3247                           no_cache=1
3248                         fi
3249
3250                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3251
3252 fi;
3253
3254           eval "$ac_cv_use_sdl"
3255           if test "$no_cache" != 1; then
3256             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3257           fi
3258
3259           if test "$wxUSE_LIBSDL" = yes; then
3260             echo "$as_me:$LINENO: result: yes" >&5
3261 echo "${ECHO_T}yes" >&6
3262           else
3263             echo "$as_me:$LINENO: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3265           fi
3266
3267
3268           withstring=
3269           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3270 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3271           no_cache=0
3272
3273 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3274 if test "${with_gnomeprint+set}" = set; then
3275   withval="$with_gnomeprint"
3276
3277                         if test "$withval" = yes; then
3278                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3279                         else
3280                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3281                         fi
3282
3283 else
3284
3285                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3286                         if test "x$LINE" != x ; then
3287                           eval "DEFAULT_$LINE"
3288                         else
3289                           no_cache=1
3290                         fi
3291
3292                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3293
3294 fi;
3295
3296           eval "$ac_cv_use_gnomeprint"
3297           if test "$no_cache" != 1; then
3298             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3299           fi
3300
3301           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3302             echo "$as_me:$LINENO: result: yes" >&5
3303 echo "${ECHO_T}yes" >&6
3304           else
3305             echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307           fi
3308
3309
3310           withstring=
3311           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3312 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3313           no_cache=0
3314
3315 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3316 if test "${with_gnomevfs+set}" = set; then
3317   withval="$with_gnomevfs"
3318
3319                         if test "$withval" = yes; then
3320                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3321                         else
3322                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3323                         fi
3324
3325 else
3326
3327                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3328                         if test "x$LINE" != x ; then
3329                           eval "DEFAULT_$LINE"
3330                         else
3331                           no_cache=1
3332                         fi
3333
3334                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3335
3336 fi;
3337
3338           eval "$ac_cv_use_gnomevfs"
3339           if test "$no_cache" != 1; then
3340             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3341           fi
3342
3343           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3344             echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6
3346           else
3347             echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3349           fi
3350
3351
3352           withstring=
3353           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3354 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3355           no_cache=0
3356
3357 # Check whether --with-hildon or --without-hildon was given.
3358 if test "${with_hildon+set}" = set; then
3359   withval="$with_hildon"
3360
3361                         if test "$withval" = yes; then
3362                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3363                         else
3364                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3365                         fi
3366
3367 else
3368
3369                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3370                         if test "x$LINE" != x ; then
3371                           eval "DEFAULT_$LINE"
3372                         else
3373                           no_cache=1
3374                         fi
3375
3376                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3377
3378 fi;
3379
3380           eval "$ac_cv_use_hildon"
3381           if test "$no_cache" != 1; then
3382             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3383           fi
3384
3385           if test "$wxUSE_LIBHILDON" = yes; then
3386             echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388           else
3389             echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391           fi
3392
3393
3394           withstring=
3395           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3396 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3397           no_cache=0
3398
3399 # Check whether --with-opengl or --without-opengl was given.
3400 if test "${with_opengl+set}" = set; then
3401   withval="$with_opengl"
3402
3403                         if test "$withval" = yes; then
3404                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3405                         else
3406                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3407                         fi
3408
3409 else
3410
3411                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3412                         if test "x$LINE" != x ; then
3413                           eval "DEFAULT_$LINE"
3414                         else
3415                           no_cache=1
3416                         fi
3417
3418                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3419
3420 fi;
3421
3422           eval "$ac_cv_use_opengl"
3423           if test "$no_cache" != 1; then
3424             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3425           fi
3426
3427           if test "$wxUSE_OPENGL" = yes; then
3428             echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3430           else
3431             echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3433           fi
3434
3435
3436 fi
3437
3438
3439           withstring=
3440           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3441 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3442           no_cache=0
3443
3444 # Check whether --with-dmalloc or --without-dmalloc was given.
3445 if test "${with_dmalloc+set}" = set; then
3446   withval="$with_dmalloc"
3447
3448                         if test "$withval" = yes; then
3449                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3450                         else
3451                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3452                         fi
3453
3454 else
3455
3456                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3457                         if test "x$LINE" != x ; then
3458                           eval "DEFAULT_$LINE"
3459                         else
3460                           no_cache=1
3461                         fi
3462
3463                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3464
3465 fi;
3466
3467           eval "$ac_cv_use_dmalloc"
3468           if test "$no_cache" != 1; then
3469             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3470           fi
3471
3472           if test "$wxUSE_DMALLOC" = yes; then
3473             echo "$as_me:$LINENO: result: yes" >&5
3474 echo "${ECHO_T}yes" >&6
3475           else
3476             echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478           fi
3479
3480
3481           echo "$as_me:$LINENO: checking for --with-regex" >&5
3482 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3483           no_cache=0
3484
3485 # Check whether --with-regex or --without-regex was given.
3486 if test "${with_regex+set}" = set; then
3487   withval="$with_regex"
3488
3489                         if test "$withval" = yes; then
3490                           ac_cv_use_regex='wxUSE_REGEX=yes'
3491                         elif test "$withval" = no; then
3492                           ac_cv_use_regex='wxUSE_REGEX=no'
3493                         elif test "$withval" = sys; then
3494                           ac_cv_use_regex='wxUSE_REGEX=sys'
3495                         elif test "$withval" = builtin; then
3496                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3497                         else
3498                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3499 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3500    { (exit 1); exit 1; }; }
3501                         fi
3502
3503 else
3504
3505                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3506                         if test "x$LINE" != x ; then
3507                           eval "DEFAULT_$LINE"
3508                         else
3509                           no_cache=1
3510                         fi
3511
3512                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3513
3514 fi;
3515
3516           eval "$ac_cv_use_regex"
3517           if test "$no_cache" != 1; then
3518             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3519           fi
3520
3521           if test "$wxUSE_REGEX" = yes; then
3522             echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3524           elif test "$wxUSE_REGEX" = no; then
3525             echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527           elif test "$wxUSE_REGEX" = sys; then
3528             echo "$as_me:$LINENO: result: system version" >&5
3529 echo "${ECHO_T}system version" >&6
3530           elif test "$wxUSE_REGEX" = builtin; then
3531             echo "$as_me:$LINENO: result: builtin version" >&5
3532 echo "${ECHO_T}builtin version" >&6
3533           else
3534             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3535 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3536    { (exit 1); exit 1; }; }
3537           fi
3538
3539
3540           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3541 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3542           no_cache=0
3543
3544 # Check whether --with-zlib or --without-zlib was given.
3545 if test "${with_zlib+set}" = set; then
3546   withval="$with_zlib"
3547
3548                         if test "$withval" = yes; then
3549                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3550                         elif test "$withval" = no; then
3551                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3552                         elif test "$withval" = sys; then
3553                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3554                         elif test "$withval" = builtin; then
3555                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3556                         else
3557                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3558 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3559    { (exit 1); exit 1; }; }
3560                         fi
3561
3562 else
3563
3564                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3565                         if test "x$LINE" != x ; then
3566                           eval "DEFAULT_$LINE"
3567                         else
3568                           no_cache=1
3569                         fi
3570
3571                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3572
3573 fi;
3574
3575           eval "$ac_cv_use_zlib"
3576           if test "$no_cache" != 1; then
3577             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3578           fi
3579
3580           if test "$wxUSE_ZLIB" = yes; then
3581             echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6
3583           elif test "$wxUSE_ZLIB" = no; then
3584             echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586           elif test "$wxUSE_ZLIB" = sys; then
3587             echo "$as_me:$LINENO: result: system version" >&5
3588 echo "${ECHO_T}system version" >&6
3589           elif test "$wxUSE_ZLIB" = builtin; then
3590             echo "$as_me:$LINENO: result: builtin version" >&5
3591 echo "${ECHO_T}builtin version" >&6
3592           else
3593             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3594 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3595    { (exit 1); exit 1; }; }
3596           fi
3597
3598
3599           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3600 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3601           no_cache=0
3602
3603 # Check whether --with-odbc or --without-odbc was given.
3604 if test "${with_odbc+set}" = set; then
3605   withval="$with_odbc"
3606
3607                         if test "$withval" = yes; then
3608                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3609                         elif test "$withval" = no; then
3610                           ac_cv_use_odbc='wxUSE_ODBC=no'
3611                         elif test "$withval" = sys; then
3612                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3613                         elif test "$withval" = builtin; then
3614                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3615                         else
3616                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3617 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3618    { (exit 1); exit 1; }; }
3619                         fi
3620
3621 else
3622
3623                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3624                         if test "x$LINE" != x ; then
3625                           eval "DEFAULT_$LINE"
3626                         else
3627                           no_cache=1
3628                         fi
3629
3630                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3631
3632 fi;
3633
3634           eval "$ac_cv_use_odbc"
3635           if test "$no_cache" != 1; then
3636             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3637           fi
3638
3639           if test "$wxUSE_ODBC" = yes; then
3640             echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6
3642           elif test "$wxUSE_ODBC" = no; then
3643             echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3645           elif test "$wxUSE_ODBC" = sys; then
3646             echo "$as_me:$LINENO: result: system version" >&5
3647 echo "${ECHO_T}system version" >&6
3648           elif test "$wxUSE_ODBC" = builtin; then
3649             echo "$as_me:$LINENO: result: builtin version" >&5
3650 echo "${ECHO_T}builtin version" >&6
3651           else
3652             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3653 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3654    { (exit 1); exit 1; }; }
3655           fi
3656
3657
3658           echo "$as_me:$LINENO: checking for --with-expat" >&5
3659 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3660           no_cache=0
3661
3662 # Check whether --with-expat or --without-expat was given.
3663 if test "${with_expat+set}" = set; then
3664   withval="$with_expat"
3665
3666                         if test "$withval" = yes; then
3667                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3668                         elif test "$withval" = no; then
3669                           ac_cv_use_expat='wxUSE_EXPAT=no'
3670                         elif test "$withval" = sys; then
3671                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3672                         elif test "$withval" = builtin; then
3673                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3674                         else
3675                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3676 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3677    { (exit 1); exit 1; }; }
3678                         fi
3679
3680 else
3681
3682                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3683                         if test "x$LINE" != x ; then
3684                           eval "DEFAULT_$LINE"
3685                         else
3686                           no_cache=1
3687                         fi
3688
3689                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3690
3691 fi;
3692
3693           eval "$ac_cv_use_expat"
3694           if test "$no_cache" != 1; then
3695             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3696           fi
3697
3698           if test "$wxUSE_EXPAT" = yes; then
3699             echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6
3701           elif test "$wxUSE_EXPAT" = no; then
3702             echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704           elif test "$wxUSE_EXPAT" = sys; then
3705             echo "$as_me:$LINENO: result: system version" >&5
3706 echo "${ECHO_T}system version" >&6
3707           elif test "$wxUSE_EXPAT" = builtin; then
3708             echo "$as_me:$LINENO: result: builtin version" >&5
3709 echo "${ECHO_T}builtin version" >&6
3710           else
3711             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3712 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3713    { (exit 1); exit 1; }; }
3714           fi
3715
3716
3717
3718
3719           enablestring=
3720           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3721 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3722           no_cache=0
3723           # Check whether --enable-shared or --disable-shared was given.
3724 if test "${enable_shared+set}" = set; then
3725   enableval="$enable_shared"
3726
3727                           if test "$enableval" = yes; then
3728                             ac_cv_use_shared='wxUSE_SHARED=yes'
3729                           else
3730                             ac_cv_use_shared='wxUSE_SHARED=no'
3731                           fi
3732
3733 else
3734
3735                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3736                           if test "x$LINE" != x ; then
3737                             eval "DEFAULT_$LINE"
3738                           else
3739                             no_cache=1
3740                           fi
3741
3742                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3743
3744 fi;
3745
3746           eval "$ac_cv_use_shared"
3747           if test "$no_cache" != 1; then
3748             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3749           fi
3750
3751           if test "$wxUSE_SHARED" = yes; then
3752             echo "$as_me:$LINENO: result: yes" >&5
3753 echo "${ECHO_T}yes" >&6
3754           else
3755             echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757           fi
3758
3759
3760           enablestring=
3761           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3762 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3763           no_cache=0
3764           # Check whether --enable-optimise or --disable-optimise was given.
3765 if test "${enable_optimise+set}" = set; then
3766   enableval="$enable_optimise"
3767
3768                           if test "$enableval" = yes; then
3769                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3770                           else
3771                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3772                           fi
3773
3774 else
3775
3776                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3777                           if test "x$LINE" != x ; then
3778                             eval "DEFAULT_$LINE"
3779                           else
3780                             no_cache=1
3781                           fi
3782
3783                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3784
3785 fi;
3786
3787           eval "$ac_cv_use_optimise"
3788           if test "$no_cache" != 1; then
3789             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3790           fi
3791
3792           if test "$wxUSE_OPTIMISE" = yes; then
3793             echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6
3795           else
3796             echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3798           fi
3799
3800
3801           enablestring=
3802           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3803 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3804           no_cache=0
3805           # Check whether --enable-debug or --disable-debug was given.
3806 if test "${enable_debug+set}" = set; then
3807   enableval="$enable_debug"
3808
3809                           if test "$enableval" = yes; then
3810                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3811                           else
3812                             ac_cv_use_debug='wxUSE_DEBUG=no'
3813                           fi
3814
3815 else
3816
3817                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3818                           if test "x$LINE" != x ; then
3819                             eval "DEFAULT_$LINE"
3820                           else
3821                             no_cache=1
3822                           fi
3823
3824                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3825
3826 fi;
3827
3828           eval "$ac_cv_use_debug"
3829           if test "$no_cache" != 1; then
3830             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3831           fi
3832
3833           if test "$wxUSE_DEBUG" = yes; then
3834             echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6
3836           else
3837             echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839           fi
3840
3841
3842           enablestring=
3843           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3844 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3845           no_cache=0
3846           # Check whether --enable-stl or --disable-stl was given.
3847 if test "${enable_stl+set}" = set; then
3848   enableval="$enable_stl"
3849
3850                           if test "$enableval" = yes; then
3851                             ac_cv_use_stl='wxUSE_STL=yes'
3852                           else
3853                             ac_cv_use_stl='wxUSE_STL=no'
3854                           fi
3855
3856 else
3857
3858                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3859                           if test "x$LINE" != x ; then
3860                             eval "DEFAULT_$LINE"
3861                           else
3862                             no_cache=1
3863                           fi
3864
3865                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3866
3867 fi;
3868
3869           eval "$ac_cv_use_stl"
3870           if test "$no_cache" != 1; then
3871             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3872           fi
3873
3874           if test "$wxUSE_STL" = yes; then
3875             echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6
3877           else
3878             echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880           fi
3881
3882 if test "$USE_OS2" = "1"; then
3883     DEFAULT_wxUSE_OMF=no
3884
3885           enablestring=
3886           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3887 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3888           no_cache=0
3889           # Check whether --enable-omf or --disable-omf was given.
3890 if test "${enable_omf+set}" = set; then
3891   enableval="$enable_omf"
3892
3893                           if test "$enableval" = yes; then
3894                             ac_cv_use_omf='wxUSE_OMF=yes'
3895                           else
3896                             ac_cv_use_omf='wxUSE_OMF=no'
3897                           fi
3898
3899 else
3900
3901                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3902                           if test "x$LINE" != x ; then
3903                             eval "DEFAULT_$LINE"
3904                           else
3905                             no_cache=1
3906                           fi
3907
3908                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3909
3910 fi;
3911
3912           eval "$ac_cv_use_omf"
3913           if test "$no_cache" != 1; then
3914             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3915           fi
3916
3917           if test "$wxUSE_OMF" = yes; then
3918             echo "$as_me:$LINENO: result: yes" >&5
3919 echo "${ECHO_T}yes" >&6
3920           else
3921             echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923           fi
3924
3925 fi
3926
3927 if test "$wxUSE_DEBUG" = "yes"; then
3928   DEFAULT_wxUSE_DEBUG_FLAG=yes
3929   DEFAULT_wxUSE_DEBUG_INFO=yes
3930   BUILD=debug
3931 elif test "$wxUSE_DEBUG" = "no"; then
3932   DEFAULT_wxUSE_DEBUG_FLAG=no
3933   DEFAULT_wxUSE_DEBUG_INFO=no
3934   BUILD=release
3935 fi
3936
3937
3938           enablestring=
3939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3940 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3941           no_cache=0
3942           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3943 if test "${enable_debug_flag+set}" = set; then
3944   enableval="$enable_debug_flag"
3945
3946                           if test "$enableval" = yes; then
3947                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3948                           else
3949                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3950                           fi
3951
3952 else
3953
3954                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3955                           if test "x$LINE" != x ; then
3956                             eval "DEFAULT_$LINE"
3957                           else
3958                             no_cache=1
3959                           fi
3960
3961                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3962
3963 fi;
3964
3965           eval "$ac_cv_use_debug_flag"
3966           if test "$no_cache" != 1; then
3967             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3968           fi
3969
3970           if test "$wxUSE_DEBUG_FLAG" = yes; then
3971             echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973           else
3974             echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976           fi
3977
3978
3979           enablestring=
3980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3981 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3982           no_cache=0
3983           # Check whether --enable-debug_info or --disable-debug_info was given.
3984 if test "${enable_debug_info+set}" = set; then
3985   enableval="$enable_debug_info"
3986
3987                           if test "$enableval" = yes; then
3988                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3989                           else
3990                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3991                           fi
3992
3993 else
3994
3995                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3996                           if test "x$LINE" != x ; then
3997                             eval "DEFAULT_$LINE"
3998                           else
3999                             no_cache=1
4000                           fi
4001
4002                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4003
4004 fi;
4005
4006           eval "$ac_cv_use_debug_info"
4007           if test "$no_cache" != 1; then
4008             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4009           fi
4010
4011           if test "$wxUSE_DEBUG_INFO" = yes; then
4012             echo "$as_me:$LINENO: result: yes" >&5
4013 echo "${ECHO_T}yes" >&6
4014           else
4015             echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4017           fi
4018
4019
4020           enablestring=
4021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4022 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4023           no_cache=0
4024           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4025 if test "${enable_debug_gdb+set}" = set; then
4026   enableval="$enable_debug_gdb"
4027
4028                           if test "$enableval" = yes; then
4029                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4030                           else
4031                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4032                           fi
4033
4034 else
4035
4036                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4037                           if test "x$LINE" != x ; then
4038                             eval "DEFAULT_$LINE"
4039                           else
4040                             no_cache=1
4041                           fi
4042
4043                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4044
4045 fi;
4046
4047           eval "$ac_cv_use_debug_gdb"
4048           if test "$no_cache" != 1; then
4049             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4050           fi
4051
4052           if test "$wxUSE_DEBUG_GDB" = yes; then
4053             echo "$as_me:$LINENO: result: yes" >&5
4054 echo "${ECHO_T}yes" >&6
4055           else
4056             echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058           fi
4059
4060
4061           enablestring=
4062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4063 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4064           no_cache=0
4065           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4066 if test "${enable_debug_cntxt+set}" = set; then
4067   enableval="$enable_debug_cntxt"
4068
4069                           if test "$enableval" = yes; then
4070                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4071                           else
4072                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4073                           fi
4074
4075 else
4076
4077                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4078                           if test "x$LINE" != x ; then
4079                             eval "DEFAULT_$LINE"
4080                           else
4081                             no_cache=1
4082                           fi
4083
4084                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4085
4086 fi;
4087
4088           eval "$ac_cv_use_debug_cntxt"
4089           if test "$no_cache" != 1; then
4090             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4091           fi
4092
4093           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4094             echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096           else
4097             echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099           fi
4100
4101
4102           enablestring=
4103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4104 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4105           no_cache=0
4106           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4107 if test "${enable_mem_tracing+set}" = set; then
4108   enableval="$enable_mem_tracing"
4109
4110                           if test "$enableval" = yes; then
4111                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4112                           else
4113                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4114                           fi
4115
4116 else
4117
4118                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4119                           if test "x$LINE" != x ; then
4120                             eval "DEFAULT_$LINE"
4121                           else
4122                             no_cache=1
4123                           fi
4124
4125                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4126
4127 fi;
4128
4129           eval "$ac_cv_use_mem_tracing"
4130           if test "$no_cache" != 1; then
4131             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4132           fi
4133
4134           if test "$wxUSE_MEM_TRACING" = yes; then
4135             echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6
4137           else
4138             echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4140           fi
4141
4142
4143           enablestring=
4144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4145 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4146           no_cache=0
4147           # Check whether --enable-profile or --disable-profile was given.
4148 if test "${enable_profile+set}" = set; then
4149   enableval="$enable_profile"
4150
4151                           if test "$enableval" = yes; then
4152                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4153                           else
4154                             ac_cv_use_profile='wxUSE_PROFILE=no'
4155                           fi
4156
4157 else
4158
4159                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4160                           if test "x$LINE" != x ; then
4161                             eval "DEFAULT_$LINE"
4162                           else
4163                             no_cache=1
4164                           fi
4165
4166                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4167
4168 fi;
4169
4170           eval "$ac_cv_use_profile"
4171           if test "$no_cache" != 1; then
4172             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4173           fi
4174
4175           if test "$wxUSE_PROFILE" = yes; then
4176             echo "$as_me:$LINENO: result: yes" >&5
4177 echo "${ECHO_T}yes" >&6
4178           else
4179             echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181           fi
4182
4183
4184           enablestring=
4185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4186 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4187           no_cache=0
4188           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4189 if test "${enable_no_rtti+set}" = set; then
4190   enableval="$enable_no_rtti"
4191
4192                           if test "$enableval" = yes; then
4193                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4194                           else
4195                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4196                           fi
4197
4198 else
4199
4200                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4201                           if test "x$LINE" != x ; then
4202                             eval "DEFAULT_$LINE"
4203                           else
4204                             no_cache=1
4205                           fi
4206
4207                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4208
4209 fi;
4210
4211           eval "$ac_cv_use_no_rtti"
4212           if test "$no_cache" != 1; then
4213             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4214           fi
4215
4216           if test "$wxUSE_NO_RTTI" = yes; then
4217             echo "$as_me:$LINENO: result: yes" >&5
4218 echo "${ECHO_T}yes" >&6
4219           else
4220             echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222           fi
4223
4224
4225           enablestring=
4226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4227 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4228           no_cache=0
4229           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4230 if test "${enable_no_exceptions+set}" = set; then
4231   enableval="$enable_no_exceptions"
4232
4233                           if test "$enableval" = yes; then
4234                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4235                           else
4236                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4237                           fi
4238
4239 else
4240
4241                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4242                           if test "x$LINE" != x ; then
4243                             eval "DEFAULT_$LINE"
4244                           else
4245                             no_cache=1
4246                           fi
4247
4248                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4249
4250 fi;
4251
4252           eval "$ac_cv_use_no_exceptions"
4253           if test "$no_cache" != 1; then
4254             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4255           fi
4256
4257           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4258             echo "$as_me:$LINENO: result: yes" >&5
4259 echo "${ECHO_T}yes" >&6
4260           else
4261             echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263           fi
4264
4265
4266           enablestring=
4267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4268 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4269           no_cache=0
4270           # Check whether --enable-permissive or --disable-permissive was given.
4271 if test "${enable_permissive+set}" = set; then
4272   enableval="$enable_permissive"
4273
4274                           if test "$enableval" = yes; then
4275                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4276                           else
4277                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4278                           fi
4279
4280 else
4281
4282                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4283                           if test "x$LINE" != x ; then
4284                             eval "DEFAULT_$LINE"
4285                           else
4286                             no_cache=1
4287                           fi
4288
4289                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4290
4291 fi;
4292
4293           eval "$ac_cv_use_permissive"
4294           if test "$no_cache" != 1; then
4295             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4296           fi
4297
4298           if test "$wxUSE_PERMISSIVE" = yes; then
4299             echo "$as_me:$LINENO: result: yes" >&5
4300 echo "${ECHO_T}yes" >&6
4301           else
4302             echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304           fi
4305
4306
4307           enablestring=
4308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4309 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4310           no_cache=0
4311           # Check whether --enable-no_deps or --disable-no_deps was given.
4312 if test "${enable_no_deps+set}" = set; then
4313   enableval="$enable_no_deps"
4314
4315                           if test "$enableval" = yes; then
4316                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4317                           else
4318                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4319                           fi
4320
4321 else
4322
4323                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4324                           if test "x$LINE" != x ; then
4325                             eval "DEFAULT_$LINE"
4326                           else
4327                             no_cache=1
4328                           fi
4329
4330                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4331
4332 fi;
4333
4334           eval "$ac_cv_use_no_deps"
4335           if test "$no_cache" != 1; then
4336             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4337           fi
4338
4339           if test "$wxUSE_NO_DEPS" = yes; then
4340             echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4342           else
4343             echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345           fi
4346
4347
4348           enablestring=
4349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4350 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4351           no_cache=0
4352           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4353 if test "${enable_universal_binary+set}" = set; then
4354   enableval="$enable_universal_binary"
4355
4356                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4357
4358 else
4359
4360                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4361                           if test "x$LINE" != x ; then
4362                             eval "DEFAULT_$LINE"
4363                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4364                           else
4365                             no_cache=1
4366                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4367                           fi
4368
4369 fi;
4370
4371           eval "$wx_cv_use_universal_binary"
4372           if test "$no_cache" != 1; then
4373             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4374           fi
4375
4376           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4377 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4378
4379
4380
4381           enablestring=enable
4382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4383 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4384           no_cache=0
4385           # Check whether --enable-compat24 or --disable-compat24 was given.
4386 if test "${enable_compat24+set}" = set; then
4387   enableval="$enable_compat24"
4388
4389                           if test "$enableval" = yes; then
4390                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4391                           else
4392                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4393                           fi
4394
4395 else
4396
4397                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4398                           if test "x$LINE" != x ; then
4399                             eval "DEFAULT_$LINE"
4400                           else
4401                             no_cache=1
4402                           fi
4403
4404                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4405
4406 fi;
4407
4408           eval "$ac_cv_use_compat24"
4409           if test "$no_cache" != 1; then
4410             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4411           fi
4412
4413           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4414             echo "$as_me:$LINENO: result: yes" >&5
4415 echo "${ECHO_T}yes" >&6
4416           else
4417             echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4419           fi
4420
4421
4422           enablestring=disable
4423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4424 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4425           no_cache=0
4426           # Check whether --enable-compat26 or --disable-compat26 was given.
4427 if test "${enable_compat26+set}" = set; then
4428   enableval="$enable_compat26"
4429
4430                           if test "$enableval" = yes; then
4431                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4432                           else
4433                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4434                           fi
4435
4436 else
4437
4438                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4439                           if test "x$LINE" != x ; then
4440                             eval "DEFAULT_$LINE"
4441                           else
4442                             no_cache=1
4443                           fi
4444
4445                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4446
4447 fi;
4448
4449           eval "$ac_cv_use_compat26"
4450           if test "$no_cache" != 1; then
4451             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4452           fi
4453
4454           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4455             echo "$as_me:$LINENO: result: yes" >&5
4456 echo "${ECHO_T}yes" >&6
4457           else
4458             echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460           fi
4461
4462
4463
4464           enablestring=
4465           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4466 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4467           no_cache=0
4468           # Check whether --enable-rpath or --disable-rpath was given.
4469 if test "${enable_rpath+set}" = set; then
4470   enableval="$enable_rpath"
4471
4472                           if test "$enableval" = yes; then
4473                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4474                           else
4475                             ac_cv_use_rpath='wxUSE_RPATH=no'
4476                           fi
4477
4478 else
4479
4480                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4481                           if test "x$LINE" != x ; then
4482                             eval "DEFAULT_$LINE"
4483                           else
4484                             no_cache=1
4485                           fi
4486
4487                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4488
4489 fi;
4490
4491           eval "$ac_cv_use_rpath"
4492           if test "$no_cache" != 1; then
4493             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4494           fi
4495
4496           if test "$wxUSE_RPATH" = yes; then
4497             echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6
4499           else
4500             echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4502           fi
4503
4504
4505
4506
4507
4508           enablestring=
4509           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4510 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4511           no_cache=0
4512           # Check whether --enable-intl or --disable-intl was given.
4513 if test "${enable_intl+set}" = set; then
4514   enableval="$enable_intl"
4515
4516                           if test "$enableval" = yes; then
4517                             ac_cv_use_intl='wxUSE_INTL=yes'
4518                           else
4519                             ac_cv_use_intl='wxUSE_INTL=no'
4520                           fi
4521
4522 else
4523
4524                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4525                           if test "x$LINE" != x ; then
4526                             eval "DEFAULT_$LINE"
4527                           else
4528                             no_cache=1
4529                           fi
4530
4531                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4532
4533 fi;
4534
4535           eval "$ac_cv_use_intl"
4536           if test "$no_cache" != 1; then
4537             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4538           fi
4539
4540           if test "$wxUSE_INTL" = yes; then
4541             echo "$as_me:$LINENO: result: yes" >&5
4542 echo "${ECHO_T}yes" >&6
4543           else
4544             echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546           fi
4547
4548
4549           enablestring=
4550           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4551 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4552           no_cache=0
4553           # Check whether --enable-config or --disable-config was given.
4554 if test "${enable_config+set}" = set; then
4555   enableval="$enable_config"
4556
4557                           if test "$enableval" = yes; then
4558                             ac_cv_use_config='wxUSE_CONFIG=yes'
4559                           else
4560                             ac_cv_use_config='wxUSE_CONFIG=no'
4561                           fi
4562
4563 else
4564
4565                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4566                           if test "x$LINE" != x ; then
4567                             eval "DEFAULT_$LINE"
4568                           else
4569                             no_cache=1
4570                           fi
4571
4572                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4573
4574 fi;
4575
4576           eval "$ac_cv_use_config"
4577           if test "$no_cache" != 1; then
4578             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4579           fi
4580
4581           if test "$wxUSE_CONFIG" = yes; then
4582             echo "$as_me:$LINENO: result: yes" >&5
4583 echo "${ECHO_T}yes" >&6
4584           else
4585             echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587           fi
4588
4589
4590
4591           enablestring=
4592           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4593 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4594           no_cache=0
4595           # Check whether --enable-protocols or --disable-protocols was given.
4596 if test "${enable_protocols+set}" = set; then
4597   enableval="$enable_protocols"
4598
4599                           if test "$enableval" = yes; then
4600                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4601                           else
4602                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4603                           fi
4604
4605 else
4606
4607                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4608                           if test "x$LINE" != x ; then
4609                             eval "DEFAULT_$LINE"
4610                           else
4611                             no_cache=1
4612                           fi
4613
4614                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4615
4616 fi;
4617
4618           eval "$ac_cv_use_protocols"
4619           if test "$no_cache" != 1; then
4620             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4621           fi
4622
4623           if test "$wxUSE_PROTOCOL" = yes; then
4624             echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4626           else
4627             echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6
4629           fi
4630
4631
4632           enablestring=
4633           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4634 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4635           no_cache=0
4636           # Check whether --enable-ftp or --disable-ftp was given.
4637 if test "${enable_ftp+set}" = set; then
4638   enableval="$enable_ftp"
4639
4640                           if test "$enableval" = yes; then
4641                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4642                           else
4643                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4644                           fi
4645
4646 else
4647
4648                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4649                           if test "x$LINE" != x ; then
4650                             eval "DEFAULT_$LINE"
4651                           else
4652                             no_cache=1
4653                           fi
4654
4655                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4656
4657 fi;
4658
4659           eval "$ac_cv_use_ftp"
4660           if test "$no_cache" != 1; then
4661             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4662           fi
4663
4664           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4665             echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6
4667           else
4668             echo "$as_me:$LINENO: result: no" >&5
4669 echo "${ECHO_T}no" >&6
4670           fi
4671
4672
4673           enablestring=
4674           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4675 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4676           no_cache=0
4677           # Check whether --enable-http or --disable-http was given.
4678 if test "${enable_http+set}" = set; then
4679   enableval="$enable_http"
4680
4681                           if test "$enableval" = yes; then
4682                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4683                           else
4684                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4685                           fi
4686
4687 else
4688
4689                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4690                           if test "x$LINE" != x ; then
4691                             eval "DEFAULT_$LINE"
4692                           else
4693                             no_cache=1
4694                           fi
4695
4696                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4697
4698 fi;
4699
4700           eval "$ac_cv_use_http"
4701           if test "$no_cache" != 1; then
4702             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4703           fi
4704
4705           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4706             echo "$as_me:$LINENO: result: yes" >&5
4707 echo "${ECHO_T}yes" >&6
4708           else
4709             echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6
4711           fi
4712
4713
4714           enablestring=
4715           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4716 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4717           no_cache=0
4718           # Check whether --enable-fileproto or --disable-fileproto was given.
4719 if test "${enable_fileproto+set}" = set; then
4720   enableval="$enable_fileproto"
4721
4722                           if test "$enableval" = yes; then
4723                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4724                           else
4725                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4726                           fi
4727
4728 else
4729
4730                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4731                           if test "x$LINE" != x ; then
4732                             eval "DEFAULT_$LINE"
4733                           else
4734                             no_cache=1
4735                           fi
4736
4737                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4738
4739 fi;
4740
4741           eval "$ac_cv_use_fileproto"
4742           if test "$no_cache" != 1; then
4743             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4744           fi
4745
4746           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4747             echo "$as_me:$LINENO: result: yes" >&5
4748 echo "${ECHO_T}yes" >&6
4749           else
4750             echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4752           fi
4753
4754
4755           enablestring=
4756           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4757 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4758           no_cache=0
4759           # Check whether --enable-sockets or --disable-sockets was given.
4760 if test "${enable_sockets+set}" = set; then
4761   enableval="$enable_sockets"
4762
4763                           if test "$enableval" = yes; then
4764                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4765                           else
4766                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4767                           fi
4768
4769 else
4770
4771                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4772                           if test "x$LINE" != x ; then
4773                             eval "DEFAULT_$LINE"
4774                           else
4775                             no_cache=1
4776                           fi
4777
4778                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4779
4780 fi;
4781
4782           eval "$ac_cv_use_sockets"
4783           if test "$no_cache" != 1; then
4784             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4785           fi
4786
4787           if test "$wxUSE_SOCKETS" = yes; then
4788             echo "$as_me:$LINENO: result: yes" >&5
4789 echo "${ECHO_T}yes" >&6
4790           else
4791             echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793           fi
4794
4795
4796           enablestring=
4797           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4798 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4799           no_cache=0
4800           # Check whether --enable-ole or --disable-ole was given.
4801 if test "${enable_ole+set}" = set; then
4802   enableval="$enable_ole"
4803
4804                           if test "$enableval" = yes; then
4805                             ac_cv_use_ole='wxUSE_OLE=yes'
4806                           else
4807                             ac_cv_use_ole='wxUSE_OLE=no'
4808                           fi
4809
4810 else
4811
4812                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4813                           if test "x$LINE" != x ; then
4814                             eval "DEFAULT_$LINE"
4815                           else
4816                             no_cache=1
4817                           fi
4818
4819                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4820
4821 fi;
4822
4823           eval "$ac_cv_use_ole"
4824           if test "$no_cache" != 1; then
4825             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4826           fi
4827
4828           if test "$wxUSE_OLE" = yes; then
4829             echo "$as_me:$LINENO: result: yes" >&5
4830 echo "${ECHO_T}yes" >&6
4831           else
4832             echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4834           fi
4835
4836
4837           enablestring=
4838           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4839 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4840           no_cache=0
4841           # Check whether --enable-dataobj or --disable-dataobj was given.
4842 if test "${enable_dataobj+set}" = set; then
4843   enableval="$enable_dataobj"
4844
4845                           if test "$enableval" = yes; then
4846                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4847                           else
4848                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4849                           fi
4850
4851 else
4852
4853                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4854                           if test "x$LINE" != x ; then
4855                             eval "DEFAULT_$LINE"
4856                           else
4857                             no_cache=1
4858                           fi
4859
4860                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4861
4862 fi;
4863
4864           eval "$ac_cv_use_dataobj"
4865           if test "$no_cache" != 1; then
4866             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4867           fi
4868
4869           if test "$wxUSE_DATAOBJ" = yes; then
4870             echo "$as_me:$LINENO: result: yes" >&5
4871 echo "${ECHO_T}yes" >&6
4872           else
4873             echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875           fi
4876
4877
4878
4879           enablestring=
4880           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4881 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4882           no_cache=0
4883           # Check whether --enable-ipc or --disable-ipc was given.
4884 if test "${enable_ipc+set}" = set; then
4885   enableval="$enable_ipc"
4886
4887                           if test "$enableval" = yes; then
4888                             ac_cv_use_ipc='wxUSE_IPC=yes'
4889                           else
4890                             ac_cv_use_ipc='wxUSE_IPC=no'
4891                           fi
4892
4893 else
4894
4895                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4896                           if test "x$LINE" != x ; then
4897                             eval "DEFAULT_$LINE"
4898                           else
4899                             no_cache=1
4900                           fi
4901
4902                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4903
4904 fi;
4905
4906           eval "$ac_cv_use_ipc"
4907           if test "$no_cache" != 1; then
4908             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4909           fi
4910
4911           if test "$wxUSE_IPC" = yes; then
4912             echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6
4914           else
4915             echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4917           fi
4918
4919
4920
4921           enablestring=
4922           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4923 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4924           no_cache=0
4925           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4926 if test "${enable_apple_ieee+set}" = set; then
4927   enableval="$enable_apple_ieee"
4928
4929                           if test "$enableval" = yes; then
4930                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4931                           else
4932                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4933                           fi
4934
4935 else
4936
4937                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4938                           if test "x$LINE" != x ; then
4939                             eval "DEFAULT_$LINE"
4940                           else
4941                             no_cache=1
4942                           fi
4943
4944                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4945
4946 fi;
4947
4948           eval "$ac_cv_use_apple_ieee"
4949           if test "$no_cache" != 1; then
4950             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4951           fi
4952
4953           if test "$wxUSE_APPLE_IEEE" = yes; then
4954             echo "$as_me:$LINENO: result: yes" >&5
4955 echo "${ECHO_T}yes" >&6
4956           else
4957             echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6
4959           fi
4960
4961
4962           enablestring=
4963           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4964 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4965           no_cache=0
4966           # Check whether --enable-arcstream or --disable-arcstream was given.
4967 if test "${enable_arcstream+set}" = set; then
4968   enableval="$enable_arcstream"
4969
4970                           if test "$enableval" = yes; then
4971                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4972                           else
4973                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4974                           fi
4975
4976 else
4977
4978                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4979                           if test "x$LINE" != x ; then
4980                             eval "DEFAULT_$LINE"
4981                           else
4982                             no_cache=1
4983                           fi
4984
4985                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4986
4987 fi;
4988
4989           eval "$ac_cv_use_arcstream"
4990           if test "$no_cache" != 1; then
4991             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4992           fi
4993
4994           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4995             echo "$as_me:$LINENO: result: yes" >&5
4996 echo "${ECHO_T}yes" >&6
4997           else
4998             echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000           fi
5001
5002
5003           enablestring=
5004           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5005 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5006           no_cache=0
5007           # Check whether --enable-backtrace or --disable-backtrace was given.
5008 if test "${enable_backtrace+set}" = set; then
5009   enableval="$enable_backtrace"
5010
5011                           if test "$enableval" = yes; then
5012                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5013                           else
5014                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5015                           fi
5016
5017 else
5018
5019                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5020                           if test "x$LINE" != x ; then
5021                             eval "DEFAULT_$LINE"
5022                           else
5023                             no_cache=1
5024                           fi
5025
5026                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5027
5028 fi;
5029
5030           eval "$ac_cv_use_backtrace"
5031           if test "$no_cache" != 1; then
5032             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5033           fi
5034
5035           if test "$wxUSE_STACKWALKER" = yes; then
5036             echo "$as_me:$LINENO: result: yes" >&5
5037 echo "${ECHO_T}yes" >&6
5038           else
5039             echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6
5041           fi
5042
5043
5044           enablestring=
5045           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5046 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5047           no_cache=0
5048           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5049 if test "${enable_catch_segvs+set}" = set; then
5050   enableval="$enable_catch_segvs"
5051
5052                           if test "$enableval" = yes; then
5053                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5054                           else
5055                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5056                           fi
5057
5058 else
5059
5060                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5061                           if test "x$LINE" != x ; then
5062                             eval "DEFAULT_$LINE"
5063                           else
5064                             no_cache=1
5065                           fi
5066
5067                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5068
5069 fi;
5070
5071           eval "$ac_cv_use_catch_segvs"
5072           if test "$no_cache" != 1; then
5073             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5074           fi
5075
5076           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5077             echo "$as_me:$LINENO: result: yes" >&5
5078 echo "${ECHO_T}yes" >&6
5079           else
5080             echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6
5082           fi
5083
5084
5085           enablestring=
5086           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5087 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5088           no_cache=0
5089           # Check whether --enable-cmdline or --disable-cmdline was given.
5090 if test "${enable_cmdline+set}" = set; then
5091   enableval="$enable_cmdline"
5092
5093                           if test "$enableval" = yes; then
5094                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5095                           else
5096                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5097                           fi
5098
5099 else
5100
5101                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5102                           if test "x$LINE" != x ; then
5103                             eval "DEFAULT_$LINE"
5104                           else
5105                             no_cache=1
5106                           fi
5107
5108                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5109
5110 fi;
5111
5112           eval "$ac_cv_use_cmdline"
5113           if test "$no_cache" != 1; then
5114             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5115           fi
5116
5117           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5118             echo "$as_me:$LINENO: result: yes" >&5
5119 echo "${ECHO_T}yes" >&6
5120           else
5121             echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5123           fi
5124
5125
5126           enablestring=
5127           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5128 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5129           no_cache=0
5130           # Check whether --enable-datetime or --disable-datetime was given.
5131 if test "${enable_datetime+set}" = set; then
5132   enableval="$enable_datetime"
5133
5134                           if test "$enableval" = yes; then
5135                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5136                           else
5137                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5138                           fi
5139
5140 else
5141
5142                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5143                           if test "x$LINE" != x ; then
5144                             eval "DEFAULT_$LINE"
5145                           else
5146                             no_cache=1
5147                           fi
5148
5149                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5150
5151 fi;
5152
5153           eval "$ac_cv_use_datetime"
5154           if test "$no_cache" != 1; then
5155             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5156           fi
5157
5158           if test "$wxUSE_DATETIME" = yes; then
5159             echo "$as_me:$LINENO: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5161           else
5162             echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164           fi
5165
5166
5167           enablestring=
5168           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5169 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5170           no_cache=0
5171           # Check whether --enable-debugreport or --disable-debugreport was given.
5172 if test "${enable_debugreport+set}" = set; then
5173   enableval="$enable_debugreport"
5174
5175                           if test "$enableval" = yes; then
5176                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5177                           else
5178                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5179                           fi
5180
5181 else
5182
5183                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5184                           if test "x$LINE" != x ; then
5185                             eval "DEFAULT_$LINE"
5186                           else
5187                             no_cache=1
5188                           fi
5189
5190                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5191
5192 fi;
5193
5194           eval "$ac_cv_use_debugreport"
5195           if test "$no_cache" != 1; then
5196             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5197           fi
5198
5199           if test "$wxUSE_DEBUGREPORT" = yes; then
5200             echo "$as_me:$LINENO: result: yes" >&5
5201 echo "${ECHO_T}yes" >&6
5202           else
5203             echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6
5205           fi
5206
5207
5208           enablestring=
5209           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5210 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5211           no_cache=0
5212           # Check whether --enable-dialupman or --disable-dialupman was given.
5213 if test "${enable_dialupman+set}" = set; then
5214   enableval="$enable_dialupman"
5215
5216                           if test "$enableval" = yes; then
5217                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5218                           else
5219                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5220                           fi
5221
5222 else
5223
5224                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5225                           if test "x$LINE" != x ; then
5226                             eval "DEFAULT_$LINE"
5227                           else
5228                             no_cache=1
5229                           fi
5230
5231                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5232
5233 fi;
5234
5235           eval "$ac_cv_use_dialupman"
5236           if test "$no_cache" != 1; then
5237             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5238           fi
5239
5240           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5241             echo "$as_me:$LINENO: result: yes" >&5
5242 echo "${ECHO_T}yes" >&6
5243           else
5244             echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5246           fi
5247
5248
5249           enablestring=
5250           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5251 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5252           no_cache=0
5253           # Check whether --enable-dynlib or --disable-dynlib was given.
5254 if test "${enable_dynlib+set}" = set; then
5255   enableval="$enable_dynlib"
5256
5257                           if test "$enableval" = yes; then
5258                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5259                           else
5260                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5261                           fi
5262
5263 else
5264
5265                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5266                           if test "x$LINE" != x ; then
5267                             eval "DEFAULT_$LINE"
5268                           else
5269                             no_cache=1
5270                           fi
5271
5272                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5273
5274 fi;
5275
5276           eval "$ac_cv_use_dynlib"
5277           if test "$no_cache" != 1; then
5278             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5279           fi
5280
5281           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5282             echo "$as_me:$LINENO: result: yes" >&5
5283 echo "${ECHO_T}yes" >&6
5284           else
5285             echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5287           fi
5288
5289
5290           enablestring=
5291           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5292 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5293           no_cache=0
5294           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5295 if test "${enable_dynamicloader+set}" = set; then
5296   enableval="$enable_dynamicloader"
5297
5298                           if test "$enableval" = yes; then
5299                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5300                           else
5301                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5302                           fi
5303
5304 else
5305
5306                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5307                           if test "x$LINE" != x ; then
5308                             eval "DEFAULT_$LINE"
5309                           else
5310                             no_cache=1
5311                           fi
5312
5313                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5314
5315 fi;
5316
5317           eval "$ac_cv_use_dynamicloader"
5318           if test "$no_cache" != 1; then
5319             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5320           fi
5321
5322           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5323             echo "$as_me:$LINENO: result: yes" >&5
5324 echo "${ECHO_T}yes" >&6
5325           else
5326             echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328           fi
5329
5330
5331           enablestring=
5332           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5333 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5334           no_cache=0
5335           # Check whether --enable-exceptions or --disable-exceptions was given.
5336 if test "${enable_exceptions+set}" = set; then
5337   enableval="$enable_exceptions"
5338
5339                           if test "$enableval" = yes; then
5340                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5341                           else
5342                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5343                           fi
5344
5345 else
5346
5347                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5348                           if test "x$LINE" != x ; then
5349                             eval "DEFAULT_$LINE"
5350                           else
5351                             no_cache=1
5352                           fi
5353
5354                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5355
5356 fi;
5357
5358           eval "$ac_cv_use_exceptions"
5359           if test "$no_cache" != 1; then
5360             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5361           fi
5362
5363           if test "$wxUSE_EXCEPTIONS" = yes; then
5364             echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6
5366           else
5367             echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369           fi
5370
5371
5372           enablestring=
5373           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5374 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5375           no_cache=0
5376           # Check whether --enable-ffile or --disable-ffile was given.
5377 if test "${enable_ffile+set}" = set; then
5378   enableval="$enable_ffile"
5379
5380                           if test "$enableval" = yes; then
5381                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5382                           else
5383                             ac_cv_use_ffile='wxUSE_FFILE=no'
5384                           fi
5385
5386 else
5387
5388                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5389                           if test "x$LINE" != x ; then
5390                             eval "DEFAULT_$LINE"
5391                           else
5392                             no_cache=1
5393                           fi
5394
5395                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5396
5397 fi;
5398
5399           eval "$ac_cv_use_ffile"
5400           if test "$no_cache" != 1; then
5401             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5402           fi
5403
5404           if test "$wxUSE_FFILE" = yes; then
5405             echo "$as_me:$LINENO: result: yes" >&5
5406 echo "${ECHO_T}yes" >&6
5407           else
5408             echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410           fi
5411
5412
5413           enablestring=
5414           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5415 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5416           no_cache=0
5417           # Check whether --enable-file or --disable-file was given.
5418 if test "${enable_file+set}" = set; then
5419   enableval="$enable_file"
5420
5421                           if test "$enableval" = yes; then
5422                             ac_cv_use_file='wxUSE_FILE=yes'
5423                           else
5424                             ac_cv_use_file='wxUSE_FILE=no'
5425                           fi
5426
5427 else
5428
5429                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5430                           if test "x$LINE" != x ; then
5431                             eval "DEFAULT_$LINE"
5432                           else
5433                             no_cache=1
5434                           fi
5435
5436                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5437
5438 fi;
5439
5440           eval "$ac_cv_use_file"
5441           if test "$no_cache" != 1; then
5442             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5443           fi
5444
5445           if test "$wxUSE_FILE" = yes; then
5446             echo "$as_me:$LINENO: result: yes" >&5
5447 echo "${ECHO_T}yes" >&6
5448           else
5449             echo "$as_me:$LINENO: result: no" >&5
5450 echo "${ECHO_T}no" >&6
5451           fi
5452
5453
5454           enablestring=
5455           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5456 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5457           no_cache=0
5458           # Check whether --enable-filesystem or --disable-filesystem was given.
5459 if test "${enable_filesystem+set}" = set; then
5460   enableval="$enable_filesystem"
5461
5462                           if test "$enableval" = yes; then
5463                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5464                           else
5465                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5466                           fi
5467
5468 else
5469
5470                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5471                           if test "x$LINE" != x ; then
5472                             eval "DEFAULT_$LINE"
5473                           else
5474                             no_cache=1
5475                           fi
5476
5477                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5478
5479 fi;
5480
5481           eval "$ac_cv_use_filesystem"
5482           if test "$no_cache" != 1; then
5483             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5484           fi
5485
5486           if test "$wxUSE_FILESYSTEM" = yes; then
5487             echo "$as_me:$LINENO: result: yes" >&5
5488 echo "${ECHO_T}yes" >&6
5489           else
5490             echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5492           fi
5493
5494
5495           enablestring=
5496           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5497 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5498           no_cache=0
5499           # Check whether --enable-fontmap or --disable-fontmap was given.
5500 if test "${enable_fontmap+set}" = set; then
5501   enableval="$enable_fontmap"
5502
5503                           if test "$enableval" = yes; then
5504                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5505                           else
5506                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5507                           fi
5508
5509 else
5510
5511                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5512                           if test "x$LINE" != x ; then
5513                             eval "DEFAULT_$LINE"
5514                           else
5515                             no_cache=1
5516                           fi
5517
5518                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5519
5520 fi;
5521
5522           eval "$ac_cv_use_fontmap"
5523           if test "$no_cache" != 1; then
5524             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5525           fi
5526
5527           if test "$wxUSE_FONTMAP" = yes; then
5528             echo "$as_me:$LINENO: result: yes" >&5
5529 echo "${ECHO_T}yes" >&6
5530           else
5531             echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6
5533           fi
5534
5535
5536           enablestring=
5537           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5538 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5539           no_cache=0
5540           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5541 if test "${enable_fs_inet+set}" = set; then
5542   enableval="$enable_fs_inet"
5543
5544                           if test "$enableval" = yes; then
5545                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5546                           else
5547                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5548                           fi
5549
5550 else
5551
5552                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5553                           if test "x$LINE" != x ; then
5554                             eval "DEFAULT_$LINE"
5555                           else
5556                             no_cache=1
5557                           fi
5558
5559                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5560
5561 fi;
5562
5563           eval "$ac_cv_use_fs_inet"
5564           if test "$no_cache" != 1; then
5565             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5566           fi
5567
5568           if test "$wxUSE_FS_INET" = yes; then
5569             echo "$as_me:$LINENO: result: yes" >&5
5570 echo "${ECHO_T}yes" >&6
5571           else
5572             echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5574           fi
5575
5576
5577           enablestring=
5578           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5579 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5580           no_cache=0
5581           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5582 if test "${enable_fs_zip+set}" = set; then
5583   enableval="$enable_fs_zip"
5584
5585                           if test "$enableval" = yes; then
5586                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5587                           else
5588                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5589                           fi
5590
5591 else
5592
5593                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5594                           if test "x$LINE" != x ; then
5595                             eval "DEFAULT_$LINE"
5596                           else
5597                             no_cache=1
5598                           fi
5599
5600                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5601
5602 fi;
5603
5604           eval "$ac_cv_use_fs_zip"
5605           if test "$no_cache" != 1; then
5606             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5607           fi
5608
5609           if test "$wxUSE_FS_ZIP" = yes; then
5610             echo "$as_me:$LINENO: result: yes" >&5
5611 echo "${ECHO_T}yes" >&6
5612           else
5613             echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5615           fi
5616
5617
5618           enablestring=
5619           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5620 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5621           no_cache=0
5622           # Check whether --enable-geometry or --disable-geometry was given.
5623 if test "${enable_geometry+set}" = set; then
5624   enableval="$enable_geometry"
5625
5626                           if test "$enableval" = yes; then
5627                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5628                           else
5629                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5630                           fi
5631
5632 else
5633
5634                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5635                           if test "x$LINE" != x ; then
5636                             eval "DEFAULT_$LINE"
5637                           else
5638                             no_cache=1
5639                           fi
5640
5641                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5642
5643 fi;
5644
5645           eval "$ac_cv_use_geometry"
5646           if test "$no_cache" != 1; then
5647             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5648           fi
5649
5650           if test "$wxUSE_GEOMETRY" = yes; then
5651             echo "$as_me:$LINENO: result: yes" >&5
5652 echo "${ECHO_T}yes" >&6
5653           else
5654             echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6
5656           fi
5657
5658
5659           enablestring=
5660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5661 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5662           no_cache=0
5663           # Check whether --enable-log or --disable-log was given.
5664 if test "${enable_log+set}" = set; then
5665   enableval="$enable_log"
5666
5667                           if test "$enableval" = yes; then
5668                             ac_cv_use_log='wxUSE_LOG=yes'
5669                           else
5670                             ac_cv_use_log='wxUSE_LOG=no'
5671                           fi
5672
5673 else
5674
5675                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5676                           if test "x$LINE" != x ; then
5677                             eval "DEFAULT_$LINE"
5678                           else
5679                             no_cache=1
5680                           fi
5681
5682                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5683
5684 fi;
5685
5686           eval "$ac_cv_use_log"
5687           if test "$no_cache" != 1; then
5688             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5689           fi
5690
5691           if test "$wxUSE_LOG" = yes; then
5692             echo "$as_me:$LINENO: result: yes" >&5
5693 echo "${ECHO_T}yes" >&6
5694           else
5695             echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697           fi
5698
5699
5700           enablestring=
5701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5702 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5703           no_cache=0
5704           # Check whether --enable-longlong or --disable-longlong was given.
5705 if test "${enable_longlong+set}" = set; then
5706   enableval="$enable_longlong"
5707
5708                           if test "$enableval" = yes; then
5709                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5710                           else
5711                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5712                           fi
5713
5714 else
5715
5716                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5717                           if test "x$LINE" != x ; then
5718                             eval "DEFAULT_$LINE"
5719                           else
5720                             no_cache=1
5721                           fi
5722
5723                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5724
5725 fi;
5726
5727           eval "$ac_cv_use_longlong"
5728           if test "$no_cache" != 1; then
5729             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5730           fi
5731
5732           if test "$wxUSE_LONGLONG" = yes; then
5733             echo "$as_me:$LINENO: result: yes" >&5
5734 echo "${ECHO_T}yes" >&6
5735           else
5736             echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738           fi
5739
5740
5741           enablestring=
5742           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5743 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5744           no_cache=0
5745           # Check whether --enable-mimetype or --disable-mimetype was given.
5746 if test "${enable_mimetype+set}" = set; then
5747   enableval="$enable_mimetype"
5748
5749                           if test "$enableval" = yes; then
5750                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5751                           else
5752                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5753                           fi
5754
5755 else
5756
5757                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5758                           if test "x$LINE" != x ; then
5759                             eval "DEFAULT_$LINE"
5760                           else
5761                             no_cache=1
5762                           fi
5763
5764                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5765
5766 fi;
5767
5768           eval "$ac_cv_use_mimetype"
5769           if test "$no_cache" != 1; then
5770             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5771           fi
5772
5773           if test "$wxUSE_MIMETYPE" = yes; then
5774             echo "$as_me:$LINENO: result: yes" >&5
5775 echo "${ECHO_T}yes" >&6
5776           else
5777             echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779           fi
5780
5781
5782           enablestring=
5783           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5784 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5785           no_cache=0
5786           # Check whether --enable-mslu or --disable-mslu was given.
5787 if test "${enable_mslu+set}" = set; then
5788   enableval="$enable_mslu"
5789
5790                           if test "$enableval" = yes; then
5791                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5792                           else
5793                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5794                           fi
5795
5796 else
5797
5798                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5799                           if test "x$LINE" != x ; then
5800                             eval "DEFAULT_$LINE"
5801                           else
5802                             no_cache=1
5803                           fi
5804
5805                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5806
5807 fi;
5808
5809           eval "$ac_cv_use_mslu"
5810           if test "$no_cache" != 1; then
5811             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5812           fi
5813
5814           if test "$wxUSE_UNICODE_MSLU" = yes; then
5815             echo "$as_me:$LINENO: result: yes" >&5
5816 echo "${ECHO_T}yes" >&6
5817           else
5818             echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820           fi
5821
5822
5823           enablestring=
5824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5825 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5826           no_cache=0
5827           # Check whether --enable-snglinst or --disable-snglinst was given.
5828 if test "${enable_snglinst+set}" = set; then
5829   enableval="$enable_snglinst"
5830
5831                           if test "$enableval" = yes; then
5832                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5833                           else
5834                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5835                           fi
5836
5837 else
5838
5839                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5840                           if test "x$LINE" != x ; then
5841                             eval "DEFAULT_$LINE"
5842                           else
5843                             no_cache=1
5844                           fi
5845
5846                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5847
5848 fi;
5849
5850           eval "$ac_cv_use_snglinst"
5851           if test "$no_cache" != 1; then
5852             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5853           fi
5854
5855           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5856             echo "$as_me:$LINENO: result: yes" >&5
5857 echo "${ECHO_T}yes" >&6
5858           else
5859             echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861           fi
5862
5863
5864           enablestring=
5865           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5866 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5867           no_cache=0
5868           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5869 if test "${enable_std_iostreams+set}" = set; then
5870   enableval="$enable_std_iostreams"
5871
5872                           if test "$enableval" = yes; then
5873                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5874                           else
5875                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5876                           fi
5877
5878 else
5879
5880                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5881                           if test "x$LINE" != x ; then
5882                             eval "DEFAULT_$LINE"
5883                           else
5884                             no_cache=1
5885                           fi
5886
5887                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5888
5889 fi;
5890
5891           eval "$ac_cv_use_std_iostreams"
5892           if test "$no_cache" != 1; then
5893             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5894           fi
5895
5896           if test "$wxUSE_STD_IOSTREAM" = yes; then
5897             echo "$as_me:$LINENO: result: yes" >&5
5898 echo "${ECHO_T}yes" >&6
5899           else
5900             echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6
5902           fi
5903
5904
5905           enablestring=
5906           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5907 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5908           no_cache=0
5909           # Check whether --enable-std_string or --disable-std_string was given.
5910 if test "${enable_std_string+set}" = set; then
5911   enableval="$enable_std_string"
5912
5913                           if test "$enableval" = yes; then
5914                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5915                           else
5916                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5917                           fi
5918
5919 else
5920
5921                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5922                           if test "x$LINE" != x ; then
5923                             eval "DEFAULT_$LINE"
5924                           else
5925                             no_cache=1
5926                           fi
5927
5928                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5929
5930 fi;
5931
5932           eval "$ac_cv_use_std_string"
5933           if test "$no_cache" != 1; then
5934             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5935           fi
5936
5937           if test "$wxUSE_STD_STRING" = yes; then
5938             echo "$as_me:$LINENO: result: yes" >&5
5939 echo "${ECHO_T}yes" >&6
5940           else
5941             echo "$as_me:$LINENO: result: no" >&5
5942 echo "${ECHO_T}no" >&6
5943           fi
5944
5945
5946           enablestring=
5947           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5948 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5949           no_cache=0
5950           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5951 if test "${enable_stdpaths+set}" = set; then
5952   enableval="$enable_stdpaths"
5953
5954                           if test "$enableval" = yes; then
5955                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5956                           else
5957                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5958                           fi
5959
5960 else
5961
5962                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5963                           if test "x$LINE" != x ; then
5964                             eval "DEFAULT_$LINE"
5965                           else
5966                             no_cache=1
5967                           fi
5968
5969                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5970
5971 fi;
5972
5973           eval "$ac_cv_use_stdpaths"
5974           if test "$no_cache" != 1; then
5975             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5976           fi
5977
5978           if test "$wxUSE_STDPATHS" = yes; then
5979             echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6
5981           else
5982             echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6
5984           fi
5985
5986
5987           enablestring=
5988           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5989 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5990           no_cache=0
5991           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5992 if test "${enable_stopwatch+set}" = set; then
5993   enableval="$enable_stopwatch"
5994
5995                           if test "$enableval" = yes; then
5996                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5997                           else
5998                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5999                           fi
6000
6001 else
6002
6003                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6004                           if test "x$LINE" != x ; then
6005                             eval "DEFAULT_$LINE"
6006                           else
6007                             no_cache=1
6008                           fi
6009
6010                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6011
6012 fi;
6013
6014           eval "$ac_cv_use_stopwatch"
6015           if test "$no_cache" != 1; then
6016             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6017           fi
6018
6019           if test "$wxUSE_STOPWATCH" = yes; then
6020             echo "$as_me:$LINENO: result: yes" >&5
6021 echo "${ECHO_T}yes" >&6
6022           else
6023             echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6025           fi
6026
6027
6028           enablestring=
6029           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6030 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6031           no_cache=0
6032           # Check whether --enable-streams or --disable-streams was given.
6033 if test "${enable_streams+set}" = set; then
6034   enableval="$enable_streams"
6035
6036                           if test "$enableval" = yes; then
6037                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6038                           else
6039                             ac_cv_use_streams='wxUSE_STREAMS=no'
6040                           fi
6041
6042 else
6043
6044                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6045                           if test "x$LINE" != x ; then
6046                             eval "DEFAULT_$LINE"
6047                           else
6048                             no_cache=1
6049                           fi
6050
6051                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6052
6053 fi;
6054
6055           eval "$ac_cv_use_streams"
6056           if test "$no_cache" != 1; then
6057             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6058           fi
6059
6060           if test "$wxUSE_STREAMS" = yes; then
6061             echo "$as_me:$LINENO: result: yes" >&5
6062 echo "${ECHO_T}yes" >&6
6063           else
6064             echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066           fi
6067
6068
6069           enablestring=
6070           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6071 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6072           no_cache=0
6073           # Check whether --enable-system_options or --disable-system_options was given.
6074 if test "${enable_system_options+set}" = set; then
6075   enableval="$enable_system_options"
6076
6077                           if test "$enableval" = yes; then
6078                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6079                           else
6080                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6081                           fi
6082
6083 else
6084
6085                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6086                           if test "x$LINE" != x ; then
6087                             eval "DEFAULT_$LINE"
6088                           else
6089                             no_cache=1
6090                           fi
6091
6092                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6093
6094 fi;
6095
6096           eval "$ac_cv_use_system_options"
6097           if test "$no_cache" != 1; then
6098             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6099           fi
6100
6101           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6102             echo "$as_me:$LINENO: result: yes" >&5
6103 echo "${ECHO_T}yes" >&6
6104           else
6105             echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107           fi
6108
6109
6110           enablestring=
6111           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6112 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6113           no_cache=0
6114           # Check whether --enable-textbuf or --disable-textbuf was given.
6115 if test "${enable_textbuf+set}" = set; then
6116   enableval="$enable_textbuf"
6117
6118                           if test "$enableval" = yes; then
6119                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6120                           else
6121                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6122                           fi
6123
6124 else
6125
6126                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6127                           if test "x$LINE" != x ; then
6128                             eval "DEFAULT_$LINE"
6129                           else
6130                             no_cache=1
6131                           fi
6132
6133                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6134
6135 fi;
6136
6137           eval "$ac_cv_use_textbuf"
6138           if test "$no_cache" != 1; then
6139             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6140           fi
6141
6142           if test "$wxUSE_TEXTBUFFER" = yes; then
6143             echo "$as_me:$LINENO: result: yes" >&5
6144 echo "${ECHO_T}yes" >&6
6145           else
6146             echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148           fi
6149
6150
6151           enablestring=
6152           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6153 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6154           no_cache=0
6155           # Check whether --enable-textfile or --disable-textfile was given.
6156 if test "${enable_textfile+set}" = set; then
6157   enableval="$enable_textfile"
6158
6159                           if test "$enableval" = yes; then
6160                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6161                           else
6162                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6163                           fi
6164
6165 else
6166
6167                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6168                           if test "x$LINE" != x ; then
6169                             eval "DEFAULT_$LINE"
6170                           else
6171                             no_cache=1
6172                           fi
6173
6174                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6175
6176 fi;
6177
6178           eval "$ac_cv_use_textfile"
6179           if test "$no_cache" != 1; then
6180             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6181           fi
6182
6183           if test "$wxUSE_TEXTFILE" = yes; then
6184             echo "$as_me:$LINENO: result: yes" >&5
6185 echo "${ECHO_T}yes" >&6
6186           else
6187             echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189           fi
6190
6191
6192           enablestring=
6193           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6194 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6195           no_cache=0
6196           # Check whether --enable-timer or --disable-timer was given.
6197 if test "${enable_timer+set}" = set; then
6198   enableval="$enable_timer"
6199
6200                           if test "$enableval" = yes; then
6201                             ac_cv_use_timer='wxUSE_TIMER=yes'
6202                           else
6203                             ac_cv_use_timer='wxUSE_TIMER=no'
6204                           fi
6205
6206 else
6207
6208                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6209                           if test "x$LINE" != x ; then
6210                             eval "DEFAULT_$LINE"
6211                           else
6212                             no_cache=1
6213                           fi
6214
6215                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6216
6217 fi;
6218
6219           eval "$ac_cv_use_timer"
6220           if test "$no_cache" != 1; then
6221             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6222           fi
6223
6224           if test "$wxUSE_TIMER" = yes; then
6225             echo "$as_me:$LINENO: result: yes" >&5
6226 echo "${ECHO_T}yes" >&6
6227           else
6228             echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6230           fi
6231
6232
6233           enablestring=
6234           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6235 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6236           no_cache=0
6237           # Check whether --enable-unicode or --disable-unicode was given.
6238 if test "${enable_unicode+set}" = set; then
6239   enableval="$enable_unicode"
6240
6241                           if test "$enableval" = yes; then
6242                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6243                           else
6244                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6245                           fi
6246
6247 else
6248
6249                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6250                           if test "x$LINE" != x ; then
6251                             eval "DEFAULT_$LINE"
6252                           else
6253                             no_cache=1
6254                           fi
6255
6256                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6257
6258 fi;
6259
6260           eval "$ac_cv_use_unicode"
6261           if test "$no_cache" != 1; then
6262             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6263           fi
6264
6265           if test "$wxUSE_UNICODE" = yes; then
6266             echo "$as_me:$LINENO: result: yes" >&5
6267 echo "${ECHO_T}yes" >&6
6268           else
6269             echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6271           fi
6272
6273
6274           enablestring=
6275           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6276 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6277           no_cache=0
6278           # Check whether --enable-sound or --disable-sound was given.
6279 if test "${enable_sound+set}" = set; then
6280   enableval="$enable_sound"
6281
6282                           if test "$enableval" = yes; then
6283                             ac_cv_use_sound='wxUSE_SOUND=yes'
6284                           else
6285                             ac_cv_use_sound='wxUSE_SOUND=no'
6286                           fi
6287
6288 else
6289
6290                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6291                           if test "x$LINE" != x ; then
6292                             eval "DEFAULT_$LINE"
6293                           else
6294                             no_cache=1
6295                           fi
6296
6297                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6298
6299 fi;
6300
6301           eval "$ac_cv_use_sound"
6302           if test "$no_cache" != 1; then
6303             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6304           fi
6305
6306           if test "$wxUSE_SOUND" = yes; then
6307             echo "$as_me:$LINENO: result: yes" >&5
6308 echo "${ECHO_T}yes" >&6
6309           else
6310             echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6312           fi
6313
6314
6315           enablestring=
6316           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6317 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6318           no_cache=0
6319           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6320 if test "${enable_mediactrl+set}" = set; then
6321   enableval="$enable_mediactrl"
6322
6323                           if test "$enableval" = yes; then
6324                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6325                           else
6326                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6327                           fi
6328
6329 else
6330
6331                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6332                           if test "x$LINE" != x ; then
6333                             eval "DEFAULT_$LINE"
6334                           else
6335                             no_cache=1
6336                           fi
6337
6338                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6339
6340 fi;
6341
6342           eval "$ac_cv_use_mediactrl"
6343           if test "$no_cache" != 1; then
6344             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6345           fi
6346
6347           if test "$wxUSE_MEDIACTRL" = yes; then
6348             echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6
6350           else
6351             echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6353           fi
6354
6355
6356           enablestring=
6357           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6358 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6359           no_cache=0
6360           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6361 if test "${enable_gstreamer8+set}" = set; then
6362   enableval="$enable_gstreamer8"
6363
6364                           if test "$enableval" = yes; then
6365                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6366                           else
6367                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6368                           fi
6369
6370 else
6371
6372                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6373                           if test "x$LINE" != x ; then
6374                             eval "DEFAULT_$LINE"
6375                           else
6376                             no_cache=1
6377                           fi
6378
6379                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6380
6381 fi;
6382
6383           eval "$ac_cv_use_gstreamer8"
6384           if test "$no_cache" != 1; then
6385             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6386           fi
6387
6388           if test "$wxUSE_GSTREAMER8" = yes; then
6389             echo "$as_me:$LINENO: result: yes" >&5
6390 echo "${ECHO_T}yes" >&6
6391           else
6392             echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6
6394           fi
6395
6396
6397           enablestring=
6398           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6399 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6400           no_cache=0
6401           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6402 if test "${enable_printfposparam+set}" = set; then
6403   enableval="$enable_printfposparam"
6404
6405                           if test "$enableval" = yes; then
6406                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6407                           else
6408                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6409                           fi
6410
6411 else
6412
6413                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6414                           if test "x$LINE" != x ; then
6415                             eval "DEFAULT_$LINE"
6416                           else
6417                             no_cache=1
6418                           fi
6419
6420                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6421
6422 fi;
6423
6424           eval "$ac_cv_use_printfposparam"
6425           if test "$no_cache" != 1; then
6426             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6427           fi
6428
6429           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6430             echo "$as_me:$LINENO: result: yes" >&5
6431 echo "${ECHO_T}yes" >&6
6432           else
6433             echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6
6435           fi
6436
6437
6438           enablestring=
6439           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6440 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6441           no_cache=0
6442           # Check whether --enable-zipstream or --disable-zipstream was given.
6443 if test "${enable_zipstream+set}" = set; then
6444   enableval="$enable_zipstream"
6445
6446                           if test "$enableval" = yes; then
6447                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6448                           else
6449                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6450                           fi
6451
6452 else
6453
6454                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6455                           if test "x$LINE" != x ; then
6456                             eval "DEFAULT_$LINE"
6457                           else
6458                             no_cache=1
6459                           fi
6460
6461                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6462
6463 fi;
6464
6465           eval "$ac_cv_use_zipstream"
6466           if test "$no_cache" != 1; then
6467             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6468           fi
6469
6470           if test "$wxUSE_ZIPSTREAM" = yes; then
6471             echo "$as_me:$LINENO: result: yes" >&5
6472 echo "${ECHO_T}yes" >&6
6473           else
6474             echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6
6476           fi
6477
6478
6479
6480           enablestring=
6481           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6482 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6483           no_cache=0
6484           # Check whether --enable-url or --disable-url was given.
6485 if test "${enable_url+set}" = set; then
6486   enableval="$enable_url"
6487
6488                           if test "$enableval" = yes; then
6489                             ac_cv_use_url='wxUSE_URL=yes'
6490                           else
6491                             ac_cv_use_url='wxUSE_URL=no'
6492                           fi
6493
6494 else
6495
6496                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6497                           if test "x$LINE" != x ; then
6498                             eval "DEFAULT_$LINE"
6499                           else
6500                             no_cache=1
6501                           fi
6502
6503                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6504
6505 fi;
6506
6507           eval "$ac_cv_use_url"
6508           if test "$no_cache" != 1; then
6509             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6510           fi
6511
6512           if test "$wxUSE_URL" = yes; then
6513             echo "$as_me:$LINENO: result: yes" >&5
6514 echo "${ECHO_T}yes" >&6
6515           else
6516             echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6
6518           fi
6519
6520
6521           enablestring=
6522           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6523 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6524           no_cache=0
6525           # Check whether --enable-protocol or --disable-protocol was given.
6526 if test "${enable_protocol+set}" = set; then
6527   enableval="$enable_protocol"
6528
6529                           if test "$enableval" = yes; then
6530                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6531                           else
6532                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6533                           fi
6534
6535 else
6536
6537                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6538                           if test "x$LINE" != x ; then
6539                             eval "DEFAULT_$LINE"
6540                           else
6541                             no_cache=1
6542                           fi
6543
6544                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6545
6546 fi;
6547
6548           eval "$ac_cv_use_protocol"
6549           if test "$no_cache" != 1; then
6550             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6551           fi
6552
6553           if test "$wxUSE_PROTOCOL" = yes; then
6554             echo "$as_me:$LINENO: result: yes" >&5
6555 echo "${ECHO_T}yes" >&6
6556           else
6557             echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6
6559           fi
6560
6561
6562           enablestring=
6563           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6564 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6565           no_cache=0
6566           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6567 if test "${enable_protocol_http+set}" = set; then
6568   enableval="$enable_protocol_http"
6569
6570                           if test "$enableval" = yes; then
6571                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6572                           else
6573                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6574                           fi
6575
6576 else
6577
6578                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6579                           if test "x$LINE" != x ; then
6580                             eval "DEFAULT_$LINE"
6581                           else
6582                             no_cache=1
6583                           fi
6584
6585                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6586
6587 fi;
6588
6589           eval "$ac_cv_use_protocol_http"
6590           if test "$no_cache" != 1; then
6591             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6592           fi
6593
6594           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6595             echo "$as_me:$LINENO: result: yes" >&5
6596 echo "${ECHO_T}yes" >&6
6597           else
6598             echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6600           fi
6601
6602
6603           enablestring=
6604           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6605 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6606           no_cache=0
6607           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6608 if test "${enable_protocol_ftp+set}" = set; then
6609   enableval="$enable_protocol_ftp"
6610
6611                           if test "$enableval" = yes; then
6612                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6613                           else
6614                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6615                           fi
6616
6617 else
6618
6619                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6620                           if test "x$LINE" != x ; then
6621                             eval "DEFAULT_$LINE"
6622                           else
6623                             no_cache=1
6624                           fi
6625
6626                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6627
6628 fi;
6629
6630           eval "$ac_cv_use_protocol_ftp"
6631           if test "$no_cache" != 1; then
6632             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6633           fi
6634
6635           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6636             echo "$as_me:$LINENO: result: yes" >&5
6637 echo "${ECHO_T}yes" >&6
6638           else
6639             echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6
6641           fi
6642
6643
6644           enablestring=
6645           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6646 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6647           no_cache=0
6648           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6649 if test "${enable_protocol_file+set}" = set; then
6650   enableval="$enable_protocol_file"
6651
6652                           if test "$enableval" = yes; then
6653                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6654                           else
6655                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6656                           fi
6657
6658 else
6659
6660                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6661                           if test "x$LINE" != x ; then
6662                             eval "DEFAULT_$LINE"
6663                           else
6664                             no_cache=1
6665                           fi
6666
6667                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6668
6669 fi;
6670
6671           eval "$ac_cv_use_protocol_file"
6672           if test "$no_cache" != 1; then
6673             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6674           fi
6675
6676           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6677             echo "$as_me:$LINENO: result: yes" >&5
6678 echo "${ECHO_T}yes" >&6
6679           else
6680             echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6
6682           fi
6683
6684
6685
6686
6687
6688           enablestring=
6689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6690 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6691           no_cache=0
6692           # Check whether --enable-threads or --disable-threads was given.
6693 if test "${enable_threads+set}" = set; then
6694   enableval="$enable_threads"
6695
6696                           if test "$enableval" = yes; then
6697                             ac_cv_use_threads='wxUSE_THREADS=yes'
6698                           else
6699                             ac_cv_use_threads='wxUSE_THREADS=no'
6700                           fi
6701
6702 else
6703
6704                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6705                           if test "x$LINE" != x ; then
6706                             eval "DEFAULT_$LINE"
6707                           else
6708                             no_cache=1
6709                           fi
6710
6711                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6712
6713 fi;
6714
6715           eval "$ac_cv_use_threads"
6716           if test "$no_cache" != 1; then
6717             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6718           fi
6719
6720           if test "$wxUSE_THREADS" = yes; then
6721             echo "$as_me:$LINENO: result: yes" >&5
6722 echo "${ECHO_T}yes" >&6
6723           else
6724             echo "$as_me:$LINENO: result: no" >&5
6725 echo "${ECHO_T}no" >&6
6726           fi
6727
6728
6729 if test "$wxUSE_GUI" = "yes"; then
6730
6731
6732
6733           enablestring=
6734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6735 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6736           no_cache=0
6737           # Check whether --enable-docview or --disable-docview was given.
6738 if test "${enable_docview+set}" = set; then
6739   enableval="$enable_docview"
6740
6741                           if test "$enableval" = yes; then
6742                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6743                           else
6744                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6745                           fi
6746
6747 else
6748
6749                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6750                           if test "x$LINE" != x ; then
6751                             eval "DEFAULT_$LINE"
6752                           else
6753                             no_cache=1
6754                           fi
6755
6756                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6757
6758 fi;
6759
6760           eval "$ac_cv_use_docview"
6761           if test "$no_cache" != 1; then
6762             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6763           fi
6764
6765           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6766             echo "$as_me:$LINENO: result: yes" >&5
6767 echo "${ECHO_T}yes" >&6
6768           else
6769             echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6
6771           fi
6772
6773
6774           enablestring=
6775           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6776 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6777           no_cache=0
6778           # Check whether --enable-help or --disable-help was given.
6779 if test "${enable_help+set}" = set; then
6780   enableval="$enable_help"
6781
6782                           if test "$enableval" = yes; then
6783                             ac_cv_use_help='wxUSE_HELP=yes'
6784                           else
6785                             ac_cv_use_help='wxUSE_HELP=no'
6786                           fi
6787
6788 else
6789
6790                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6791                           if test "x$LINE" != x ; then
6792                             eval "DEFAULT_$LINE"
6793                           else
6794                             no_cache=1
6795                           fi
6796
6797                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6798
6799 fi;
6800
6801           eval "$ac_cv_use_help"
6802           if test "$no_cache" != 1; then
6803             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6804           fi
6805
6806           if test "$wxUSE_HELP" = yes; then
6807             echo "$as_me:$LINENO: result: yes" >&5
6808 echo "${ECHO_T}yes" >&6
6809           else
6810             echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6812           fi
6813
6814
6815           enablestring=
6816           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6817 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6818           no_cache=0
6819           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6820 if test "${enable_mshtmlhelp+set}" = set; then
6821   enableval="$enable_mshtmlhelp"
6822
6823                           if test "$enableval" = yes; then
6824                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6825                           else
6826                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6827                           fi
6828
6829 else
6830
6831                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6832                           if test "x$LINE" != x ; then
6833                             eval "DEFAULT_$LINE"
6834                           else
6835                             no_cache=1
6836                           fi
6837
6838                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6839
6840 fi;
6841
6842           eval "$ac_cv_use_mshtmlhelp"
6843           if test "$no_cache" != 1; then
6844             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6845           fi
6846
6847           if test "$wxUSE_MS_HTML_HELP" = yes; then
6848             echo "$as_me:$LINENO: result: yes" >&5
6849 echo "${ECHO_T}yes" >&6
6850           else
6851             echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6
6853           fi
6854
6855
6856           enablestring=
6857           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6858 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6859           no_cache=0
6860           # Check whether --enable-html or --disable-html was given.
6861 if test "${enable_html+set}" = set; then
6862   enableval="$enable_html"
6863
6864                           if test "$enableval" = yes; then
6865                             ac_cv_use_html='wxUSE_HTML=yes'
6866                           else
6867                             ac_cv_use_html='wxUSE_HTML=no'
6868                           fi
6869
6870 else
6871
6872                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6873                           if test "x$LINE" != x ; then
6874                             eval "DEFAULT_$LINE"
6875                           else
6876                             no_cache=1
6877                           fi
6878
6879                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6880
6881 fi;
6882
6883           eval "$ac_cv_use_html"
6884           if test "$no_cache" != 1; then
6885             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6886           fi
6887
6888           if test "$wxUSE_HTML" = yes; then
6889             echo "$as_me:$LINENO: result: yes" >&5
6890 echo "${ECHO_T}yes" >&6
6891           else
6892             echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6
6894           fi
6895
6896
6897           enablestring=
6898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6899 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6900           no_cache=0
6901           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6902 if test "${enable_htmlhelp+set}" = set; then
6903   enableval="$enable_htmlhelp"
6904
6905                           if test "$enableval" = yes; then
6906                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6907                           else
6908                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6909                           fi
6910
6911 else
6912
6913                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6914                           if test "x$LINE" != x ; then
6915                             eval "DEFAULT_$LINE"
6916                           else
6917                             no_cache=1
6918                           fi
6919
6920                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6921
6922 fi;
6923
6924           eval "$ac_cv_use_htmlhelp"
6925           if test "$no_cache" != 1; then
6926             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6927           fi
6928
6929           if test "$wxUSE_WXHTML_HELP" = yes; then
6930             echo "$as_me:$LINENO: result: yes" >&5
6931 echo "${ECHO_T}yes" >&6
6932           else
6933             echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6
6935           fi
6936
6937
6938           enablestring=
6939           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6940 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6941           no_cache=0
6942           # Check whether --enable-xrc or --disable-xrc was given.
6943 if test "${enable_xrc+set}" = set; then
6944   enableval="$enable_xrc"
6945
6946                           if test "$enableval" = yes; then
6947                             ac_cv_use_xrc='wxUSE_XRC=yes'
6948                           else
6949                             ac_cv_use_xrc='wxUSE_XRC=no'
6950                           fi
6951
6952 else
6953
6954                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6955                           if test "x$LINE" != x ; then
6956                             eval "DEFAULT_$LINE"
6957                           else
6958                             no_cache=1
6959                           fi
6960
6961                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6962
6963 fi;
6964
6965           eval "$ac_cv_use_xrc"
6966           if test "$no_cache" != 1; then
6967             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6968           fi
6969
6970           if test "$wxUSE_XRC" = yes; then
6971             echo "$as_me:$LINENO: result: yes" >&5
6972 echo "${ECHO_T}yes" >&6
6973           else
6974             echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6976           fi
6977
6978
6979           enablestring=
6980           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6981 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6982           no_cache=0
6983           # Check whether --enable-aui or --disable-aui was given.
6984 if test "${enable_aui+set}" = set; then
6985   enableval="$enable_aui"
6986
6987                           if test "$enableval" = yes; then
6988                             ac_cv_use_aui='wxUSE_AUI=yes'
6989                           else
6990                             ac_cv_use_aui='wxUSE_AUI=no'
6991                           fi
6992
6993 else
6994
6995                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6996                           if test "x$LINE" != x ; then
6997                             eval "DEFAULT_$LINE"
6998                           else
6999                             no_cache=1
7000                           fi
7001
7002                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7003
7004 fi;
7005
7006           eval "$ac_cv_use_aui"
7007           if test "$no_cache" != 1; then
7008             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7009           fi
7010
7011           if test "$wxUSE_AUI" = yes; then
7012             echo "$as_me:$LINENO: result: yes" >&5
7013 echo "${ECHO_T}yes" >&6
7014           else
7015             echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6
7017           fi
7018
7019
7020           enablestring=
7021           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7022 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7023           no_cache=0
7024           # Check whether --enable-constraints or --disable-constraints was given.
7025 if test "${enable_constraints+set}" = set; then
7026   enableval="$enable_constraints"
7027
7028                           if test "$enableval" = yes; then
7029                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7030                           else
7031                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7032                           fi
7033
7034 else
7035
7036                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7037                           if test "x$LINE" != x ; then
7038                             eval "DEFAULT_$LINE"
7039                           else
7040                             no_cache=1
7041                           fi
7042
7043                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7044
7045 fi;
7046
7047           eval "$ac_cv_use_constraints"
7048           if test "$no_cache" != 1; then
7049             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7050           fi
7051
7052           if test "$wxUSE_CONSTRAINTS" = yes; then
7053             echo "$as_me:$LINENO: result: yes" >&5
7054 echo "${ECHO_T}yes" >&6
7055           else
7056             echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6
7058           fi
7059
7060
7061           enablestring=
7062           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7063 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7064           no_cache=0
7065           # Check whether --enable-printarch or --disable-printarch was given.
7066 if test "${enable_printarch+set}" = set; then
7067   enableval="$enable_printarch"
7068
7069                           if test "$enableval" = yes; then
7070                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7071                           else
7072                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7073                           fi
7074
7075 else
7076
7077                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7078                           if test "x$LINE" != x ; then
7079                             eval "DEFAULT_$LINE"
7080                           else
7081                             no_cache=1
7082                           fi
7083
7084                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7085
7086 fi;
7087
7088           eval "$ac_cv_use_printarch"
7089           if test "$no_cache" != 1; then
7090             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7091           fi
7092
7093           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7094             echo "$as_me:$LINENO: result: yes" >&5
7095 echo "${ECHO_T}yes" >&6
7096           else
7097             echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6
7099           fi
7100
7101
7102           enablestring=
7103           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7104 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7105           no_cache=0
7106           # Check whether --enable-mdi or --disable-mdi was given.
7107 if test "${enable_mdi+set}" = set; then
7108   enableval="$enable_mdi"
7109
7110                           if test "$enableval" = yes; then
7111                             ac_cv_use_mdi='wxUSE_MDI=yes'
7112                           else
7113                             ac_cv_use_mdi='wxUSE_MDI=no'
7114                           fi
7115
7116 else
7117
7118                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7119                           if test "x$LINE" != x ; then
7120                             eval "DEFAULT_$LINE"
7121                           else
7122                             no_cache=1
7123                           fi
7124
7125                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7126
7127 fi;
7128
7129           eval "$ac_cv_use_mdi"
7130           if test "$no_cache" != 1; then
7131             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7132           fi
7133
7134           if test "$wxUSE_MDI" = yes; then
7135             echo "$as_me:$LINENO: result: yes" >&5
7136 echo "${ECHO_T}yes" >&6
7137           else
7138             echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140           fi
7141
7142
7143           enablestring=
7144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7145 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7146           no_cache=0
7147           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7148 if test "${enable_mdidoc+set}" = set; then
7149   enableval="$enable_mdidoc"
7150
7151                           if test "$enableval" = yes; then
7152                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7153                           else
7154                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7155                           fi
7156
7157 else
7158
7159                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7160                           if test "x$LINE" != x ; then
7161                             eval "DEFAULT_$LINE"
7162                           else
7163                             no_cache=1
7164                           fi
7165
7166                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7167
7168 fi;
7169
7170           eval "$ac_cv_use_mdidoc"
7171           if test "$no_cache" != 1; then
7172             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7173           fi
7174
7175           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7176             echo "$as_me:$LINENO: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6
7178           else
7179             echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6
7181           fi
7182
7183
7184           enablestring=
7185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7186 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7187           no_cache=0
7188           # Check whether --enable-loggui or --disable-loggui was given.
7189 if test "${enable_loggui+set}" = set; then
7190   enableval="$enable_loggui"
7191
7192                           if test "$enableval" = yes; then
7193                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7194                           else
7195                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7196                           fi
7197
7198 else
7199
7200                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7201                           if test "x$LINE" != x ; then
7202                             eval "DEFAULT_$LINE"
7203                           else
7204                             no_cache=1
7205                           fi
7206
7207                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7208
7209 fi;
7210
7211           eval "$ac_cv_use_loggui"
7212           if test "$no_cache" != 1; then
7213             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7214           fi
7215
7216           if test "$wxUSE_LOGGUI" = yes; then
7217             echo "$as_me:$LINENO: result: yes" >&5
7218 echo "${ECHO_T}yes" >&6
7219           else
7220             echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222           fi
7223
7224
7225           enablestring=
7226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7227 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7228           no_cache=0
7229           # Check whether --enable-logwin or --disable-logwin was given.
7230 if test "${enable_logwin+set}" = set; then
7231   enableval="$enable_logwin"
7232
7233                           if test "$enableval" = yes; then
7234                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7235                           else
7236                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7237                           fi
7238
7239 else
7240
7241                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7242                           if test "x$LINE" != x ; then
7243                             eval "DEFAULT_$LINE"
7244                           else
7245                             no_cache=1
7246                           fi
7247
7248                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7249
7250 fi;
7251
7252           eval "$ac_cv_use_logwin"
7253           if test "$no_cache" != 1; then
7254             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7255           fi
7256
7257           if test "$wxUSE_LOGWINDOW" = yes; then
7258             echo "$as_me:$LINENO: result: yes" >&5
7259 echo "${ECHO_T}yes" >&6
7260           else
7261             echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263           fi
7264
7265
7266           enablestring=
7267           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7268 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7269           no_cache=0
7270           # Check whether --enable-logdialog or --disable-logdialog was given.
7271 if test "${enable_logdialog+set}" = set; then
7272   enableval="$enable_logdialog"
7273
7274                           if test "$enableval" = yes; then
7275                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7276                           else
7277                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7278                           fi
7279
7280 else
7281
7282                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7283                           if test "x$LINE" != x ; then
7284                             eval "DEFAULT_$LINE"
7285                           else
7286                             no_cache=1
7287                           fi
7288
7289                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7290
7291 fi;
7292
7293           eval "$ac_cv_use_logdialog"
7294           if test "$no_cache" != 1; then
7295             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7296           fi
7297
7298           if test "$wxUSE_LOGDIALOG" = yes; then
7299             echo "$as_me:$LINENO: result: yes" >&5
7300 echo "${ECHO_T}yes" >&6
7301           else
7302             echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304           fi
7305
7306
7307           enablestring=
7308           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7309 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7310           no_cache=0
7311           # Check whether --enable-webkit or --disable-webkit was given.
7312 if test "${enable_webkit+set}" = set; then
7313   enableval="$enable_webkit"
7314
7315                           if test "$enableval" = yes; then
7316                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7317                           else
7318                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7319                           fi
7320
7321 else
7322
7323                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7324                           if test "x$LINE" != x ; then
7325                             eval "DEFAULT_$LINE"
7326                           else
7327                             no_cache=1
7328                           fi
7329
7330                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7331
7332 fi;
7333
7334           eval "$ac_cv_use_webkit"
7335           if test "$no_cache" != 1; then
7336             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7337           fi
7338
7339           if test "$wxUSE_WEBKIT" = yes; then
7340             echo "$as_me:$LINENO: result: yes" >&5
7341 echo "${ECHO_T}yes" >&6
7342           else
7343             echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6
7345           fi
7346
7347
7348           enablestring=
7349           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7350 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7351           no_cache=0
7352           # Check whether --enable-html or --disable-html was given.
7353 if test "${enable_html+set}" = set; then
7354   enableval="$enable_html"
7355
7356                           if test "$enableval" = yes; then
7357                             ac_cv_use_html='wxUSE_RICHTEXT=yes'
7358                           else
7359                             ac_cv_use_html='wxUSE_RICHTEXT=no'
7360                           fi
7361
7362 else
7363
7364                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7365                           if test "x$LINE" != x ; then
7366                             eval "DEFAULT_$LINE"
7367                           else
7368                             no_cache=1
7369                           fi
7370
7371                           ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7372
7373 fi;
7374
7375           eval "$ac_cv_use_html"
7376           if test "$no_cache" != 1; then
7377             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7378           fi
7379
7380           if test "$wxUSE_RICHTEXT" = yes; then
7381             echo "$as_me:$LINENO: result: yes" >&5
7382 echo "${ECHO_T}yes" >&6
7383           else
7384             echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6
7386           fi
7387
7388
7389
7390           enablestring=
7391           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7392 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7393           no_cache=0
7394           # Check whether --enable-postscript or --disable-postscript was given.
7395 if test "${enable_postscript+set}" = set; then
7396   enableval="$enable_postscript"
7397
7398                           if test "$enableval" = yes; then
7399                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7400                           else
7401                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7402                           fi
7403
7404 else
7405
7406                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7407                           if test "x$LINE" != x ; then
7408                             eval "DEFAULT_$LINE"
7409                           else
7410                             no_cache=1
7411                           fi
7412
7413                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7414
7415 fi;
7416
7417           eval "$ac_cv_use_postscript"
7418           if test "$no_cache" != 1; then
7419             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7420           fi
7421
7422           if test "$wxUSE_POSTSCRIPT" = yes; then
7423             echo "$as_me:$LINENO: result: yes" >&5
7424 echo "${ECHO_T}yes" >&6
7425           else
7426             echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428           fi
7429
7430
7431
7432
7433
7434           enablestring=
7435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7436 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7437           no_cache=0
7438           # Check whether --enable-prologio or --disable-prologio was given.
7439 if test "${enable_prologio+set}" = set; then
7440   enableval="$enable_prologio"
7441
7442                           if test "$enableval" = yes; then
7443                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7444                           else
7445                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7446                           fi
7447
7448 else
7449
7450                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7451                           if test "x$LINE" != x ; then
7452                             eval "DEFAULT_$LINE"
7453                           else
7454                             no_cache=1
7455                           fi
7456
7457                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7458
7459 fi;
7460
7461           eval "$ac_cv_use_prologio"
7462           if test "$no_cache" != 1; then
7463             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7464           fi
7465
7466           if test "$wxUSE_PROLOGIO" = yes; then
7467             echo "$as_me:$LINENO: result: yes" >&5
7468 echo "${ECHO_T}yes" >&6
7469           else
7470             echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472           fi
7473
7474
7475           enablestring=
7476           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7477 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7478           no_cache=0
7479           # Check whether --enable-resources or --disable-resources was given.
7480 if test "${enable_resources+set}" = set; then
7481   enableval="$enable_resources"
7482
7483                           if test "$enableval" = yes; then
7484                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7485                           else
7486                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7487                           fi
7488
7489 else
7490
7491                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7492                           if test "x$LINE" != x ; then
7493                             eval "DEFAULT_$LINE"
7494                           else
7495                             no_cache=1
7496                           fi
7497
7498                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7499
7500 fi;
7501
7502           eval "$ac_cv_use_resources"
7503           if test "$no_cache" != 1; then
7504             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7505           fi
7506
7507           if test "$wxUSE_RESOURCES" = yes; then
7508             echo "$as_me:$LINENO: result: yes" >&5
7509 echo "${ECHO_T}yes" >&6
7510           else
7511             echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513           fi
7514
7515
7516
7517
7518           enablestring=
7519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7520 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7521           no_cache=0
7522           # Check whether --enable-clipboard or --disable-clipboard was given.
7523 if test "${enable_clipboard+set}" = set; then
7524   enableval="$enable_clipboard"
7525
7526                           if test "$enableval" = yes; then
7527                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7528                           else
7529                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7530                           fi
7531
7532 else
7533
7534                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7535                           if test "x$LINE" != x ; then
7536                             eval "DEFAULT_$LINE"
7537                           else
7538                             no_cache=1
7539                           fi
7540
7541                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7542
7543 fi;
7544
7545           eval "$ac_cv_use_clipboard"
7546           if test "$no_cache" != 1; then
7547             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7548           fi
7549
7550           if test "$wxUSE_CLIPBOARD" = yes; then
7551             echo "$as_me:$LINENO: result: yes" >&5
7552 echo "${ECHO_T}yes" >&6
7553           else
7554             echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6
7556           fi
7557
7558
7559           enablestring=
7560           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7561 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7562           no_cache=0
7563           # Check whether --enable-dnd or --disable-dnd was given.
7564 if test "${enable_dnd+set}" = set; then
7565   enableval="$enable_dnd"
7566
7567                           if test "$enableval" = yes; then
7568                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7569                           else
7570                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7571                           fi
7572
7573 else
7574
7575                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7576                           if test "x$LINE" != x ; then
7577                             eval "DEFAULT_$LINE"
7578                           else
7579                             no_cache=1
7580                           fi
7581
7582                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7583
7584 fi;
7585
7586           eval "$ac_cv_use_dnd"
7587           if test "$no_cache" != 1; then
7588             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7589           fi
7590
7591           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7592             echo "$as_me:$LINENO: result: yes" >&5
7593 echo "${ECHO_T}yes" >&6
7594           else
7595             echo "$as_me:$LINENO: result: no" >&5
7596 echo "${ECHO_T}no" >&6
7597           fi
7598
7599
7600           enablestring=
7601           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7602 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7603           no_cache=0
7604           # Check whether --enable-metafile or --disable-metafile was given.
7605 if test "${enable_metafile+set}" = set; then
7606   enableval="$enable_metafile"
7607
7608                           if test "$enableval" = yes; then
7609                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7610                           else
7611                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7612                           fi
7613
7614 else
7615
7616                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7617                           if test "x$LINE" != x ; then
7618                             eval "DEFAULT_$LINE"
7619                           else
7620                             no_cache=1
7621                           fi
7622
7623                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7624
7625 fi;
7626
7627           eval "$ac_cv_use_metafile"
7628           if test "$no_cache" != 1; then
7629             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7630           fi
7631
7632           if test "$wxUSE_METAFILE" = yes; then
7633             echo "$as_me:$LINENO: result: yes" >&5
7634 echo "${ECHO_T}yes" >&6
7635           else
7636             echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6
7638           fi
7639
7640
7641
7642
7643
7644           enablestring=
7645           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7646 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7647           no_cache=0
7648           # Check whether --enable-controls or --disable-controls was given.
7649 if test "${enable_controls+set}" = set; then
7650   enableval="$enable_controls"
7651
7652                           if test "$enableval" = yes; then
7653                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7654                           else
7655                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7656                           fi
7657
7658 else
7659
7660                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7661                           if test "x$LINE" != x ; then
7662                             eval "DEFAULT_$LINE"
7663                           else
7664                             no_cache=1
7665                           fi
7666
7667                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7668
7669 fi;
7670
7671           eval "$ac_cv_use_controls"
7672           if test "$no_cache" != 1; then
7673             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7674           fi
7675
7676           if test "$wxUSE_CONTROLS" = yes; then
7677             echo "$as_me:$LINENO: result: yes" >&5
7678 echo "${ECHO_T}yes" >&6
7679           else
7680             echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6
7682           fi
7683
7684
7685 if test "$wxUSE_CONTROLS" = "yes"; then
7686   DEFAULT_wxUSE_ACCEL=yes
7687   DEFAULT_wxUSE_BMPBUTTON=yes
7688   DEFAULT_wxUSE_BUTTON=yes
7689   DEFAULT_wxUSE_CALCTRL=yes
7690   DEFAULT_wxUSE_CARET=yes
7691   DEFAULT_wxUSE_COMBOBOX=yes
7692   DEFAULT_wxUSE_CHECKBOX=yes
7693   DEFAULT_wxUSE_CHECKLISTBOX=yes
7694   DEFAULT_wxUSE_CHOICE=yes
7695   DEFAULT_wxUSE_CHOICEBOOK=yes
7696   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7697   DEFAULT_wxUSE_COMBOBOX=yes
7698   DEFAULT_wxUSE_DATEPICKCTRL=yes
7699   DEFAULT_wxUSE_DISPLAY=yes
7700   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7701   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7702   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7703   DEFAULT_wxUSE_GAUGE=yes
7704   DEFAULT_wxUSE_GRID=yes
7705   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7706   DEFAULT_wxUSE_DATAVIEWCTRL=no
7707   DEFAULT_wxUSE_IMAGLIST=yes
7708   DEFAULT_wxUSE_LISTBOOK=yes
7709   DEFAULT_wxUSE_LISTBOX=yes
7710   DEFAULT_wxUSE_LISTCTRL=yes
7711   DEFAULT_wxUSE_NOTEBOOK=yes
7712   DEFAULT_wxUSE_RADIOBOX=yes
7713   DEFAULT_wxUSE_RADIOBTN=yes
7714   DEFAULT_wxUSE_SASH=yes
7715   DEFAULT_wxUSE_SCROLLBAR=yes
7716   DEFAULT_wxUSE_SLIDER=yes
7717   DEFAULT_wxUSE_SPINBTN=yes
7718   DEFAULT_wxUSE_SPINCTRL=yes
7719   DEFAULT_wxUSE_SPLITTER=yes
7720   DEFAULT_wxUSE_STATBMP=yes
7721   DEFAULT_wxUSE_STATBOX=yes
7722   DEFAULT_wxUSE_STATLINE=yes
7723   DEFAULT_wxUSE_STATUSBAR=yes
7724   DEFAULT_wxUSE_TAB_DIALOG=yes
7725   DEFAULT_wxUSE_TOGGLEBTN=yes
7726   DEFAULT_wxUSE_TOOLBAR=yes
7727   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7728   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7729   DEFAULT_wxUSE_TOOLTIPS=yes
7730   DEFAULT_wxUSE_TREEBOOK=yes
7731   DEFAULT_wxUSE_TOOLBOOK=yes
7732   DEFAULT_wxUSE_TREECTRL=yes
7733   DEFAULT_wxUSE_POPUPWIN=yes
7734   DEFAULT_wxUSE_TIPWINDOW=yes
7735 elif test "$wxUSE_CONTROLS" = "no"; then
7736   DEFAULT_wxUSE_ACCEL=no
7737   DEFAULT_wxUSE_BMPBUTTON=no
7738   DEFAULT_wxUSE_BUTTON=no
7739   DEFAULT_wxUSE_CALCTRL=no
7740   DEFAULT_wxUSE_CARET=no
7741   DEFAULT_wxUSE_COMBOBOX=no
7742   DEFAULT_wxUSE_CHECKBOX=no
7743   DEFAULT_wxUSE_CHECKLISTBOX=no
7744   DEFAULT_wxUSE_CHOICE=no
7745   DEFAULT_wxUSE_CHOICEBOOK=no
7746   DEFAULT_wxUSE_COLOURPICKERCTRL=no
7747   DEFAULT_wxUSE_COMBOBOX=no
7748   DEFAULT_wxUSE_DATEPICKCTRL=no
7749   DEFAULT_wxUSE_DISPLAY=no
7750   DEFAULT_wxUSE_DIRPICKERCTRL=no
7751   DEFAULT_wxUSE_FILEPICKERCTRL=no
7752   DEFAULT_wxUSE_FONTPICKERCTRL=no
7753   DEFAULT_wxUSE_GAUGE=no
7754   DEFAULT_wxUSE_GRID=no
7755   DEFAULT_wxUSE_HYPERLINKCTRL=no
7756   DEFAULT_wxUSE_DATAVIEWCTRL=no
7757   DEFAULT_wxUSE_IMAGLIST=no
7758   DEFAULT_wxUSE_LISTBOOK=no
7759   DEFAULT_wxUSE_LISTBOX=no
7760   DEFAULT_wxUSE_LISTCTRL=no
7761   DEFAULT_wxUSE_NOTEBOOK=no
7762   DEFAULT_wxUSE_RADIOBOX=no
7763   DEFAULT_wxUSE_RADIOBTN=no
7764   DEFAULT_wxUSE_SASH=no
7765   DEFAULT_wxUSE_SCROLLBAR=no
7766   DEFAULT_wxUSE_SLIDER=no
7767   DEFAULT_wxUSE_SPINBTN=no
7768   DEFAULT_wxUSE_SPINCTRL=no
7769   DEFAULT_wxUSE_SPLITTER=no
7770   DEFAULT_wxUSE_STATBMP=no
7771   DEFAULT_wxUSE_STATBOX=no
7772   DEFAULT_wxUSE_STATLINE=no
7773   DEFAULT_wxUSE_STATUSBAR=no
7774   DEFAULT_wxUSE_TAB_DIALOG=no
7775   DEFAULT_wxUSE_TOGGLEBTN=no
7776   DEFAULT_wxUSE_TOOLBAR=no
7777   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7778   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7779   DEFAULT_wxUSE_TOOLTIPS=no
7780   DEFAULT_wxUSE_TREEBOOK=no
7781   DEFAULT_wxUSE_TOOLBOOK=no
7782   DEFAULT_wxUSE_TREECTRL=no
7783   DEFAULT_wxUSE_POPUPWIN=no
7784   DEFAULT_wxUSE_TIPWINDOW=no
7785 fi
7786
7787
7788           enablestring=
7789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7790 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7791           no_cache=0
7792           # Check whether --enable-accel or --disable-accel was given.
7793 if test "${enable_accel+set}" = set; then
7794   enableval="$enable_accel"
7795
7796                           if test "$enableval" = yes; then
7797                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7798                           else
7799                             ac_cv_use_accel='wxUSE_ACCEL=no'
7800                           fi
7801
7802 else
7803
7804                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7805                           if test "x$LINE" != x ; then
7806                             eval "DEFAULT_$LINE"
7807                           else
7808                             no_cache=1
7809                           fi
7810
7811                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7812
7813 fi;
7814
7815           eval "$ac_cv_use_accel"
7816           if test "$no_cache" != 1; then
7817             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7818           fi
7819
7820           if test "$wxUSE_ACCEL" = yes; then
7821             echo "$as_me:$LINENO: result: yes" >&5
7822 echo "${ECHO_T}yes" >&6
7823           else
7824             echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7826           fi
7827
7828
7829           enablestring=
7830           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7831 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7832           no_cache=0
7833           # Check whether --enable-button or --disable-button was given.
7834 if test "${enable_button+set}" = set; then
7835   enableval="$enable_button"
7836
7837                           if test "$enableval" = yes; then
7838                             ac_cv_use_button='wxUSE_BUTTON=yes'
7839                           else
7840                             ac_cv_use_button='wxUSE_BUTTON=no'
7841                           fi
7842
7843 else
7844
7845                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7846                           if test "x$LINE" != x ; then
7847                             eval "DEFAULT_$LINE"
7848                           else
7849                             no_cache=1
7850                           fi
7851
7852                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7853
7854 fi;
7855
7856           eval "$ac_cv_use_button"
7857           if test "$no_cache" != 1; then
7858             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7859           fi
7860
7861           if test "$wxUSE_BUTTON" = yes; then
7862             echo "$as_me:$LINENO: result: yes" >&5
7863 echo "${ECHO_T}yes" >&6
7864           else
7865             echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6
7867           fi
7868
7869
7870           enablestring=
7871           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7872 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7873           no_cache=0
7874           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7875 if test "${enable_bmpbutton+set}" = set; then
7876   enableval="$enable_bmpbutton"
7877
7878                           if test "$enableval" = yes; then
7879                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7880                           else
7881                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7882                           fi
7883
7884 else
7885
7886                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7887                           if test "x$LINE" != x ; then
7888                             eval "DEFAULT_$LINE"
7889                           else
7890                             no_cache=1
7891                           fi
7892
7893                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7894
7895 fi;
7896
7897           eval "$ac_cv_use_bmpbutton"
7898           if test "$no_cache" != 1; then
7899             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7900           fi
7901
7902           if test "$wxUSE_BMPBUTTON" = yes; then
7903             echo "$as_me:$LINENO: result: yes" >&5
7904 echo "${ECHO_T}yes" >&6
7905           else
7906             echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6
7908           fi
7909
7910
7911           enablestring=
7912           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7913 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7914           no_cache=0
7915           # Check whether --enable-calendar or --disable-calendar was given.
7916 if test "${enable_calendar+set}" = set; then
7917   enableval="$enable_calendar"
7918
7919                           if test "$enableval" = yes; then
7920                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7921                           else
7922                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7923                           fi
7924
7925 else
7926
7927                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7928                           if test "x$LINE" != x ; then
7929                             eval "DEFAULT_$LINE"
7930                           else
7931                             no_cache=1
7932                           fi
7933
7934                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7935
7936 fi;
7937
7938           eval "$ac_cv_use_calendar"
7939           if test "$no_cache" != 1; then
7940             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7941           fi
7942
7943           if test "$wxUSE_CALCTRL" = yes; then
7944             echo "$as_me:$LINENO: result: yes" >&5
7945 echo "${ECHO_T}yes" >&6
7946           else
7947             echo "$as_me:$LINENO: result: no" >&5
7948 echo "${ECHO_T}no" >&6
7949           fi
7950
7951
7952           enablestring=
7953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7954 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7955           no_cache=0
7956           # Check whether --enable-caret or --disable-caret was given.
7957 if test "${enable_caret+set}" = set; then
7958   enableval="$enable_caret"
7959
7960                           if test "$enableval" = yes; then
7961                             ac_cv_use_caret='wxUSE_CARET=yes'
7962                           else
7963                             ac_cv_use_caret='wxUSE_CARET=no'
7964                           fi
7965
7966 else
7967
7968                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7969                           if test "x$LINE" != x ; then
7970                             eval "DEFAULT_$LINE"
7971                           else
7972                             no_cache=1
7973                           fi
7974
7975                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7976
7977 fi;
7978
7979           eval "$ac_cv_use_caret"
7980           if test "$no_cache" != 1; then
7981             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7982           fi
7983
7984           if test "$wxUSE_CARET" = yes; then
7985             echo "$as_me:$LINENO: result: yes" >&5
7986 echo "${ECHO_T}yes" >&6
7987           else
7988             echo "$as_me:$LINENO: result: no" >&5
7989 echo "${ECHO_T}no" >&6
7990           fi
7991
7992
7993           enablestring=
7994           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7995 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7996           no_cache=0
7997           # Check whether --enable-checkbox or --disable-checkbox was given.
7998 if test "${enable_checkbox+set}" = set; then
7999   enableval="$enable_checkbox"
8000
8001                           if test "$enableval" = yes; then
8002                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8003                           else
8004                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8005                           fi
8006
8007 else
8008
8009                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8010                           if test "x$LINE" != x ; then
8011                             eval "DEFAULT_$LINE"
8012                           else
8013                             no_cache=1
8014                           fi
8015
8016                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8017
8018 fi;
8019
8020           eval "$ac_cv_use_checkbox"
8021           if test "$no_cache" != 1; then
8022             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8023           fi
8024
8025           if test "$wxUSE_CHECKBOX" = yes; then
8026             echo "$as_me:$LINENO: result: yes" >&5
8027 echo "${ECHO_T}yes" >&6
8028           else
8029             echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8031           fi
8032
8033
8034           enablestring=
8035           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8036 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8037           no_cache=0
8038           # Check whether --enable-checklst or --disable-checklst was given.
8039 if test "${enable_checklst+set}" = set; then
8040   enableval="$enable_checklst"
8041
8042                           if test "$enableval" = yes; then
8043                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8044                           else
8045                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8046                           fi
8047
8048 else
8049
8050                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8051                           if test "x$LINE" != x ; then
8052                             eval "DEFAULT_$LINE"
8053                           else
8054                             no_cache=1
8055                           fi
8056
8057                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8058
8059 fi;
8060
8061           eval "$ac_cv_use_checklst"
8062           if test "$no_cache" != 1; then
8063             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8064           fi
8065
8066           if test "$wxUSE_CHECKLST" = yes; then
8067             echo "$as_me:$LINENO: result: yes" >&5
8068 echo "${ECHO_T}yes" >&6
8069           else
8070             echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6
8072           fi
8073
8074
8075           enablestring=
8076           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8077 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8078           no_cache=0
8079           # Check whether --enable-choice or --disable-choice was given.
8080 if test "${enable_choice+set}" = set; then
8081   enableval="$enable_choice"
8082
8083                           if test "$enableval" = yes; then
8084                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8085                           else
8086                             ac_cv_use_choice='wxUSE_CHOICE=no'
8087                           fi
8088
8089 else
8090
8091                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8092                           if test "x$LINE" != x ; then
8093                             eval "DEFAULT_$LINE"
8094                           else
8095                             no_cache=1
8096                           fi
8097
8098                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8099
8100 fi;
8101
8102           eval "$ac_cv_use_choice"
8103           if test "$no_cache" != 1; then
8104             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8105           fi
8106
8107           if test "$wxUSE_CHOICE" = yes; then
8108             echo "$as_me:$LINENO: result: yes" >&5
8109 echo "${ECHO_T}yes" >&6
8110           else
8111             echo "$as_me:$LINENO: result: no" >&5
8112 echo "${ECHO_T}no" >&6
8113           fi
8114
8115
8116           enablestring=
8117           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8118 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8119           no_cache=0
8120           # Check whether --enable-choicebook or --disable-choicebook was given.
8121 if test "${enable_choicebook+set}" = set; then
8122   enableval="$enable_choicebook"
8123
8124                           if test "$enableval" = yes; then
8125                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8126                           else
8127                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8128                           fi
8129
8130 else
8131
8132                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8133                           if test "x$LINE" != x ; then
8134                             eval "DEFAULT_$LINE"
8135                           else
8136                             no_cache=1
8137                           fi
8138
8139                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8140
8141 fi;
8142
8143           eval "$ac_cv_use_choicebook"
8144           if test "$no_cache" != 1; then
8145             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8146           fi
8147
8148           if test "$wxUSE_CHOICEBOOK" = yes; then
8149             echo "$as_me:$LINENO: result: yes" >&5
8150 echo "${ECHO_T}yes" >&6
8151           else
8152             echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8154           fi
8155
8156
8157           enablestring=
8158           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8159 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8160           no_cache=0
8161           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8162 if test "${enable_colourpicker+set}" = set; then
8163   enableval="$enable_colourpicker"
8164
8165                           if test "$enableval" = yes; then
8166                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8167                           else
8168                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8169                           fi
8170
8171 else
8172
8173                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8174                           if test "x$LINE" != x ; then
8175                             eval "DEFAULT_$LINE"
8176                           else
8177                             no_cache=1
8178                           fi
8179
8180                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8181
8182 fi;
8183
8184           eval "$ac_cv_use_colourpicker"
8185           if test "$no_cache" != 1; then
8186             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8187           fi
8188
8189           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8190             echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8192           else
8193             echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6
8195           fi
8196
8197
8198           enablestring=
8199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8200 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8201           no_cache=0
8202           # Check whether --enable-combobox or --disable-combobox was given.
8203 if test "${enable_combobox+set}" = set; then
8204   enableval="$enable_combobox"
8205
8206                           if test "$enableval" = yes; then
8207                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8208                           else
8209                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8210                           fi
8211
8212 else
8213
8214                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8215                           if test "x$LINE" != x ; then
8216                             eval "DEFAULT_$LINE"
8217                           else
8218                             no_cache=1
8219                           fi
8220
8221                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8222
8223 fi;
8224
8225           eval "$ac_cv_use_combobox"
8226           if test "$no_cache" != 1; then
8227             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8228           fi
8229
8230           if test "$wxUSE_COMBOBOX" = yes; then
8231             echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233           else
8234             echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236           fi
8237
8238
8239           enablestring=
8240           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8241 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8242           no_cache=0
8243           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8244 if test "${enable_comboctrl+set}" = set; then
8245   enableval="$enable_comboctrl"
8246
8247                           if test "$enableval" = yes; then
8248                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8249                           else
8250                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8251                           fi
8252
8253 else
8254
8255                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8256                           if test "x$LINE" != x ; then
8257                             eval "DEFAULT_$LINE"
8258                           else
8259                             no_cache=1
8260                           fi
8261
8262                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8263
8264 fi;
8265
8266           eval "$ac_cv_use_comboctrl"
8267           if test "$no_cache" != 1; then
8268             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8269           fi
8270
8271           if test "$wxUSE_COMBOCTRL" = yes; then
8272             echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274           else
8275             echo "$as_me:$LINENO: result: no" >&5
8276 echo "${ECHO_T}no" >&6
8277           fi
8278
8279
8280           enablestring=
8281           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8282 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8283           no_cache=0
8284           # Check whether --enable-datepick or --disable-datepick was given.
8285 if test "${enable_datepick+set}" = set; then
8286   enableval="$enable_datepick"
8287
8288                           if test "$enableval" = yes; then
8289                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8290                           else
8291                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8292                           fi
8293
8294 else
8295
8296                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8297                           if test "x$LINE" != x ; then
8298                             eval "DEFAULT_$LINE"
8299                           else
8300                             no_cache=1
8301                           fi
8302
8303                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8304
8305 fi;
8306
8307           eval "$ac_cv_use_datepick"
8308           if test "$no_cache" != 1; then
8309             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8310           fi
8311
8312           if test "$wxUSE_DATEPICKCTRL" = yes; then
8313             echo "$as_me:$LINENO: result: yes" >&5
8314 echo "${ECHO_T}yes" >&6
8315           else
8316             echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6
8318           fi
8319
8320
8321           enablestring=
8322           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8323 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8324           no_cache=0
8325           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8326 if test "${enable_dirpicker+set}" = set; then
8327   enableval="$enable_dirpicker"
8328
8329                           if test "$enableval" = yes; then
8330                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8331                           else
8332                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8333                           fi
8334
8335 else
8336
8337                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8338                           if test "x$LINE" != x ; then
8339                             eval "DEFAULT_$LINE"
8340                           else
8341                             no_cache=1
8342                           fi
8343
8344                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8345
8346 fi;
8347
8348           eval "$ac_cv_use_dirpicker"
8349           if test "$no_cache" != 1; then
8350             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8351           fi
8352
8353           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8354             echo "$as_me:$LINENO: result: yes" >&5
8355 echo "${ECHO_T}yes" >&6
8356           else
8357             echo "$as_me:$LINENO: result: no" >&5
8358 echo "${ECHO_T}no" >&6
8359           fi
8360
8361
8362           enablestring=
8363           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8364 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8365           no_cache=0
8366           # Check whether --enable-display or --disable-display was given.
8367 if test "${enable_display+set}" = set; then
8368   enableval="$enable_display"
8369
8370                           if test "$enableval" = yes; then
8371                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8372                           else
8373                             ac_cv_use_display='wxUSE_DISPLAY=no'
8374                           fi
8375
8376 else
8377
8378                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8379                           if test "x$LINE" != x ; then
8380                             eval "DEFAULT_$LINE"
8381                           else
8382                             no_cache=1
8383                           fi
8384
8385                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8386
8387 fi;
8388
8389           eval "$ac_cv_use_display"
8390           if test "$no_cache" != 1; then
8391             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8392           fi
8393
8394           if test "$wxUSE_DISPLAY" = yes; then
8395             echo "$as_me:$LINENO: result: yes" >&5
8396 echo "${ECHO_T}yes" >&6
8397           else
8398             echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6
8400           fi
8401
8402
8403           enablestring=
8404           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8405 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8406           no_cache=0
8407           # Check whether --enable-filepicker or --disable-filepicker was given.
8408 if test "${enable_filepicker+set}" = set; then
8409   enableval="$enable_filepicker"
8410
8411                           if test "$enableval" = yes; then
8412                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8413                           else
8414                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8415                           fi
8416
8417 else
8418
8419                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8420                           if test "x$LINE" != x ; then
8421                             eval "DEFAULT_$LINE"
8422                           else
8423                             no_cache=1
8424                           fi
8425
8426                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8427
8428 fi;
8429
8430           eval "$ac_cv_use_filepicker"
8431           if test "$no_cache" != 1; then
8432             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8433           fi
8434
8435           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8436             echo "$as_me:$LINENO: result: yes" >&5
8437 echo "${ECHO_T}yes" >&6
8438           else
8439             echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6
8441           fi
8442
8443
8444           enablestring=
8445           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8446 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8447           no_cache=0
8448           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8449 if test "${enable_fontpicker+set}" = set; then
8450   enableval="$enable_fontpicker"
8451
8452                           if test "$enableval" = yes; then
8453                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8454                           else
8455                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8456                           fi
8457
8458 else
8459
8460                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8461                           if test "x$LINE" != x ; then
8462                             eval "DEFAULT_$LINE"
8463                           else
8464                             no_cache=1
8465                           fi
8466
8467                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8468
8469 fi;
8470
8471           eval "$ac_cv_use_fontpicker"
8472           if test "$no_cache" != 1; then
8473             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8474           fi
8475
8476           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8477             echo "$as_me:$LINENO: result: yes" >&5
8478 echo "${ECHO_T}yes" >&6
8479           else
8480             echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8482           fi
8483
8484
8485           enablestring=
8486           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8487 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8488           no_cache=0
8489           # Check whether --enable-gauge or --disable-gauge was given.
8490 if test "${enable_gauge+set}" = set; then
8491   enableval="$enable_gauge"
8492
8493                           if test "$enableval" = yes; then
8494                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8495                           else
8496                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8497                           fi
8498
8499 else
8500
8501                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8502                           if test "x$LINE" != x ; then
8503                             eval "DEFAULT_$LINE"
8504                           else
8505                             no_cache=1
8506                           fi
8507
8508                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8509
8510 fi;
8511
8512           eval "$ac_cv_use_gauge"
8513           if test "$no_cache" != 1; then
8514             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8515           fi
8516
8517           if test "$wxUSE_GAUGE" = yes; then
8518             echo "$as_me:$LINENO: result: yes" >&5
8519 echo "${ECHO_T}yes" >&6
8520           else
8521             echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523           fi
8524
8525
8526           enablestring=
8527           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8528 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8529           no_cache=0
8530           # Check whether --enable-grid or --disable-grid was given.
8531 if test "${enable_grid+set}" = set; then
8532   enableval="$enable_grid"
8533
8534                           if test "$enableval" = yes; then
8535                             ac_cv_use_grid='wxUSE_GRID=yes'
8536                           else
8537                             ac_cv_use_grid='wxUSE_GRID=no'
8538                           fi
8539
8540 else
8541
8542                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8543                           if test "x$LINE" != x ; then
8544                             eval "DEFAULT_$LINE"
8545                           else
8546                             no_cache=1
8547                           fi
8548
8549                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8550
8551 fi;
8552
8553           eval "$ac_cv_use_grid"
8554           if test "$no_cache" != 1; then
8555             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8556           fi
8557
8558           if test "$wxUSE_GRID" = yes; then
8559             echo "$as_me:$LINENO: result: yes" >&5
8560 echo "${ECHO_T}yes" >&6
8561           else
8562             echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6
8564           fi
8565
8566
8567           enablestring=
8568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8569 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8570           no_cache=0
8571           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8572 if test "${enable_dataviewctrl+set}" = set; then
8573   enableval="$enable_dataviewctrl"
8574
8575                           if test "$enableval" = yes; then
8576                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8577                           else
8578                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8579                           fi
8580
8581 else
8582
8583                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8584                           if test "x$LINE" != x ; then
8585                             eval "DEFAULT_$LINE"
8586                           else
8587                             no_cache=1
8588                           fi
8589
8590                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8591
8592 fi;
8593
8594           eval "$ac_cv_use_dataviewctrl"
8595           if test "$no_cache" != 1; then
8596             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8597           fi
8598
8599           if test "$wxUSE_DATAVIEWCTRL" = yes; then
8600             echo "$as_me:$LINENO: result: yes" >&5
8601 echo "${ECHO_T}yes" >&6
8602           else
8603             echo "$as_me:$LINENO: result: no" >&5
8604 echo "${ECHO_T}no" >&6
8605           fi
8606
8607
8608           enablestring=
8609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8610 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8611           no_cache=0
8612           # Check whether --enable-hyperlink or --disable-hyperlink was given.
8613 if test "${enable_hyperlink+set}" = set; then
8614   enableval="$enable_hyperlink"
8615
8616                           if test "$enableval" = yes; then
8617                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8618                           else
8619                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8620                           fi
8621
8622 else
8623
8624                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8625                           if test "x$LINE" != x ; then
8626                             eval "DEFAULT_$LINE"
8627                           else
8628                             no_cache=1
8629                           fi
8630
8631                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8632
8633 fi;
8634
8635           eval "$ac_cv_use_hyperlink"
8636           if test "$no_cache" != 1; then
8637             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8638           fi
8639
8640           if test "$wxUSE_HYPERLINKCTRL" = yes; then
8641             echo "$as_me:$LINENO: result: yes" >&5
8642 echo "${ECHO_T}yes" >&6
8643           else
8644             echo "$as_me:$LINENO: result: no" >&5
8645 echo "${ECHO_T}no" >&6
8646           fi
8647
8648
8649           enablestring=
8650           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8651 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8652           no_cache=0
8653           # Check whether --enable-imaglist or --disable-imaglist was given.
8654 if test "${enable_imaglist+set}" = set; then
8655   enableval="$enable_imaglist"
8656
8657                           if test "$enableval" = yes; then
8658                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8659                           else
8660                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8661                           fi
8662
8663 else
8664
8665                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8666                           if test "x$LINE" != x ; then
8667                             eval "DEFAULT_$LINE"
8668                           else
8669                             no_cache=1
8670                           fi
8671
8672                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8673
8674 fi;
8675
8676           eval "$ac_cv_use_imaglist"
8677           if test "$no_cache" != 1; then
8678             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8679           fi
8680
8681           if test "$wxUSE_IMAGLIST" = yes; then
8682             echo "$as_me:$LINENO: result: yes" >&5
8683 echo "${ECHO_T}yes" >&6
8684           else
8685             echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8687           fi
8688
8689
8690           enablestring=
8691           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8692 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8693           no_cache=0
8694           # Check whether --enable-listbook or --disable-listbook was given.
8695 if test "${enable_listbook+set}" = set; then
8696   enableval="$enable_listbook"
8697
8698                           if test "$enableval" = yes; then
8699                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8700                           else
8701                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8702                           fi
8703
8704 else
8705
8706                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8707                           if test "x$LINE" != x ; then
8708                             eval "DEFAULT_$LINE"
8709                           else
8710                             no_cache=1
8711                           fi
8712
8713                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8714
8715 fi;
8716
8717           eval "$ac_cv_use_listbook"
8718           if test "$no_cache" != 1; then
8719             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8720           fi
8721
8722           if test "$wxUSE_LISTBOOK" = yes; then
8723             echo "$as_me:$LINENO: result: yes" >&5
8724 echo "${ECHO_T}yes" >&6
8725           else
8726             echo "$as_me:$LINENO: result: no" >&5
8727 echo "${ECHO_T}no" >&6
8728           fi
8729
8730
8731           enablestring=
8732           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8733 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8734           no_cache=0
8735           # Check whether --enable-listbox or --disable-listbox was given.
8736 if test "${enable_listbox+set}" = set; then
8737   enableval="$enable_listbox"
8738
8739                           if test "$enableval" = yes; then
8740                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8741                           else
8742                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8743                           fi
8744
8745 else
8746
8747                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8748                           if test "x$LINE" != x ; then
8749                             eval "DEFAULT_$LINE"
8750                           else
8751                             no_cache=1
8752                           fi
8753
8754                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8755
8756 fi;
8757
8758           eval "$ac_cv_use_listbox"
8759           if test "$no_cache" != 1; then
8760             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8761           fi
8762
8763           if test "$wxUSE_LISTBOX" = yes; then
8764             echo "$as_me:$LINENO: result: yes" >&5
8765 echo "${ECHO_T}yes" >&6
8766           else
8767             echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8769           fi
8770
8771
8772           enablestring=
8773           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8774 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8775           no_cache=0
8776           # Check whether --enable-listctrl or --disable-listctrl was given.
8777 if test "${enable_listctrl+set}" = set; then
8778   enableval="$enable_listctrl"
8779
8780                           if test "$enableval" = yes; then
8781                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8782                           else
8783                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8784                           fi
8785
8786 else
8787
8788                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8789                           if test "x$LINE" != x ; then
8790                             eval "DEFAULT_$LINE"
8791                           else
8792                             no_cache=1
8793                           fi
8794
8795                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8796
8797 fi;
8798
8799           eval "$ac_cv_use_listctrl"
8800           if test "$no_cache" != 1; then
8801             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8802           fi
8803
8804           if test "$wxUSE_LISTCTRL" = yes; then
8805             echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6
8807           else
8808             echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6
8810           fi
8811
8812
8813           enablestring=
8814           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8815 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8816           no_cache=0
8817           # Check whether --enable-notebook or --disable-notebook was given.
8818 if test "${enable_notebook+set}" = set; then
8819   enableval="$enable_notebook"
8820
8821                           if test "$enableval" = yes; then
8822                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8823                           else
8824                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8825                           fi
8826
8827 else
8828
8829                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8830                           if test "x$LINE" != x ; then
8831                             eval "DEFAULT_$LINE"
8832                           else
8833                             no_cache=1
8834                           fi
8835
8836                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8837
8838 fi;
8839
8840           eval "$ac_cv_use_notebook"
8841           if test "$no_cache" != 1; then
8842             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8843           fi
8844
8845           if test "$wxUSE_NOTEBOOK" = yes; then
8846             echo "$as_me:$LINENO: result: yes" >&5
8847 echo "${ECHO_T}yes" >&6
8848           else
8849             echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8851           fi
8852
8853
8854           enablestring=
8855           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8856 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
8857           no_cache=0
8858           # Check whether --enable-odcombobox or --disable-odcombobox was given.
8859 if test "${enable_odcombobox+set}" = set; then
8860   enableval="$enable_odcombobox"
8861
8862                           if test "$enableval" = yes; then
8863                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
8864                           else
8865                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
8866                           fi
8867
8868 else
8869
8870                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
8871                           if test "x$LINE" != x ; then
8872                             eval "DEFAULT_$LINE"
8873                           else
8874                             no_cache=1
8875                           fi
8876
8877                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
8878
8879 fi;
8880
8881           eval "$ac_cv_use_odcombobox"
8882           if test "$no_cache" != 1; then
8883             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
8884           fi
8885
8886           if test "$wxUSE_ODCOMBOBOX" = yes; then
8887             echo "$as_me:$LINENO: result: yes" >&5
8888 echo "${ECHO_T}yes" >&6
8889           else
8890             echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6
8892           fi
8893
8894
8895           enablestring=
8896           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8897 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8898           no_cache=0
8899           # Check whether --enable-radiobox or --disable-radiobox was given.
8900 if test "${enable_radiobox+set}" = set; then
8901   enableval="$enable_radiobox"
8902
8903                           if test "$enableval" = yes; then
8904                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8905                           else
8906                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8907                           fi
8908
8909 else
8910
8911                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8912                           if test "x$LINE" != x ; then
8913                             eval "DEFAULT_$LINE"
8914                           else
8915                             no_cache=1
8916                           fi
8917
8918                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8919
8920 fi;
8921
8922           eval "$ac_cv_use_radiobox"
8923           if test "$no_cache" != 1; then
8924             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8925           fi
8926
8927           if test "$wxUSE_RADIOBOX" = yes; then
8928             echo "$as_me:$LINENO: result: yes" >&5
8929 echo "${ECHO_T}yes" >&6
8930           else
8931             echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6
8933           fi
8934
8935
8936           enablestring=
8937           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8938 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8939           no_cache=0
8940           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8941 if test "${enable_radiobtn+set}" = set; then
8942   enableval="$enable_radiobtn"
8943
8944                           if test "$enableval" = yes; then
8945                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8946                           else
8947                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8948                           fi
8949
8950 else
8951
8952                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8953                           if test "x$LINE" != x ; then
8954                             eval "DEFAULT_$LINE"
8955                           else
8956                             no_cache=1
8957                           fi
8958
8959                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8960
8961 fi;
8962
8963           eval "$ac_cv_use_radiobtn"
8964           if test "$no_cache" != 1; then
8965             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8966           fi
8967
8968           if test "$wxUSE_RADIOBTN" = yes; then
8969             echo "$as_me:$LINENO: result: yes" >&5
8970 echo "${ECHO_T}yes" >&6
8971           else
8972             echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8974           fi
8975
8976
8977           enablestring=
8978           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8979 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8980           no_cache=0
8981           # Check whether --enable-sash or --disable-sash was given.
8982 if test "${enable_sash+set}" = set; then
8983   enableval="$enable_sash"
8984
8985                           if test "$enableval" = yes; then
8986                             ac_cv_use_sash='wxUSE_SASH=yes'
8987                           else
8988                             ac_cv_use_sash='wxUSE_SASH=no'
8989                           fi
8990
8991 else
8992
8993                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8994                           if test "x$LINE" != x ; then
8995                             eval "DEFAULT_$LINE"
8996                           else
8997                             no_cache=1
8998                           fi
8999
9000                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9001
9002 fi;
9003
9004           eval "$ac_cv_use_sash"
9005           if test "$no_cache" != 1; then
9006             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9007           fi
9008
9009           if test "$wxUSE_SASH" = yes; then
9010             echo "$as_me:$LINENO: result: yes" >&5
9011 echo "${ECHO_T}yes" >&6
9012           else
9013             echo "$as_me:$LINENO: result: no" >&5
9014 echo "${ECHO_T}no" >&6
9015           fi
9016
9017
9018           enablestring=
9019           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9020 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9021           no_cache=0
9022           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9023 if test "${enable_scrollbar+set}" = set; then
9024   enableval="$enable_scrollbar"
9025
9026                           if test "$enableval" = yes; then
9027                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9028                           else
9029                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9030                           fi
9031
9032 else
9033
9034                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9035                           if test "x$LINE" != x ; then
9036                             eval "DEFAULT_$LINE"
9037                           else
9038                             no_cache=1
9039                           fi
9040
9041                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9042
9043 fi;
9044
9045           eval "$ac_cv_use_scrollbar"
9046           if test "$no_cache" != 1; then
9047             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9048           fi
9049
9050           if test "$wxUSE_SCROLLBAR" = yes; then
9051             echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6
9053           else
9054             echo "$as_me:$LINENO: result: no" >&5
9055 echo "${ECHO_T}no" >&6
9056           fi
9057
9058
9059           enablestring=
9060           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9061 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9062           no_cache=0
9063           # Check whether --enable-slider or --disable-slider was given.
9064 if test "${enable_slider+set}" = set; then
9065   enableval="$enable_slider"
9066
9067                           if test "$enableval" = yes; then
9068                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9069                           else
9070                             ac_cv_use_slider='wxUSE_SLIDER=no'
9071                           fi
9072
9073 else
9074
9075                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9076                           if test "x$LINE" != x ; then
9077                             eval "DEFAULT_$LINE"
9078                           else
9079                             no_cache=1
9080                           fi
9081
9082                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9083
9084 fi;
9085
9086           eval "$ac_cv_use_slider"
9087           if test "$no_cache" != 1; then
9088             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9089           fi
9090
9091           if test "$wxUSE_SLIDER" = yes; then
9092             echo "$as_me:$LINENO: result: yes" >&5
9093 echo "${ECHO_T}yes" >&6
9094           else
9095             echo "$as_me:$LINENO: result: no" >&5
9096 echo "${ECHO_T}no" >&6
9097           fi
9098
9099
9100           enablestring=
9101           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9102 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9103           no_cache=0
9104           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9105 if test "${enable_spinbtn+set}" = set; then
9106   enableval="$enable_spinbtn"
9107
9108                           if test "$enableval" = yes; then
9109                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9110                           else
9111                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9112                           fi
9113
9114 else
9115
9116                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9117                           if test "x$LINE" != x ; then
9118                             eval "DEFAULT_$LINE"
9119                           else
9120                             no_cache=1
9121                           fi
9122
9123                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9124
9125 fi;
9126
9127           eval "$ac_cv_use_spinbtn"
9128           if test "$no_cache" != 1; then
9129             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9130           fi
9131
9132           if test "$wxUSE_SPINBTN" = yes; then
9133             echo "$as_me:$LINENO: result: yes" >&5
9134 echo "${ECHO_T}yes" >&6
9135           else
9136             echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9138           fi
9139
9140
9141           enablestring=
9142           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9143 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9144           no_cache=0
9145           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9146 if test "${enable_spinctrl+set}" = set; then
9147   enableval="$enable_spinctrl"
9148
9149                           if test "$enableval" = yes; then
9150                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9151                           else
9152                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9153                           fi
9154
9155 else
9156
9157                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9158                           if test "x$LINE" != x ; then
9159                             eval "DEFAULT_$LINE"
9160                           else
9161                             no_cache=1
9162                           fi
9163
9164                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9165
9166 fi;
9167
9168           eval "$ac_cv_use_spinctrl"
9169           if test "$no_cache" != 1; then
9170             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9171           fi
9172
9173           if test "$wxUSE_SPINCTRL" = yes; then
9174             echo "$as_me:$LINENO: result: yes" >&5
9175 echo "${ECHO_T}yes" >&6
9176           else
9177             echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9179           fi
9180
9181
9182           enablestring=
9183           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9184 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9185           no_cache=0
9186           # Check whether --enable-splitter or --disable-splitter was given.
9187 if test "${enable_splitter+set}" = set; then
9188   enableval="$enable_splitter"
9189
9190                           if test "$enableval" = yes; then
9191                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9192                           else
9193                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9194                           fi
9195
9196 else
9197
9198                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9199                           if test "x$LINE" != x ; then
9200                             eval "DEFAULT_$LINE"
9201                           else
9202                             no_cache=1
9203                           fi
9204
9205                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9206
9207 fi;
9208
9209           eval "$ac_cv_use_splitter"
9210           if test "$no_cache" != 1; then
9211             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9212           fi
9213
9214           if test "$wxUSE_SPLITTER" = yes; then
9215             echo "$as_me:$LINENO: result: yes" >&5
9216 echo "${ECHO_T}yes" >&6
9217           else
9218             echo "$as_me:$LINENO: result: no" >&5
9219 echo "${ECHO_T}no" >&6
9220           fi
9221
9222
9223           enablestring=
9224           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9225 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9226           no_cache=0
9227           # Check whether --enable-statbmp or --disable-statbmp was given.
9228 if test "${enable_statbmp+set}" = set; then
9229   enableval="$enable_statbmp"
9230
9231                           if test "$enableval" = yes; then
9232                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9233                           else
9234                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9235                           fi
9236
9237 else
9238
9239                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9240                           if test "x$LINE" != x ; then
9241                             eval "DEFAULT_$LINE"
9242                           else
9243                             no_cache=1
9244                           fi
9245
9246                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9247
9248 fi;
9249
9250           eval "$ac_cv_use_statbmp"
9251           if test "$no_cache" != 1; then
9252             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9253           fi
9254
9255           if test "$wxUSE_STATBMP" = yes; then
9256             echo "$as_me:$LINENO: result: yes" >&5
9257 echo "${ECHO_T}yes" >&6
9258           else
9259             echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6
9261           fi
9262
9263
9264           enablestring=
9265           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9266 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9267           no_cache=0
9268           # Check whether --enable-statbox or --disable-statbox was given.
9269 if test "${enable_statbox+set}" = set; then
9270   enableval="$enable_statbox"
9271
9272                           if test "$enableval" = yes; then
9273                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9274                           else
9275                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9276                           fi
9277
9278 else
9279
9280                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9281                           if test "x$LINE" != x ; then
9282                             eval "DEFAULT_$LINE"
9283                           else
9284                             no_cache=1
9285                           fi
9286
9287                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9288
9289 fi;
9290
9291           eval "$ac_cv_use_statbox"
9292           if test "$no_cache" != 1; then
9293             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9294           fi
9295
9296           if test "$wxUSE_STATBOX" = yes; then
9297             echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6
9299           else
9300             echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6
9302           fi
9303
9304
9305           enablestring=
9306           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9307 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9308           no_cache=0
9309           # Check whether --enable-statline or --disable-statline was given.
9310 if test "${enable_statline+set}" = set; then
9311   enableval="$enable_statline"
9312
9313                           if test "$enableval" = yes; then
9314                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9315                           else
9316                             ac_cv_use_statline='wxUSE_STATLINE=no'
9317                           fi
9318
9319 else
9320
9321                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9322                           if test "x$LINE" != x ; then
9323                             eval "DEFAULT_$LINE"
9324                           else
9325                             no_cache=1
9326                           fi
9327
9328                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9329
9330 fi;
9331
9332           eval "$ac_cv_use_statline"
9333           if test "$no_cache" != 1; then
9334             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9335           fi
9336
9337           if test "$wxUSE_STATLINE" = yes; then
9338             echo "$as_me:$LINENO: result: yes" >&5
9339 echo "${ECHO_T}yes" >&6
9340           else
9341             echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9343           fi
9344
9345
9346           enablestring=
9347           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9348 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9349           no_cache=0
9350           # Check whether --enable-stattext or --disable-stattext was given.
9351 if test "${enable_stattext+set}" = set; then
9352   enableval="$enable_stattext"
9353
9354                           if test "$enableval" = yes; then
9355                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9356                           else
9357                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9358                           fi
9359
9360 else
9361
9362                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9363                           if test "x$LINE" != x ; then
9364                             eval "DEFAULT_$LINE"
9365                           else
9366                             no_cache=1
9367                           fi
9368
9369                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9370
9371 fi;
9372
9373           eval "$ac_cv_use_stattext"
9374           if test "$no_cache" != 1; then
9375             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9376           fi
9377
9378           if test "$wxUSE_STATTEXT" = yes; then
9379             echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9381           else
9382             echo "$as_me:$LINENO: result: no" >&5
9383 echo "${ECHO_T}no" >&6
9384           fi
9385
9386
9387           enablestring=
9388           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9389 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9390           no_cache=0
9391           # Check whether --enable-statusbar or --disable-statusbar was given.
9392 if test "${enable_statusbar+set}" = set; then
9393   enableval="$enable_statusbar"
9394
9395                           if test "$enableval" = yes; then
9396                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9397                           else
9398                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9399                           fi
9400
9401 else
9402
9403                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9404                           if test "x$LINE" != x ; then
9405                             eval "DEFAULT_$LINE"
9406                           else
9407                             no_cache=1
9408                           fi
9409
9410                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9411
9412 fi;
9413
9414           eval "$ac_cv_use_statusbar"
9415           if test "$no_cache" != 1; then
9416             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9417           fi
9418
9419           if test "$wxUSE_STATUSBAR" = yes; then
9420             echo "$as_me:$LINENO: result: yes" >&5
9421 echo "${ECHO_T}yes" >&6
9422           else
9423             echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6
9425           fi
9426
9427
9428           enablestring=
9429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9430 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9431           no_cache=0
9432           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9433 if test "${enable_tabdialog+set}" = set; then
9434   enableval="$enable_tabdialog"
9435
9436                           if test "$enableval" = yes; then
9437                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9438                           else
9439                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9440                           fi
9441
9442 else
9443
9444                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9445                           if test "x$LINE" != x ; then
9446                             eval "DEFAULT_$LINE"
9447                           else
9448                             no_cache=1
9449                           fi
9450
9451                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9452
9453 fi;
9454
9455           eval "$ac_cv_use_tabdialog"
9456           if test "$no_cache" != 1; then
9457             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9458           fi
9459
9460           if test "$wxUSE_TAB_DIALOG" = yes; then
9461             echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6
9463           else
9464             echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6
9466           fi
9467
9468
9469           enablestring=
9470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9471 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9472           no_cache=0
9473           # Check whether --enable-textctrl or --disable-textctrl was given.
9474 if test "${enable_textctrl+set}" = set; then
9475   enableval="$enable_textctrl"
9476
9477                           if test "$enableval" = yes; then
9478                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9479                           else
9480                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9481                           fi
9482
9483 else
9484
9485                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9486                           if test "x$LINE" != x ; then
9487                             eval "DEFAULT_$LINE"
9488                           else
9489                             no_cache=1
9490                           fi
9491
9492                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9493
9494 fi;
9495
9496           eval "$ac_cv_use_textctrl"
9497           if test "$no_cache" != 1; then
9498             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9499           fi
9500
9501           if test "$wxUSE_TEXTCTRL" = yes; then
9502             echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504           else
9505             echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6
9507           fi
9508
9509
9510           enablestring=
9511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9512 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9513           no_cache=0
9514           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9515 if test "${enable_togglebtn+set}" = set; then
9516   enableval="$enable_togglebtn"
9517
9518                           if test "$enableval" = yes; then
9519                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9520                           else
9521                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9522                           fi
9523
9524 else
9525
9526                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9527                           if test "x$LINE" != x ; then
9528                             eval "DEFAULT_$LINE"
9529                           else
9530                             no_cache=1
9531                           fi
9532
9533                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9534
9535 fi;
9536
9537           eval "$ac_cv_use_togglebtn"
9538           if test "$no_cache" != 1; then
9539             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9540           fi
9541
9542           if test "$wxUSE_TOGGLEBTN" = yes; then
9543             echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6
9545           else
9546             echo "$as_me:$LINENO: result: no" >&5
9547 echo "${ECHO_T}no" >&6
9548           fi
9549
9550
9551           enablestring=
9552           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9553 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9554           no_cache=0
9555           # Check whether --enable-toolbar or --disable-toolbar was given.
9556 if test "${enable_toolbar+set}" = set; then
9557   enableval="$enable_toolbar"
9558
9559                           if test "$enableval" = yes; then
9560                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9561                           else
9562                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9563                           fi
9564
9565 else
9566
9567                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9568                           if test "x$LINE" != x ; then
9569                             eval "DEFAULT_$LINE"
9570                           else
9571                             no_cache=1
9572                           fi
9573
9574                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9575
9576 fi;
9577
9578           eval "$ac_cv_use_toolbar"
9579           if test "$no_cache" != 1; then
9580             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9581           fi
9582
9583           if test "$wxUSE_TOOLBAR" = yes; then
9584             echo "$as_me:$LINENO: result: yes" >&5
9585 echo "${ECHO_T}yes" >&6
9586           else
9587             echo "$as_me:$LINENO: result: no" >&5
9588 echo "${ECHO_T}no" >&6
9589           fi
9590
9591
9592           enablestring=
9593           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9594 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9595           no_cache=0
9596           # Check whether --enable-tbarnative or --disable-tbarnative was given.
9597 if test "${enable_tbarnative+set}" = set; then
9598   enableval="$enable_tbarnative"
9599
9600                           if test "$enableval" = yes; then
9601                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9602                           else
9603                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9604                           fi
9605
9606 else
9607
9608                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9609                           if test "x$LINE" != x ; then
9610                             eval "DEFAULT_$LINE"
9611                           else
9612                             no_cache=1
9613                           fi
9614
9615                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9616
9617 fi;
9618
9619           eval "$ac_cv_use_tbarnative"
9620           if test "$no_cache" != 1; then
9621             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9622           fi
9623
9624           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9625             echo "$as_me:$LINENO: result: yes" >&5
9626 echo "${ECHO_T}yes" >&6
9627           else
9628             echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9630           fi
9631
9632
9633           enablestring=
9634           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9635 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9636           no_cache=0
9637           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9638 if test "${enable_tbarsmpl+set}" = set; then
9639   enableval="$enable_tbarsmpl"
9640
9641                           if test "$enableval" = yes; then
9642                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9643                           else
9644                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9645                           fi
9646
9647 else
9648
9649                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9650                           if test "x$LINE" != x ; then
9651                             eval "DEFAULT_$LINE"
9652                           else
9653                             no_cache=1
9654                           fi
9655
9656                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9657
9658 fi;
9659
9660           eval "$ac_cv_use_tbarsmpl"
9661           if test "$no_cache" != 1; then
9662             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9663           fi
9664
9665           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9666             echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9668           else
9669             echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9671           fi
9672
9673
9674           enablestring=
9675           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9676 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9677           no_cache=0
9678           # Check whether --enable-treebook or --disable-treebook was given.
9679 if test "${enable_treebook+set}" = set; then
9680   enableval="$enable_treebook"
9681
9682                           if test "$enableval" = yes; then
9683                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9684                           else
9685                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9686                           fi
9687
9688 else
9689
9690                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9691                           if test "x$LINE" != x ; then
9692                             eval "DEFAULT_$LINE"
9693                           else
9694                             no_cache=1
9695                           fi
9696
9697                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9698
9699 fi;
9700
9701           eval "$ac_cv_use_treebook"
9702           if test "$no_cache" != 1; then
9703             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9704           fi
9705
9706           if test "$wxUSE_TREEBOOK" = yes; then
9707             echo "$as_me:$LINENO: result: yes" >&5
9708 echo "${ECHO_T}yes" >&6
9709           else
9710             echo "$as_me:$LINENO: result: no" >&5
9711 echo "${ECHO_T}no" >&6
9712           fi
9713
9714
9715           enablestring=
9716           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9717 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9718           no_cache=0
9719           # Check whether --enable-toolbook or --disable-toolbook was given.
9720 if test "${enable_toolbook+set}" = set; then
9721   enableval="$enable_toolbook"
9722
9723                           if test "$enableval" = yes; then
9724                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9725                           else
9726                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9727                           fi
9728
9729 else
9730
9731                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9732                           if test "x$LINE" != x ; then
9733                             eval "DEFAULT_$LINE"
9734                           else
9735                             no_cache=1
9736                           fi
9737
9738                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9739
9740 fi;
9741
9742           eval "$ac_cv_use_toolbook"
9743           if test "$no_cache" != 1; then
9744             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9745           fi
9746
9747           if test "$wxUSE_TOOLBOOK" = yes; then
9748             echo "$as_me:$LINENO: result: yes" >&5
9749 echo "${ECHO_T}yes" >&6
9750           else
9751             echo "$as_me:$LINENO: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9753           fi
9754
9755
9756           enablestring=
9757           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9758 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9759           no_cache=0
9760           # Check whether --enable-treectrl or --disable-treectrl was given.
9761 if test "${enable_treectrl+set}" = set; then
9762   enableval="$enable_treectrl"
9763
9764                           if test "$enableval" = yes; then
9765                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9766                           else
9767                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9768                           fi
9769
9770 else
9771
9772                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9773                           if test "x$LINE" != x ; then
9774                             eval "DEFAULT_$LINE"
9775                           else
9776                             no_cache=1
9777                           fi
9778
9779                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9780
9781 fi;
9782
9783           eval "$ac_cv_use_treectrl"
9784           if test "$no_cache" != 1; then
9785             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9786           fi
9787
9788           if test "$wxUSE_TREECTRL" = yes; then
9789             echo "$as_me:$LINENO: result: yes" >&5
9790 echo "${ECHO_T}yes" >&6
9791           else
9792             echo "$as_me:$LINENO: result: no" >&5
9793 echo "${ECHO_T}no" >&6
9794           fi
9795
9796
9797           enablestring=
9798           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9799 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9800           no_cache=0
9801           # Check whether --enable-tipwindow or --disable-tipwindow was given.
9802 if test "${enable_tipwindow+set}" = set; then
9803   enableval="$enable_tipwindow"
9804
9805                           if test "$enableval" = yes; then
9806                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9807                           else
9808                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9809                           fi
9810
9811 else
9812
9813                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9814                           if test "x$LINE" != x ; then
9815                             eval "DEFAULT_$LINE"
9816                           else
9817                             no_cache=1
9818                           fi
9819
9820                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9821
9822 fi;
9823
9824           eval "$ac_cv_use_tipwindow"
9825           if test "$no_cache" != 1; then
9826             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9827           fi
9828
9829           if test "$wxUSE_TIPWINDOW" = yes; then
9830             echo "$as_me:$LINENO: result: yes" >&5
9831 echo "${ECHO_T}yes" >&6
9832           else
9833             echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6
9835           fi
9836
9837
9838           enablestring=
9839           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9840 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9841           no_cache=0
9842           # Check whether --enable-popupwin or --disable-popupwin was given.
9843 if test "${enable_popupwin+set}" = set; then
9844   enableval="$enable_popupwin"
9845
9846                           if test "$enableval" = yes; then
9847                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9848                           else
9849                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9850                           fi
9851
9852 else
9853
9854                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9855                           if test "x$LINE" != x ; then
9856                             eval "DEFAULT_$LINE"
9857                           else
9858                             no_cache=1
9859                           fi
9860
9861                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9862
9863 fi;
9864
9865           eval "$ac_cv_use_popupwin"
9866           if test "$no_cache" != 1; then
9867             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9868           fi
9869
9870           if test "$wxUSE_POPUPWIN" = yes; then
9871             echo "$as_me:$LINENO: result: yes" >&5
9872 echo "${ECHO_T}yes" >&6
9873           else
9874             echo "$as_me:$LINENO: result: no" >&5
9875 echo "${ECHO_T}no" >&6
9876           fi
9877
9878
9879
9880
9881           enablestring=
9882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9883 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9884           no_cache=0
9885           # Check whether --enable-commondlg or --disable-commondlg was given.
9886 if test "${enable_commondlg+set}" = set; then
9887   enableval="$enable_commondlg"
9888
9889                           if test "$enableval" = yes; then
9890                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9891                           else
9892                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9893                           fi
9894
9895 else
9896
9897                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9898                           if test "x$LINE" != x ; then
9899                             eval "DEFAULT_$LINE"
9900                           else
9901                             no_cache=1
9902                           fi
9903
9904                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9905
9906 fi;
9907
9908           eval "$ac_cv_use_commondlg"
9909           if test "$no_cache" != 1; then
9910             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9911           fi
9912
9913           if test "$wxUSE_COMMONDLGS" = yes; then
9914             echo "$as_me:$LINENO: result: yes" >&5
9915 echo "${ECHO_T}yes" >&6
9916           else
9917             echo "$as_me:$LINENO: result: no" >&5
9918 echo "${ECHO_T}no" >&6
9919           fi
9920
9921
9922           enablestring=
9923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9924 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9925           no_cache=0
9926           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9927 if test "${enable_choicedlg+set}" = set; then
9928   enableval="$enable_choicedlg"
9929
9930                           if test "$enableval" = yes; then
9931                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9932                           else
9933                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9934                           fi
9935
9936 else
9937
9938                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9939                           if test "x$LINE" != x ; then
9940                             eval "DEFAULT_$LINE"
9941                           else
9942                             no_cache=1
9943                           fi
9944
9945                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9946
9947 fi;
9948
9949           eval "$ac_cv_use_choicedlg"
9950           if test "$no_cache" != 1; then
9951             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9952           fi
9953
9954           if test "$wxUSE_CHOICEDLG" = yes; then
9955             echo "$as_me:$LINENO: result: yes" >&5
9956 echo "${ECHO_T}yes" >&6
9957           else
9958             echo "$as_me:$LINENO: result: no" >&5
9959 echo "${ECHO_T}no" >&6
9960           fi
9961
9962
9963           enablestring=
9964           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9965 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9966           no_cache=0
9967           # Check whether --enable-coldlg or --disable-coldlg was given.
9968 if test "${enable_coldlg+set}" = set; then
9969   enableval="$enable_coldlg"
9970
9971                           if test "$enableval" = yes; then
9972                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9973                           else
9974                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9975                           fi
9976
9977 else
9978
9979                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9980                           if test "x$LINE" != x ; then
9981                             eval "DEFAULT_$LINE"
9982                           else
9983                             no_cache=1
9984                           fi
9985
9986                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9987
9988 fi;
9989
9990           eval "$ac_cv_use_coldlg"
9991           if test "$no_cache" != 1; then
9992             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9993           fi
9994
9995           if test "$wxUSE_COLOURDLG" = yes; then
9996             echo "$as_me:$LINENO: result: yes" >&5
9997 echo "${ECHO_T}yes" >&6
9998           else
9999             echo "$as_me:$LINENO: result: no" >&5
10000 echo "${ECHO_T}no" >&6
10001           fi
10002
10003
10004           enablestring=
10005           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10006 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10007           no_cache=0
10008           # Check whether --enable-filedlg or --disable-filedlg was given.
10009 if test "${enable_filedlg+set}" = set; then
10010   enableval="$enable_filedlg"
10011
10012                           if test "$enableval" = yes; then
10013                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10014                           else
10015                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10016                           fi
10017
10018 else
10019
10020                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10021                           if test "x$LINE" != x ; then
10022                             eval "DEFAULT_$LINE"
10023                           else
10024                             no_cache=1
10025                           fi
10026
10027                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10028
10029 fi;
10030
10031           eval "$ac_cv_use_filedlg"
10032           if test "$no_cache" != 1; then
10033             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10034           fi
10035
10036           if test "$wxUSE_FILEDLG" = yes; then
10037             echo "$as_me:$LINENO: result: yes" >&5
10038 echo "${ECHO_T}yes" >&6
10039           else
10040             echo "$as_me:$LINENO: result: no" >&5
10041 echo "${ECHO_T}no" >&6
10042           fi
10043
10044
10045           enablestring=
10046           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10047 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10048           no_cache=0
10049           # Check whether --enable-finddlg or --disable-finddlg was given.
10050 if test "${enable_finddlg+set}" = set; then
10051   enableval="$enable_finddlg"
10052
10053                           if test "$enableval" = yes; then
10054                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10055                           else
10056                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10057                           fi
10058
10059 else
10060
10061                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10062                           if test "x$LINE" != x ; then
10063                             eval "DEFAULT_$LINE"
10064                           else
10065                             no_cache=1
10066                           fi
10067
10068                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10069
10070 fi;
10071
10072           eval "$ac_cv_use_finddlg"
10073           if test "$no_cache" != 1; then
10074             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10075           fi
10076
10077           if test "$wxUSE_FINDREPLDLG" = yes; then
10078             echo "$as_me:$LINENO: result: yes" >&5
10079 echo "${ECHO_T}yes" >&6
10080           else
10081             echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6
10083           fi
10084
10085
10086           enablestring=
10087           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10088 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10089           no_cache=0
10090           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10091 if test "${enable_fontdlg+set}" = set; then
10092   enableval="$enable_fontdlg"
10093
10094                           if test "$enableval" = yes; then
10095                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10096                           else
10097                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10098                           fi
10099
10100 else
10101
10102                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10103                           if test "x$LINE" != x ; then
10104                             eval "DEFAULT_$LINE"
10105                           else
10106                             no_cache=1
10107                           fi
10108
10109                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10110
10111 fi;
10112
10113           eval "$ac_cv_use_fontdlg"
10114           if test "$no_cache" != 1; then
10115             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10116           fi
10117
10118           if test "$wxUSE_FONTDLG" = yes; then
10119             echo "$as_me:$LINENO: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6
10121           else
10122             echo "$as_me:$LINENO: result: no" >&5
10123 echo "${ECHO_T}no" >&6
10124           fi
10125
10126
10127           enablestring=
10128           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10129 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10130           no_cache=0
10131           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10132 if test "${enable_dirdlg+set}" = set; then
10133   enableval="$enable_dirdlg"
10134
10135                           if test "$enableval" = yes; then
10136                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10137                           else
10138                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10139                           fi
10140
10141 else
10142
10143                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10144                           if test "x$LINE" != x ; then
10145                             eval "DEFAULT_$LINE"
10146                           else
10147                             no_cache=1
10148                           fi
10149
10150                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10151
10152 fi;
10153
10154           eval "$ac_cv_use_dirdlg"
10155           if test "$no_cache" != 1; then
10156             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10157           fi
10158
10159           if test "$wxUSE_DIRDLG" = yes; then
10160             echo "$as_me:$LINENO: result: yes" >&5
10161 echo "${ECHO_T}yes" >&6
10162           else
10163             echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10165           fi
10166
10167
10168           enablestring=
10169           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10170 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10171           no_cache=0
10172           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10173 if test "${enable_msgdlg+set}" = set; then
10174   enableval="$enable_msgdlg"
10175
10176                           if test "$enableval" = yes; then
10177                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10178                           else
10179                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10180                           fi
10181
10182 else
10183
10184                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10185                           if test "x$LINE" != x ; then
10186                             eval "DEFAULT_$LINE"
10187                           else
10188                             no_cache=1
10189                           fi
10190
10191                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10192
10193 fi;
10194
10195           eval "$ac_cv_use_msgdlg"
10196           if test "$no_cache" != 1; then
10197             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10198           fi
10199
10200           if test "$wxUSE_MSGDLG" = yes; then
10201             echo "$as_me:$LINENO: result: yes" >&5
10202 echo "${ECHO_T}yes" >&6
10203           else
10204             echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10206           fi
10207
10208
10209           enablestring=
10210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10211 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10212           no_cache=0
10213           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10214 if test "${enable_numberdlg+set}" = set; then
10215   enableval="$enable_numberdlg"
10216
10217                           if test "$enableval" = yes; then
10218                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10219                           else
10220                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10221                           fi
10222
10223 else
10224
10225                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10226                           if test "x$LINE" != x ; then
10227                             eval "DEFAULT_$LINE"
10228                           else
10229                             no_cache=1
10230                           fi
10231
10232                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10233
10234 fi;
10235
10236           eval "$ac_cv_use_numberdlg"
10237           if test "$no_cache" != 1; then
10238             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10239           fi
10240
10241           if test "$wxUSE_NUMBERDLG" = yes; then
10242             echo "$as_me:$LINENO: result: yes" >&5
10243 echo "${ECHO_T}yes" >&6
10244           else
10245             echo "$as_me:$LINENO: result: no" >&5
10246 echo "${ECHO_T}no" >&6
10247           fi
10248
10249
10250           enablestring=
10251           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10252 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10253           no_cache=0
10254           # Check whether --enable-splash or --disable-splash was given.
10255 if test "${enable_splash+set}" = set; then
10256   enableval="$enable_splash"
10257
10258                           if test "$enableval" = yes; then
10259                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10260                           else
10261                             ac_cv_use_splash='wxUSE_SPLASH=no'
10262                           fi
10263
10264 else
10265
10266                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10267                           if test "x$LINE" != x ; then
10268                             eval "DEFAULT_$LINE"
10269                           else
10270                             no_cache=1
10271                           fi
10272
10273                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10274
10275 fi;
10276
10277           eval "$ac_cv_use_splash"
10278           if test "$no_cache" != 1; then
10279             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10280           fi
10281
10282           if test "$wxUSE_SPLASH" = yes; then
10283             echo "$as_me:$LINENO: result: yes" >&5
10284 echo "${ECHO_T}yes" >&6
10285           else
10286             echo "$as_me:$LINENO: result: no" >&5
10287 echo "${ECHO_T}no" >&6
10288           fi
10289
10290
10291           enablestring=
10292           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10293 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10294           no_cache=0
10295           # Check whether --enable-textdlg or --disable-textdlg was given.
10296 if test "${enable_textdlg+set}" = set; then
10297   enableval="$enable_textdlg"
10298
10299                           if test "$enableval" = yes; then
10300                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10301                           else
10302                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10303                           fi
10304
10305 else
10306
10307                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10308                           if test "x$LINE" != x ; then
10309                             eval "DEFAULT_$LINE"
10310                           else
10311                             no_cache=1
10312                           fi
10313
10314                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10315
10316 fi;
10317
10318           eval "$ac_cv_use_textdlg"
10319           if test "$no_cache" != 1; then
10320             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10321           fi
10322
10323           if test "$wxUSE_TEXTDLG" = yes; then
10324             echo "$as_me:$LINENO: result: yes" >&5
10325 echo "${ECHO_T}yes" >&6
10326           else
10327             echo "$as_me:$LINENO: result: no" >&5
10328 echo "${ECHO_T}no" >&6
10329           fi
10330
10331
10332           enablestring=
10333           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10334 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10335           no_cache=0
10336           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10337 if test "${enable_tipdlg+set}" = set; then
10338   enableval="$enable_tipdlg"
10339
10340                           if test "$enableval" = yes; then
10341                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10342                           else
10343                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10344                           fi
10345
10346 else
10347
10348                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10349                           if test "x$LINE" != x ; then
10350                             eval "DEFAULT_$LINE"
10351                           else
10352                             no_cache=1
10353                           fi
10354
10355                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10356
10357 fi;
10358
10359           eval "$ac_cv_use_tipdlg"
10360           if test "$no_cache" != 1; then
10361             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10362           fi
10363
10364           if test "$wxUSE_STARTUP_TIPS" = yes; then
10365             echo "$as_me:$LINENO: result: yes" >&5
10366 echo "${ECHO_T}yes" >&6
10367           else
10368             echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6
10370           fi
10371
10372
10373           enablestring=
10374           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10375 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10376           no_cache=0
10377           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10378 if test "${enable_progressdlg+set}" = set; then
10379   enableval="$enable_progressdlg"
10380
10381                           if test "$enableval" = yes; then
10382                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10383                           else
10384                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10385                           fi
10386
10387 else
10388
10389                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10390                           if test "x$LINE" != x ; then
10391                             eval "DEFAULT_$LINE"
10392                           else
10393                             no_cache=1
10394                           fi
10395
10396                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10397
10398 fi;
10399
10400           eval "$ac_cv_use_progressdlg"
10401           if test "$no_cache" != 1; then
10402             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10403           fi
10404
10405           if test "$wxUSE_PROGRESSDLG" = yes; then
10406             echo "$as_me:$LINENO: result: yes" >&5
10407 echo "${ECHO_T}yes" >&6
10408           else
10409             echo "$as_me:$LINENO: result: no" >&5
10410 echo "${ECHO_T}no" >&6
10411           fi
10412
10413
10414           enablestring=
10415           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10416 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10417           no_cache=0
10418           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10419 if test "${enable_wizarddlg+set}" = set; then
10420   enableval="$enable_wizarddlg"
10421
10422                           if test "$enableval" = yes; then
10423                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10424                           else
10425                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10426                           fi
10427
10428 else
10429
10430                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10431                           if test "x$LINE" != x ; then
10432                             eval "DEFAULT_$LINE"
10433                           else
10434                             no_cache=1
10435                           fi
10436
10437                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10438
10439 fi;
10440
10441           eval "$ac_cv_use_wizarddlg"
10442           if test "$no_cache" != 1; then
10443             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10444           fi
10445
10446           if test "$wxUSE_WIZARDDLG" = yes; then
10447             echo "$as_me:$LINENO: result: yes" >&5
10448 echo "${ECHO_T}yes" >&6
10449           else
10450             echo "$as_me:$LINENO: result: no" >&5
10451 echo "${ECHO_T}no" >&6
10452           fi
10453
10454
10455
10456
10457           enablestring=
10458           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10459 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10460           no_cache=0
10461           # Check whether --enable-menus or --disable-menus was given.
10462 if test "${enable_menus+set}" = set; then
10463   enableval="$enable_menus"
10464
10465                           if test "$enableval" = yes; then
10466                             ac_cv_use_menus='wxUSE_MENUS=yes'
10467                           else
10468                             ac_cv_use_menus='wxUSE_MENUS=no'
10469                           fi
10470
10471 else
10472
10473                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10474                           if test "x$LINE" != x ; then
10475                             eval "DEFAULT_$LINE"
10476                           else
10477                             no_cache=1
10478                           fi
10479
10480                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10481
10482 fi;
10483
10484           eval "$ac_cv_use_menus"
10485           if test "$no_cache" != 1; then
10486             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10487           fi
10488
10489           if test "$wxUSE_MENUS" = yes; then
10490             echo "$as_me:$LINENO: result: yes" >&5
10491 echo "${ECHO_T}yes" >&6
10492           else
10493             echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6
10495           fi
10496
10497
10498           enablestring=
10499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10500 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10501           no_cache=0
10502           # Check whether --enable-miniframe or --disable-miniframe was given.
10503 if test "${enable_miniframe+set}" = set; then
10504   enableval="$enable_miniframe"
10505
10506                           if test "$enableval" = yes; then
10507                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10508                           else
10509                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10510                           fi
10511
10512 else
10513
10514                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10515                           if test "x$LINE" != x ; then
10516                             eval "DEFAULT_$LINE"
10517                           else
10518                             no_cache=1
10519                           fi
10520
10521                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10522
10523 fi;
10524
10525           eval "$ac_cv_use_miniframe"
10526           if test "$no_cache" != 1; then
10527             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10528           fi
10529
10530           if test "$wxUSE_MINIFRAME" = yes; then
10531             echo "$as_me:$LINENO: result: yes" >&5
10532 echo "${ECHO_T}yes" >&6
10533           else
10534             echo "$as_me:$LINENO: result: no" >&5
10535 echo "${ECHO_T}no" >&6
10536           fi
10537
10538
10539           enablestring=
10540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10541 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10542           no_cache=0
10543           # Check whether --enable-tooltips or --disable-tooltips was given.
10544 if test "${enable_tooltips+set}" = set; then
10545   enableval="$enable_tooltips"
10546
10547                           if test "$enableval" = yes; then
10548                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10549                           else
10550                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10551                           fi
10552
10553 else
10554
10555                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10556                           if test "x$LINE" != x ; then
10557                             eval "DEFAULT_$LINE"
10558                           else
10559                             no_cache=1
10560                           fi
10561
10562                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10563
10564 fi;
10565
10566           eval "$ac_cv_use_tooltips"
10567           if test "$no_cache" != 1; then
10568             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10569           fi
10570
10571           if test "$wxUSE_TOOLTIPS" = yes; then
10572             echo "$as_me:$LINENO: result: yes" >&5
10573 echo "${ECHO_T}yes" >&6
10574           else
10575             echo "$as_me:$LINENO: result: no" >&5
10576 echo "${ECHO_T}no" >&6
10577           fi
10578
10579
10580           enablestring=
10581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10582 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10583           no_cache=0
10584           # Check whether --enable-splines or --disable-splines was given.
10585 if test "${enable_splines+set}" = set; then
10586   enableval="$enable_splines"
10587
10588                           if test "$enableval" = yes; then
10589                             ac_cv_use_splines='wxUSE_SPLINES=yes'
10590                           else
10591                             ac_cv_use_splines='wxUSE_SPLINES=no'
10592                           fi
10593
10594 else
10595
10596                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10597                           if test "x$LINE" != x ; then
10598                             eval "DEFAULT_$LINE"
10599                           else
10600                             no_cache=1
10601                           fi
10602
10603                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10604
10605 fi;
10606
10607           eval "$ac_cv_use_splines"
10608           if test "$no_cache" != 1; then
10609             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10610           fi
10611
10612           if test "$wxUSE_SPLINES" = yes; then
10613             echo "$as_me:$LINENO: result: yes" >&5
10614 echo "${ECHO_T}yes" >&6
10615           else
10616             echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6
10618           fi
10619
10620
10621           enablestring=
10622           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10623 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10624           no_cache=0
10625           # Check whether --enable-mousewheel or --disable-mousewheel was given.
10626 if test "${enable_mousewheel+set}" = set; then
10627   enableval="$enable_mousewheel"
10628
10629                           if test "$enableval" = yes; then
10630                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10631                           else
10632                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10633                           fi
10634
10635 else
10636
10637                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10638                           if test "x$LINE" != x ; then
10639                             eval "DEFAULT_$LINE"
10640                           else
10641                             no_cache=1
10642                           fi
10643
10644                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10645
10646 fi;
10647
10648           eval "$ac_cv_use_mousewheel"
10649           if test "$no_cache" != 1; then
10650             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10651           fi
10652
10653           if test "$wxUSE_MOUSEWHEEL" = yes; then
10654             echo "$as_me:$LINENO: result: yes" >&5
10655 echo "${ECHO_T}yes" >&6
10656           else
10657             echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6
10659           fi
10660
10661
10662           enablestring=
10663           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10664 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10665           no_cache=0
10666           # Check whether --enable-validators or --disable-validators was given.
10667 if test "${enable_validators+set}" = set; then
10668   enableval="$enable_validators"
10669
10670                           if test "$enableval" = yes; then
10671                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10672                           else
10673                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
10674                           fi
10675
10676 else
10677
10678                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10679                           if test "x$LINE" != x ; then
10680                             eval "DEFAULT_$LINE"
10681                           else
10682                             no_cache=1
10683                           fi
10684
10685                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10686
10687 fi;
10688
10689           eval "$ac_cv_use_validators"
10690           if test "$no_cache" != 1; then
10691             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10692           fi
10693
10694           if test "$wxUSE_VALIDATORS" = yes; then
10695             echo "$as_me:$LINENO: result: yes" >&5
10696 echo "${ECHO_T}yes" >&6
10697           else
10698             echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6
10700           fi
10701
10702
10703           enablestring=
10704           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10705 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10706           no_cache=0
10707           # Check whether --enable-busyinfo or --disable-busyinfo was given.
10708 if test "${enable_busyinfo+set}" = set; then
10709   enableval="$enable_busyinfo"
10710
10711                           if test "$enableval" = yes; then
10712                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10713                           else
10714                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10715                           fi
10716
10717 else
10718
10719                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10720                           if test "x$LINE" != x ; then
10721                             eval "DEFAULT_$LINE"
10722                           else
10723                             no_cache=1
10724                           fi
10725
10726                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10727
10728 fi;
10729
10730           eval "$ac_cv_use_busyinfo"
10731           if test "$no_cache" != 1; then
10732             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10733           fi
10734
10735           if test "$wxUSE_BUSYINFO" = yes; then
10736             echo "$as_me:$LINENO: result: yes" >&5
10737 echo "${ECHO_T}yes" >&6
10738           else
10739             echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6
10741           fi
10742
10743
10744           enablestring=
10745           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10746 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10747           no_cache=0
10748           # Check whether --enable-joystick or --disable-joystick was given.
10749 if test "${enable_joystick+set}" = set; then
10750   enableval="$enable_joystick"
10751
10752                           if test "$enableval" = yes; then
10753                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10754                           else
10755                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10756                           fi
10757
10758 else
10759
10760                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10761                           if test "x$LINE" != x ; then
10762                             eval "DEFAULT_$LINE"
10763                           else
10764                             no_cache=1
10765                           fi
10766
10767                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10768
10769 fi;
10770
10771           eval "$ac_cv_use_joystick"
10772           if test "$no_cache" != 1; then
10773             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10774           fi
10775
10776           if test "$wxUSE_JOYSTICK" = yes; then
10777             echo "$as_me:$LINENO: result: yes" >&5
10778 echo "${ECHO_T}yes" >&6
10779           else
10780             echo "$as_me:$LINENO: result: no" >&5
10781 echo "${ECHO_T}no" >&6
10782           fi
10783
10784
10785           enablestring=
10786           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10787 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10788           no_cache=0
10789           # Check whether --enable-metafile or --disable-metafile was given.
10790 if test "${enable_metafile+set}" = set; then
10791   enableval="$enable_metafile"
10792
10793                           if test "$enableval" = yes; then
10794                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
10795                           else
10796                             ac_cv_use_metafile='wxUSE_METAFILE=no'
10797                           fi
10798
10799 else
10800
10801                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10802                           if test "x$LINE" != x ; then
10803                             eval "DEFAULT_$LINE"
10804                           else
10805                             no_cache=1
10806                           fi
10807
10808                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10809
10810 fi;
10811
10812           eval "$ac_cv_use_metafile"
10813           if test "$no_cache" != 1; then
10814             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10815           fi
10816
10817           if test "$wxUSE_METAFILE" = yes; then
10818             echo "$as_me:$LINENO: result: yes" >&5
10819 echo "${ECHO_T}yes" >&6
10820           else
10821             echo "$as_me:$LINENO: result: no" >&5
10822 echo "${ECHO_T}no" >&6
10823           fi
10824
10825
10826           enablestring=
10827           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10828 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10829           no_cache=0
10830           # Check whether --enable-dragimage or --disable-dragimage was given.
10831 if test "${enable_dragimage+set}" = set; then
10832   enableval="$enable_dragimage"
10833
10834                           if test "$enableval" = yes; then
10835                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10836                           else
10837                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10838                           fi
10839
10840 else
10841
10842                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10843                           if test "x$LINE" != x ; then
10844                             eval "DEFAULT_$LINE"
10845                           else
10846                             no_cache=1
10847                           fi
10848
10849                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10850
10851 fi;
10852
10853           eval "$ac_cv_use_dragimage"
10854           if test "$no_cache" != 1; then
10855             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10856           fi
10857
10858           if test "$wxUSE_DRAGIMAGE" = yes; then
10859             echo "$as_me:$LINENO: result: yes" >&5
10860 echo "${ECHO_T}yes" >&6
10861           else
10862             echo "$as_me:$LINENO: result: no" >&5
10863 echo "${ECHO_T}no" >&6
10864           fi
10865
10866
10867           enablestring=
10868           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10869 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10870           no_cache=0
10871           # Check whether --enable-accessibility or --disable-accessibility was given.
10872 if test "${enable_accessibility+set}" = set; then
10873   enableval="$enable_accessibility"
10874
10875                           if test "$enableval" = yes; then
10876                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10877                           else
10878                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10879                           fi
10880
10881 else
10882
10883                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10884                           if test "x$LINE" != x ; then
10885                             eval "DEFAULT_$LINE"
10886                           else
10887                             no_cache=1
10888                           fi
10889
10890                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10891
10892 fi;
10893
10894           eval "$ac_cv_use_accessibility"
10895           if test "$no_cache" != 1; then
10896             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10897           fi
10898
10899           if test "$wxUSE_ACCESSIBILITY" = yes; then
10900             echo "$as_me:$LINENO: result: yes" >&5
10901 echo "${ECHO_T}yes" >&6
10902           else
10903             echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6
10905           fi
10906
10907
10908 if test "$wxUSE_MSW" = "1"; then
10909
10910           enablestring=
10911           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10912 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10913           no_cache=0
10914           # Check whether --enable-dccache or --disable-dccache was given.
10915 if test "${enable_dccache+set}" = set; then
10916   enableval="$enable_dccache"
10917
10918                           if test "$enableval" = yes; then
10919                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10920                           else
10921                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10922                           fi
10923
10924 else
10925
10926                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10927                           if test "x$LINE" != x ; then
10928                             eval "DEFAULT_$LINE"
10929                           else
10930                             no_cache=1
10931                           fi
10932
10933                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10934
10935 fi;
10936
10937           eval "$ac_cv_use_dccache"
10938           if test "$no_cache" != 1; then
10939             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10940           fi
10941
10942           if test "$wxUSE_DC_CACHEING" = yes; then
10943             echo "$as_me:$LINENO: result: yes" >&5
10944 echo "${ECHO_T}yes" >&6
10945           else
10946             echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10948           fi
10949
10950 fi
10951
10952
10953
10954           enablestring=
10955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10956 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10957           no_cache=0
10958           # Check whether --enable-palette or --disable-palette was given.
10959 if test "${enable_palette+set}" = set; then
10960   enableval="$enable_palette"
10961
10962                           if test "$enableval" = yes; then
10963                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10964                           else
10965                             ac_cv_use_palette='wxUSE_PALETTE=no'
10966                           fi
10967
10968 else
10969
10970                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10971                           if test "x$LINE" != x ; then
10972                             eval "DEFAULT_$LINE"
10973                           else
10974                             no_cache=1
10975                           fi
10976
10977                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10978
10979 fi;
10980
10981           eval "$ac_cv_use_palette"
10982           if test "$no_cache" != 1; then
10983             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10984           fi
10985
10986           if test "$wxUSE_PALETTE" = yes; then
10987             echo "$as_me:$LINENO: result: yes" >&5
10988 echo "${ECHO_T}yes" >&6
10989           else
10990             echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10992           fi
10993
10994
10995           enablestring=
10996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10997 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10998           no_cache=0
10999           # Check whether --enable-image or --disable-image was given.
11000 if test "${enable_image+set}" = set; then
11001   enableval="$enable_image"
11002
11003                           if test "$enableval" = yes; then
11004                             ac_cv_use_image='wxUSE_IMAGE=yes'
11005                           else
11006                             ac_cv_use_image='wxUSE_IMAGE=no'
11007                           fi
11008
11009 else
11010
11011                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11012                           if test "x$LINE" != x ; then
11013                             eval "DEFAULT_$LINE"
11014                           else
11015                             no_cache=1
11016                           fi
11017
11018                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11019
11020 fi;
11021
11022           eval "$ac_cv_use_image"
11023           if test "$no_cache" != 1; then
11024             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11025           fi
11026
11027           if test "$wxUSE_IMAGE" = yes; then
11028             echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11030           else
11031             echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033           fi
11034
11035
11036           enablestring=
11037           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11038 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11039           no_cache=0
11040           # Check whether --enable-gif or --disable-gif was given.
11041 if test "${enable_gif+set}" = set; then
11042   enableval="$enable_gif"
11043
11044                           if test "$enableval" = yes; then
11045                             ac_cv_use_gif='wxUSE_GIF=yes'
11046                           else
11047                             ac_cv_use_gif='wxUSE_GIF=no'
11048                           fi
11049
11050 else
11051
11052                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11053                           if test "x$LINE" != x ; then
11054                             eval "DEFAULT_$LINE"
11055                           else
11056                             no_cache=1
11057                           fi
11058
11059                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11060
11061 fi;
11062
11063           eval "$ac_cv_use_gif"
11064           if test "$no_cache" != 1; then
11065             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11066           fi
11067
11068           if test "$wxUSE_GIF" = yes; then
11069             echo "$as_me:$LINENO: result: yes" >&5
11070 echo "${ECHO_T}yes" >&6
11071           else
11072             echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074           fi
11075
11076
11077           enablestring=
11078           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11079 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11080           no_cache=0
11081           # Check whether --enable-pcx or --disable-pcx was given.
11082 if test "${enable_pcx+set}" = set; then
11083   enableval="$enable_pcx"
11084
11085                           if test "$enableval" = yes; then
11086                             ac_cv_use_pcx='wxUSE_PCX=yes'
11087                           else
11088                             ac_cv_use_pcx='wxUSE_PCX=no'
11089                           fi
11090
11091 else
11092
11093                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11094                           if test "x$LINE" != x ; then
11095                             eval "DEFAULT_$LINE"
11096                           else
11097                             no_cache=1
11098                           fi
11099
11100                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11101
11102 fi;
11103
11104           eval "$ac_cv_use_pcx"
11105           if test "$no_cache" != 1; then
11106             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11107           fi
11108
11109           if test "$wxUSE_PCX" = yes; then
11110             echo "$as_me:$LINENO: result: yes" >&5
11111 echo "${ECHO_T}yes" >&6
11112           else
11113             echo "$as_me:$LINENO: result: no" >&5
11114 echo "${ECHO_T}no" >&6
11115           fi
11116
11117
11118           enablestring=
11119           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11120 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11121           no_cache=0
11122           # Check whether --enable-iff or --disable-iff was given.
11123 if test "${enable_iff+set}" = set; then
11124   enableval="$enable_iff"
11125
11126                           if test "$enableval" = yes; then
11127                             ac_cv_use_iff='wxUSE_IFF=yes'
11128                           else
11129                             ac_cv_use_iff='wxUSE_IFF=no'
11130                           fi
11131
11132 else
11133
11134                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11135                           if test "x$LINE" != x ; then
11136                             eval "DEFAULT_$LINE"
11137                           else
11138                             no_cache=1
11139                           fi
11140
11141                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11142
11143 fi;
11144
11145           eval "$ac_cv_use_iff"
11146           if test "$no_cache" != 1; then
11147             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11148           fi
11149
11150           if test "$wxUSE_IFF" = yes; then
11151             echo "$as_me:$LINENO: result: yes" >&5
11152 echo "${ECHO_T}yes" >&6
11153           else
11154             echo "$as_me:$LINENO: result: no" >&5
11155 echo "${ECHO_T}no" >&6
11156           fi
11157
11158
11159           enablestring=
11160           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11161 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11162           no_cache=0
11163           # Check whether --enable-pnm or --disable-pnm was given.
11164 if test "${enable_pnm+set}" = set; then
11165   enableval="$enable_pnm"
11166
11167                           if test "$enableval" = yes; then
11168                             ac_cv_use_pnm='wxUSE_PNM=yes'
11169                           else
11170                             ac_cv_use_pnm='wxUSE_PNM=no'
11171                           fi
11172
11173 else
11174
11175                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11176                           if test "x$LINE" != x ; then
11177                             eval "DEFAULT_$LINE"
11178                           else
11179                             no_cache=1
11180                           fi
11181
11182                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11183
11184 fi;
11185
11186           eval "$ac_cv_use_pnm"
11187           if test "$no_cache" != 1; then
11188             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11189           fi
11190
11191           if test "$wxUSE_PNM" = yes; then
11192             echo "$as_me:$LINENO: result: yes" >&5
11193 echo "${ECHO_T}yes" >&6
11194           else
11195             echo "$as_me:$LINENO: result: no" >&5
11196 echo "${ECHO_T}no" >&6
11197           fi
11198
11199
11200           enablestring=
11201           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11202 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11203           no_cache=0
11204           # Check whether --enable-xpm or --disable-xpm was given.
11205 if test "${enable_xpm+set}" = set; then
11206   enableval="$enable_xpm"
11207
11208                           if test "$enableval" = yes; then
11209                             ac_cv_use_xpm='wxUSE_XPM=yes'
11210                           else
11211                             ac_cv_use_xpm='wxUSE_XPM=no'
11212                           fi
11213
11214 else
11215
11216                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11217                           if test "x$LINE" != x ; then
11218                             eval "DEFAULT_$LINE"
11219                           else
11220                             no_cache=1
11221                           fi
11222
11223                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11224
11225 fi;
11226
11227           eval "$ac_cv_use_xpm"
11228           if test "$no_cache" != 1; then
11229             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11230           fi
11231
11232           if test "$wxUSE_XPM" = yes; then
11233             echo "$as_me:$LINENO: result: yes" >&5
11234 echo "${ECHO_T}yes" >&6
11235           else
11236             echo "$as_me:$LINENO: result: no" >&5
11237 echo "${ECHO_T}no" >&6
11238           fi
11239
11240
11241           enablestring=
11242           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11243 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11244           no_cache=0
11245           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11246 if test "${enable_ico_cur+set}" = set; then
11247   enableval="$enable_ico_cur"
11248
11249                           if test "$enableval" = yes; then
11250                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11251                           else
11252                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11253                           fi
11254
11255 else
11256
11257                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11258                           if test "x$LINE" != x ; then
11259                             eval "DEFAULT_$LINE"
11260                           else
11261                             no_cache=1
11262                           fi
11263
11264                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11265
11266 fi;
11267
11268           eval "$ac_cv_use_ico_cur"
11269           if test "$no_cache" != 1; then
11270             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11271           fi
11272
11273           if test "$wxUSE_ICO_CUR" = yes; then
11274             echo "$as_me:$LINENO: result: yes" >&5
11275 echo "${ECHO_T}yes" >&6
11276           else
11277             echo "$as_me:$LINENO: result: no" >&5
11278 echo "${ECHO_T}no" >&6
11279           fi
11280
11281
11282 fi
11283
11284
11285
11286 # Check whether --with-flavour or --without-flavour was given.
11287 if test "${with_flavour+set}" = set; then
11288   withval="$with_flavour"
11289   WX_FLAVOUR="$withval"
11290 fi;
11291
11292
11293
11294           enablestring=
11295           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11296 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11297           no_cache=0
11298           # Check whether --enable-official_build or --disable-official_build was given.
11299 if test "${enable_official_build+set}" = set; then
11300   enableval="$enable_official_build"
11301
11302                           if test "$enableval" = yes; then
11303                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11304                           else
11305                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11306                           fi
11307
11308 else
11309
11310                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11311                           if test "x$LINE" != x ; then
11312                             eval "DEFAULT_$LINE"
11313                           else
11314                             no_cache=1
11315                           fi
11316
11317                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11318
11319 fi;
11320
11321           eval "$ac_cv_use_official_build"
11322           if test "$no_cache" != 1; then
11323             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11324           fi
11325
11326           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11327             echo "$as_me:$LINENO: result: yes" >&5
11328 echo "${ECHO_T}yes" >&6
11329           else
11330             echo "$as_me:$LINENO: result: no" >&5
11331 echo "${ECHO_T}no" >&6
11332           fi
11333
11334 # Check whether --enable-vendor or --disable-vendor was given.
11335 if test "${enable_vendor+set}" = set; then
11336   enableval="$enable_vendor"
11337   VENDOR="$enableval"
11338 fi;
11339 if test "x$VENDOR" = "x"; then
11340     VENDOR="custom"
11341 fi
11342
11343
11344
11345
11346           echo "saving argument cache $wx_arg_cache_file"
11347           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11348
11349
11350
11351 echo "$as_me:$LINENO: checking for toolkit" >&5
11352 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11353
11354 # In Wine, we need to default to MSW, not GTK or MOTIF
11355 if test "$wxUSE_WINE" = "yes"; then
11356     DEFAULT_DEFAULT_wxUSE_GTK=0
11357     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11358     DEFAULT_DEFAULT_wxUSE_MSW=1
11359     wxUSE_SHARED=no
11360 fi
11361
11362
11363 if test "$wxUSE_GUI" = "yes"; then
11364
11365     if test "$USE_BEOS" = 1; then
11366         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11367 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11368    { (exit 1); exit 1; }; }
11369     fi
11370
11371     if test "$TOOLKIT_GIVEN" = 1; then
11372             for toolkit in `echo $ALL_TOOLKITS`; do
11373         var=wxUSE_$toolkit
11374         eval "value=\$${var}"
11375         if test "x$value" = "xno"; then
11376           eval "$var=0"
11377         elif test "x$value" != "x"; then
11378           eval "$var=1"
11379         fi
11380
11381         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11382           eval "wx${toolkit}_VERSION=$value"
11383         fi
11384       done
11385     else
11386             for toolkit in `echo $ALL_TOOLKITS`; do
11387         if test "$has_toolkit_in_cache" != 1; then
11388           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11389         else
11390           var=DEFAULT_wxUSE_$toolkit
11391
11392           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11393           if test "x$version" != "x"; then
11394             eval "wx${toolkit}_VERSION=$version"
11395           fi
11396         fi
11397         eval "wxUSE_$toolkit=\$${var}"
11398       done
11399     fi
11400
11401             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11402                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11403                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11404
11405         case "${host}" in
11406       *-pc-os2_emx | *-pc-os2-emx )
11407         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11408     esac
11409
11410     case "$NUM_TOOLKITS" in
11411       1)
11412       ;;
11413       0)
11414         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11415 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11416    { (exit 1); exit 1; }; }
11417       ;;
11418       *)
11419         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11420 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11421    { (exit 1); exit 1; }; }
11422     esac
11423
11424     # to be removed when --disable-gtk2 isn't needed
11425     if test "x$wxUSE_GTK2" = "xyes"; then
11426         wxGTK_VERSION=2
11427     elif test "x$wxUSE_GTK2" = "xno"; then
11428         wxGTK_VERSION=1
11429     fi
11430
11431         for toolkit in `echo $ALL_TOOLKITS`; do
11432       var=wxUSE_$toolkit
11433       eval "value=\$${var}"
11434       if test "x$value" != x; then
11435         cache_var=CACHE_$toolkit
11436         eval "cache=\$${cache_var}"
11437         if test "$cache" = 1; then
11438           echo "$var=$value" >> ${wx_arg_cache_file}
11439           eval "version=\$wx${toolkit}_VERSION"
11440           if test "x$version" != "x"; then
11441             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11442           fi
11443         fi
11444         if test "$value" = 1; then
11445           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11446           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11447 echo "${ECHO_T}$toolkit_echo" >&6
11448         fi
11449       fi
11450     done
11451 else
11452     if test "x$host_alias" != "x"; then
11453         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11454 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11455     else
11456         echo "$as_me:$LINENO: result: base only" >&5
11457 echo "${ECHO_T}base only" >&6
11458     fi
11459 fi
11460
11461 wants_win32=0
11462 doesnt_want_win32=0
11463 case "${host}" in
11464   *-*-cygwin*)
11465       if test "$wxUSE_MSW" = 1 ; then
11466         wants_win32=1
11467         BAKEFILE_FORCE_PLATFORM=win32
11468       else
11469         doesnt_want_win32=1
11470       fi
11471   ;;
11472   *-*-mingw*)
11473       wants_win32=1
11474   ;;
11475 esac
11476
11477 if test "$wxUSE_WINE" = "yes"; then
11478     wants_win32=1
11479         CC=winegcc
11480     CXX=wineg++
11481     LDFLAGS_GUI="-mwindows"
11482 fi
11483
11484 if test "$wants_win32" = 1 ; then
11485     USE_UNIX=0
11486     USE_WIN32=1
11487     cat >>confdefs.h <<\_ACEOF
11488 #define __WIN32__ 1
11489 _ACEOF
11490
11491     cat >>confdefs.h <<\_ACEOF
11492 #define __WIN95__ 1
11493 _ACEOF
11494
11495     cat >>confdefs.h <<\_ACEOF
11496 #define __WINDOWS__ 1
11497 _ACEOF
11498
11499     cat >>confdefs.h <<\_ACEOF
11500 #define __GNUWIN32__ 1
11501 _ACEOF
11502
11503     cat >>confdefs.h <<\_ACEOF
11504 #define STRICT 1
11505 _ACEOF
11506
11507     cat >>confdefs.h <<\_ACEOF
11508 #define WINVER 0x0400
11509 _ACEOF
11510
11511 fi
11512 if test "$doesnt_want_win32" = 1 ; then
11513     USE_UNIX=1
11514     USE_WIN32=0
11515 fi
11516
11517 if test "$USE_UNIX" = 1 ; then
11518     wxUSE_UNIX=yes
11519     cat >>confdefs.h <<\_ACEOF
11520 #define __UNIX__ 1
11521 _ACEOF
11522
11523 fi
11524
11525
11526 cat >confcache <<\_ACEOF
11527 # This file is a shell script that caches the results of configure
11528 # tests run on this system so they can be shared between configure
11529 # scripts and configure runs, see configure's option --config-cache.
11530 # It is not useful on other systems.  If it contains results you don't
11531 # want to keep, you may remove or edit it.
11532 #
11533 # config.status only pays attention to the cache file if you give it
11534 # the --recheck option to rerun configure.
11535 #
11536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11538 # following values.
11539
11540 _ACEOF
11541
11542 # The following way of writing the cache mishandles newlines in values,
11543 # but we know of no workaround that is simple, portable, and efficient.
11544 # So, don't put newlines in cache variables' values.
11545 # Ultrix sh set writes to stderr and can't be redirected directly,
11546 # and sets the high bit in the cache file unless we assign to the vars.
11547 {
11548   (set) 2>&1 |
11549     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11550     *ac_space=\ *)
11551       # `set' does not quote correctly, so add quotes (double-quote
11552       # substitution turns \\\\ into \\, and sed turns \\ into \).
11553       sed -n \
11554         "s/'/'\\\\''/g;
11555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11556       ;;
11557     *)
11558       # `set' quotes correctly as required by POSIX, so do not add quotes.
11559       sed -n \
11560         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11561       ;;
11562     esac;
11563 } |
11564   sed '
11565      t clear
11566      : clear
11567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11568      t end
11569      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11570      : end' >>confcache
11571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11572   if test -w $cache_file; then
11573     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11574     cat confcache >$cache_file
11575   else
11576     echo "not updating unwritable cache $cache_file"
11577   fi
11578 fi
11579 rm -f confcache
11580
11581 CFLAGS=${CFLAGS:=}
11582
11583
11584
11585     ac_ext=c
11586 ac_cpp='$CPP $CPPFLAGS'
11587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11590 if test -n "$ac_tool_prefix"; then
11591   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_prog_CC+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   if test -n "$CC"; then
11599   ac_cv_prog_CC="$CC" # Let the user override the test.
11600 else
11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11603 do
11604   IFS=$as_save_IFS
11605   test -z "$as_dir" && as_dir=.
11606   for ac_exec_ext in '' $ac_executable_extensions; do
11607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11608     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11610     break 2
11611   fi
11612 done
11613 done
11614
11615 fi
11616 fi
11617 CC=$ac_cv_prog_CC
11618 if test -n "$CC"; then
11619   echo "$as_me:$LINENO: result: $CC" >&5
11620 echo "${ECHO_T}$CC" >&6
11621 else
11622   echo "$as_me:$LINENO: result: no" >&5
11623 echo "${ECHO_T}no" >&6
11624 fi
11625
11626 fi
11627 if test -z "$ac_cv_prog_CC"; then
11628   ac_ct_CC=$CC
11629   # Extract the first word of "gcc", so it can be a program name with args.
11630 set dummy gcc; ac_word=$2
11631 echo "$as_me:$LINENO: checking for $ac_word" >&5
11632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   if test -n "$ac_ct_CC"; then
11637   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11638 else
11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640 for as_dir in $PATH
11641 do
11642   IFS=$as_save_IFS
11643   test -z "$as_dir" && as_dir=.
11644   for ac_exec_ext in '' $ac_executable_extensions; do
11645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646     ac_cv_prog_ac_ct_CC="gcc"
11647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648     break 2
11649   fi
11650 done
11651 done
11652
11653 fi
11654 fi
11655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11656 if test -n "$ac_ct_CC"; then
11657   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11658 echo "${ECHO_T}$ac_ct_CC" >&6
11659 else
11660   echo "$as_me:$LINENO: result: no" >&5
11661 echo "${ECHO_T}no" >&6
11662 fi
11663
11664   CC=$ac_ct_CC
11665 else
11666   CC="$ac_cv_prog_CC"
11667 fi
11668
11669 if test -z "$CC"; then
11670   if test -n "$ac_tool_prefix"; then
11671   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11672 set dummy ${ac_tool_prefix}cc; ac_word=$2
11673 echo "$as_me:$LINENO: checking for $ac_word" >&5
11674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11675 if test "${ac_cv_prog_CC+set}" = set; then
11676   echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678   if test -n "$CC"; then
11679   ac_cv_prog_CC="$CC" # Let the user override the test.
11680 else
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684   IFS=$as_save_IFS
11685   test -z "$as_dir" && as_dir=.
11686   for ac_exec_ext in '' $ac_executable_extensions; do
11687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688     ac_cv_prog_CC="${ac_tool_prefix}cc"
11689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690     break 2
11691   fi
11692 done
11693 done
11694
11695 fi
11696 fi
11697 CC=$ac_cv_prog_CC
11698 if test -n "$CC"; then
11699   echo "$as_me:$LINENO: result: $CC" >&5
11700 echo "${ECHO_T}$CC" >&6
11701 else
11702   echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6
11704 fi
11705
11706 fi
11707 if test -z "$ac_cv_prog_CC"; then
11708   ac_ct_CC=$CC
11709   # Extract the first word of "cc", so it can be a program name with args.
11710 set dummy cc; ac_word=$2
11711 echo "$as_me:$LINENO: checking for $ac_word" >&5
11712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   if test -n "$ac_ct_CC"; then
11717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724   for ac_exec_ext in '' $ac_executable_extensions; do
11725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_prog_ac_ct_CC="cc"
11727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731 done
11732
11733 fi
11734 fi
11735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11736 if test -n "$ac_ct_CC"; then
11737   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11738 echo "${ECHO_T}$ac_ct_CC" >&6
11739 else
11740   echo "$as_me:$LINENO: result: no" >&5
11741 echo "${ECHO_T}no" >&6
11742 fi
11743
11744   CC=$ac_ct_CC
11745 else
11746   CC="$ac_cv_prog_CC"
11747 fi
11748
11749 fi
11750 if test -z "$CC"; then
11751   # Extract the first word of "cc", so it can be a program name with args.
11752 set dummy cc; ac_word=$2
11753 echo "$as_me:$LINENO: checking for $ac_word" >&5
11754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11755 if test "${ac_cv_prog_CC+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   if test -n "$CC"; then
11759   ac_cv_prog_CC="$CC" # Let the user override the test.
11760 else
11761   ac_prog_rejected=no
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765   IFS=$as_save_IFS
11766   test -z "$as_dir" && as_dir=.
11767   for ac_exec_ext in '' $ac_executable_extensions; do
11768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11770        ac_prog_rejected=yes
11771        continue
11772      fi
11773     ac_cv_prog_CC="cc"
11774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775     break 2
11776   fi
11777 done
11778 done
11779
11780 if test $ac_prog_rejected = yes; then
11781   # We found a bogon in the path, so make sure we never use it.
11782   set dummy $ac_cv_prog_CC
11783   shift
11784   if test $# != 0; then
11785     # We chose a different compiler from the bogus one.
11786     # However, it has the same basename, so the bogon will be chosen
11787     # first if we set CC to just the basename; use the full file name.
11788     shift
11789     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11790   fi
11791 fi
11792 fi
11793 fi
11794 CC=$ac_cv_prog_CC
11795 if test -n "$CC"; then
11796   echo "$as_me:$LINENO: result: $CC" >&5
11797 echo "${ECHO_T}$CC" >&6
11798 else
11799   echo "$as_me:$LINENO: result: no" >&5
11800 echo "${ECHO_T}no" >&6
11801 fi
11802
11803 fi
11804 if test -z "$CC"; then
11805   if test -n "$ac_tool_prefix"; then
11806   for ac_prog in cl
11807   do
11808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11810 echo "$as_me:$LINENO: checking for $ac_word" >&5
11811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11812 if test "${ac_cv_prog_CC+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   if test -n "$CC"; then
11816   ac_cv_prog_CC="$CC" # Let the user override the test.
11817 else
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821   IFS=$as_save_IFS
11822   test -z "$as_dir" && as_dir=.
11823   for ac_exec_ext in '' $ac_executable_extensions; do
11824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11827     break 2
11828   fi
11829 done
11830 done
11831
11832 fi
11833 fi
11834 CC=$ac_cv_prog_CC
11835 if test -n "$CC"; then
11836   echo "$as_me:$LINENO: result: $CC" >&5
11837 echo "${ECHO_T}$CC" >&6
11838 else
11839   echo "$as_me:$LINENO: result: no" >&5
11840 echo "${ECHO_T}no" >&6
11841 fi
11842
11843     test -n "$CC" && break
11844   done
11845 fi
11846 if test -z "$CC"; then
11847   ac_ct_CC=$CC
11848   for ac_prog in cl
11849 do
11850   # Extract the first word of "$ac_prog", so it can be a program name with args.
11851 set dummy $ac_prog; ac_word=$2
11852 echo "$as_me:$LINENO: checking for $ac_word" >&5
11853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   if test -n "$ac_ct_CC"; then
11858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11859 else
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11862 do
11863   IFS=$as_save_IFS
11864   test -z "$as_dir" && as_dir=.
11865   for ac_exec_ext in '' $ac_executable_extensions; do
11866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867     ac_cv_prog_ac_ct_CC="$ac_prog"
11868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11869     break 2
11870   fi
11871 done
11872 done
11873
11874 fi
11875 fi
11876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877 if test -n "$ac_ct_CC"; then
11878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11879 echo "${ECHO_T}$ac_ct_CC" >&6
11880 else
11881   echo "$as_me:$LINENO: result: no" >&5
11882 echo "${ECHO_T}no" >&6
11883 fi
11884
11885   test -n "$ac_ct_CC" && break
11886 done
11887
11888   CC=$ac_ct_CC
11889 fi
11890
11891 fi
11892
11893
11894 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11895 See \`config.log' for more details." >&5
11896 echo "$as_me: error: no acceptable C compiler found in \$PATH
11897 See \`config.log' for more details." >&2;}
11898    { (exit 1); exit 1; }; }
11899
11900 # Provide some information about the compiler.
11901 echo "$as_me:$LINENO:" \
11902      "checking for C compiler version" >&5
11903 ac_compiler=`set X $ac_compile; echo $2`
11904 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11905   (eval $ac_compiler --version </dev/null >&5) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }
11909 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11910   (eval $ac_compiler -v </dev/null >&5) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }
11914 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11915   (eval $ac_compiler -V </dev/null >&5) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }
11919
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926
11927 int
11928 main ()
11929 {
11930
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 ac_clean_files_save=$ac_clean_files
11936 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11937 # Try to create an executable without -o first, disregard a.out.
11938 # It will help us diagnose broken compilers, and finding out an intuition
11939 # of exeext.
11940 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11941 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11942 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11944   (eval $ac_link_default) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; then
11948   # Find the output, starting from the most likely.  This scheme is
11949 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11950 # resort.
11951
11952 # Be careful to initialize this variable, since it used to be cached.
11953 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11954 ac_cv_exeext=
11955 # b.out is created by i960 compilers.
11956 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11957 do
11958   test -f "$ac_file" || continue
11959   case $ac_file in
11960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11961         ;;
11962     conftest.$ac_ext )
11963         # This is the source file.
11964         ;;
11965     [ab].out )
11966         # We found the default executable, but exeext='' is most
11967         # certainly right.
11968         break;;
11969     *.* )
11970         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11971         # FIXME: I believe we export ac_cv_exeext for Libtool,
11972         # but it would be cool to find out if it's true.  Does anybody
11973         # maintain Libtool? --akim.
11974         export ac_cv_exeext
11975         break;;
11976     * )
11977         break;;
11978   esac
11979 done
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11985 See \`config.log' for more details." >&5
11986 echo "$as_me: error: C compiler cannot create executables
11987 See \`config.log' for more details." >&2;}
11988    { (exit 77); exit 77; }; }
11989 fi
11990
11991 ac_exeext=$ac_cv_exeext
11992 echo "$as_me:$LINENO: result: $ac_file" >&5
11993 echo "${ECHO_T}$ac_file" >&6
11994
11995 # Check the compiler produces executables we can run.  If not, either
11996 # the compiler is broken, or we cross compile.
11997 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11998 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11999 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12000 # If not cross compiling, check that we can run a simple program.
12001 if test "$cross_compiling" != yes; then
12002   if { ac_try='./$ac_file'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; }; then
12008     cross_compiling=no
12009   else
12010     if test "$cross_compiling" = maybe; then
12011         cross_compiling=yes
12012     else
12013         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12014 If you meant to cross compile, use \`--host'.
12015 See \`config.log' for more details." >&5
12016 echo "$as_me: error: cannot run C compiled programs.
12017 If you meant to cross compile, use \`--host'.
12018 See \`config.log' for more details." >&2;}
12019    { (exit 1); exit 1; }; }
12020     fi
12021   fi
12022 fi
12023 echo "$as_me:$LINENO: result: yes" >&5
12024 echo "${ECHO_T}yes" >&6
12025
12026 rm -f a.out a.exe conftest$ac_cv_exeext b.out
12027 ac_clean_files=$ac_clean_files_save
12028 # Check the compiler produces executables we can run.  If not, either
12029 # the compiler is broken, or we cross compile.
12030 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12031 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12032 echo "$as_me:$LINENO: result: $cross_compiling" >&5
12033 echo "${ECHO_T}$cross_compiling" >&6
12034
12035 echo "$as_me:$LINENO: checking for suffix of executables" >&5
12036 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038   (eval $ac_link) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; then
12042   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12043 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12044 # work properly (i.e., refer to `conftest.exe'), while it won't with
12045 # `rm'.
12046 for ac_file in conftest.exe conftest conftest.*; do
12047   test -f "$ac_file" || continue
12048   case $ac_file in
12049     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12050     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12051           export ac_cv_exeext
12052           break;;
12053     * ) break;;
12054   esac
12055 done
12056 else
12057   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12058 See \`config.log' for more details." >&5
12059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12060 See \`config.log' for more details." >&2;}
12061    { (exit 1); exit 1; }; }
12062 fi
12063
12064 rm -f conftest$ac_cv_exeext
12065 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12066 echo "${ECHO_T}$ac_cv_exeext" >&6
12067
12068 rm -f conftest.$ac_ext
12069 EXEEXT=$ac_cv_exeext
12070 ac_exeext=$EXEEXT
12071 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12072 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12073 if test "${ac_cv_objext+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082
12083 int
12084 main ()
12085 {
12086
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.o conftest.obj
12092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093   (eval $ac_compile) 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; then
12097   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12098   case $ac_file in
12099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12100     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12101        break;;
12102   esac
12103 done
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12109 See \`config.log' for more details." >&5
12110 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12111 See \`config.log' for more details." >&2;}
12112    { (exit 1); exit 1; }; }
12113 fi
12114
12115 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12116 fi
12117 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12118 echo "${ECHO_T}$ac_cv_objext" >&6
12119 OBJEXT=$ac_cv_objext
12120 ac_objext=$OBJEXT
12121 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12122 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12123 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12124   echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126   cat >conftest.$ac_ext <<_ACEOF
12127 /* confdefs.h.  */
12128 _ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h.  */
12132
12133 int
12134 main ()
12135 {
12136 #ifndef __GNUC__
12137        choke me
12138 #endif
12139
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146   (eval $ac_compile) 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155   (eval $ac_try) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; } &&
12159          { ac_try='test -s conftest.$ac_objext'
12160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161   (eval $ac_try) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   ac_compiler_gnu=yes
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_compiler_gnu=no
12171 fi
12172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12174
12175 fi
12176 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12178 GCC=`test $ac_compiler_gnu = yes && echo yes`
12179 ac_test_CFLAGS=${CFLAGS+set}
12180 ac_save_CFLAGS=$CFLAGS
12181 CFLAGS="-g"
12182 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12184 if test "${ac_cv_prog_cc_g+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h.  */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h.  */
12193
12194 int
12195 main ()
12196 {
12197
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12204   (eval $ac_compile) 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest.$ac_objext'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   ac_cv_prog_cc_g=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 ac_cv_prog_cc_g=no
12229 fi
12230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12231 fi
12232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12234 if test "$ac_test_CFLAGS" = set; then
12235   CFLAGS=$ac_save_CFLAGS
12236 elif test $ac_cv_prog_cc_g = yes; then
12237   if test "$GCC" = yes; then
12238     CFLAGS="-g -O2"
12239   else
12240     CFLAGS="-g"
12241   fi
12242 else
12243   if test "$GCC" = yes; then
12244     CFLAGS="-O2"
12245   else
12246     CFLAGS=
12247   fi
12248 fi
12249 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12250 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12251 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254   ac_cv_prog_cc_stdc=no
12255 ac_save_CC=$CC
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h.  */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h.  */
12262 #include <stdarg.h>
12263 #include <stdio.h>
12264 #include <sys/types.h>
12265 #include <sys/stat.h>
12266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12267 struct buf { int x; };
12268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12269 static char *e (p, i)
12270      char **p;
12271      int i;
12272 {
12273   return p[i];
12274 }
12275 static char *f (char * (*g) (char **, int), char **p, ...)
12276 {
12277   char *s;
12278   va_list v;
12279   va_start (v,p);
12280   s = g (p, va_arg (v,int));
12281   va_end (v);
12282   return s;
12283 }
12284
12285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12286    function prototypes and stuff, but not '\xHH' hex character constants.
12287    These don't provoke an error unfortunately, instead are silently treated
12288    as 'x'.  The following induces an error, until -std1 is added to get
12289    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12290    array size at least.  It's necessary to write '\x00'==0 to get something
12291    that's true only with -std1.  */
12292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12293
12294 int test (int i, double x);
12295 struct s1 {int (*f) (int a);};
12296 struct s2 {int (*f) (double a);};
12297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12298 int argc;
12299 char **argv;
12300 int
12301 main ()
12302 {
12303 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 # Don't try gcc -ansi; that turns off useful extensions and
12309 # breaks some systems' header files.
12310 # AIX                   -qlanglvl=ansi
12311 # Ultrix and OSF/1      -std1
12312 # HP-UX 10.20 and later -Ae
12313 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12314 # SVR4                  -Xc -D__EXTENSIONS__
12315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12316 do
12317   CC="$ac_save_CC $ac_arg"
12318   rm -f conftest.$ac_objext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320   (eval $ac_compile) 2>conftest.er1
12321   ac_status=$?
12322   grep -v '^ *+' conftest.er1 >conftest.err
12323   rm -f conftest.er1
12324   cat conftest.err >&5
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); } &&
12327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest.$ac_objext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_cv_prog_cc_stdc=$ac_arg
12340 break
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 fi
12346 rm -f conftest.err conftest.$ac_objext
12347 done
12348 rm -f conftest.$ac_ext conftest.$ac_objext
12349 CC=$ac_save_CC
12350
12351 fi
12352
12353 case "x$ac_cv_prog_cc_stdc" in
12354   x|xno)
12355     echo "$as_me:$LINENO: result: none needed" >&5
12356 echo "${ECHO_T}none needed" >&6 ;;
12357   *)
12358     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12359 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12360     CC="$CC $ac_cv_prog_cc_stdc" ;;
12361 esac
12362
12363 # Some people use a C++ compiler to compile C.  Since we use `exit',
12364 # in C++ we need to declare it.  In case someone uses the same compiler
12365 # for both compiling C and C++ we need to have the C++ compiler decide
12366 # the declaration of exit, since it's the most demanding environment.
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #ifndef __cplusplus
12369   choke me
12370 #endif
12371 _ACEOF
12372 rm -f conftest.$ac_objext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374   (eval $ac_compile) 2>conftest.er1
12375   ac_status=$?
12376   grep -v '^ *+' conftest.er1 >conftest.err
12377   rm -f conftest.er1
12378   cat conftest.err >&5
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); } &&
12381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383   (eval $ac_try) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; } &&
12387          { ac_try='test -s conftest.$ac_objext'
12388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389   (eval $ac_try) 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; }; then
12393   for ac_declaration in \
12394    '' \
12395    'extern "C" void std::exit (int) throw (); using std::exit;' \
12396    'extern "C" void std::exit (int); using std::exit;' \
12397    'extern "C" void exit (int) throw ();' \
12398    'extern "C" void exit (int);' \
12399    'void exit (int);'
12400 do
12401   cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407 $ac_declaration
12408 #include <stdlib.h>
12409 int
12410 main ()
12411 {
12412 exit (42);
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 rm -f conftest.$ac_objext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12419   (eval $ac_compile) 2>conftest.er1
12420   ac_status=$?
12421   grep -v '^ *+' conftest.er1 >conftest.err
12422   rm -f conftest.er1
12423   cat conftest.err >&5
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } &&
12426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest.$ac_objext'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   :
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 continue
12444 fi
12445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 $ac_declaration
12453 int
12454 main ()
12455 {
12456 exit (42);
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463   (eval $ac_compile) 2>conftest.er1
12464   ac_status=$?
12465   grep -v '^ *+' conftest.er1 >conftest.err
12466   rm -f conftest.er1
12467   cat conftest.err >&5
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } &&
12470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; } &&
12476          { ac_try='test -s conftest.$ac_objext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   break
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 fi
12488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12489 done
12490 rm -f conftest*
12491 if test -n "$ac_declaration"; then
12492   echo '#ifdef __cplusplus' >>confdefs.h
12493   echo $ac_declaration      >>confdefs.h
12494   echo '#endif'             >>confdefs.h
12495 fi
12496
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 fi
12502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12503 ac_ext=c
12504 ac_cpp='$CPP $CPPFLAGS'
12505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
12509
12510
12511     ac_ext=c
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516
12517     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12518 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12519 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528
12529 int
12530 main ()
12531 {
12532
12533              #ifndef __INTEL_COMPILER
12534                 choke me
12535              #endif
12536
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543   (eval $ac_compile) 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 bakefile_cv_c_compiler___INTEL_COMPILER=no
12568
12569 fi
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571
12572
12573 fi
12574 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12575 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12576     ac_ext=c
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12583         :; INTELCC=yes
12584     else
12585         :;
12586     fi
12587
12588
12589         if test "x$GCC" != "xyes"; then
12590         if test "xCC" = "xC"; then
12591             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12592 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12593 if test "${bakefile_cv_c_exto+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603 int
12604 main ()
12605 {
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest.$ac_ext.o
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613   (eval $ac_compile) 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); }; then
12617   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12618     case $ac_file in
12619         conftest.$ac_ext.o)
12620             bakefile_cv_c_exto="-ext o"
12621             ;;
12622         *)
12623             ;;
12624     esac
12625 done
12626 else
12627   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12628 See \`config.log' for more details." >&5
12629 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12630 See \`config.log' for more details." >&2;}
12631    { (exit 1); exit 1; }; }
12632
12633 fi
12634
12635 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12636
12637 fi
12638 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12639 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12640 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12641     if test "c" = "c"; then
12642         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12643     fi
12644     if test "c" = "cxx"; then
12645         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12646     fi
12647 fi
12648
12649             if test "x$bakefile_cv_c_exto" '!=' "x"; then
12650                 unset ac_cv_prog_cc_g
12651                 ac_test_CFLAGS=${CFLAGS+set}
12652 ac_save_CFLAGS=$CFLAGS
12653 CFLAGS="-g"
12654 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12655 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12656 if test "${ac_cv_prog_cc_g+set}" = set; then
12657   echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659   cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665
12666 int
12667 main ()
12668 {
12669
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 rm -f conftest.$ac_objext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676   (eval $ac_compile) 2>conftest.er1
12677   ac_status=$?
12678   grep -v '^ *+' conftest.er1 >conftest.err
12679   rm -f conftest.er1
12680   cat conftest.err >&5
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; } &&
12689          { ac_try='test -s conftest.$ac_objext'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   ac_cv_prog_cc_g=yes
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 ac_cv_prog_cc_g=no
12701 fi
12702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12703 fi
12704 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12706 if test "$ac_test_CFLAGS" = set; then
12707   CFLAGS=$ac_save_CFLAGS
12708 elif test $ac_cv_prog_cc_g = yes; then
12709   if test "$GCC" = yes; then
12710     CFLAGS="-g -O2"
12711   else
12712     CFLAGS="-g"
12713   fi
12714 else
12715   if test "$GCC" = yes; then
12716     CFLAGS="-O2"
12717   else
12718     CFLAGS=
12719   fi
12720 fi
12721             fi
12722         fi
12723
12724                         case `uname -s` in
12725             AIX*)
12726                 ac_ext=c
12727 ac_cpp='$CPP $CPPFLAGS'
12728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12733 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12734 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743
12744 int
12745 main ()
12746 {
12747 #ifndef __xlC__
12748        choke me
12749 #endif
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757   (eval $ac_compile) 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } &&
12770          { ac_try='test -s conftest.$ac_objext'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   bakefile_compiler_xlc=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 bakefile_compiler_xlc=no
12782 fi
12783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12784     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12785
12786 fi
12787 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12788 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12789
12790 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12791 ac_ext=c
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797
12798                 ;;
12799
12800             Darwin)
12801                 ac_ext=c
12802 ac_cpp='$CPP $CPPFLAGS'
12803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12808 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12809 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h.  */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h.  */
12818
12819 int
12820 main ()
12821 {
12822 #ifndef __MWERKS__
12823        choke me
12824 #endif
12825
12826   ;
12827   return 0;
12828 }
12829 _ACEOF
12830 rm -f conftest.$ac_objext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832   (eval $ac_compile) 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } &&
12839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841   (eval $ac_try) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); }; } &&
12845          { ac_try='test -s conftest.$ac_objext'
12846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847   (eval $ac_try) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   bakefile_compiler_mwerks=yes
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 bakefile_compiler_mwerks=no
12857 fi
12858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12860
12861 fi
12862 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12863 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12864
12865 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12866 ac_ext=c
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872
12873                 ac_ext=c
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12880 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12881 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12882   echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884   cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890
12891 int
12892 main ()
12893 {
12894 #ifndef __xlC__
12895        choke me
12896 #endif
12897
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904   (eval $ac_compile) 2>conftest.er1
12905   ac_status=$?
12906   grep -v '^ *+' conftest.er1 >conftest.err
12907   rm -f conftest.er1
12908   cat conftest.err >&5
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); } &&
12911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913   (eval $ac_try) 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); }; } &&
12917          { ac_try='test -s conftest.$ac_objext'
12918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919   (eval $ac_try) 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; }; then
12923   bakefile_compiler_xlc=yes
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 bakefile_compiler_xlc=no
12929 fi
12930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12931     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12932
12933 fi
12934 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12935 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12936
12937 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12938 ac_ext=c
12939 ac_cpp='$CPP $CPPFLAGS'
12940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944
12945                 ;;
12946
12947             IRIX*)
12948
12949
12950     ac_ext=c
12951 ac_cpp='$CPP $CPPFLAGS'
12952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12957 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12958 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967
12968 int
12969 main ()
12970 {
12971
12972              #ifndef _SGI_COMPILER_VERSION
12973                 choke me
12974              #endif
12975
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982   (eval $ac_compile) 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; } &&
12995          { ac_try='test -s conftest.$ac_objext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13007
13008 fi
13009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010
13011
13012 fi
13013 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13014 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13015     ac_ext=c
13016 ac_cpp='$CPP $CPPFLAGS'
13017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13020
13021     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13022         :; SGICC=yes
13023     else
13024         :;
13025     fi
13026
13027
13028                 ;;
13029
13030             HP-UX*)
13031
13032
13033     ac_ext=c
13034 ac_cpp='$CPP $CPPFLAGS'
13035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13038
13039     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13040 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13041 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050
13051 int
13052 main ()
13053 {
13054
13055              #ifndef __HP_cc
13056                 choke me
13057              #endif
13058
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065   (eval $ac_compile) 2>conftest.er1
13066   ac_status=$?
13067   grep -v '^ *+' conftest.er1 >conftest.err
13068   rm -f conftest.er1
13069   cat conftest.err >&5
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } &&
13072          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074   (eval $ac_try) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; } &&
13078          { ac_try='test -s conftest.$ac_objext'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084   bakefile_cv_c_compiler___HP_cc=yes
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 bakefile_cv_c_compiler___HP_cc=no
13090
13091 fi
13092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093
13094
13095 fi
13096 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13097 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13098     ac_ext=c
13099 ac_cpp='$CPP $CPPFLAGS'
13100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103
13104     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13105         :; HPCC=yes
13106     else
13107         :;
13108     fi
13109
13110
13111                 ;;
13112
13113             OSF1)
13114
13115
13116     ac_ext=c
13117 ac_cpp='$CPP $CPPFLAGS'
13118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13121
13122     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13123 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13124 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133
13134 int
13135 main ()
13136 {
13137
13138              #ifndef __DECC
13139                 choke me
13140              #endif
13141
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148   (eval $ac_compile) 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157   (eval $ac_try) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; } &&
13161          { ac_try='test -s conftest.$ac_objext'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167   bakefile_cv_c_compiler___DECC=yes
13168 else
13169   echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 bakefile_cv_c_compiler___DECC=no
13173
13174 fi
13175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13176
13177
13178 fi
13179 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13180 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13181     ac_ext=c
13182 ac_cpp='$CPP $CPPFLAGS'
13183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
13187     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13188         :; COMPAQCC=yes
13189     else
13190         :;
13191     fi
13192
13193
13194                 ;;
13195
13196             SunOS)
13197
13198
13199     ac_ext=c
13200 ac_cpp='$CPP $CPPFLAGS'
13201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
13205     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13206 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13207 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13208   echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210   cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h.  */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h.  */
13216
13217 int
13218 main ()
13219 {
13220
13221              #ifndef __SUNPRO_C
13222                 choke me
13223              #endif
13224
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231   (eval $ac_compile) 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; } &&
13244          { ac_try='test -s conftest.$ac_objext'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   bakefile_cv_c_compiler___SUNPRO_C=yes
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 bakefile_cv_c_compiler___SUNPRO_C=no
13256
13257 fi
13258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13259
13260
13261 fi
13262 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13263 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13264     ac_ext=c
13265 ac_cpp='$CPP $CPPFLAGS'
13266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269
13270     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13271         :; SUNCC=yes
13272     else
13273         :;
13274     fi
13275
13276
13277                 ;;
13278         esac
13279     fi
13280
13281
13282
13283 ac_ext=c
13284 ac_cpp='$CPP $CPPFLAGS'
13285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13288 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13290 # On Suns, sometimes $CPP names a directory.
13291 if test -n "$CPP" && test -d "$CPP"; then
13292   CPP=
13293 fi
13294 if test -z "$CPP"; then
13295   if test "${ac_cv_prog_CPP+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298       # Double quotes because CPP needs to be expanded
13299     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13300     do
13301       ac_preproc_ok=false
13302 for ac_c_preproc_warn_flag in '' yes
13303 do
13304   # Use a header file that comes with gcc, so configuring glibc
13305   # with a fresh cross-compiler works.
13306   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13307   # <limits.h> exists even on freestanding compilers.
13308   # On the NeXT, cc -E runs the code through the compiler's parser,
13309   # not just through cpp. "Syntax error" is here to catch this case.
13310   cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316 #ifdef __STDC__
13317 # include <limits.h>
13318 #else
13319 # include <assert.h>
13320 #endif
13321                      Syntax error
13322 _ACEOF
13323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } >/dev/null; then
13331   if test -s conftest.err; then
13332     ac_cpp_err=$ac_c_preproc_warn_flag
13333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13334   else
13335     ac_cpp_err=
13336   fi
13337 else
13338   ac_cpp_err=yes
13339 fi
13340 if test -z "$ac_cpp_err"; then
13341   :
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346   # Broken: fails on valid input.
13347 continue
13348 fi
13349 rm -f conftest.err conftest.$ac_ext
13350
13351   # OK, works on sane cases.  Now check whether non-existent headers
13352   # can be detected and how.
13353   cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 #include <ac_nonexistent.h>
13360 _ACEOF
13361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13363   ac_status=$?
13364   grep -v '^ *+' conftest.er1 >conftest.err
13365   rm -f conftest.er1
13366   cat conftest.err >&5
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } >/dev/null; then
13369   if test -s conftest.err; then
13370     ac_cpp_err=$ac_c_preproc_warn_flag
13371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13372   else
13373     ac_cpp_err=
13374   fi
13375 else
13376   ac_cpp_err=yes
13377 fi
13378 if test -z "$ac_cpp_err"; then
13379   # Broken: success on invalid input.
13380 continue
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385   # Passes both tests.
13386 ac_preproc_ok=:
13387 break
13388 fi
13389 rm -f conftest.err conftest.$ac_ext
13390
13391 done
13392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13393 rm -f conftest.err conftest.$ac_ext
13394 if $ac_preproc_ok; then
13395   break
13396 fi
13397
13398     done
13399     ac_cv_prog_CPP=$CPP
13400
13401 fi
13402   CPP=$ac_cv_prog_CPP
13403 else
13404   ac_cv_prog_CPP=$CPP
13405 fi
13406 echo "$as_me:$LINENO: result: $CPP" >&5
13407 echo "${ECHO_T}$CPP" >&6
13408 ac_preproc_ok=false
13409 for ac_c_preproc_warn_flag in '' yes
13410 do
13411   # Use a header file that comes with gcc, so configuring glibc
13412   # with a fresh cross-compiler works.
13413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13414   # <limits.h> exists even on freestanding compilers.
13415   # On the NeXT, cc -E runs the code through the compiler's parser,
13416   # not just through cpp. "Syntax error" is here to catch this case.
13417   cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 #ifdef __STDC__
13424 # include <limits.h>
13425 #else
13426 # include <assert.h>
13427 #endif
13428                      Syntax error
13429 _ACEOF
13430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } >/dev/null; then
13438   if test -s conftest.err; then
13439     ac_cpp_err=$ac_c_preproc_warn_flag
13440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13441   else
13442     ac_cpp_err=
13443   fi
13444 else
13445   ac_cpp_err=yes
13446 fi
13447 if test -z "$ac_cpp_err"; then
13448   :
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453   # Broken: fails on valid input.
13454 continue
13455 fi
13456 rm -f conftest.err conftest.$ac_ext
13457
13458   # OK, works on sane cases.  Now check whether non-existent headers
13459   # can be detected and how.
13460   cat >conftest.$ac_ext <<_ACEOF
13461 /* confdefs.h.  */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h.  */
13466 #include <ac_nonexistent.h>
13467 _ACEOF
13468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } >/dev/null; then
13476   if test -s conftest.err; then
13477     ac_cpp_err=$ac_c_preproc_warn_flag
13478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13479   else
13480     ac_cpp_err=
13481   fi
13482 else
13483   ac_cpp_err=yes
13484 fi
13485 if test -z "$ac_cpp_err"; then
13486   # Broken: success on invalid input.
13487 continue
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492   # Passes both tests.
13493 ac_preproc_ok=:
13494 break
13495 fi
13496 rm -f conftest.err conftest.$ac_ext
13497
13498 done
13499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13500 rm -f conftest.err conftest.$ac_ext
13501 if $ac_preproc_ok; then
13502   :
13503 else
13504   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13505 See \`config.log' for more details." >&5
13506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13507 See \`config.log' for more details." >&2;}
13508    { (exit 1); exit 1; }; }
13509 fi
13510
13511 ac_ext=c
13512 ac_cpp='$CPP $CPPFLAGS'
13513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13516
13517
13518 echo "$as_me:$LINENO: checking for egrep" >&5
13519 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13520 if test "${ac_cv_prog_egrep+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13524     then ac_cv_prog_egrep='grep -E'
13525     else ac_cv_prog_egrep='egrep'
13526     fi
13527 fi
13528 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13529 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13530  EGREP=$ac_cv_prog_egrep
13531
13532
13533 if test $ac_cv_c_compiler_gnu = yes; then
13534     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13535 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13536 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539     ac_pattern="Autoconf.*'x'"
13540   cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 #include <sgtty.h>
13547 Autoconf TIOCGETP
13548 _ACEOF
13549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13550   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13551   ac_cv_prog_gcc_traditional=yes
13552 else
13553   ac_cv_prog_gcc_traditional=no
13554 fi
13555 rm -f conftest*
13556
13557
13558   if test $ac_cv_prog_gcc_traditional = no; then
13559     cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h.  */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h.  */
13565 #include <termio.h>
13566 Autoconf TCGETA
13567 _ACEOF
13568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13569   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13570   ac_cv_prog_gcc_traditional=yes
13571 fi
13572 rm -f conftest*
13573
13574   fi
13575 fi
13576 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13577 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13578   if test $ac_cv_prog_gcc_traditional = yes; then
13579     CC="$CC -traditional"
13580   fi
13581 fi
13582
13583
13584 ac_ext=cc
13585 ac_cpp='$CXXCPP $CPPFLAGS'
13586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589
13590
13591 CXXFLAGS=${CXXFLAGS:=}
13592
13593
13594
13595     ac_ext=cc
13596 ac_cpp='$CXXCPP $CPPFLAGS'
13597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13600 if test -n "$ac_tool_prefix"; then
13601   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13602   do
13603     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13604 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13605 echo "$as_me:$LINENO: checking for $ac_word" >&5
13606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13607 if test "${ac_cv_prog_CXX+set}" = set; then
13608   echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610   if test -n "$CXX"; then
13611   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616   IFS=$as_save_IFS
13617   test -z "$as_dir" && as_dir=.
13618   for ac_exec_ext in '' $ac_executable_extensions; do
13619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13622     break 2
13623   fi
13624 done
13625 done
13626
13627 fi
13628 fi
13629 CXX=$ac_cv_prog_CXX
13630 if test -n "$CXX"; then
13631   echo "$as_me:$LINENO: result: $CXX" >&5
13632 echo "${ECHO_T}$CXX" >&6
13633 else
13634   echo "$as_me:$LINENO: result: no" >&5
13635 echo "${ECHO_T}no" >&6
13636 fi
13637
13638     test -n "$CXX" && break
13639   done
13640 fi
13641 if test -z "$CXX"; then
13642   ac_ct_CXX=$CXX
13643   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13644 do
13645   # Extract the first word of "$ac_prog", so it can be a program name with args.
13646 set dummy $ac_prog; ac_word=$2
13647 echo "$as_me:$LINENO: checking for $ac_word" >&5
13648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13649 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13650   echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652   if test -n "$ac_ct_CXX"; then
13653   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13654 else
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $PATH
13657 do
13658   IFS=$as_save_IFS
13659   test -z "$as_dir" && as_dir=.
13660   for ac_exec_ext in '' $ac_executable_extensions; do
13661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662     ac_cv_prog_ac_ct_CXX="$ac_prog"
13663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13664     break 2
13665   fi
13666 done
13667 done
13668
13669 fi
13670 fi
13671 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13672 if test -n "$ac_ct_CXX"; then
13673   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13674 echo "${ECHO_T}$ac_ct_CXX" >&6
13675 else
13676   echo "$as_me:$LINENO: result: no" >&5
13677 echo "${ECHO_T}no" >&6
13678 fi
13679
13680   test -n "$ac_ct_CXX" && break
13681 done
13682 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13683
13684   CXX=$ac_ct_CXX
13685 fi
13686
13687
13688 # Provide some information about the compiler.
13689 echo "$as_me:$LINENO:" \
13690      "checking for C++ compiler version" >&5
13691 ac_compiler=`set X $ac_compile; echo $2`
13692 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13693   (eval $ac_compiler --version </dev/null >&5) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }
13697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13698   (eval $ac_compiler -v </dev/null >&5) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }
13702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13703   (eval $ac_compiler -V </dev/null >&5) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); }
13707
13708 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13709 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13710 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13711   echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713   cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h.  */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h.  */
13719
13720 int
13721 main ()
13722 {
13723 #ifndef __GNUC__
13724        choke me
13725 #endif
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733   (eval $ac_compile) 2>conftest.er1
13734   ac_status=$?
13735   grep -v '^ *+' conftest.er1 >conftest.err
13736   rm -f conftest.er1
13737   cat conftest.err >&5
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); } &&
13740          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742   (eval $ac_try) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest.$ac_objext'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; }; then
13752   ac_compiler_gnu=yes
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_compiler_gnu=no
13758 fi
13759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13761
13762 fi
13763 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13765 GXX=`test $ac_compiler_gnu = yes && echo yes`
13766 ac_test_CXXFLAGS=${CXXFLAGS+set}
13767 ac_save_CXXFLAGS=$CXXFLAGS
13768 CXXFLAGS="-g"
13769 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13771 if test "${ac_cv_prog_cxx_g+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780
13781 int
13782 main ()
13783 {
13784
13785   ;
13786   return 0;
13787 }
13788 _ACEOF
13789 rm -f conftest.$ac_objext
13790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13791   (eval $ac_compile) 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_cv_prog_cxx_g=yes
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_cv_prog_cxx_g=no
13816 fi
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 fi
13819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13821 if test "$ac_test_CXXFLAGS" = set; then
13822   CXXFLAGS=$ac_save_CXXFLAGS
13823 elif test $ac_cv_prog_cxx_g = yes; then
13824   if test "$GXX" = yes; then
13825     CXXFLAGS="-g -O2"
13826   else
13827     CXXFLAGS="-g"
13828   fi
13829 else
13830   if test "$GXX" = yes; then
13831     CXXFLAGS="-O2"
13832   else
13833     CXXFLAGS=
13834   fi
13835 fi
13836 for ac_declaration in \
13837    '' \
13838    'extern "C" void std::exit (int) throw (); using std::exit;' \
13839    'extern "C" void std::exit (int); using std::exit;' \
13840    'extern "C" void exit (int) throw ();' \
13841    'extern "C" void exit (int);' \
13842    'void exit (int);'
13843 do
13844   cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850 $ac_declaration
13851 #include <stdlib.h>
13852 int
13853 main ()
13854 {
13855 exit (42);
13856   ;
13857   return 0;
13858 }
13859 _ACEOF
13860 rm -f conftest.$ac_objext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13862   (eval $ac_compile) 2>conftest.er1
13863   ac_status=$?
13864   grep -v '^ *+' conftest.er1 >conftest.err
13865   rm -f conftest.er1
13866   cat conftest.err >&5
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); } &&
13869          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871   (eval $ac_try) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; } &&
13875          { ac_try='test -s conftest.$ac_objext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   :
13882 else
13883   echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 continue
13887 fi
13888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13889   cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h.  */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h.  */
13895 $ac_declaration
13896 int
13897 main ()
13898 {
13899 exit (42);
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906   (eval $ac_compile) 2>conftest.er1
13907   ac_status=$?
13908   grep -v '^ *+' conftest.er1 >conftest.err
13909   rm -f conftest.er1
13910   cat conftest.err >&5
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); } &&
13913          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915   (eval $ac_try) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; } &&
13919          { ac_try='test -s conftest.$ac_objext'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; }; then
13925   break
13926 else
13927   echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13929
13930 fi
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932 done
13933 rm -f conftest*
13934 if test -n "$ac_declaration"; then
13935   echo '#ifdef __cplusplus' >>confdefs.h
13936   echo $ac_declaration      >>confdefs.h
13937   echo '#endif'             >>confdefs.h
13938 fi
13939
13940 ac_ext=cc
13941 ac_cpp='$CXXCPP $CPPFLAGS'
13942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13945
13946
13947
13948     ac_ext=cc
13949 ac_cpp='$CXXCPP $CPPFLAGS'
13950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13953
13954     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13955 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13956 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13957   echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959   cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h.  */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h.  */
13965
13966 int
13967 main ()
13968 {
13969
13970              #ifndef __INTEL_COMPILER
13971                 choke me
13972              #endif
13973
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext
13979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13980   (eval $ac_compile) 2>conftest.er1
13981   ac_status=$?
13982   grep -v '^ *+' conftest.er1 >conftest.err
13983   rm -f conftest.er1
13984   cat conftest.err >&5
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } &&
13987          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; } &&
13993          { ac_try='test -s conftest.$ac_objext'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; }; then
13999   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14000 else
14001   echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14003
14004 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14005
14006 fi
14007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14008
14009
14010 fi
14011 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14012 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14013     ac_ext=cc
14014 ac_cpp='$CXXCPP $CPPFLAGS'
14015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14018
14019     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14020         :; INTELCXX=yes
14021     else
14022         :;
14023     fi
14024
14025
14026         if test "x$GCXX" != "xyes"; then
14027         if test "xCXX" = "xC"; then
14028             echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
14029 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
14030 if test "${bakefile_cv_cxx_exto+set}" = set; then
14031   echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033   cat >conftest.$ac_ext <<_ACEOF
14034 /* confdefs.h.  */
14035 _ACEOF
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h.  */
14039
14040 int
14041 main ()
14042 {
14043
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext conftest.$ac_ext.o
14049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050   (eval $ac_compile) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; then
14054   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14055     case $ac_file in
14056         conftest.$ac_ext.o)
14057             bakefile_cv_cxx_exto="-ext o"
14058             ;;
14059         *)
14060             ;;
14061     esac
14062 done
14063 else
14064   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14065 See \`config.log' for more details." >&5
14066 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14067 See \`config.log' for more details." >&2;}
14068    { (exit 1); exit 1; }; }
14069
14070 fi
14071
14072 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14073
14074 fi
14075 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14076 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14077 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
14078     if test "cxx" = "c"; then
14079         CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
14080     fi
14081     if test "cxx" = "cxx"; then
14082         CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
14083     fi
14084 fi
14085
14086             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14087                 unset ac_cv_prog_cc_g
14088                 ac_test_CFLAGS=${CFLAGS+set}
14089 ac_save_CFLAGS=$CFLAGS
14090 CFLAGS="-g"
14091 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14092 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14093 if test "${ac_cv_prog_cc_g+set}" = set; then
14094   echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096   cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h.  */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h.  */
14102
14103 int
14104 main ()
14105 {
14106
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113   (eval $ac_compile) 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } &&
14120          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; } &&
14126          { ac_try='test -s conftest.$ac_objext'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; }; then
14132   ac_cv_prog_cc_g=yes
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 ac_cv_prog_cc_g=no
14138 fi
14139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 fi
14141 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14142 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14143 if test "$ac_test_CFLAGS" = set; then
14144   CFLAGS=$ac_save_CFLAGS
14145 elif test $ac_cv_prog_cc_g = yes; then
14146   if test "$GCC" = yes; then
14147     CFLAGS="-g -O2"
14148   else
14149     CFLAGS="-g"
14150   fi
14151 else
14152   if test "$GCC" = yes; then
14153     CFLAGS="-O2"
14154   else
14155     CFLAGS=
14156   fi
14157 fi
14158             fi
14159         fi
14160
14161                         case `uname -s` in
14162             AIX*)
14163                 ac_ext=cc
14164 ac_cpp='$CXXCPP $CPPFLAGS'
14165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14168
14169 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14170 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14171 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180
14181 int
14182 main ()
14183 {
14184 #ifndef __xlC__
14185        choke me
14186 #endif
14187
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194   (eval $ac_compile) 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203   (eval $ac_try) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); }; } &&
14207          { ac_try='test -s conftest.$ac_objext'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   bakefile_compiler_xlc=yes
14214 else
14215   echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 bakefile_compiler_xlc=no
14219 fi
14220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14221     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14222
14223 fi
14224 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14225 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14226
14227 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14228 ac_ext=cc
14229 ac_cpp='$CXXCPP $CPPFLAGS'
14230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14233
14234
14235                 ;;
14236
14237             Darwin)
14238                 ac_ext=cc
14239 ac_cpp='$CXXCPP $CPPFLAGS'
14240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14243
14244 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14245 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14246 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255
14256 int
14257 main ()
14258 {
14259 #ifndef __MWERKS__
14260        choke me
14261 #endif
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; } &&
14282          { ac_try='test -s conftest.$ac_objext'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }; then
14288   bakefile_compiler_mwerks=yes
14289 else
14290   echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14292
14293 bakefile_compiler_mwerks=no
14294 fi
14295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14297
14298 fi
14299 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14300 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14301
14302 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14303 ac_ext=cc
14304 ac_cpp='$CXXCPP $CPPFLAGS'
14305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14308
14309
14310                 ac_ext=cc
14311 ac_cpp='$CXXCPP $CPPFLAGS'
14312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14315
14316 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14317 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14318 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327
14328 int
14329 main ()
14330 {
14331 #ifndef __xlC__
14332        choke me
14333 #endif
14334
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341   (eval $ac_compile) 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; } &&
14354          { ac_try='test -s conftest.$ac_objext'
14355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356   (eval $ac_try) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); }; }; then
14360   bakefile_compiler_xlc=yes
14361 else
14362   echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14364
14365 bakefile_compiler_xlc=no
14366 fi
14367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14368     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14369
14370 fi
14371 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14372 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14373
14374 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14375 ac_ext=cc
14376 ac_cpp='$CXXCPP $CPPFLAGS'
14377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14380
14381
14382                 ;;
14383
14384             IRIX*)
14385
14386
14387     ac_ext=cc
14388 ac_cpp='$CXXCPP $CPPFLAGS'
14389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14392
14393     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14394 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14395 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404
14405 int
14406 main ()
14407 {
14408
14409              #ifndef _SGI_COMPILER_VERSION
14410                 choke me
14411              #endif
14412
14413   ;
14414   return 0;
14415 }
14416 _ACEOF
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419   (eval $ac_compile) 2>conftest.er1
14420   ac_status=$?
14421   grep -v '^ *+' conftest.er1 >conftest.err
14422   rm -f conftest.er1
14423   cat conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); } &&
14426          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; } &&
14432          { ac_try='test -s conftest.$ac_objext'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; }; then
14438   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14444
14445 fi
14446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447
14448
14449 fi
14450 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14451 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14452     ac_ext=cc
14453 ac_cpp='$CXXCPP $CPPFLAGS'
14454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14457
14458     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14459         :; SGICXX=yes
14460     else
14461         :;
14462     fi
14463
14464
14465                 ;;
14466
14467             HP-UX*)
14468
14469
14470     ac_ext=cc
14471 ac_cpp='$CXXCPP $CPPFLAGS'
14472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14475
14476     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14477 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14478 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h.  */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h.  */
14487
14488 int
14489 main ()
14490 {
14491
14492              #ifndef __HP_aCC
14493                 choke me
14494              #endif
14495
14496   ;
14497   return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502   (eval $ac_compile) 2>conftest.er1
14503   ac_status=$?
14504   grep -v '^ *+' conftest.er1 >conftest.err
14505   rm -f conftest.er1
14506   cat conftest.err >&5
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } &&
14509          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511   (eval $ac_try) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; } &&
14515          { ac_try='test -s conftest.$ac_objext'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521   bakefile_cv_cxx_compiler___HP_aCC=yes
14522 else
14523   echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 bakefile_cv_cxx_compiler___HP_aCC=no
14527
14528 fi
14529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14530
14531
14532 fi
14533 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14534 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14535     ac_ext=cc
14536 ac_cpp='$CXXCPP $CPPFLAGS'
14537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14540
14541     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14542         :; HPCXX=yes
14543     else
14544         :;
14545     fi
14546
14547
14548                 ;;
14549
14550             OSF1)
14551
14552
14553     ac_ext=cc
14554 ac_cpp='$CXXCPP $CPPFLAGS'
14555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14558
14559     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14560 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14561 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570
14571 int
14572 main ()
14573 {
14574
14575              #ifndef __DECCXX
14576                 choke me
14577              #endif
14578
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585   (eval $ac_compile) 2>conftest.er1
14586   ac_status=$?
14587   grep -v '^ *+' conftest.er1 >conftest.err
14588   rm -f conftest.er1
14589   cat conftest.err >&5
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); } &&
14592          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594   (eval $ac_try) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; } &&
14598          { ac_try='test -s conftest.$ac_objext'
14599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600   (eval $ac_try) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; }; then
14604   bakefile_cv_cxx_compiler___DECCXX=yes
14605 else
14606   echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14608
14609 bakefile_cv_cxx_compiler___DECCXX=no
14610
14611 fi
14612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613
14614
14615 fi
14616 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14617 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14618     ac_ext=cc
14619 ac_cpp='$CXXCPP $CPPFLAGS'
14620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14623
14624     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14625         :; COMPAQCXX=yes
14626     else
14627         :;
14628     fi
14629
14630
14631                 ;;
14632
14633             SunOS)
14634
14635
14636     ac_ext=cc
14637 ac_cpp='$CXXCPP $CPPFLAGS'
14638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14641
14642     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14643 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14644 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h.  */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h.  */
14653
14654 int
14655 main ()
14656 {
14657
14658              #ifndef __SUNPRO_CC
14659                 choke me
14660              #endif
14661
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668   (eval $ac_compile) 2>conftest.er1
14669   ac_status=$?
14670   grep -v '^ *+' conftest.er1 >conftest.err
14671   rm -f conftest.er1
14672   cat conftest.err >&5
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); } &&
14675          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; } &&
14681          { ac_try='test -s conftest.$ac_objext'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14693
14694 fi
14695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696
14697
14698 fi
14699 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14700 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14701     ac_ext=cc
14702 ac_cpp='$CXXCPP $CPPFLAGS'
14703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706
14707     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14708         :; SUNCXX=yes
14709     else
14710         :;
14711     fi
14712
14713
14714                 ;;
14715         esac
14716     fi
14717
14718
14719
14720 if test -n "$ac_tool_prefix"; then
14721   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14723 echo "$as_me:$LINENO: checking for $ac_word" >&5
14724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14725 if test "${ac_cv_prog_RANLIB+set}" = set; then
14726   echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728   if test -n "$RANLIB"; then
14729   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14730 else
14731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14732 for as_dir in $PATH
14733 do
14734   IFS=$as_save_IFS
14735   test -z "$as_dir" && as_dir=.
14736   for ac_exec_ext in '' $ac_executable_extensions; do
14737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14738     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14740     break 2
14741   fi
14742 done
14743 done
14744
14745 fi
14746 fi
14747 RANLIB=$ac_cv_prog_RANLIB
14748 if test -n "$RANLIB"; then
14749   echo "$as_me:$LINENO: result: $RANLIB" >&5
14750 echo "${ECHO_T}$RANLIB" >&6
14751 else
14752   echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6
14754 fi
14755
14756 fi
14757 if test -z "$ac_cv_prog_RANLIB"; then
14758   ac_ct_RANLIB=$RANLIB
14759   # Extract the first word of "ranlib", so it can be a program name with args.
14760 set dummy ranlib; ac_word=$2
14761 echo "$as_me:$LINENO: checking for $ac_word" >&5
14762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   if test -n "$ac_ct_RANLIB"; then
14767   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14768 else
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14771 do
14772   IFS=$as_save_IFS
14773   test -z "$as_dir" && as_dir=.
14774   for ac_exec_ext in '' $ac_executable_extensions; do
14775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776     ac_cv_prog_ac_ct_RANLIB="ranlib"
14777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14778     break 2
14779   fi
14780 done
14781 done
14782
14783   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14784 fi
14785 fi
14786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14787 if test -n "$ac_ct_RANLIB"; then
14788   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14789 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14790 else
14791   echo "$as_me:$LINENO: result: no" >&5
14792 echo "${ECHO_T}no" >&6
14793 fi
14794
14795   RANLIB=$ac_ct_RANLIB
14796 else
14797   RANLIB="$ac_cv_prog_RANLIB"
14798 fi
14799
14800
14801 if test -n "$ac_tool_prefix"; then
14802   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14803 set dummy ${ac_tool_prefix}ar; ac_word=$2
14804 echo "$as_me:$LINENO: checking for $ac_word" >&5
14805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14806 if test "${ac_cv_prog_AR+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809   if test -n "$AR"; then
14810   ac_cv_prog_AR="$AR" # Let the user override the test.
14811 else
14812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14813 for as_dir in $PATH
14814 do
14815   IFS=$as_save_IFS
14816   test -z "$as_dir" && as_dir=.
14817   for ac_exec_ext in '' $ac_executable_extensions; do
14818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14819     ac_cv_prog_AR="${ac_tool_prefix}ar"
14820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14821     break 2
14822   fi
14823 done
14824 done
14825
14826 fi
14827 fi
14828 AR=$ac_cv_prog_AR
14829 if test -n "$AR"; then
14830   echo "$as_me:$LINENO: result: $AR" >&5
14831 echo "${ECHO_T}$AR" >&6
14832 else
14833   echo "$as_me:$LINENO: result: no" >&5
14834 echo "${ECHO_T}no" >&6
14835 fi
14836
14837 fi
14838 if test -z "$ac_cv_prog_AR"; then
14839   ac_ct_AR=$AR
14840   # Extract the first word of "ar", so it can be a program name with args.
14841 set dummy ar; ac_word=$2
14842 echo "$as_me:$LINENO: checking for $ac_word" >&5
14843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847   if test -n "$ac_ct_AR"; then
14848   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14849 else
14850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851 for as_dir in $PATH
14852 do
14853   IFS=$as_save_IFS
14854   test -z "$as_dir" && as_dir=.
14855   for ac_exec_ext in '' $ac_executable_extensions; do
14856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14857     ac_cv_prog_ac_ct_AR="ar"
14858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14859     break 2
14860   fi
14861 done
14862 done
14863
14864 fi
14865 fi
14866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14867 if test -n "$ac_ct_AR"; then
14868   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14869 echo "${ECHO_T}$ac_ct_AR" >&6
14870 else
14871   echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6
14873 fi
14874
14875   AR=$ac_ct_AR
14876 else
14877   AR="$ac_cv_prog_AR"
14878 fi
14879
14880 if test "x$AR" = "x" ; then
14881     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14882 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14883    { (exit 1); exit 1; }; }
14884 fi
14885
14886 # Find a good install program.  We prefer a C program (faster),
14887 # so one script is as good as another.  But avoid the broken or
14888 # incompatible versions:
14889 # SysV /etc/install, /usr/sbin/install
14890 # SunOS /usr/etc/install
14891 # IRIX /sbin/install
14892 # AIX /bin/install
14893 # AmigaOS /C/install, which installs bootblocks on floppy discs
14894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14897 # OS/2's system install, which has a completely different semantic
14898 # ./install, which can be erroneously created by make from ./install.sh.
14899 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14901 if test -z "$INSTALL"; then
14902 if test "${ac_cv_path_install+set}" = set; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in $PATH
14907 do
14908   IFS=$as_save_IFS
14909   test -z "$as_dir" && as_dir=.
14910   # Account for people who put trailing slashes in PATH elements.
14911 case $as_dir/ in
14912   ./ | .// | /cC/* | \
14913   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14914   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14915   /usr/ucb/* ) ;;
14916   *)
14917     # OSF1 and SCO ODT 3.0 have their own names for install.
14918     # Don't use installbsd from OSF since it installs stuff as root
14919     # by default.
14920     for ac_prog in ginstall scoinst install; do
14921       for ac_exec_ext in '' $ac_executable_extensions; do
14922         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14923           if test $ac_prog = install &&
14924             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14925             # AIX install.  It has an incompatible calling convention.
14926             :
14927           elif test $ac_prog = install &&
14928             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14929             # program-specific install script used by HP pwplus--don't use.
14930             :
14931           else
14932             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14933             break 3
14934           fi
14935         fi
14936       done
14937     done
14938     ;;
14939 esac
14940 done
14941
14942
14943 fi
14944   if test "${ac_cv_path_install+set}" = set; then
14945     INSTALL=$ac_cv_path_install
14946   else
14947     # As a last resort, use the slow shell script.  We don't cache a
14948     # path for INSTALL within a source directory, because that will
14949     # break other packages using the cache if that directory is
14950     # removed, or if the path is relative.
14951     INSTALL=$ac_install_sh
14952   fi
14953 fi
14954 echo "$as_me:$LINENO: result: $INSTALL" >&5
14955 echo "${ECHO_T}$INSTALL" >&6
14956
14957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14958 # It thinks the first close brace ends the variable substitution.
14959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14960
14961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14962
14963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14964
14965
14966 case ${INSTALL} in
14967   /* ) # Absolute
14968      ;;
14969   ?:* ) # Drive letter, considered as absolute.
14970      ;;
14971   *)
14972      INSTALL=`pwd`/${INSTALL} ;;
14973 esac
14974
14975
14976 case "${host}" in
14977
14978                 *-*-darwin* )
14979         INSTALL_PROGRAM="cp -fp"
14980         INSTALL_DATA="cp -fp"
14981         ;;
14982     *)
14983         ;;
14984 esac
14985
14986 if test -n "$ac_tool_prefix"; then
14987   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14988 set dummy ${ac_tool_prefix}strip; ac_word=$2
14989 echo "$as_me:$LINENO: checking for $ac_word" >&5
14990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14991 if test "${ac_cv_prog_STRIP+set}" = set; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   if test -n "$STRIP"; then
14995   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14996 else
14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998 for as_dir in $PATH
14999 do
15000   IFS=$as_save_IFS
15001   test -z "$as_dir" && as_dir=.
15002   for ac_exec_ext in '' $ac_executable_extensions; do
15003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15004     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15006     break 2
15007   fi
15008 done
15009 done
15010
15011 fi
15012 fi
15013 STRIP=$ac_cv_prog_STRIP
15014 if test -n "$STRIP"; then
15015   echo "$as_me:$LINENO: result: $STRIP" >&5
15016 echo "${ECHO_T}$STRIP" >&6
15017 else
15018   echo "$as_me:$LINENO: result: no" >&5
15019 echo "${ECHO_T}no" >&6
15020 fi
15021
15022 fi
15023 if test -z "$ac_cv_prog_STRIP"; then
15024   ac_ct_STRIP=$STRIP
15025   # Extract the first word of "strip", so it can be a program name with args.
15026 set dummy strip; ac_word=$2
15027 echo "$as_me:$LINENO: checking for $ac_word" >&5
15028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15029 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15030   echo $ECHO_N "(cached) $ECHO_C" >&6
15031 else
15032   if test -n "$ac_ct_STRIP"; then
15033   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15034 else
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15037 do
15038   IFS=$as_save_IFS
15039   test -z "$as_dir" && as_dir=.
15040   for ac_exec_ext in '' $ac_executable_extensions; do
15041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042     ac_cv_prog_ac_ct_STRIP="strip"
15043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15044     break 2
15045   fi
15046 done
15047 done
15048
15049   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15050 fi
15051 fi
15052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15053 if test -n "$ac_ct_STRIP"; then
15054   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15055 echo "${ECHO_T}$ac_ct_STRIP" >&6
15056 else
15057   echo "$as_me:$LINENO: result: no" >&5
15058 echo "${ECHO_T}no" >&6
15059 fi
15060
15061   STRIP=$ac_ct_STRIP
15062 else
15063   STRIP="$ac_cv_prog_STRIP"
15064 fi
15065
15066
15067 if test "$wxUSE_WINE" = "yes"; then
15068     if test -n "$ac_tool_prefix"; then
15069   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15070 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15071 echo "$as_me:$LINENO: checking for $ac_word" >&5
15072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15073 if test "${ac_cv_prog_WINDRES+set}" = set; then
15074   echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076   if test -n "$WINDRES"; then
15077   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15078 else
15079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080 for as_dir in $PATH
15081 do
15082   IFS=$as_save_IFS
15083   test -z "$as_dir" && as_dir=.
15084   for ac_exec_ext in '' $ac_executable_extensions; do
15085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15088     break 2
15089   fi
15090 done
15091 done
15092
15093 fi
15094 fi
15095 WINDRES=$ac_cv_prog_WINDRES
15096 if test -n "$WINDRES"; then
15097   echo "$as_me:$LINENO: result: $WINDRES" >&5
15098 echo "${ECHO_T}$WINDRES" >&6
15099 else
15100   echo "$as_me:$LINENO: result: no" >&5
15101 echo "${ECHO_T}no" >&6
15102 fi
15103
15104 fi
15105 if test -z "$ac_cv_prog_WINDRES"; then
15106   ac_ct_WINDRES=$WINDRES
15107   # Extract the first word of "wrc", so it can be a program name with args.
15108 set dummy wrc; ac_word=$2
15109 echo "$as_me:$LINENO: checking for $ac_word" >&5
15110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15111 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   if test -n "$ac_ct_WINDRES"; then
15115   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15116 else
15117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118 for as_dir in $PATH
15119 do
15120   IFS=$as_save_IFS
15121   test -z "$as_dir" && as_dir=.
15122   for ac_exec_ext in '' $ac_executable_extensions; do
15123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124     ac_cv_prog_ac_ct_WINDRES="wrc"
15125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15126     break 2
15127   fi
15128 done
15129 done
15130
15131 fi
15132 fi
15133 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15134 if test -n "$ac_ct_WINDRES"; then
15135   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15136 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15137 else
15138   echo "$as_me:$LINENO: result: no" >&5
15139 echo "${ECHO_T}no" >&6
15140 fi
15141
15142   WINDRES=$ac_ct_WINDRES
15143 else
15144   WINDRES="$ac_cv_prog_WINDRES"
15145 fi
15146
15147     RESCOMP="$WINDRES"
15148 else
15149     case "${host}" in
15150     *-*-cygwin* | *-*-mingw32* )
15151                                 if test -n "$ac_tool_prefix"; then
15152   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15153 set dummy ${ac_tool_prefix}windres; ac_word=$2
15154 echo "$as_me:$LINENO: checking for $ac_word" >&5
15155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15156 if test "${ac_cv_prog_WINDRES+set}" = set; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   if test -n "$WINDRES"; then
15160   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15161 else
15162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15163 for as_dir in $PATH
15164 do
15165   IFS=$as_save_IFS
15166   test -z "$as_dir" && as_dir=.
15167   for ac_exec_ext in '' $ac_executable_extensions; do
15168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15169     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15171     break 2
15172   fi
15173 done
15174 done
15175
15176 fi
15177 fi
15178 WINDRES=$ac_cv_prog_WINDRES
15179 if test -n "$WINDRES"; then
15180   echo "$as_me:$LINENO: result: $WINDRES" >&5
15181 echo "${ECHO_T}$WINDRES" >&6
15182 else
15183   echo "$as_me:$LINENO: result: no" >&5
15184 echo "${ECHO_T}no" >&6
15185 fi
15186
15187 fi
15188 if test -z "$ac_cv_prog_WINDRES"; then
15189   ac_ct_WINDRES=$WINDRES
15190   # Extract the first word of "windres", so it can be a program name with args.
15191 set dummy windres; ac_word=$2
15192 echo "$as_me:$LINENO: checking for $ac_word" >&5
15193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   if test -n "$ac_ct_WINDRES"; then
15198   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15199 else
15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $PATH
15202 do
15203   IFS=$as_save_IFS
15204   test -z "$as_dir" && as_dir=.
15205   for ac_exec_ext in '' $ac_executable_extensions; do
15206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207     ac_cv_prog_ac_ct_WINDRES="windres"
15208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15209     break 2
15210   fi
15211 done
15212 done
15213
15214 fi
15215 fi
15216 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15217 if test -n "$ac_ct_WINDRES"; then
15218   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15219 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15220 else
15221   echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6
15223 fi
15224
15225   WINDRES=$ac_ct_WINDRES
15226 else
15227   WINDRES="$ac_cv_prog_WINDRES"
15228 fi
15229
15230         RESCOMP="$WINDRES"
15231         if test -n "$ac_tool_prefix"; then
15232   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15233 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15234 echo "$as_me:$LINENO: checking for $ac_word" >&5
15235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15236 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   if test -n "$DLLTOOL"; then
15240   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15241 else
15242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15243 for as_dir in $PATH
15244 do
15245   IFS=$as_save_IFS
15246   test -z "$as_dir" && as_dir=.
15247   for ac_exec_ext in '' $ac_executable_extensions; do
15248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15249     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15251     break 2
15252   fi
15253 done
15254 done
15255
15256 fi
15257 fi
15258 DLLTOOL=$ac_cv_prog_DLLTOOL
15259 if test -n "$DLLTOOL"; then
15260   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15261 echo "${ECHO_T}$DLLTOOL" >&6
15262 else
15263   echo "$as_me:$LINENO: result: no" >&5
15264 echo "${ECHO_T}no" >&6
15265 fi
15266
15267 fi
15268 if test -z "$ac_cv_prog_DLLTOOL"; then
15269   ac_ct_DLLTOOL=$DLLTOOL
15270   # Extract the first word of "dlltool", so it can be a program name with args.
15271 set dummy dlltool; ac_word=$2
15272 echo "$as_me:$LINENO: checking for $ac_word" >&5
15273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15274 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277   if test -n "$ac_ct_DLLTOOL"; then
15278   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15279 else
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $PATH
15282 do
15283   IFS=$as_save_IFS
15284   test -z "$as_dir" && as_dir=.
15285   for ac_exec_ext in '' $ac_executable_extensions; do
15286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15287     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15289     break 2
15290   fi
15291 done
15292 done
15293
15294 fi
15295 fi
15296 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15297 if test -n "$ac_ct_DLLTOOL"; then
15298   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15299 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15300 else
15301   echo "$as_me:$LINENO: result: no" >&5
15302 echo "${ECHO_T}no" >&6
15303 fi
15304
15305   DLLTOOL=$ac_ct_DLLTOOL
15306 else
15307   DLLTOOL="$ac_cv_prog_DLLTOOL"
15308 fi
15309
15310         ;;
15311     esac
15312 fi
15313
15314 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15315 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15316 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319
15320     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15321             egrep -s GNU > /dev/null); then
15322         wx_cv_prog_makeisgnu="yes"
15323     else
15324         wx_cv_prog_makeisgnu="no"
15325     fi
15326
15327 fi
15328 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15329 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15330
15331 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15332     IF_GNU_MAKE=""
15333 else
15334     IF_GNU_MAKE="#"
15335 fi
15336
15337
15338
15339 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15340 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15341 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15342 if test "${wx_cv_prog_makevpath+set}" = set; then
15343   echo $ECHO_N "(cached) $ECHO_C" >&6
15344 else
15345
15346 cat - << EOF > confMake
15347 check : file
15348         cp \$? \$@
15349         cp \$? final_file
15350 EOF
15351
15352 if test ! -d sub ; then
15353   mkdir sub
15354 fi
15355 echo dummy > sub/file
15356 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15357 RESULT=$?
15358 rm -f sub/file check final_file confMake
15359 rmdir sub
15360 if test "$RESULT" = 0; then
15361   wx_cv_prog_makevpath="yes"
15362 else
15363   wx_cv_prog_makevpath="no"
15364 fi
15365
15366 fi
15367 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15368 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15369
15370 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15371 { { echo "$as_me:$LINENO: error:
15372 You need a make-utility that is able to use the variable
15373 VPATH correctly.
15374 If your version of make does not support VPATH correctly,
15375 please install GNU-make (possibly as gmake), and start
15376 configure with the following command:
15377 export MAKE=gmake; ./configure  for sh-type shells
15378 setenv MAKE gmake; ./configure  for csh-type shells
15379 Also please do remember to use gmake in this case every time
15380 you are trying to compile.
15381 " >&5
15382 echo "$as_me: error:
15383 You need a make-utility that is able to use the variable
15384 VPATH correctly.
15385 If your version of make does not support VPATH correctly,
15386 please install GNU-make (possibly as gmake), and start
15387 configure with the following command:
15388 export MAKE=gmake; ./configure  for sh-type shells
15389 setenv MAKE gmake; ./configure  for csh-type shells
15390 Also please do remember to use gmake in this case every time
15391 you are trying to compile.
15392 " >&2;}
15393    { (exit 1); exit 1; }; }
15394 fi fi
15395 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15396 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15397 LN_S=$as_ln_s
15398 if test "$LN_S" = "ln -s"; then
15399   echo "$as_me:$LINENO: result: yes" >&5
15400 echo "${ECHO_T}yes" >&6
15401 else
15402   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15403 echo "${ECHO_T}no, using $LN_S" >&6
15404 fi
15405
15406
15407
15408
15409 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15410     CXXFLAGS="-qunique $CXXFLAGS"
15411 fi
15412
15413 case "${host}" in
15414   powerpc-*-darwin* )
15415     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15416 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15417     cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423
15424 int
15425 main ()
15426 {
15427 #ifndef __POWERPC__
15428         choke me for lack of PowerPC
15429 #endif
15430
15431   ;
15432   return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437   (eval $ac_compile) 2>conftest.er1
15438   ac_status=$?
15439   grep -v '^ *+' conftest.er1 >conftest.err
15440   rm -f conftest.er1
15441   cat conftest.err >&5
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); } &&
15444          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446   (eval $ac_try) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; } &&
15450          { ac_try='test -s conftest.$ac_objext'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; }; then
15456   echo "$as_me:$LINENO: result: yes" >&5
15457 echo "${ECHO_T}yes" >&6
15458 else
15459   echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 echo "$as_me:$LINENO: result: no" >&5
15463 echo "${ECHO_T}no" >&6
15464         cat >>confdefs.h <<\_ACEOF
15465 #define __POWERPC__ 1
15466 _ACEOF
15467
15468
15469 fi
15470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15471   ;;
15472 esac
15473
15474 case "${host}" in
15475   *-*-darwin* )
15476     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15477 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15478     cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 #include <CoreFoundation/CFBase.h>
15485
15486 int
15487 main ()
15488 {
15489
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 rm -f conftest.$ac_objext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496   (eval $ac_compile) 2>conftest.er1
15497   ac_status=$?
15498   grep -v '^ *+' conftest.er1 >conftest.err
15499   rm -f conftest.er1
15500   cat conftest.err >&5
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); } &&
15503          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505   (eval $ac_try) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; } &&
15509          { ac_try='test -s conftest.$ac_objext'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; }; then
15515   echo "$as_me:$LINENO: result: yes" >&5
15516 echo "${ECHO_T}yes" >&6
15517 else
15518   echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 echo "$as_me:$LINENO: result: no" >&5
15522 echo "${ECHO_T}no" >&6
15523         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15524 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
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 #define __CF_USE_FRAMEWORK_INCLUDES__
15532 #include <CoreFoundation/CFBase.h>
15533
15534 int
15535 main ()
15536 {
15537
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544   (eval $ac_compile) 2>conftest.er1
15545   ac_status=$?
15546   grep -v '^ *+' conftest.er1 >conftest.err
15547   rm -f conftest.er1
15548   cat conftest.err >&5
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } &&
15551          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; } &&
15557          { ac_try='test -s conftest.$ac_objext'
15558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559   (eval $ac_try) 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; }; then
15563   echo "$as_me:$LINENO: result: yes" >&5
15564 echo "${ECHO_T}yes" >&6
15565                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15566 else
15567   echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15571 See \`config.log' for more details." >&5
15572 echo "$as_me: error: no.  CoreFoundation not available.
15573 See \`config.log' for more details." >&2;}
15574    { (exit 1); exit 1; }; }
15575
15576 fi
15577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15578
15579
15580 fi
15581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15582   ;;
15583 esac
15584
15585 case "${host}" in
15586   *-pc-os2_emx | *-pc-os2-emx )
15587                                                       ac_ext=c
15588 ac_cpp='$CPP $CPPFLAGS'
15589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592
15593       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15594                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15595 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15596 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-lcExt  $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607
15608 /* Override any gcc2 internal prototype to avoid an error.  */
15609 #ifdef __cplusplus
15610 extern "C"
15611 #endif
15612 /* We use char because int might match the return type of a gcc2
15613    builtin and then its argument prototype would still apply.  */
15614 char drand48 ();
15615 int
15616 main ()
15617 {
15618 drand48 ();
15619   ;
15620   return 0;
15621 }
15622 _ACEOF
15623 rm -f conftest.$ac_objext conftest$ac_exeext
15624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15625   (eval $ac_link) 2>conftest.er1
15626   ac_status=$?
15627   grep -v '^ *+' conftest.er1 >conftest.err
15628   rm -f conftest.er1
15629   cat conftest.err >&5
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } &&
15632          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; } &&
15638          { ac_try='test -s conftest$ac_exeext'
15639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640   (eval $ac_try) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; }; then
15644   ac_cv_lib_cExt_drand48=yes
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ac_cv_lib_cExt_drand48=no
15650 fi
15651 rm -f conftest.err conftest.$ac_objext \
15652       conftest$ac_exeext conftest.$ac_ext
15653 LIBS=$ac_check_lib_save_LIBS
15654 fi
15655 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15656 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15657 if test $ac_cv_lib_cExt_drand48 = yes; then
15658   LIBS="$LIBS -lcExt"
15659 fi
15660
15661       else
15662                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15663       fi
15664                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15665 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15666 if test "${wx_cv_gccversion+set}" = set; then
15667   echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669
15670           if test "$cross_compiling" = yes; then
15671                 wx_cv_gccversion="EMX2"
15672
15673 else
15674   cat >conftest.$ac_ext <<_ACEOF
15675 /* confdefs.h.  */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h.  */
15680
15681                   #include <stdio.h>
15682
15683                   int main()
15684                   {
15685                       FILE *f=fopen("conftestval", "w");
15686                       if (!f) exit(1);
15687                       fprintf(f,
15688                   #if (__GNUC__ < 3)
15689                               "EMX2"
15690                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15691                               "EMX3"
15692                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15693                               "Innotek5"
15694                   #else
15695                               "Innotek6"
15696                   #endif
15697                       );
15698                       exit(0);
15699                   }
15700
15701 _ACEOF
15702 rm -f conftest$ac_exeext
15703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704   (eval $ac_link) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709   (eval $ac_try) 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; }; then
15713   wx_cv_gccversion=`cat conftestval`
15714 else
15715   echo "$as_me: program exited with status $ac_status" >&5
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ( exit $ac_status )
15720 wx_cv_gccversion="EMX2"
15721 fi
15722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15723 fi
15724
15725 fi
15726 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15727 echo "${ECHO_T}$wx_cv_gccversion" >&6
15728       ac_ext=cc
15729 ac_cpp='$CXXCPP $CPPFLAGS'
15730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15733
15734       if test "$wx_cv_gccversion" = "EMX2"; then
15735           LIBS="$LIBS -lstdcpp"
15736           LDFLAGS="$LDFLAGS -Zsysv-signals"
15737       else
15738           if test "$wx_cv_gccversion" = "EMX3"; then
15739               LIBS="$LIBS -lstdcxx -lgcc"
15740               LDFLAGS="$LDFLAGS -Zsysv-signals"
15741           else
15742               LIBS="$LIBS -lstdc++"
15743           fi
15744       fi
15745       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15746         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15747 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15748         wxUSE_OMF=yes
15749         enable_omf=yes
15750       fi
15751         ;;
15752   *)
15753
15754       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15755 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15756 if test "${ac_cv_string_strcasecmp+set}" = set; then
15757   echo $ECHO_N "(cached) $ECHO_C" >&6
15758 else
15759
15760           cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766
15767               #include <string.h>
15768
15769 int
15770 main ()
15771 {
15772
15773                   strcasecmp("foo", "bar");
15774
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781   (eval $ac_link) 2>conftest.er1
15782   ac_status=$?
15783   grep -v '^ *+' conftest.er1 >conftest.err
15784   rm -f conftest.er1
15785   cat conftest.err >&5
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); } &&
15788          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790   (eval $ac_try) 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); }; } &&
15794          { ac_try='test -s conftest$ac_exeext'
15795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796   (eval $ac_try) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_cv_string_strcasecmp=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_cv_string_strcasecmp=no
15806
15807 fi
15808 rm -f conftest.err conftest.$ac_objext \
15809       conftest$ac_exeext conftest.$ac_ext
15810
15811 fi
15812 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15813 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15814
15815       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15816           cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_STRCASECMP_IN_STRING_H 1
15818 _ACEOF
15819
15820       else
15821           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15822 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15823 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15824   echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826
15827               cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h.  */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h.  */
15833
15834                   #include <strings.h>
15835
15836 int
15837 main ()
15838 {
15839
15840                       strcasecmp("foo", "bar");
15841
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext conftest$ac_exeext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15848   (eval $ac_link) 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857   (eval $ac_try) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; } &&
15861          { ac_try='test -s conftest$ac_exeext'
15862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863   (eval $ac_try) 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }; }; then
15867   ac_cv_strings_strcasecmp=yes
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ac_cv_strings_strcasecmp=no
15873
15874 fi
15875 rm -f conftest.err conftest.$ac_objext \
15876       conftest$ac_exeext conftest.$ac_ext
15877
15878 fi
15879 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15880 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15881
15882           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15883               cat >>confdefs.h <<\_ACEOF
15884 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15885 _ACEOF
15886
15887           else
15888               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15889 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15890    { (exit 1); exit 1; }; }
15891           fi
15892       fi
15893
15894         ;;
15895 esac
15896
15897
15898 ac_ext=cc
15899 ac_cpp='$CXXCPP $CPPFLAGS'
15900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15903 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15904 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15905 if test -z "$CXXCPP"; then
15906   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15907   echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909       # Double quotes because CXXCPP needs to be expanded
15910     for CXXCPP in "$CXX -E" "/lib/cpp"
15911     do
15912       ac_preproc_ok=false
15913 for ac_cxx_preproc_warn_flag in '' yes
15914 do
15915   # Use a header file that comes with gcc, so configuring glibc
15916   # with a fresh cross-compiler works.
15917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918   # <limits.h> exists even on freestanding compilers.
15919   # On the NeXT, cc -E runs the code through the compiler's parser,
15920   # not just through cpp. "Syntax error" is here to catch this case.
15921   cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 #ifdef __STDC__
15928 # include <limits.h>
15929 #else
15930 # include <assert.h>
15931 #endif
15932                      Syntax error
15933 _ACEOF
15934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15936   ac_status=$?
15937   grep -v '^ *+' conftest.er1 >conftest.err
15938   rm -f conftest.er1
15939   cat conftest.err >&5
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); } >/dev/null; then
15942   if test -s conftest.err; then
15943     ac_cpp_err=$ac_cxx_preproc_warn_flag
15944     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15945   else
15946     ac_cpp_err=
15947   fi
15948 else
15949   ac_cpp_err=yes
15950 fi
15951 if test -z "$ac_cpp_err"; then
15952   :
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957   # Broken: fails on valid input.
15958 continue
15959 fi
15960 rm -f conftest.err conftest.$ac_ext
15961
15962   # OK, works on sane cases.  Now check whether non-existent headers
15963   # can be detected and how.
15964   cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970 #include <ac_nonexistent.h>
15971 _ACEOF
15972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15974   ac_status=$?
15975   grep -v '^ *+' conftest.er1 >conftest.err
15976   rm -f conftest.er1
15977   cat conftest.err >&5
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); } >/dev/null; then
15980   if test -s conftest.err; then
15981     ac_cpp_err=$ac_cxx_preproc_warn_flag
15982     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15983   else
15984     ac_cpp_err=
15985   fi
15986 else
15987   ac_cpp_err=yes
15988 fi
15989 if test -z "$ac_cpp_err"; then
15990   # Broken: success on invalid input.
15991 continue
15992 else
15993   echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15995
15996   # Passes both tests.
15997 ac_preproc_ok=:
15998 break
15999 fi
16000 rm -f conftest.err conftest.$ac_ext
16001
16002 done
16003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16004 rm -f conftest.err conftest.$ac_ext
16005 if $ac_preproc_ok; then
16006   break
16007 fi
16008
16009     done
16010     ac_cv_prog_CXXCPP=$CXXCPP
16011
16012 fi
16013   CXXCPP=$ac_cv_prog_CXXCPP
16014 else
16015   ac_cv_prog_CXXCPP=$CXXCPP
16016 fi
16017 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16018 echo "${ECHO_T}$CXXCPP" >&6
16019 ac_preproc_ok=false
16020 for ac_cxx_preproc_warn_flag in '' yes
16021 do
16022   # Use a header file that comes with gcc, so configuring glibc
16023   # with a fresh cross-compiler works.
16024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16025   # <limits.h> exists even on freestanding compilers.
16026   # On the NeXT, cc -E runs the code through the compiler's parser,
16027   # not just through cpp. "Syntax error" is here to catch this case.
16028   cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 #ifdef __STDC__
16035 # include <limits.h>
16036 #else
16037 # include <assert.h>
16038 #endif
16039                      Syntax error
16040 _ACEOF
16041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } >/dev/null; then
16049   if test -s conftest.err; then
16050     ac_cpp_err=$ac_cxx_preproc_warn_flag
16051     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16052   else
16053     ac_cpp_err=
16054   fi
16055 else
16056   ac_cpp_err=yes
16057 fi
16058 if test -z "$ac_cpp_err"; then
16059   :
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064   # Broken: fails on valid input.
16065 continue
16066 fi
16067 rm -f conftest.err conftest.$ac_ext
16068
16069   # OK, works on sane cases.  Now check whether non-existent headers
16070   # can be detected and how.
16071   cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 #include <ac_nonexistent.h>
16078 _ACEOF
16079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } >/dev/null; then
16087   if test -s conftest.err; then
16088     ac_cpp_err=$ac_cxx_preproc_warn_flag
16089     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16090   else
16091     ac_cpp_err=
16092   fi
16093 else
16094   ac_cpp_err=yes
16095 fi
16096 if test -z "$ac_cpp_err"; then
16097   # Broken: success on invalid input.
16098 continue
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103   # Passes both tests.
16104 ac_preproc_ok=:
16105 break
16106 fi
16107 rm -f conftest.err conftest.$ac_ext
16108
16109 done
16110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16111 rm -f conftest.err conftest.$ac_ext
16112 if $ac_preproc_ok; then
16113   :
16114 else
16115   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16116 See \`config.log' for more details." >&5
16117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16118 See \`config.log' for more details." >&2;}
16119    { (exit 1); exit 1; }; }
16120 fi
16121
16122 ac_ext=cc
16123 ac_cpp='$CXXCPP $CPPFLAGS'
16124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16127
16128
16129 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16131 if test "${ac_cv_header_stdc+set}" = set; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   cat >conftest.$ac_ext <<_ACEOF
16135 /* confdefs.h.  */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h.  */
16140 #include <stdlib.h>
16141 #include <stdarg.h>
16142 #include <string.h>
16143 #include <float.h>
16144
16145 int
16146 main ()
16147 {
16148
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155   (eval $ac_compile) 2>conftest.er1
16156   ac_status=$?
16157   grep -v '^ *+' conftest.er1 >conftest.err
16158   rm -f conftest.er1
16159   cat conftest.err >&5
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); } &&
16162          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164   (eval $ac_try) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; } &&
16168          { ac_try='test -s conftest.$ac_objext'
16169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170   (eval $ac_try) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); }; }; then
16174   ac_cv_header_stdc=yes
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179 ac_cv_header_stdc=no
16180 fi
16181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16182
16183 if test $ac_cv_header_stdc = yes; then
16184   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16185   cat >conftest.$ac_ext <<_ACEOF
16186 /* confdefs.h.  */
16187 _ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h.  */
16191 #include <string.h>
16192
16193 _ACEOF
16194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16195   $EGREP "memchr" >/dev/null 2>&1; then
16196   :
16197 else
16198   ac_cv_header_stdc=no
16199 fi
16200 rm -f conftest*
16201
16202 fi
16203
16204 if test $ac_cv_header_stdc = yes; then
16205   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16206   cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h.  */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h.  */
16212 #include <stdlib.h>
16213
16214 _ACEOF
16215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16216   $EGREP "free" >/dev/null 2>&1; then
16217   :
16218 else
16219   ac_cv_header_stdc=no
16220 fi
16221 rm -f conftest*
16222
16223 fi
16224
16225 if test $ac_cv_header_stdc = yes; then
16226   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16227   if test "$cross_compiling" = yes; then
16228   :
16229 else
16230   cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 #include <ctype.h>
16237 #if ((' ' & 0x0FF) == 0x020)
16238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16240 #else
16241 # define ISLOWER(c) \
16242                    (('a' <= (c) && (c) <= 'i') \
16243                      || ('j' <= (c) && (c) <= 'r') \
16244                      || ('s' <= (c) && (c) <= 'z'))
16245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16246 #endif
16247
16248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16249 int
16250 main ()
16251 {
16252   int i;
16253   for (i = 0; i < 256; i++)
16254     if (XOR (islower (i), ISLOWER (i))
16255         || toupper (i) != TOUPPER (i))
16256       exit(2);
16257   exit (0);
16258 }
16259 _ACEOF
16260 rm -f conftest$ac_exeext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16262   (eval $ac_link) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267   (eval $ac_try) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271   :
16272 else
16273   echo "$as_me: program exited with status $ac_status" >&5
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 ( exit $ac_status )
16278 ac_cv_header_stdc=no
16279 fi
16280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16281 fi
16282 fi
16283 fi
16284 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16285 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16286 if test $ac_cv_header_stdc = yes; then
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define STDC_HEADERS 1
16290 _ACEOF
16291
16292 fi
16293
16294 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16305                   inttypes.h stdint.h unistd.h
16306 do
16307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16308 echo "$as_me:$LINENO: checking for $ac_header" >&5
16309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h.  */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h.  */
16319 $ac_includes_default
16320
16321 #include <$ac_header>
16322 _ACEOF
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325   (eval $ac_compile) 2>conftest.er1
16326   ac_status=$?
16327   grep -v '^ *+' conftest.er1 >conftest.err
16328   rm -f conftest.er1
16329   cat conftest.err >&5
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } &&
16332          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; } &&
16338          { ac_try='test -s conftest.$ac_objext'
16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340   (eval $ac_try) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; }; then
16344   eval "$as_ac_Header=yes"
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349 eval "$as_ac_Header=no"
16350 fi
16351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16356   cat >>confdefs.h <<_ACEOF
16357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358 _ACEOF
16359
16360 fi
16361
16362 done
16363
16364
16365
16366 for ac_header in stdlib.h
16367 do
16368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370   echo "$as_me:$LINENO: checking for $ac_header" >&5
16371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 fi
16375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16377 else
16378   # Is the header compilable?
16379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h.  */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h.  */
16387 $ac_includes_default
16388 #include <$ac_header>
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392   (eval $ac_compile) 2>conftest.er1
16393   ac_status=$?
16394   grep -v '^ *+' conftest.er1 >conftest.err
16395   rm -f conftest.er1
16396   cat conftest.err >&5
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; } &&
16405          { ac_try='test -s conftest.$ac_objext'
16406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407   (eval $ac_try) 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; }; then
16411   ac_header_compiler=yes
16412 else
16413   echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 ac_header_compiler=no
16417 fi
16418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420 echo "${ECHO_T}$ac_header_compiler" >&6
16421
16422 # Is the header present?
16423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431 #include <$ac_header>
16432 _ACEOF
16433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16435   ac_status=$?
16436   grep -v '^ *+' conftest.er1 >conftest.err
16437   rm -f conftest.er1
16438   cat conftest.err >&5
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); } >/dev/null; then
16441   if test -s conftest.err; then
16442     ac_cpp_err=$ac_cxx_preproc_warn_flag
16443     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16444   else
16445     ac_cpp_err=
16446   fi
16447 else
16448   ac_cpp_err=yes
16449 fi
16450 if test -z "$ac_cpp_err"; then
16451   ac_header_preproc=yes
16452 else
16453   echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16455
16456   ac_header_preproc=no
16457 fi
16458 rm -f conftest.err conftest.$ac_ext
16459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16460 echo "${ECHO_T}$ac_header_preproc" >&6
16461
16462 # So?  What about this header?
16463 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16464   yes:no: )
16465     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16469     ac_header_preproc=yes
16470     ;;
16471   no:yes:* )
16472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16475 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16478     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16479 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16482     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16484     (
16485       cat <<\_ASBOX
16486 ## ----------------------------------------- ##
16487 ## Report this to wx-dev@lists.wxwidgets.org ##
16488 ## ----------------------------------------- ##
16489 _ASBOX
16490     ) |
16491       sed "s/^/$as_me: WARNING:     /" >&2
16492     ;;
16493 esac
16494 echo "$as_me:$LINENO: checking for $ac_header" >&5
16495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16497   echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499   eval "$as_ac_Header=\$ac_header_preproc"
16500 fi
16501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16503
16504 fi
16505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16506   cat >>confdefs.h <<_ACEOF
16507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16508 _ACEOF
16509
16510 fi
16511
16512 done
16513
16514
16515 for ac_header in malloc.h
16516 do
16517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519   echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 fi
16524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16526 else
16527   # Is the header compilable?
16528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h.  */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h.  */
16536 $ac_includes_default
16537 #include <$ac_header>
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16541   (eval $ac_compile) 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; } &&
16554          { ac_try='test -s conftest.$ac_objext'
16555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556   (eval $ac_try) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; }; then
16560   ac_header_compiler=yes
16561 else
16562   echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16564
16565 ac_header_compiler=no
16566 fi
16567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16569 echo "${ECHO_T}$ac_header_compiler" >&6
16570
16571 # Is the header present?
16572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h.  */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h.  */
16580 #include <$ac_header>
16581 _ACEOF
16582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } >/dev/null; then
16590   if test -s conftest.err; then
16591     ac_cpp_err=$ac_cxx_preproc_warn_flag
16592     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16593   else
16594     ac_cpp_err=
16595   fi
16596 else
16597   ac_cpp_err=yes
16598 fi
16599 if test -z "$ac_cpp_err"; then
16600   ac_header_preproc=yes
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605   ac_header_preproc=no
16606 fi
16607 rm -f conftest.err conftest.$ac_ext
16608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16609 echo "${ECHO_T}$ac_header_preproc" >&6
16610
16611 # So?  What about this header?
16612 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16613   yes:no: )
16614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16618     ac_header_preproc=yes
16619     ;;
16620   no:yes:* )
16621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16633     (
16634       cat <<\_ASBOX
16635 ## ----------------------------------------- ##
16636 ## Report this to wx-dev@lists.wxwidgets.org ##
16637 ## ----------------------------------------- ##
16638 _ASBOX
16639     ) |
16640       sed "s/^/$as_me: WARNING:     /" >&2
16641     ;;
16642 esac
16643 echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   eval "$as_ac_Header=\$ac_header_preproc"
16649 fi
16650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16652
16653 fi
16654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655   cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16657 _ACEOF
16658
16659 fi
16660
16661 done
16662
16663
16664 for ac_header in unistd.h
16665 do
16666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16668   echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 fi
16673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16675 else
16676   # Is the header compilable?
16677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h.  */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h.  */
16685 $ac_includes_default
16686 #include <$ac_header>
16687 _ACEOF
16688 rm -f conftest.$ac_objext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16690   (eval $ac_compile) 2>conftest.er1
16691   ac_status=$?
16692   grep -v '^ *+' conftest.er1 >conftest.err
16693   rm -f conftest.er1
16694   cat conftest.err >&5
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); } &&
16697          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699   (eval $ac_try) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; } &&
16703          { ac_try='test -s conftest.$ac_objext'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; }; then
16709   ac_header_compiler=yes
16710 else
16711   echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 ac_header_compiler=no
16715 fi
16716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16718 echo "${ECHO_T}$ac_header_compiler" >&6
16719
16720 # Is the header present?
16721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16723 cat >conftest.$ac_ext <<_ACEOF
16724 /* confdefs.h.  */
16725 _ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h.  */
16729 #include <$ac_header>
16730 _ACEOF
16731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } >/dev/null; then
16739   if test -s conftest.err; then
16740     ac_cpp_err=$ac_cxx_preproc_warn_flag
16741     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16742   else
16743     ac_cpp_err=
16744   fi
16745 else
16746   ac_cpp_err=yes
16747 fi
16748 if test -z "$ac_cpp_err"; then
16749   ac_header_preproc=yes
16750 else
16751   echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754   ac_header_preproc=no
16755 fi
16756 rm -f conftest.err conftest.$ac_ext
16757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16758 echo "${ECHO_T}$ac_header_preproc" >&6
16759
16760 # So?  What about this header?
16761 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16762   yes:no: )
16763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16767     ac_header_preproc=yes
16768     ;;
16769   no:yes:* )
16770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16782     (
16783       cat <<\_ASBOX
16784 ## ----------------------------------------- ##
16785 ## Report this to wx-dev@lists.wxwidgets.org ##
16786 ## ----------------------------------------- ##
16787 _ASBOX
16788     ) |
16789       sed "s/^/$as_me: WARNING:     /" >&2
16790     ;;
16791 esac
16792 echo "$as_me:$LINENO: checking for $ac_header" >&5
16793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16795   echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797   eval "$as_ac_Header=\$ac_header_preproc"
16798 fi
16799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16801
16802 fi
16803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16804   cat >>confdefs.h <<_ACEOF
16805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16806 _ACEOF
16807
16808 fi
16809
16810 done
16811
16812
16813 for ac_header in wchar.h
16814 do
16815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817   echo "$as_me:$LINENO: checking for $ac_header" >&5
16818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 fi
16822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16824 else
16825   # Is the header compilable?
16826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h.  */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h.  */
16834 $ac_includes_default
16835 #include <$ac_header>
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839   (eval $ac_compile) 2>conftest.er1
16840   ac_status=$?
16841   grep -v '^ *+' conftest.er1 >conftest.err
16842   rm -f conftest.er1
16843   cat conftest.err >&5
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); } &&
16846          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; } &&
16852          { ac_try='test -s conftest.$ac_objext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858   ac_header_compiler=yes
16859 else
16860   echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_header_compiler=no
16864 fi
16865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16867 echo "${ECHO_T}$ac_header_compiler" >&6
16868
16869 # Is the header present?
16870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 #include <$ac_header>
16879 _ACEOF
16880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16882   ac_status=$?
16883   grep -v '^ *+' conftest.er1 >conftest.err
16884   rm -f conftest.er1
16885   cat conftest.err >&5
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); } >/dev/null; then
16888   if test -s conftest.err; then
16889     ac_cpp_err=$ac_cxx_preproc_warn_flag
16890     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16891   else
16892     ac_cpp_err=
16893   fi
16894 else
16895   ac_cpp_err=yes
16896 fi
16897 if test -z "$ac_cpp_err"; then
16898   ac_header_preproc=yes
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903   ac_header_preproc=no
16904 fi
16905 rm -f conftest.err conftest.$ac_ext
16906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16907 echo "${ECHO_T}$ac_header_preproc" >&6
16908
16909 # So?  What about this header?
16910 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16911   yes:no: )
16912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16916     ac_header_preproc=yes
16917     ;;
16918   no:yes:* )
16919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16931     (
16932       cat <<\_ASBOX
16933 ## ----------------------------------------- ##
16934 ## Report this to wx-dev@lists.wxwidgets.org ##
16935 ## ----------------------------------------- ##
16936 _ASBOX
16937     ) |
16938       sed "s/^/$as_me: WARNING:     /" >&2
16939     ;;
16940 esac
16941 echo "$as_me:$LINENO: checking for $ac_header" >&5
16942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16944   echo $ECHO_N "(cached) $ECHO_C" >&6
16945 else
16946   eval "$as_ac_Header=\$ac_header_preproc"
16947 fi
16948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16950
16951 fi
16952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16953   cat >>confdefs.h <<_ACEOF
16954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955 _ACEOF
16956
16957 fi
16958
16959 done
16960
16961
16962 if test "$ac_cv_header_wchar_h" != "yes"; then
16963
16964 for ac_header in wcstr.h
16965 do
16966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16968   echo "$as_me:$LINENO: checking for $ac_header" >&5
16969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16971   echo $ECHO_N "(cached) $ECHO_C" >&6
16972 fi
16973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16975 else
16976   # Is the header compilable?
16977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16979 cat >conftest.$ac_ext <<_ACEOF
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985 $ac_includes_default
16986 #include <$ac_header>
16987 _ACEOF
16988 rm -f conftest.$ac_objext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16990   (eval $ac_compile) 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } &&
16997          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999   (eval $ac_try) 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; } &&
17003          { ac_try='test -s conftest.$ac_objext'
17004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005   (eval $ac_try) 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; }; then
17009   ac_header_compiler=yes
17010 else
17011   echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17013
17014 ac_header_compiler=no
17015 fi
17016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17018 echo "${ECHO_T}$ac_header_compiler" >&6
17019
17020 # Is the header present?
17021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h.  */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h.  */
17029 #include <$ac_header>
17030 _ACEOF
17031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17033   ac_status=$?
17034   grep -v '^ *+' conftest.er1 >conftest.err
17035   rm -f conftest.er1
17036   cat conftest.err >&5
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } >/dev/null; then
17039   if test -s conftest.err; then
17040     ac_cpp_err=$ac_cxx_preproc_warn_flag
17041     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17042   else
17043     ac_cpp_err=
17044   fi
17045 else
17046   ac_cpp_err=yes
17047 fi
17048 if test -z "$ac_cpp_err"; then
17049   ac_header_preproc=yes
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054   ac_header_preproc=no
17055 fi
17056 rm -f conftest.err conftest.$ac_ext
17057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17058 echo "${ECHO_T}$ac_header_preproc" >&6
17059
17060 # So?  What about this header?
17061 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17062   yes:no: )
17063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17067     ac_header_preproc=yes
17068     ;;
17069   no:yes:* )
17070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17082     (
17083       cat <<\_ASBOX
17084 ## ----------------------------------------- ##
17085 ## Report this to wx-dev@lists.wxwidgets.org ##
17086 ## ----------------------------------------- ##
17087 _ASBOX
17088     ) |
17089       sed "s/^/$as_me: WARNING:     /" >&2
17090     ;;
17091 esac
17092 echo "$as_me:$LINENO: checking for $ac_header" >&5
17093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   eval "$as_ac_Header=\$ac_header_preproc"
17098 fi
17099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17101
17102 fi
17103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104   cat >>confdefs.h <<_ACEOF
17105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106 _ACEOF
17107
17108 fi
17109
17110 done
17111
17112 fi
17113
17114
17115 for ac_header in fnmatch.h
17116 do
17117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17119   echo "$as_me:$LINENO: checking for $ac_header" >&5
17120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17122   echo $ECHO_N "(cached) $ECHO_C" >&6
17123 fi
17124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17126 else
17127   # Is the header compilable?
17128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 $ac_includes_default
17137 #include <$ac_header>
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17141   (eval $ac_compile) 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } &&
17148          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150   (eval $ac_try) 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; } &&
17154          { ac_try='test -s conftest.$ac_objext'
17155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156   (eval $ac_try) 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; }; then
17160   ac_header_compiler=yes
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 ac_header_compiler=no
17166 fi
17167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17169 echo "${ECHO_T}$ac_header_compiler" >&6
17170
17171 # Is the header present?
17172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180 #include <$ac_header>
17181 _ACEOF
17182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17183   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } >/dev/null; then
17190   if test -s conftest.err; then
17191     ac_cpp_err=$ac_cxx_preproc_warn_flag
17192     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17193   else
17194     ac_cpp_err=
17195   fi
17196 else
17197   ac_cpp_err=yes
17198 fi
17199 if test -z "$ac_cpp_err"; then
17200   ac_header_preproc=yes
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205   ac_header_preproc=no
17206 fi
17207 rm -f conftest.err conftest.$ac_ext
17208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17209 echo "${ECHO_T}$ac_header_preproc" >&6
17210
17211 # So?  What about this header?
17212 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17213   yes:no: )
17214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17218     ac_header_preproc=yes
17219     ;;
17220   no:yes:* )
17221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17233     (
17234       cat <<\_ASBOX
17235 ## ----------------------------------------- ##
17236 ## Report this to wx-dev@lists.wxwidgets.org ##
17237 ## ----------------------------------------- ##
17238 _ASBOX
17239     ) |
17240       sed "s/^/$as_me: WARNING:     /" >&2
17241     ;;
17242 esac
17243 echo "$as_me:$LINENO: checking for $ac_header" >&5
17244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   eval "$as_ac_Header=\$ac_header_preproc"
17249 fi
17250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17252
17253 fi
17254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17255   cat >>confdefs.h <<_ACEOF
17256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17257 _ACEOF
17258
17259 fi
17260
17261 done
17262
17263
17264
17265 for ac_header in langinfo.h
17266 do
17267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17269   echo "$as_me:$LINENO: checking for $ac_header" >&5
17270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17272   echo $ECHO_N "(cached) $ECHO_C" >&6
17273 fi
17274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17276 else
17277   # Is the header compilable?
17278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286 $ac_includes_default
17287 #include <$ac_header>
17288 _ACEOF
17289 rm -f conftest.$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291   (eval $ac_compile) 2>conftest.er1
17292   ac_status=$?
17293   grep -v '^ *+' conftest.er1 >conftest.err
17294   rm -f conftest.er1
17295   cat conftest.err >&5
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } &&
17298          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; }; then
17310   ac_header_compiler=yes
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 ac_header_compiler=no
17316 fi
17317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17319 echo "${ECHO_T}$ac_header_compiler" >&6
17320
17321 # Is the header present?
17322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h.  */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h.  */
17330 #include <$ac_header>
17331 _ACEOF
17332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17334   ac_status=$?
17335   grep -v '^ *+' conftest.er1 >conftest.err
17336   rm -f conftest.er1
17337   cat conftest.err >&5
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } >/dev/null; then
17340   if test -s conftest.err; then
17341     ac_cpp_err=$ac_cxx_preproc_warn_flag
17342     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17343   else
17344     ac_cpp_err=
17345   fi
17346 else
17347   ac_cpp_err=yes
17348 fi
17349 if test -z "$ac_cpp_err"; then
17350   ac_header_preproc=yes
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355   ac_header_preproc=no
17356 fi
17357 rm -f conftest.err conftest.$ac_ext
17358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17359 echo "${ECHO_T}$ac_header_preproc" >&6
17360
17361 # So?  What about this header?
17362 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17363   yes:no: )
17364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17368     ac_header_preproc=yes
17369     ;;
17370   no:yes:* )
17371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17383     (
17384       cat <<\_ASBOX
17385 ## ----------------------------------------- ##
17386 ## Report this to wx-dev@lists.wxwidgets.org ##
17387 ## ----------------------------------------- ##
17388 _ASBOX
17389     ) |
17390       sed "s/^/$as_me: WARNING:     /" >&2
17391     ;;
17392 esac
17393 echo "$as_me:$LINENO: checking for $ac_header" >&5
17394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   eval "$as_ac_Header=\$ac_header_preproc"
17399 fi
17400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17402
17403 fi
17404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17405   cat >>confdefs.h <<_ACEOF
17406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17407 _ACEOF
17408
17409 fi
17410
17411 done
17412
17413
17414 case "${host}" in
17415   *-pc-os2_emx | *-pc-os2-emx )
17416                   if test $ac_cv_header_langinfo_h = "yes" \
17417                 -a \(   "$wx_cv_gccversion" = "EMX2" \
17418                      -o "$wx_cv_gccversion" = "EMX3" \
17419                      -o "$wx_cv_gccversion" = "Innotek5" \); then
17420           LIBS="$LIBS -lintl"
17421       fi
17422   ;;
17423 esac
17424
17425 if test "$USE_UNIX" = 1 ; then
17426
17427 for ac_header in sys/select.h
17428 do
17429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17431   echo "$as_me:$LINENO: checking for $ac_header" >&5
17432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 fi
17436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17438 else
17439   # Is the header compilable?
17440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448 $ac_includes_default
17449 #include <$ac_header>
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453   (eval $ac_compile) 2>conftest.er1
17454   ac_status=$?
17455   grep -v '^ *+' conftest.er1 >conftest.err
17456   rm -f conftest.er1
17457   cat conftest.err >&5
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); } &&
17460          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; } &&
17466          { ac_try='test -s conftest.$ac_objext'
17467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468   (eval $ac_try) 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; }; then
17472   ac_header_compiler=yes
17473 else
17474   echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 ac_header_compiler=no
17478 fi
17479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17481 echo "${ECHO_T}$ac_header_compiler" >&6
17482
17483 # Is the header present?
17484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17486 cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492 #include <$ac_header>
17493 _ACEOF
17494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17496   ac_status=$?
17497   grep -v '^ *+' conftest.er1 >conftest.err
17498   rm -f conftest.er1
17499   cat conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } >/dev/null; then
17502   if test -s conftest.err; then
17503     ac_cpp_err=$ac_cxx_preproc_warn_flag
17504     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17505   else
17506     ac_cpp_err=
17507   fi
17508 else
17509   ac_cpp_err=yes
17510 fi
17511 if test -z "$ac_cpp_err"; then
17512   ac_header_preproc=yes
17513 else
17514   echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17516
17517   ac_header_preproc=no
17518 fi
17519 rm -f conftest.err conftest.$ac_ext
17520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17521 echo "${ECHO_T}$ac_header_preproc" >&6
17522
17523 # So?  What about this header?
17524 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17525   yes:no: )
17526     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17530     ac_header_preproc=yes
17531     ;;
17532   no:yes:* )
17533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17535     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17536 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17537     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17539     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17540 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17543     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17545     (
17546       cat <<\_ASBOX
17547 ## ----------------------------------------- ##
17548 ## Report this to wx-dev@lists.wxwidgets.org ##
17549 ## ----------------------------------------- ##
17550 _ASBOX
17551     ) |
17552       sed "s/^/$as_me: WARNING:     /" >&2
17553     ;;
17554 esac
17555 echo "$as_me:$LINENO: checking for $ac_header" >&5
17556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   eval "$as_ac_Header=\$ac_header_preproc"
17561 fi
17562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17564
17565 fi
17566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17567   cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17569 _ACEOF
17570
17571 fi
17572
17573 done
17574
17575 fi
17576
17577
17578 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17579 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17580 if test "${ac_cv_c_const+set}" = set; then
17581   echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583   cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589
17590 int
17591 main ()
17592 {
17593 /* FIXME: Include the comments suggested by Paul. */
17594 #ifndef __cplusplus
17595   /* Ultrix mips cc rejects this.  */
17596   typedef int charset[2];
17597   const charset x;
17598   /* SunOS 4.1.1 cc rejects this.  */
17599   char const *const *ccp;
17600   char **p;
17601   /* NEC SVR4.0.2 mips cc rejects this.  */
17602   struct point {int x, y;};
17603   static struct point const zero = {0,0};
17604   /* AIX XL C 1.02.0.0 rejects this.
17605      It does not let you subtract one const X* pointer from another in
17606      an arm of an if-expression whose if-part is not a constant
17607      expression */
17608   const char *g = "string";
17609   ccp = &g + (g ? g-g : 0);
17610   /* HPUX 7.0 cc rejects these. */
17611   ++ccp;
17612   p = (char**) ccp;
17613   ccp = (char const *const *) p;
17614   { /* SCO 3.2v4 cc rejects this.  */
17615     char *t;
17616     char const *s = 0 ? (char *) 0 : (char const *) 0;
17617
17618     *t++ = 0;
17619   }
17620   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17621     int x[] = {25, 17};
17622     const int *foo = &x[0];
17623     ++foo;
17624   }
17625   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17626     typedef const int *iptr;
17627     iptr p = 0;
17628     ++p;
17629   }
17630   { /* AIX XL C 1.02.0.0 rejects this saying
17631        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17632     struct s { int j; const int *ap[3]; };
17633     struct s *b; b->j = 5;
17634   }
17635   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17636     const int foo = 10;
17637   }
17638 #endif
17639
17640   ;
17641   return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646   (eval $ac_compile) 2>conftest.er1
17647   ac_status=$?
17648   grep -v '^ *+' conftest.er1 >conftest.err
17649   rm -f conftest.er1
17650   cat conftest.err >&5
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; } &&
17659          { ac_try='test -s conftest.$ac_objext'
17660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661   (eval $ac_try) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; }; then
17665   ac_cv_c_const=yes
17666 else
17667   echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_cv_c_const=no
17671 fi
17672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17673 fi
17674 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17675 echo "${ECHO_T}$ac_cv_c_const" >&6
17676 if test $ac_cv_c_const = no; then
17677
17678 cat >>confdefs.h <<\_ACEOF
17679 #define const
17680 _ACEOF
17681
17682 fi
17683
17684 echo "$as_me:$LINENO: checking for inline" >&5
17685 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17686 if test "${ac_cv_c_inline+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   ac_cv_c_inline=no
17690 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
17698 typedef int foo_t;
17699 static $ac_kw foo_t static_foo () {return 0; }
17700 $ac_kw foo_t foo () {return 0; }
17701 #endif
17702
17703 _ACEOF
17704 rm -f conftest.$ac_objext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17706   (eval $ac_compile) 2>conftest.er1
17707   ac_status=$?
17708   grep -v '^ *+' conftest.er1 >conftest.err
17709   rm -f conftest.er1
17710   cat conftest.err >&5
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); } &&
17713          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; } &&
17719          { ac_try='test -s conftest.$ac_objext'
17720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721   (eval $ac_try) 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725   ac_cv_c_inline=$ac_kw; break
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 fi
17731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17732 done
17733
17734 fi
17735 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17736 echo "${ECHO_T}$ac_cv_c_inline" >&6
17737
17738
17739 case $ac_cv_c_inline in
17740   inline | yes) ;;
17741   *)
17742     case $ac_cv_c_inline in
17743       no) ac_val=;;
17744       *) ac_val=$ac_cv_c_inline;;
17745     esac
17746     cat >>confdefs.h <<_ACEOF
17747 #ifndef __cplusplus
17748 #define inline $ac_val
17749 #endif
17750 _ACEOF
17751     ;;
17752 esac
17753
17754
17755 echo "$as_me:$LINENO: checking for char" >&5
17756 echo $ECHO_N "checking for char... $ECHO_C" >&6
17757 if test "${ac_cv_type_char+set}" = set; then
17758   echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760   cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 $ac_includes_default
17767 int
17768 main ()
17769 {
17770 if ((char *) 0)
17771   return 0;
17772 if (sizeof (char))
17773   return 0;
17774   ;
17775   return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780   (eval $ac_compile) 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; } &&
17793          { ac_try='test -s conftest.$ac_objext'
17794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795   (eval $ac_try) 2>&5
17796   ac_status=$?
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); }; }; then
17799   ac_cv_type_char=yes
17800 else
17801   echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 ac_cv_type_char=no
17805 fi
17806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17809 echo "${ECHO_T}$ac_cv_type_char" >&6
17810
17811 echo "$as_me:$LINENO: checking size of char" >&5
17812 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17813 if test "${ac_cv_sizeof_char+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   if test "$ac_cv_type_char" = yes; then
17817   # The cast to unsigned long works around a bug in the HP C Compiler
17818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17820   # This bug is HP SR number 8606223364.
17821   if test "$cross_compiling" = yes; then
17822   # Depending upon the size, compute the lo and hi bounds.
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829 $ac_includes_default
17830 int
17831 main ()
17832 {
17833 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17834 test_array [0] = 0
17835
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest.$ac_objext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17842   (eval $ac_compile) 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } &&
17849          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851   (eval $ac_try) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest.$ac_objext'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; }; then
17861   ac_lo=0 ac_mid=0
17862   while :; do
17863     cat >conftest.$ac_ext <<_ACEOF
17864 /* confdefs.h.  */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h.  */
17869 $ac_includes_default
17870 int
17871 main ()
17872 {
17873 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17874 test_array [0] = 0
17875
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest.$ac_objext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882   (eval $ac_compile) 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } &&
17889          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891   (eval $ac_try) 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest.$ac_objext'
17896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897   (eval $ac_try) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   ac_hi=$ac_mid; break
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ac_lo=`expr $ac_mid + 1`
17907                     if test $ac_lo -le $ac_mid; then
17908                       ac_lo= ac_hi=
17909                       break
17910                     fi
17911                     ac_mid=`expr 2 '*' $ac_mid + 1`
17912 fi
17913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17914   done
17915 else
17916   echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h.  */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h.  */
17925 $ac_includes_default
17926 int
17927 main ()
17928 {
17929 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17930 test_array [0] = 0
17931
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17938   (eval $ac_compile) 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } &&
17945          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947   (eval $ac_try) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; } &&
17951          { ac_try='test -s conftest.$ac_objext'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; }; then
17957   ac_hi=-1 ac_mid=-1
17958   while :; do
17959     cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965 $ac_includes_default
17966 int
17967 main ()
17968 {
17969 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17970 test_array [0] = 0
17971
17972   ;
17973   return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext
17977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17978   (eval $ac_compile) 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } &&
17985          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; } &&
17991          { ac_try='test -s conftest.$ac_objext'
17992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993   (eval $ac_try) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; }; then
17997   ac_lo=$ac_mid; break
17998 else
17999   echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18001
18002 ac_hi=`expr '(' $ac_mid ')' - 1`
18003                        if test $ac_mid -le $ac_hi; then
18004                          ac_lo= ac_hi=
18005                          break
18006                        fi
18007                        ac_mid=`expr 2 '*' $ac_mid`
18008 fi
18009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18010   done
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 ac_lo= ac_hi=
18016 fi
18017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 fi
18019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18020 # Binary search between lo and hi bounds.
18021 while test "x$ac_lo" != "x$ac_hi"; do
18022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18023   cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029 $ac_includes_default
18030 int
18031 main ()
18032 {
18033 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18034 test_array [0] = 0
18035
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18042   (eval $ac_compile) 2>conftest.er1
18043   ac_status=$?
18044   grep -v '^ *+' conftest.er1 >conftest.err
18045   rm -f conftest.er1
18046   cat conftest.err >&5
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } &&
18049          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051   (eval $ac_try) 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; } &&
18055          { ac_try='test -s conftest.$ac_objext'
18056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057   (eval $ac_try) 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; }; then
18061   ac_hi=$ac_mid
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 ac_lo=`expr '(' $ac_mid ')' + 1`
18067 fi
18068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18069 done
18070 case $ac_lo in
18071 ?*) ac_cv_sizeof_char=$ac_lo;;
18072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18073 See \`config.log' for more details." >&5
18074 echo "$as_me: error: cannot compute sizeof (char), 77
18075 See \`config.log' for more details." >&2;}
18076    { (exit 1); exit 1; }; } ;;
18077 esac
18078 else
18079   if test "$cross_compiling" = yes; then
18080   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18081 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18082    { (exit 1); exit 1; }; }
18083 else
18084   cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090 $ac_includes_default
18091 long longval () { return (long) (sizeof (char)); }
18092 unsigned long ulongval () { return (long) (sizeof (char)); }
18093 #include <stdio.h>
18094 #include <stdlib.h>
18095 int
18096 main ()
18097 {
18098
18099   FILE *f = fopen ("conftest.val", "w");
18100   if (! f)
18101     exit (1);
18102   if (((long) (sizeof (char))) < 0)
18103     {
18104       long i = longval ();
18105       if (i != ((long) (sizeof (char))))
18106         exit (1);
18107       fprintf (f, "%ld\n", i);
18108     }
18109   else
18110     {
18111       unsigned long i = ulongval ();
18112       if (i != ((long) (sizeof (char))))
18113         exit (1);
18114       fprintf (f, "%lu\n", i);
18115     }
18116   exit (ferror (f) || fclose (f) != 0);
18117
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest$ac_exeext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124   (eval $ac_link) 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129   (eval $ac_try) 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   ac_cv_sizeof_char=`cat conftest.val`
18134 else
18135   echo "$as_me: program exited with status $ac_status" >&5
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 ( exit $ac_status )
18140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18141 See \`config.log' for more details." >&5
18142 echo "$as_me: error: cannot compute sizeof (char), 77
18143 See \`config.log' for more details." >&2;}
18144    { (exit 1); exit 1; }; }
18145 fi
18146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18147 fi
18148 fi
18149 rm -f conftest.val
18150 else
18151   ac_cv_sizeof_char=0
18152 fi
18153 fi
18154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18155 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18156 cat >>confdefs.h <<_ACEOF
18157 #define SIZEOF_CHAR $ac_cv_sizeof_char
18158 _ACEOF
18159
18160
18161 echo "$as_me:$LINENO: checking for short" >&5
18162 echo $ECHO_N "checking for short... $ECHO_C" >&6
18163 if test "${ac_cv_type_short+set}" = set; then
18164   echo $ECHO_N "(cached) $ECHO_C" >&6
18165 else
18166   cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172 $ac_includes_default
18173 int
18174 main ()
18175 {
18176 if ((short *) 0)
18177   return 0;
18178 if (sizeof (short))
18179   return 0;
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186   (eval $ac_compile) 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } &&
18193          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195   (eval $ac_try) 2>&5
18196   ac_status=$?
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); }; } &&
18199          { ac_try='test -s conftest.$ac_objext'
18200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201   (eval $ac_try) 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }; }; then
18205   ac_cv_type_short=yes
18206 else
18207   echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18209
18210 ac_cv_type_short=no
18211 fi
18212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18213 fi
18214 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18215 echo "${ECHO_T}$ac_cv_type_short" >&6
18216
18217 echo "$as_me:$LINENO: checking size of short" >&5
18218 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18219 if test "${ac_cv_sizeof_short+set}" = set; then
18220   echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222   if test "$ac_cv_type_short" = yes; then
18223   # The cast to unsigned long works around a bug in the HP C Compiler
18224   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18225   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18226   # This bug is HP SR number 8606223364.
18227   if test "$cross_compiling" = yes; then
18228   # Depending upon the size, compute the lo and hi bounds.
18229 cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h.  */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h.  */
18235 $ac_includes_default
18236 int
18237 main ()
18238 {
18239 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18240 test_array [0] = 0
18241
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18248   (eval $ac_compile) 2>conftest.er1
18249   ac_status=$?
18250   grep -v '^ *+' conftest.er1 >conftest.err
18251   rm -f conftest.er1
18252   cat conftest.err >&5
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); } &&
18255          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257   (eval $ac_try) 2>&5
18258   ac_status=$?
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); }; } &&
18261          { ac_try='test -s conftest.$ac_objext'
18262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263   (eval $ac_try) 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; }; then
18267   ac_lo=0 ac_mid=0
18268   while :; do
18269     cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h.  */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h.  */
18275 $ac_includes_default
18276 int
18277 main ()
18278 {
18279 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18280 test_array [0] = 0
18281
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18288   (eval $ac_compile) 2>conftest.er1
18289   ac_status=$?
18290   grep -v '^ *+' conftest.er1 >conftest.err
18291   rm -f conftest.er1
18292   cat conftest.err >&5
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); } &&
18295          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297   (eval $ac_try) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; } &&
18301          { ac_try='test -s conftest.$ac_objext'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; }; then
18307   ac_hi=$ac_mid; break
18308 else
18309   echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18311
18312 ac_lo=`expr $ac_mid + 1`
18313                     if test $ac_lo -le $ac_mid; then
18314                       ac_lo= ac_hi=
18315                       break
18316                     fi
18317                     ac_mid=`expr 2 '*' $ac_mid + 1`
18318 fi
18319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18320   done
18321 else
18322   echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h.  */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h.  */
18331 $ac_includes_default
18332 int
18333 main ()
18334 {
18335 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18336 test_array [0] = 0
18337
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18344   (eval $ac_compile) 2>conftest.er1
18345   ac_status=$?
18346   grep -v '^ *+' conftest.er1 >conftest.err
18347   rm -f conftest.er1
18348   cat conftest.err >&5
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); } &&
18351          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353   (eval $ac_try) 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; } &&
18357          { ac_try='test -s conftest.$ac_objext'
18358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359   (eval $ac_try) 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; }; then
18363   ac_hi=-1 ac_mid=-1
18364   while :; do
18365     cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371 $ac_includes_default
18372 int
18373 main ()
18374 {
18375 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18376 test_array [0] = 0
18377
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18384   (eval $ac_compile) 2>conftest.er1
18385   ac_status=$?
18386   grep -v '^ *+' conftest.er1 >conftest.err
18387   rm -f conftest.er1
18388   cat conftest.err >&5
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } &&
18391          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393   (eval $ac_try) 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; } &&
18397          { ac_try='test -s conftest.$ac_objext'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; }; then
18403   ac_lo=$ac_mid; break
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408 ac_hi=`expr '(' $ac_mid ')' - 1`
18409                        if test $ac_mid -le $ac_hi; then
18410                          ac_lo= ac_hi=
18411                          break
18412                        fi
18413                        ac_mid=`expr 2 '*' $ac_mid`
18414 fi
18415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416   done
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 ac_lo= ac_hi=
18422 fi
18423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18424 fi
18425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18426 # Binary search between lo and hi bounds.
18427 while test "x$ac_lo" != "x$ac_hi"; do
18428   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18429   cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h.  */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h.  */
18435 $ac_includes_default
18436 int
18437 main ()
18438 {
18439 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18440 test_array [0] = 0
18441
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest.$ac_objext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448   (eval $ac_compile) 2>conftest.er1
18449   ac_status=$?
18450   grep -v '^ *+' conftest.er1 >conftest.err
18451   rm -f conftest.er1
18452   cat conftest.err >&5
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } &&
18455          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457   (eval $ac_try) 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; } &&
18461          { ac_try='test -s conftest.$ac_objext'
18462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463   (eval $ac_try) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   ac_hi=$ac_mid
18468 else
18469   echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 ac_lo=`expr '(' $ac_mid ')' + 1`
18473 fi
18474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18475 done
18476 case $ac_lo in
18477 ?*) ac_cv_sizeof_short=$ac_lo;;
18478 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18479 See \`config.log' for more details." >&5
18480 echo "$as_me: error: cannot compute sizeof (short), 77
18481 See \`config.log' for more details." >&2;}
18482    { (exit 1); exit 1; }; } ;;
18483 esac
18484 else
18485   if test "$cross_compiling" = yes; then
18486   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18487 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18488    { (exit 1); exit 1; }; }
18489 else
18490   cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h.  */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h.  */
18496 $ac_includes_default
18497 long longval () { return (long) (sizeof (short)); }
18498 unsigned long ulongval () { return (long) (sizeof (short)); }
18499 #include <stdio.h>
18500 #include <stdlib.h>
18501 int
18502 main ()
18503 {
18504
18505   FILE *f = fopen ("conftest.val", "w");
18506   if (! f)
18507     exit (1);
18508   if (((long) (sizeof (short))) < 0)
18509     {
18510       long i = longval ();
18511       if (i != ((long) (sizeof (short))))
18512         exit (1);
18513       fprintf (f, "%ld\n", i);
18514     }
18515   else
18516     {
18517       unsigned long i = ulongval ();
18518       if (i != ((long) (sizeof (short))))
18519         exit (1);
18520       fprintf (f, "%lu\n", i);
18521     }
18522   exit (ferror (f) || fclose (f) != 0);
18523
18524   ;
18525   return 0;
18526 }
18527 _ACEOF
18528 rm -f conftest$ac_exeext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530   (eval $ac_link) 2>&5
18531   ac_status=$?
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535   (eval $ac_try) 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); }; }; then
18539   ac_cv_sizeof_short=`cat conftest.val`
18540 else
18541   echo "$as_me: program exited with status $ac_status" >&5
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545 ( exit $ac_status )
18546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18547 See \`config.log' for more details." >&5
18548 echo "$as_me: error: cannot compute sizeof (short), 77
18549 See \`config.log' for more details." >&2;}
18550    { (exit 1); exit 1; }; }
18551 fi
18552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18553 fi
18554 fi
18555 rm -f conftest.val
18556 else
18557   ac_cv_sizeof_short=0
18558 fi
18559 fi
18560 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18561 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18562 cat >>confdefs.h <<_ACEOF
18563 #define SIZEOF_SHORT $ac_cv_sizeof_short
18564 _ACEOF
18565
18566
18567 echo "$as_me:$LINENO: checking for void *" >&5
18568 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18569 if test "${ac_cv_type_void_p+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h.  */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h.  */
18578 $ac_includes_default
18579 int
18580 main ()
18581 {
18582 if ((void * *) 0)
18583   return 0;
18584 if (sizeof (void *))
18585   return 0;
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18592   (eval $ac_compile) 2>conftest.er1
18593   ac_status=$?
18594   grep -v '^ *+' conftest.er1 >conftest.err
18595   rm -f conftest.er1
18596   cat conftest.err >&5
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); } &&
18599          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601   (eval $ac_try) 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); }; } &&
18605          { ac_try='test -s conftest.$ac_objext'
18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; }; then
18611   ac_cv_type_void_p=yes
18612 else
18613   echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 ac_cv_type_void_p=no
18617 fi
18618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18619 fi
18620 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18621 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18622
18623 echo "$as_me:$LINENO: checking size of void *" >&5
18624 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18625 if test "${ac_cv_sizeof_void_p+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628   if test "$ac_cv_type_void_p" = yes; then
18629   # The cast to unsigned long works around a bug in the HP C Compiler
18630   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18631   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18632   # This bug is HP SR number 8606223364.
18633   if test "$cross_compiling" = yes; then
18634   # Depending upon the size, compute the lo and hi bounds.
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h.  */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h.  */
18641 $ac_includes_default
18642 int
18643 main ()
18644 {
18645 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18646 test_array [0] = 0
18647
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18654   (eval $ac_compile) 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663   (eval $ac_try) 2>&5
18664   ac_status=$?
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); }; } &&
18667          { ac_try='test -s conftest.$ac_objext'
18668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669   (eval $ac_try) 2>&5
18670   ac_status=$?
18671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); }; }; then
18673   ac_lo=0 ac_mid=0
18674   while :; do
18675     cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h.  */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h.  */
18681 $ac_includes_default
18682 int
18683 main ()
18684 {
18685 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18686 test_array [0] = 0
18687
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694   (eval $ac_compile) 2>conftest.er1
18695   ac_status=$?
18696   grep -v '^ *+' conftest.er1 >conftest.err
18697   rm -f conftest.er1
18698   cat conftest.err >&5
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } &&
18701          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703   (eval $ac_try) 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; } &&
18707          { ac_try='test -s conftest.$ac_objext'
18708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709   (eval $ac_try) 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; }; then
18713   ac_hi=$ac_mid; break
18714 else
18715   echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718 ac_lo=`expr $ac_mid + 1`
18719                     if test $ac_lo -le $ac_mid; then
18720                       ac_lo= ac_hi=
18721                       break
18722                     fi
18723                     ac_mid=`expr 2 '*' $ac_mid + 1`
18724 fi
18725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18726   done
18727 else
18728   echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737 $ac_includes_default
18738 int
18739 main ()
18740 {
18741 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18742 test_array [0] = 0
18743
18744   ;
18745   return 0;
18746 }
18747 _ACEOF
18748 rm -f conftest.$ac_objext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18750   (eval $ac_compile) 2>conftest.er1
18751   ac_status=$?
18752   grep -v '^ *+' conftest.er1 >conftest.err
18753   rm -f conftest.er1
18754   cat conftest.err >&5
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } &&
18757          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759   (eval $ac_try) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; } &&
18763          { ac_try='test -s conftest.$ac_objext'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_hi=-1 ac_mid=-1
18770   while :; do
18771     cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18777 $ac_includes_default
18778 int
18779 main ()
18780 {
18781 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18782 test_array [0] = 0
18783
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790   (eval $ac_compile) 2>conftest.er1
18791   ac_status=$?
18792   grep -v '^ *+' conftest.er1 >conftest.err
18793   rm -f conftest.er1
18794   cat conftest.err >&5
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest.$ac_objext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   ac_lo=$ac_mid; break
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 ac_hi=`expr '(' $ac_mid ')' - 1`
18815                        if test $ac_mid -le $ac_hi; then
18816                          ac_lo= ac_hi=
18817                          break
18818                        fi
18819                        ac_mid=`expr 2 '*' $ac_mid`
18820 fi
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18822   done
18823 else
18824   echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 ac_lo= ac_hi=
18828 fi
18829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18830 fi
18831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18832 # Binary search between lo and hi bounds.
18833 while test "x$ac_lo" != "x$ac_hi"; do
18834   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18835   cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841 $ac_includes_default
18842 int
18843 main ()
18844 {
18845 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18846 test_array [0] = 0
18847
18848   ;
18849   return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext
18853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18854   (eval $ac_compile) 2>conftest.er1
18855   ac_status=$?
18856   grep -v '^ *+' conftest.er1 >conftest.err
18857   rm -f conftest.er1
18858   cat conftest.err >&5
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } &&
18861          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; } &&
18867          { ac_try='test -s conftest.$ac_objext'
18868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869   (eval $ac_try) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; }; then
18873   ac_hi=$ac_mid
18874 else
18875   echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ac_lo=`expr '(' $ac_mid ')' + 1`
18879 fi
18880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18881 done
18882 case $ac_lo in
18883 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18884 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18885 See \`config.log' for more details." >&5
18886 echo "$as_me: error: cannot compute sizeof (void *), 77
18887 See \`config.log' for more details." >&2;}
18888    { (exit 1); exit 1; }; } ;;
18889 esac
18890 else
18891   if test "$cross_compiling" = yes; then
18892   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18893 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18894    { (exit 1); exit 1; }; }
18895 else
18896   cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h.  */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h.  */
18902 $ac_includes_default
18903 long longval () { return (long) (sizeof (void *)); }
18904 unsigned long ulongval () { return (long) (sizeof (void *)); }
18905 #include <stdio.h>
18906 #include <stdlib.h>
18907 int
18908 main ()
18909 {
18910
18911   FILE *f = fopen ("conftest.val", "w");
18912   if (! f)
18913     exit (1);
18914   if (((long) (sizeof (void *))) < 0)
18915     {
18916       long i = longval ();
18917       if (i != ((long) (sizeof (void *))))
18918         exit (1);
18919       fprintf (f, "%ld\n", i);
18920     }
18921   else
18922     {
18923       unsigned long i = ulongval ();
18924       if (i != ((long) (sizeof (void *))))
18925         exit (1);
18926       fprintf (f, "%lu\n", i);
18927     }
18928   exit (ferror (f) || fclose (f) != 0);
18929
18930   ;
18931   return 0;
18932 }
18933 _ACEOF
18934 rm -f conftest$ac_exeext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936   (eval $ac_link) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941   (eval $ac_try) 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); }; }; then
18945   ac_cv_sizeof_void_p=`cat conftest.val`
18946 else
18947   echo "$as_me: program exited with status $ac_status" >&5
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 ( exit $ac_status )
18952 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18953 See \`config.log' for more details." >&5
18954 echo "$as_me: error: cannot compute sizeof (void *), 77
18955 See \`config.log' for more details." >&2;}
18956    { (exit 1); exit 1; }; }
18957 fi
18958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18959 fi
18960 fi
18961 rm -f conftest.val
18962 else
18963   ac_cv_sizeof_void_p=0
18964 fi
18965 fi
18966 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18967 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18968 cat >>confdefs.h <<_ACEOF
18969 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18970 _ACEOF
18971
18972
18973 echo "$as_me:$LINENO: checking for int" >&5
18974 echo $ECHO_N "checking for int... $ECHO_C" >&6
18975 if test "${ac_cv_type_int+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984 $ac_includes_default
18985 int
18986 main ()
18987 {
18988 if ((int *) 0)
18989   return 0;
18990 if (sizeof (int))
18991   return 0;
18992   ;
18993   return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998   (eval $ac_compile) 2>conftest.er1
18999   ac_status=$?
19000   grep -v '^ *+' conftest.er1 >conftest.err
19001   rm -f conftest.er1
19002   cat conftest.err >&5
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } &&
19005          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007   (eval $ac_try) 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; } &&
19011          { ac_try='test -s conftest.$ac_objext'
19012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013   (eval $ac_try) 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   ac_cv_type_int=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022 ac_cv_type_int=no
19023 fi
19024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19025 fi
19026 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19027 echo "${ECHO_T}$ac_cv_type_int" >&6
19028
19029 echo "$as_me:$LINENO: checking size of int" >&5
19030 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19031 if test "${ac_cv_sizeof_int+set}" = set; then
19032   echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034   if test "$ac_cv_type_int" = yes; then
19035   # The cast to unsigned long works around a bug in the HP C Compiler
19036   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19037   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19038   # This bug is HP SR number 8606223364.
19039   if test "$cross_compiling" = yes; then
19040   # Depending upon the size, compute the lo and hi bounds.
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 $ac_includes_default
19048 int
19049 main ()
19050 {
19051 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19052 test_array [0] = 0
19053
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext
19059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19060   (eval $ac_compile) 2>conftest.er1
19061   ac_status=$?
19062   grep -v '^ *+' conftest.er1 >conftest.err
19063   rm -f conftest.er1
19064   cat conftest.err >&5
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); } &&
19067          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; } &&
19073          { ac_try='test -s conftest.$ac_objext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_lo=0 ac_mid=0
19080   while :; do
19081     cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 $ac_includes_default
19088 int
19089 main ()
19090 {
19091 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19092 test_array [0] = 0
19093
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100   (eval $ac_compile) 2>conftest.er1
19101   ac_status=$?
19102   grep -v '^ *+' conftest.er1 >conftest.err
19103   rm -f conftest.er1
19104   cat conftest.err >&5
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); } &&
19107          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109   (eval $ac_try) 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; } &&
19113          { ac_try='test -s conftest.$ac_objext'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   ac_hi=$ac_mid; break
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_lo=`expr $ac_mid + 1`
19125                     if test $ac_lo -le $ac_mid; then
19126                       ac_lo= ac_hi=
19127                       break
19128                     fi
19129                     ac_mid=`expr 2 '*' $ac_mid + 1`
19130 fi
19131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19132   done
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143 $ac_includes_default
19144 int
19145 main ()
19146 {
19147 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19148 test_array [0] = 0
19149
19150   ;
19151   return 0;
19152 }
19153 _ACEOF
19154 rm -f conftest.$ac_objext
19155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19156   (eval $ac_compile) 2>conftest.er1
19157   ac_status=$?
19158   grep -v '^ *+' conftest.er1 >conftest.err
19159   rm -f conftest.er1
19160   cat conftest.err >&5
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); } &&
19163          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165   (eval $ac_try) 2>&5
19166   ac_status=$?
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); }; } &&
19169          { ac_try='test -s conftest.$ac_objext'
19170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171   (eval $ac_try) 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; }; then
19175   ac_hi=-1 ac_mid=-1
19176   while :; do
19177     cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 $ac_includes_default
19184 int
19185 main ()
19186 {
19187 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19188 test_array [0] = 0
19189
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196   (eval $ac_compile) 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } &&
19203          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205   (eval $ac_try) 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; } &&
19209          { ac_try='test -s conftest.$ac_objext'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; }; then
19215   ac_lo=$ac_mid; break
19216 else
19217   echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19219
19220 ac_hi=`expr '(' $ac_mid ')' - 1`
19221                        if test $ac_mid -le $ac_hi; then
19222                          ac_lo= ac_hi=
19223                          break
19224                        fi
19225                        ac_mid=`expr 2 '*' $ac_mid`
19226 fi
19227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19228   done
19229 else
19230   echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19232
19233 ac_lo= ac_hi=
19234 fi
19235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19236 fi
19237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19238 # Binary search between lo and hi bounds.
19239 while test "x$ac_lo" != "x$ac_hi"; do
19240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19241   cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 $ac_includes_default
19248 int
19249 main ()
19250 {
19251 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19252 test_array [0] = 0
19253
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260   (eval $ac_compile) 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; } &&
19273          { ac_try='test -s conftest.$ac_objext'
19274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275   (eval $ac_try) 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; }; then
19279   ac_hi=$ac_mid
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_lo=`expr '(' $ac_mid ')' + 1`
19285 fi
19286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19287 done
19288 case $ac_lo in
19289 ?*) ac_cv_sizeof_int=$ac_lo;;
19290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19291 See \`config.log' for more details." >&5
19292 echo "$as_me: error: cannot compute sizeof (int), 77
19293 See \`config.log' for more details." >&2;}
19294    { (exit 1); exit 1; }; } ;;
19295 esac
19296 else
19297   if test "$cross_compiling" = yes; then
19298   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19299 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19300    { (exit 1); exit 1; }; }
19301 else
19302   cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308 $ac_includes_default
19309 long longval () { return (long) (sizeof (int)); }
19310 unsigned long ulongval () { return (long) (sizeof (int)); }
19311 #include <stdio.h>
19312 #include <stdlib.h>
19313 int
19314 main ()
19315 {
19316
19317   FILE *f = fopen ("conftest.val", "w");
19318   if (! f)
19319     exit (1);
19320   if (((long) (sizeof (int))) < 0)
19321     {
19322       long i = longval ();
19323       if (i != ((long) (sizeof (int))))
19324         exit (1);
19325       fprintf (f, "%ld\n", i);
19326     }
19327   else
19328     {
19329       unsigned long i = ulongval ();
19330       if (i != ((long) (sizeof (int))))
19331         exit (1);
19332       fprintf (f, "%lu\n", i);
19333     }
19334   exit (ferror (f) || fclose (f) != 0);
19335
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342   (eval $ac_link) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; }; then
19351   ac_cv_sizeof_int=`cat conftest.val`
19352 else
19353   echo "$as_me: program exited with status $ac_status" >&5
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357 ( exit $ac_status )
19358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19359 See \`config.log' for more details." >&5
19360 echo "$as_me: error: cannot compute sizeof (int), 77
19361 See \`config.log' for more details." >&2;}
19362    { (exit 1); exit 1; }; }
19363 fi
19364 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 fi
19367 rm -f conftest.val
19368 else
19369   ac_cv_sizeof_int=0
19370 fi
19371 fi
19372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19373 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19374 cat >>confdefs.h <<_ACEOF
19375 #define SIZEOF_INT $ac_cv_sizeof_int
19376 _ACEOF
19377
19378
19379 echo "$as_me:$LINENO: checking for long" >&5
19380 echo $ECHO_N "checking for long... $ECHO_C" >&6
19381 if test "${ac_cv_type_long+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384   cat >conftest.$ac_ext <<_ACEOF
19385 /* confdefs.h.  */
19386 _ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h.  */
19390 $ac_includes_default
19391 int
19392 main ()
19393 {
19394 if ((long *) 0)
19395   return 0;
19396 if (sizeof (long))
19397   return 0;
19398   ;
19399   return 0;
19400 }
19401 _ACEOF
19402 rm -f conftest.$ac_objext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404   (eval $ac_compile) 2>conftest.er1
19405   ac_status=$?
19406   grep -v '^ *+' conftest.er1 >conftest.err
19407   rm -f conftest.er1
19408   cat conftest.err >&5
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); } &&
19411          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413   (eval $ac_try) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; } &&
19417          { ac_try='test -s conftest.$ac_objext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   ac_cv_type_long=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_cv_type_long=no
19429 fi
19430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431 fi
19432 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19433 echo "${ECHO_T}$ac_cv_type_long" >&6
19434
19435 echo "$as_me:$LINENO: checking size of long" >&5
19436 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19437 if test "${ac_cv_sizeof_long+set}" = set; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440   if test "$ac_cv_type_long" = yes; then
19441   # The cast to unsigned long works around a bug in the HP C Compiler
19442   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19443   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19444   # This bug is HP SR number 8606223364.
19445   if test "$cross_compiling" = yes; then
19446   # Depending upon the size, compute the lo and hi bounds.
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453 $ac_includes_default
19454 int
19455 main ()
19456 {
19457 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19458 test_array [0] = 0
19459
19460   ;
19461   return 0;
19462 }
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466   (eval $ac_compile) 2>conftest.er1
19467   ac_status=$?
19468   grep -v '^ *+' conftest.er1 >conftest.err
19469   rm -f conftest.er1
19470   cat conftest.err >&5
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); } &&
19473          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475   (eval $ac_try) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; } &&
19479          { ac_try='test -s conftest.$ac_objext'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   ac_lo=0 ac_mid=0
19486   while :; do
19487     cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 $ac_includes_default
19494 int
19495 main ()
19496 {
19497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19498 test_array [0] = 0
19499
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19506   (eval $ac_compile) 2>conftest.er1
19507   ac_status=$?
19508   grep -v '^ *+' conftest.er1 >conftest.err
19509   rm -f conftest.er1
19510   cat conftest.err >&5
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } &&
19513          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515   (eval $ac_try) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; } &&
19519          { ac_try='test -s conftest.$ac_objext'
19520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521   (eval $ac_try) 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_hi=$ac_mid; break
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_lo=`expr $ac_mid + 1`
19531                     if test $ac_lo -le $ac_mid; then
19532                       ac_lo= ac_hi=
19533                       break
19534                     fi
19535                     ac_mid=`expr 2 '*' $ac_mid + 1`
19536 fi
19537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538   done
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549 $ac_includes_default
19550 int
19551 main ()
19552 {
19553 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19554 test_array [0] = 0
19555
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562   (eval $ac_compile) 2>conftest.er1
19563   ac_status=$?
19564   grep -v '^ *+' conftest.er1 >conftest.err
19565   rm -f conftest.er1
19566   cat conftest.err >&5
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); } &&
19569          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; } &&
19575          { ac_try='test -s conftest.$ac_objext'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; }; then
19581   ac_hi=-1 ac_mid=-1
19582   while :; do
19583     cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589 $ac_includes_default
19590 int
19591 main ()
19592 {
19593 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19594 test_array [0] = 0
19595
19596   ;
19597   return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602   (eval $ac_compile) 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } &&
19609          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest.$ac_objext'
19616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617   (eval $ac_try) 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; }; then
19621   ac_lo=$ac_mid; break
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_hi=`expr '(' $ac_mid ')' - 1`
19627                        if test $ac_mid -le $ac_hi; then
19628                          ac_lo= ac_hi=
19629                          break
19630                        fi
19631                        ac_mid=`expr 2 '*' $ac_mid`
19632 fi
19633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19634   done
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_lo= ac_hi=
19640 fi
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 fi
19643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 # Binary search between lo and hi bounds.
19645 while test "x$ac_lo" != "x$ac_hi"; do
19646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19647   cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653 $ac_includes_default
19654 int
19655 main ()
19656 {
19657 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19658 test_array [0] = 0
19659
19660   ;
19661   return 0;
19662 }
19663 _ACEOF
19664 rm -f conftest.$ac_objext
19665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19666   (eval $ac_compile) 2>conftest.er1
19667   ac_status=$?
19668   grep -v '^ *+' conftest.er1 >conftest.err
19669   rm -f conftest.er1
19670   cat conftest.err >&5
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } &&
19673          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675   (eval $ac_try) 2>&5
19676   ac_status=$?
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); }; } &&
19679          { ac_try='test -s conftest.$ac_objext'
19680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681   (eval $ac_try) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; }; then
19685   ac_hi=$ac_mid
19686 else
19687   echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 ac_lo=`expr '(' $ac_mid ')' + 1`
19691 fi
19692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19693 done
19694 case $ac_lo in
19695 ?*) ac_cv_sizeof_long=$ac_lo;;
19696 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19697 See \`config.log' for more details." >&5
19698 echo "$as_me: error: cannot compute sizeof (long), 77
19699 See \`config.log' for more details." >&2;}
19700    { (exit 1); exit 1; }; } ;;
19701 esac
19702 else
19703   if test "$cross_compiling" = yes; then
19704   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19705 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19706    { (exit 1); exit 1; }; }
19707 else
19708   cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714 $ac_includes_default
19715 long longval () { return (long) (sizeof (long)); }
19716 unsigned long ulongval () { return (long) (sizeof (long)); }
19717 #include <stdio.h>
19718 #include <stdlib.h>
19719 int
19720 main ()
19721 {
19722
19723   FILE *f = fopen ("conftest.val", "w");
19724   if (! f)
19725     exit (1);
19726   if (((long) (sizeof (long))) < 0)
19727     {
19728       long i = longval ();
19729       if (i != ((long) (sizeof (long))))
19730         exit (1);
19731       fprintf (f, "%ld\n", i);
19732     }
19733   else
19734     {
19735       unsigned long i = ulongval ();
19736       if (i != ((long) (sizeof (long))))
19737         exit (1);
19738       fprintf (f, "%lu\n", i);
19739     }
19740   exit (ferror (f) || fclose (f) != 0);
19741
19742   ;
19743   return 0;
19744 }
19745 _ACEOF
19746 rm -f conftest$ac_exeext
19747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19748   (eval $ac_link) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753   (eval $ac_try) 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); }; }; then
19757   ac_cv_sizeof_long=`cat conftest.val`
19758 else
19759   echo "$as_me: program exited with status $ac_status" >&5
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 ( exit $ac_status )
19764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19765 See \`config.log' for more details." >&5
19766 echo "$as_me: error: cannot compute sizeof (long), 77
19767 See \`config.log' for more details." >&2;}
19768    { (exit 1); exit 1; }; }
19769 fi
19770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19771 fi
19772 fi
19773 rm -f conftest.val
19774 else
19775   ac_cv_sizeof_long=0
19776 fi
19777 fi
19778 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19779 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19780 cat >>confdefs.h <<_ACEOF
19781 #define SIZEOF_LONG $ac_cv_sizeof_long
19782 _ACEOF
19783
19784
19785 echo "$as_me:$LINENO: checking for size_t" >&5
19786 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19787 if test "${ac_cv_type_size_t+set}" = set; then
19788   echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790   cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h.  */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h.  */
19796 $ac_includes_default
19797 int
19798 main ()
19799 {
19800 if ((size_t *) 0)
19801   return 0;
19802 if (sizeof (size_t))
19803   return 0;
19804   ;
19805   return 0;
19806 }
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810   (eval $ac_compile) 2>conftest.er1
19811   ac_status=$?
19812   grep -v '^ *+' conftest.er1 >conftest.err
19813   rm -f conftest.er1
19814   cat conftest.err >&5
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } &&
19817          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819   (eval $ac_try) 2>&5
19820   ac_status=$?
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); }; } &&
19823          { ac_try='test -s conftest.$ac_objext'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; }; then
19829   ac_cv_type_size_t=yes
19830 else
19831   echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 ac_cv_type_size_t=no
19835 fi
19836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19837 fi
19838 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19839 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19840
19841 echo "$as_me:$LINENO: checking size of size_t" >&5
19842 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19843 if test "${ac_cv_sizeof_size_t+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   if test "$ac_cv_type_size_t" = yes; then
19847   # The cast to unsigned long works around a bug in the HP C Compiler
19848   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19849   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19850   # This bug is HP SR number 8606223364.
19851   if test "$cross_compiling" = yes; then
19852   # Depending upon the size, compute the lo and hi bounds.
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 $ac_includes_default
19860 int
19861 main ()
19862 {
19863 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19864 test_array [0] = 0
19865
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872   (eval $ac_compile) 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } &&
19879          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; } &&
19885          { ac_try='test -s conftest.$ac_objext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   ac_lo=0 ac_mid=0
19892   while :; do
19893     cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899 $ac_includes_default
19900 int
19901 main ()
19902 {
19903 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19904 test_array [0] = 0
19905
19906   ;
19907   return 0;
19908 }
19909 _ACEOF
19910 rm -f conftest.$ac_objext
19911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19912   (eval $ac_compile) 2>conftest.er1
19913   ac_status=$?
19914   grep -v '^ *+' conftest.er1 >conftest.err
19915   rm -f conftest.er1
19916   cat conftest.err >&5
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); } &&
19919          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921   (eval $ac_try) 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); }; } &&
19925          { ac_try='test -s conftest.$ac_objext'
19926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927   (eval $ac_try) 2>&5
19928   ac_status=$?
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); }; }; then
19931   ac_hi=$ac_mid; break
19932 else
19933   echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 ac_lo=`expr $ac_mid + 1`
19937                     if test $ac_lo -le $ac_mid; then
19938                       ac_lo= ac_hi=
19939                       break
19940                     fi
19941                     ac_mid=`expr 2 '*' $ac_mid + 1`
19942 fi
19943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19944   done
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 $ac_includes_default
19956 int
19957 main ()
19958 {
19959 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19960 test_array [0] = 0
19961
19962   ;
19963   return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968   (eval $ac_compile) 2>conftest.er1
19969   ac_status=$?
19970   grep -v '^ *+' conftest.er1 >conftest.err
19971   rm -f conftest.er1
19972   cat conftest.err >&5
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); } &&
19975          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977   (eval $ac_try) 2>&5
19978   ac_status=$?
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }; } &&
19981          { ac_try='test -s conftest.$ac_objext'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; }; then
19987   ac_hi=-1 ac_mid=-1
19988   while :; do
19989     cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h.  */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h.  */
19995 $ac_includes_default
19996 int
19997 main ()
19998 {
19999 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20000 test_array [0] = 0
20001
20002   ;
20003   return 0;
20004 }
20005 _ACEOF
20006 rm -f conftest.$ac_objext
20007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20008   (eval $ac_compile) 2>conftest.er1
20009   ac_status=$?
20010   grep -v '^ *+' conftest.er1 >conftest.err
20011   rm -f conftest.er1
20012   cat conftest.err >&5
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); } &&
20015          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; } &&
20021          { ac_try='test -s conftest.$ac_objext'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   ac_lo=$ac_mid; break
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032 ac_hi=`expr '(' $ac_mid ')' - 1`
20033                        if test $ac_mid -le $ac_hi; then
20034                          ac_lo= ac_hi=
20035                          break
20036                        fi
20037                        ac_mid=`expr 2 '*' $ac_mid`
20038 fi
20039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20040   done
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 ac_lo= ac_hi=
20046 fi
20047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20048 fi
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 # Binary search between lo and hi bounds.
20051 while test "x$ac_lo" != "x$ac_hi"; do
20052   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 $ac_includes_default
20060 int
20061 main ()
20062 {
20063 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20064 test_array [0] = 0
20065
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 rm -f conftest.$ac_objext
20071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20072   (eval $ac_compile) 2>conftest.er1
20073   ac_status=$?
20074   grep -v '^ *+' conftest.er1 >conftest.err
20075   rm -f conftest.er1
20076   cat conftest.err >&5
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } &&
20079          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081   (eval $ac_try) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; } &&
20085          { ac_try='test -s conftest.$ac_objext'
20086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087   (eval $ac_try) 2>&5
20088   ac_status=$?
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); }; }; then
20091   ac_hi=$ac_mid
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096 ac_lo=`expr '(' $ac_mid ')' + 1`
20097 fi
20098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20099 done
20100 case $ac_lo in
20101 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20102 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20103 See \`config.log' for more details." >&5
20104 echo "$as_me: error: cannot compute sizeof (size_t), 77
20105 See \`config.log' for more details." >&2;}
20106    { (exit 1); exit 1; }; } ;;
20107 esac
20108 else
20109   if test "$cross_compiling" = yes; then
20110   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20111 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20112    { (exit 1); exit 1; }; }
20113 else
20114   cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120 $ac_includes_default
20121 long longval () { return (long) (sizeof (size_t)); }
20122 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20123 #include <stdio.h>
20124 #include <stdlib.h>
20125 int
20126 main ()
20127 {
20128
20129   FILE *f = fopen ("conftest.val", "w");
20130   if (! f)
20131     exit (1);
20132   if (((long) (sizeof (size_t))) < 0)
20133     {
20134       long i = longval ();
20135       if (i != ((long) (sizeof (size_t))))
20136         exit (1);
20137       fprintf (f, "%ld\n", i);
20138     }
20139   else
20140     {
20141       unsigned long i = ulongval ();
20142       if (i != ((long) (sizeof (size_t))))
20143         exit (1);
20144       fprintf (f, "%lu\n", i);
20145     }
20146   exit (ferror (f) || fclose (f) != 0);
20147
20148   ;
20149   return 0;
20150 }
20151 _ACEOF
20152 rm -f conftest$ac_exeext
20153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154   (eval $ac_link) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   ac_cv_sizeof_size_t=`cat conftest.val`
20164 else
20165   echo "$as_me: program exited with status $ac_status" >&5
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ( exit $ac_status )
20170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20171 See \`config.log' for more details." >&5
20172 echo "$as_me: error: cannot compute sizeof (size_t), 77
20173 See \`config.log' for more details." >&2;}
20174    { (exit 1); exit 1; }; }
20175 fi
20176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177 fi
20178 fi
20179 rm -f conftest.val
20180 else
20181   ac_cv_sizeof_size_t=0
20182 fi
20183 fi
20184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20185 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20186 cat >>confdefs.h <<_ACEOF
20187 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20188 _ACEOF
20189
20190
20191
20192 case "${host}" in
20193     arm-*-linux* )
20194         echo "$as_me:$LINENO: checking for long long" >&5
20195 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20196 if test "${ac_cv_type_long_long+set}" = set; then
20197   echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199   cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 $ac_includes_default
20206 int
20207 main ()
20208 {
20209 if ((long long *) 0)
20210   return 0;
20211 if (sizeof (long long))
20212   return 0;
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219   (eval $ac_compile) 2>conftest.er1
20220   ac_status=$?
20221   grep -v '^ *+' conftest.er1 >conftest.err
20222   rm -f conftest.er1
20223   cat conftest.err >&5
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); } &&
20226          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228   (eval $ac_try) 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; } &&
20232          { ac_try='test -s conftest.$ac_objext'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_type_long_long=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_type_long_long=no
20244 fi
20245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20246 fi
20247 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20248 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20249
20250 echo "$as_me:$LINENO: checking size of long long" >&5
20251 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20252 if test "${ac_cv_sizeof_long_long+set}" = set; then
20253   echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255   if test "$ac_cv_type_long_long" = yes; then
20256   # The cast to unsigned long works around a bug in the HP C Compiler
20257   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20258   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20259   # This bug is HP SR number 8606223364.
20260   if test "$cross_compiling" = yes; then
20261   # Depending upon the size, compute the lo and hi bounds.
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268 $ac_includes_default
20269 int
20270 main ()
20271 {
20272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20273 test_array [0] = 0
20274
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20281   (eval $ac_compile) 2>conftest.er1
20282   ac_status=$?
20283   grep -v '^ *+' conftest.er1 >conftest.err
20284   rm -f conftest.er1
20285   cat conftest.err >&5
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } &&
20288          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; } &&
20294          { ac_try='test -s conftest.$ac_objext'
20295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296   (eval $ac_try) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); }; }; then
20300   ac_lo=0 ac_mid=0
20301   while :; do
20302     cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h.  */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h.  */
20308 $ac_includes_default
20309 int
20310 main ()
20311 {
20312 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20313 test_array [0] = 0
20314
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321   (eval $ac_compile) 2>conftest.er1
20322   ac_status=$?
20323   grep -v '^ *+' conftest.er1 >conftest.err
20324   rm -f conftest.er1
20325   cat conftest.err >&5
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); } &&
20328          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330   (eval $ac_try) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); }; } &&
20334          { ac_try='test -s conftest.$ac_objext'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   ac_hi=$ac_mid; break
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_lo=`expr $ac_mid + 1`
20346                     if test $ac_lo -le $ac_mid; then
20347                       ac_lo= ac_hi=
20348                       break
20349                     fi
20350                     ac_mid=`expr 2 '*' $ac_mid + 1`
20351 fi
20352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20353   done
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 $ac_includes_default
20365 int
20366 main ()
20367 {
20368 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20369 test_array [0] = 0
20370
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest.$ac_objext
20376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20377   (eval $ac_compile) 2>conftest.er1
20378   ac_status=$?
20379   grep -v '^ *+' conftest.er1 >conftest.err
20380   rm -f conftest.er1
20381   cat conftest.err >&5
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); } &&
20384          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386   (eval $ac_try) 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; } &&
20390          { ac_try='test -s conftest.$ac_objext'
20391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392   (eval $ac_try) 2>&5
20393   ac_status=$?
20394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395   (exit $ac_status); }; }; then
20396   ac_hi=-1 ac_mid=-1
20397   while :; do
20398     cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404 $ac_includes_default
20405 int
20406 main ()
20407 {
20408 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20409 test_array [0] = 0
20410
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417   (eval $ac_compile) 2>conftest.er1
20418   ac_status=$?
20419   grep -v '^ *+' conftest.er1 >conftest.err
20420   rm -f conftest.er1
20421   cat conftest.err >&5
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } &&
20424          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426   (eval $ac_try) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; } &&
20430          { ac_try='test -s conftest.$ac_objext'
20431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432   (eval $ac_try) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; }; then
20436   ac_lo=$ac_mid; break
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 ac_hi=`expr '(' $ac_mid ')' - 1`
20442                        if test $ac_mid -le $ac_hi; then
20443                          ac_lo= ac_hi=
20444                          break
20445                        fi
20446                        ac_mid=`expr 2 '*' $ac_mid`
20447 fi
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449   done
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_lo= ac_hi=
20455 fi
20456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20457 fi
20458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20459 # Binary search between lo and hi bounds.
20460 while test "x$ac_lo" != "x$ac_hi"; do
20461   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20462   cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 $ac_includes_default
20469 int
20470 main ()
20471 {
20472 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20473 test_array [0] = 0
20474
20475   ;
20476   return 0;
20477 }
20478 _ACEOF
20479 rm -f conftest.$ac_objext
20480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20481   (eval $ac_compile) 2>conftest.er1
20482   ac_status=$?
20483   grep -v '^ *+' conftest.er1 >conftest.err
20484   rm -f conftest.er1
20485   cat conftest.err >&5
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } &&
20488          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; } &&
20494          { ac_try='test -s conftest.$ac_objext'
20495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496   (eval $ac_try) 2>&5
20497   ac_status=$?
20498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499   (exit $ac_status); }; }; then
20500   ac_hi=$ac_mid
20501 else
20502   echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20504
20505 ac_lo=`expr '(' $ac_mid ')' + 1`
20506 fi
20507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20508 done
20509 case $ac_lo in
20510 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20511 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20512 See \`config.log' for more details." >&5
20513 echo "$as_me: error: cannot compute sizeof (long long), 77
20514 See \`config.log' for more details." >&2;}
20515    { (exit 1); exit 1; }; } ;;
20516 esac
20517 else
20518   if test "$cross_compiling" = yes; then
20519   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20520 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20521    { (exit 1); exit 1; }; }
20522 else
20523   cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529 $ac_includes_default
20530 long longval () { return (long) (sizeof (long long)); }
20531 unsigned long ulongval () { return (long) (sizeof (long long)); }
20532 #include <stdio.h>
20533 #include <stdlib.h>
20534 int
20535 main ()
20536 {
20537
20538   FILE *f = fopen ("conftest.val", "w");
20539   if (! f)
20540     exit (1);
20541   if (((long) (sizeof (long long))) < 0)
20542     {
20543       long i = longval ();
20544       if (i != ((long) (sizeof (long long))))
20545         exit (1);
20546       fprintf (f, "%ld\n", i);
20547     }
20548   else
20549     {
20550       unsigned long i = ulongval ();
20551       if (i != ((long) (sizeof (long long))))
20552         exit (1);
20553       fprintf (f, "%lu\n", i);
20554     }
20555   exit (ferror (f) || fclose (f) != 0);
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest$ac_exeext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563   (eval $ac_link) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; }; then
20572   ac_cv_sizeof_long_long=`cat conftest.val`
20573 else
20574   echo "$as_me: program exited with status $ac_status" >&5
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ( exit $ac_status )
20579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20580 See \`config.log' for more details." >&5
20581 echo "$as_me: error: cannot compute sizeof (long long), 77
20582 See \`config.log' for more details." >&2;}
20583    { (exit 1); exit 1; }; }
20584 fi
20585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20586 fi
20587 fi
20588 rm -f conftest.val
20589 else
20590   ac_cv_sizeof_long_long=0
20591 fi
20592 fi
20593 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20594 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20595 cat >>confdefs.h <<_ACEOF
20596 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20597 _ACEOF
20598
20599
20600     ;;
20601     *-hp-hpux* )
20602         echo "$as_me:$LINENO: checking for long long" >&5
20603 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20604 if test "${ac_cv_type_long_long+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613 $ac_includes_default
20614 int
20615 main ()
20616 {
20617 if ((long long *) 0)
20618   return 0;
20619 if (sizeof (long long))
20620   return 0;
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20627   (eval $ac_compile) 2>conftest.er1
20628   ac_status=$?
20629   grep -v '^ *+' conftest.er1 >conftest.err
20630   rm -f conftest.er1
20631   cat conftest.err >&5
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); } &&
20634          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636   (eval $ac_try) 2>&5
20637   ac_status=$?
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; } &&
20640          { ac_try='test -s conftest.$ac_objext'
20641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642   (eval $ac_try) 2>&5
20643   ac_status=$?
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); }; }; then
20646   ac_cv_type_long_long=yes
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651 ac_cv_type_long_long=no
20652 fi
20653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20654 fi
20655 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20656 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20657
20658 echo "$as_me:$LINENO: checking size of long long" >&5
20659 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20660 if test "${ac_cv_sizeof_long_long+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   if test "$ac_cv_type_long_long" = yes; then
20664   # The cast to unsigned long works around a bug in the HP C Compiler
20665   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20666   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20667   # This bug is HP SR number 8606223364.
20668   if test "$cross_compiling" = yes; then
20669   # Depending upon the size, compute the lo and hi bounds.
20670 cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676 $ac_includes_default
20677 int
20678 main ()
20679 {
20680 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20681 test_array [0] = 0
20682
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext
20688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20689   (eval $ac_compile) 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } &&
20696          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698   (eval $ac_try) 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; } &&
20702          { ac_try='test -s conftest.$ac_objext'
20703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704   (eval $ac_try) 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; }; then
20708   ac_lo=0 ac_mid=0
20709   while :; do
20710     cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716 $ac_includes_default
20717 int
20718 main ()
20719 {
20720 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20721 test_array [0] = 0
20722
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext
20728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729   (eval $ac_compile) 2>conftest.er1
20730   ac_status=$?
20731   grep -v '^ *+' conftest.er1 >conftest.err
20732   rm -f conftest.er1
20733   cat conftest.err >&5
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); } &&
20736          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738   (eval $ac_try) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }; } &&
20742          { ac_try='test -s conftest.$ac_objext'
20743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744   (eval $ac_try) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; }; then
20748   ac_hi=$ac_mid; break
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753 ac_lo=`expr $ac_mid + 1`
20754                     if test $ac_lo -le $ac_mid; then
20755                       ac_lo= ac_hi=
20756                       break
20757                     fi
20758                     ac_mid=`expr 2 '*' $ac_mid + 1`
20759 fi
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761   done
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 $ac_includes_default
20773 int
20774 main ()
20775 {
20776 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20777 test_array [0] = 0
20778
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785   (eval $ac_compile) 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } &&
20792          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794   (eval $ac_try) 2>&5
20795   ac_status=$?
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; } &&
20798          { ac_try='test -s conftest.$ac_objext'
20799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800   (eval $ac_try) 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; }; then
20804   ac_hi=-1 ac_mid=-1
20805   while :; do
20806     cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812 $ac_includes_default
20813 int
20814 main ()
20815 {
20816 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20817 test_array [0] = 0
20818
20819   ;
20820   return 0;
20821 }
20822 _ACEOF
20823 rm -f conftest.$ac_objext
20824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20825   (eval $ac_compile) 2>conftest.er1
20826   ac_status=$?
20827   grep -v '^ *+' conftest.er1 >conftest.err
20828   rm -f conftest.er1
20829   cat conftest.err >&5
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } &&
20832          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; } &&
20838          { ac_try='test -s conftest.$ac_objext'
20839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840   (eval $ac_try) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   ac_lo=$ac_mid; break
20845 else
20846   echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 ac_hi=`expr '(' $ac_mid ')' - 1`
20850                        if test $ac_mid -le $ac_hi; then
20851                          ac_lo= ac_hi=
20852                          break
20853                        fi
20854                        ac_mid=`expr 2 '*' $ac_mid`
20855 fi
20856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20857   done
20858 else
20859   echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 ac_lo= ac_hi=
20863 fi
20864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20865 fi
20866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20867 # Binary search between lo and hi bounds.
20868 while test "x$ac_lo" != "x$ac_hi"; do
20869   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20870   cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876 $ac_includes_default
20877 int
20878 main ()
20879 {
20880 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20881 test_array [0] = 0
20882
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest.$ac_objext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20889   (eval $ac_compile) 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } &&
20896          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; } &&
20902          { ac_try='test -s conftest.$ac_objext'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; }; then
20908   ac_hi=$ac_mid
20909 else
20910   echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 ac_lo=`expr '(' $ac_mid ')' + 1`
20914 fi
20915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20916 done
20917 case $ac_lo in
20918 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20919 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20920 See \`config.log' for more details." >&5
20921 echo "$as_me: error: cannot compute sizeof (long long), 77
20922 See \`config.log' for more details." >&2;}
20923    { (exit 1); exit 1; }; } ;;
20924 esac
20925 else
20926   if test "$cross_compiling" = yes; then
20927   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20928 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20929    { (exit 1); exit 1; }; }
20930 else
20931   cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 $ac_includes_default
20938 long longval () { return (long) (sizeof (long long)); }
20939 unsigned long ulongval () { return (long) (sizeof (long long)); }
20940 #include <stdio.h>
20941 #include <stdlib.h>
20942 int
20943 main ()
20944 {
20945
20946   FILE *f = fopen ("conftest.val", "w");
20947   if (! f)
20948     exit (1);
20949   if (((long) (sizeof (long long))) < 0)
20950     {
20951       long i = longval ();
20952       if (i != ((long) (sizeof (long long))))
20953         exit (1);
20954       fprintf (f, "%ld\n", i);
20955     }
20956   else
20957     {
20958       unsigned long i = ulongval ();
20959       if (i != ((long) (sizeof (long long))))
20960         exit (1);
20961       fprintf (f, "%lu\n", i);
20962     }
20963   exit (ferror (f) || fclose (f) != 0);
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971   (eval $ac_link) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_cv_sizeof_long_long=`cat conftest.val`
20981 else
20982   echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ( exit $ac_status )
20987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20988 See \`config.log' for more details." >&5
20989 echo "$as_me: error: cannot compute sizeof (long long), 77
20990 See \`config.log' for more details." >&2;}
20991    { (exit 1); exit 1; }; }
20992 fi
20993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 fi
20995 fi
20996 rm -f conftest.val
20997 else
20998   ac_cv_sizeof_long_long=0
20999 fi
21000 fi
21001 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21002 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21003 cat >>confdefs.h <<_ACEOF
21004 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21005 _ACEOF
21006
21007
21008         if test "$ac_cv_sizeof_long_long" != "0"; then
21009                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
21010         fi
21011     ;;
21012     * )
21013         echo "$as_me:$LINENO: checking for long long" >&5
21014 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21015 if test "${ac_cv_type_long_long+set}" = set; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h.  */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h.  */
21024 $ac_includes_default
21025 int
21026 main ()
21027 {
21028 if ((long long *) 0)
21029   return 0;
21030 if (sizeof (long long))
21031   return 0;
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21038   (eval $ac_compile) 2>conftest.er1
21039   ac_status=$?
21040   grep -v '^ *+' conftest.er1 >conftest.err
21041   rm -f conftest.er1
21042   cat conftest.err >&5
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); } &&
21045          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; } &&
21051          { ac_try='test -s conftest.$ac_objext'
21052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   ac_cv_type_long_long=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 ac_cv_type_long_long=no
21063 fi
21064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21065 fi
21066 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21067 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21068
21069 echo "$as_me:$LINENO: checking size of long long" >&5
21070 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21071 if test "${ac_cv_sizeof_long_long+set}" = set; then
21072   echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074   if test "$ac_cv_type_long_long" = yes; then
21075   # The cast to unsigned long works around a bug in the HP C Compiler
21076   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21077   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21078   # This bug is HP SR number 8606223364.
21079   if test "$cross_compiling" = yes; then
21080   # Depending upon the size, compute the lo and hi bounds.
21081 cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 $ac_includes_default
21088 int
21089 main ()
21090 {
21091 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21092 test_array [0] = 0
21093
21094   ;
21095   return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21100   (eval $ac_compile) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } &&
21107          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; } &&
21113          { ac_try='test -s conftest.$ac_objext'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; }; then
21119   ac_lo=0 ac_mid=0
21120   while :; do
21121     cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 $ac_includes_default
21128 int
21129 main ()
21130 {
21131 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21132 test_array [0] = 0
21133
21134   ;
21135   return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21140   (eval $ac_compile) 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; } &&
21153          { ac_try='test -s conftest.$ac_objext'
21154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155   (eval $ac_try) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; }; then
21159   ac_hi=$ac_mid; break
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164 ac_lo=`expr $ac_mid + 1`
21165                     if test $ac_lo -le $ac_mid; then
21166                       ac_lo= ac_hi=
21167                       break
21168                     fi
21169                     ac_mid=`expr 2 '*' $ac_mid + 1`
21170 fi
21171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172   done
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 $ac_includes_default
21184 int
21185 main ()
21186 {
21187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21188 test_array [0] = 0
21189
21190   ;
21191   return 0;
21192 }
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196   (eval $ac_compile) 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } &&
21203          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205   (eval $ac_try) 2>&5
21206   ac_status=$?
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); }; } &&
21209          { ac_try='test -s conftest.$ac_objext'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; }; then
21215   ac_hi=-1 ac_mid=-1
21216   while :; do
21217     cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 $ac_includes_default
21224 int
21225 main ()
21226 {
21227 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21228 test_array [0] = 0
21229
21230   ;
21231   return 0;
21232 }
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21236   (eval $ac_compile) 2>conftest.er1
21237   ac_status=$?
21238   grep -v '^ *+' conftest.er1 >conftest.err
21239   rm -f conftest.er1
21240   cat conftest.err >&5
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } &&
21243          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; } &&
21249          { ac_try='test -s conftest.$ac_objext'
21250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251   (eval $ac_try) 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; }; then
21255   ac_lo=$ac_mid; break
21256 else
21257   echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21259
21260 ac_hi=`expr '(' $ac_mid ')' - 1`
21261                        if test $ac_mid -le $ac_hi; then
21262                          ac_lo= ac_hi=
21263                          break
21264                        fi
21265                        ac_mid=`expr 2 '*' $ac_mid`
21266 fi
21267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21268   done
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 ac_lo= ac_hi=
21274 fi
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 fi
21277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21278 # Binary search between lo and hi bounds.
21279 while test "x$ac_lo" != "x$ac_hi"; do
21280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21281   cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 $ac_includes_default
21288 int
21289 main ()
21290 {
21291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21292 test_array [0] = 0
21293
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21300   (eval $ac_compile) 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } &&
21307          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_hi=$ac_mid
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_lo=`expr '(' $ac_mid ')' + 1`
21325 fi
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 done
21328 case $ac_lo in
21329 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21330 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21331 See \`config.log' for more details." >&5
21332 echo "$as_me: error: cannot compute sizeof (long long), 77
21333 See \`config.log' for more details." >&2;}
21334    { (exit 1); exit 1; }; } ;;
21335 esac
21336 else
21337   if test "$cross_compiling" = yes; then
21338   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21339 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21340    { (exit 1); exit 1; }; }
21341 else
21342   cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h.  */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h.  */
21348 $ac_includes_default
21349 long longval () { return (long) (sizeof (long long)); }
21350 unsigned long ulongval () { return (long) (sizeof (long long)); }
21351 #include <stdio.h>
21352 #include <stdlib.h>
21353 int
21354 main ()
21355 {
21356
21357   FILE *f = fopen ("conftest.val", "w");
21358   if (! f)
21359     exit (1);
21360   if (((long) (sizeof (long long))) < 0)
21361     {
21362       long i = longval ();
21363       if (i != ((long) (sizeof (long long))))
21364         exit (1);
21365       fprintf (f, "%ld\n", i);
21366     }
21367   else
21368     {
21369       unsigned long i = ulongval ();
21370       if (i != ((long) (sizeof (long long))))
21371         exit (1);
21372       fprintf (f, "%lu\n", i);
21373     }
21374   exit (ferror (f) || fclose (f) != 0);
21375
21376   ;
21377   return 0;
21378 }
21379 _ACEOF
21380 rm -f conftest$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382   (eval $ac_link) 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387   (eval $ac_try) 2>&5
21388   ac_status=$?
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); }; }; then
21391   ac_cv_sizeof_long_long=`cat conftest.val`
21392 else
21393   echo "$as_me: program exited with status $ac_status" >&5
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397 ( exit $ac_status )
21398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21399 See \`config.log' for more details." >&5
21400 echo "$as_me: error: cannot compute sizeof (long long), 77
21401 See \`config.log' for more details." >&2;}
21402    { (exit 1); exit 1; }; }
21403 fi
21404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21405 fi
21406 fi
21407 rm -f conftest.val
21408 else
21409   ac_cv_sizeof_long_long=0
21410 fi
21411 fi
21412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21413 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21414 cat >>confdefs.h <<_ACEOF
21415 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21416 _ACEOF
21417
21418
21419 esac
21420
21421 echo "$as_me:$LINENO: checking for wchar_t" >&5
21422 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21423 if test "${ac_cv_type_wchar_t+set}" = set; then
21424   echo $ECHO_N "(cached) $ECHO_C" >&6
21425 else
21426   cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h.  */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h.  */
21432
21433         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21434         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21435         #  error "fake wchar_t"
21436         #endif
21437         #ifdef HAVE_WCHAR_H
21438         #  ifdef __CYGWIN__
21439         #    include <stddef.h>
21440         #  endif
21441         #  include <wchar.h>
21442         #endif
21443         #ifdef HAVE_STDLIB_H
21444         #  include <stdlib.h>
21445         #endif
21446         #include <stdio.h>
21447
21448
21449
21450 int
21451 main ()
21452 {
21453 if ((wchar_t *) 0)
21454   return 0;
21455 if (sizeof (wchar_t))
21456   return 0;
21457   ;
21458   return 0;
21459 }
21460 _ACEOF
21461 rm -f conftest.$ac_objext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21463   (eval $ac_compile) 2>conftest.er1
21464   ac_status=$?
21465   grep -v '^ *+' conftest.er1 >conftest.err
21466   rm -f conftest.er1
21467   cat conftest.err >&5
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } &&
21470          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472   (eval $ac_try) 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; } &&
21476          { ac_try='test -s conftest.$ac_objext'
21477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478   (eval $ac_try) 2>&5
21479   ac_status=$?
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); }; }; then
21482   ac_cv_type_wchar_t=yes
21483 else
21484   echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21486
21487 ac_cv_type_wchar_t=no
21488 fi
21489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21490 fi
21491 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21492 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21493
21494 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21495 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21496 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21497   echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499   if test "$ac_cv_type_wchar_t" = yes; then
21500   # The cast to unsigned long works around a bug in the HP C Compiler
21501   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21502   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21503   # This bug is HP SR number 8606223364.
21504   if test "$cross_compiling" = yes; then
21505   # Depending upon the size, compute the lo and hi bounds.
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512
21513         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21514         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21515         #  error "fake wchar_t"
21516         #endif
21517         #ifdef HAVE_WCHAR_H
21518         #  ifdef __CYGWIN__
21519         #    include <stddef.h>
21520         #  endif
21521         #  include <wchar.h>
21522         #endif
21523         #ifdef HAVE_STDLIB_H
21524         #  include <stdlib.h>
21525         #endif
21526         #include <stdio.h>
21527
21528
21529
21530 int
21531 main ()
21532 {
21533 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21534 test_array [0] = 0
21535
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542   (eval $ac_compile) 2>conftest.er1
21543   ac_status=$?
21544   grep -v '^ *+' conftest.er1 >conftest.err
21545   rm -f conftest.er1
21546   cat conftest.err >&5
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } &&
21549          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; } &&
21555          { ac_try='test -s conftest.$ac_objext'
21556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557   (eval $ac_try) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   ac_lo=0 ac_mid=0
21562   while :; do
21563     cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569
21570         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21571         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21572         #  error "fake wchar_t"
21573         #endif
21574         #ifdef HAVE_WCHAR_H
21575         #  ifdef __CYGWIN__
21576         #    include <stddef.h>
21577         #  endif
21578         #  include <wchar.h>
21579         #endif
21580         #ifdef HAVE_STDLIB_H
21581         #  include <stdlib.h>
21582         #endif
21583         #include <stdio.h>
21584
21585
21586
21587 int
21588 main ()
21589 {
21590 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21591 test_array [0] = 0
21592
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 rm -f conftest.$ac_objext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21599   (eval $ac_compile) 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } &&
21606          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608   (eval $ac_try) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; } &&
21612          { ac_try='test -s conftest.$ac_objext'
21613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614   (eval $ac_try) 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); }; }; then
21618   ac_hi=$ac_mid; break
21619 else
21620   echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623 ac_lo=`expr $ac_mid + 1`
21624                     if test $ac_lo -le $ac_mid; then
21625                       ac_lo= ac_hi=
21626                       break
21627                     fi
21628                     ac_mid=`expr 2 '*' $ac_mid + 1`
21629 fi
21630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631   done
21632 else
21633   echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642
21643         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21644         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21645         #  error "fake wchar_t"
21646         #endif
21647         #ifdef HAVE_WCHAR_H
21648         #  ifdef __CYGWIN__
21649         #    include <stddef.h>
21650         #  endif
21651         #  include <wchar.h>
21652         #endif
21653         #ifdef HAVE_STDLIB_H
21654         #  include <stdlib.h>
21655         #endif
21656         #include <stdio.h>
21657
21658
21659
21660 int
21661 main ()
21662 {
21663 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21664 test_array [0] = 0
21665
21666   ;
21667   return 0;
21668 }
21669 _ACEOF
21670 rm -f conftest.$ac_objext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672   (eval $ac_compile) 2>conftest.er1
21673   ac_status=$?
21674   grep -v '^ *+' conftest.er1 >conftest.err
21675   rm -f conftest.er1
21676   cat conftest.err >&5
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); } &&
21679          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681   (eval $ac_try) 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); }; } &&
21685          { ac_try='test -s conftest.$ac_objext'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }; then
21691   ac_hi=-1 ac_mid=-1
21692   while :; do
21693     cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699
21700         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21701         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21702         #  error "fake wchar_t"
21703         #endif
21704         #ifdef HAVE_WCHAR_H
21705         #  ifdef __CYGWIN__
21706         #    include <stddef.h>
21707         #  endif
21708         #  include <wchar.h>
21709         #endif
21710         #ifdef HAVE_STDLIB_H
21711         #  include <stdlib.h>
21712         #endif
21713         #include <stdio.h>
21714
21715
21716
21717 int
21718 main ()
21719 {
21720 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21721 test_array [0] = 0
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729   (eval $ac_compile) 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738   (eval $ac_try) 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; } &&
21742          { ac_try='test -s conftest.$ac_objext'
21743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744   (eval $ac_try) 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); }; }; then
21748   ac_lo=$ac_mid; break
21749 else
21750   echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753 ac_hi=`expr '(' $ac_mid ')' - 1`
21754                        if test $ac_mid -le $ac_hi; then
21755                          ac_lo= ac_hi=
21756                          break
21757                        fi
21758                        ac_mid=`expr 2 '*' $ac_mid`
21759 fi
21760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761   done
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766 ac_lo= ac_hi=
21767 fi
21768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769 fi
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771 # Binary search between lo and hi bounds.
21772 while test "x$ac_lo" != "x$ac_hi"; do
21773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21774   cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780
21781         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21782         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21783         #  error "fake wchar_t"
21784         #endif
21785         #ifdef HAVE_WCHAR_H
21786         #  ifdef __CYGWIN__
21787         #    include <stddef.h>
21788         #  endif
21789         #  include <wchar.h>
21790         #endif
21791         #ifdef HAVE_STDLIB_H
21792         #  include <stdlib.h>
21793         #endif
21794         #include <stdio.h>
21795
21796
21797
21798 int
21799 main ()
21800 {
21801 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21802 test_array [0] = 0
21803
21804   ;
21805   return 0;
21806 }
21807 _ACEOF
21808 rm -f conftest.$ac_objext
21809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21810   (eval $ac_compile) 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } &&
21817          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819   (eval $ac_try) 2>&5
21820   ac_status=$?
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); }; } &&
21823          { ac_try='test -s conftest.$ac_objext'
21824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825   (eval $ac_try) 2>&5
21826   ac_status=$?
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); }; }; then
21829   ac_hi=$ac_mid
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834 ac_lo=`expr '(' $ac_mid ')' + 1`
21835 fi
21836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21837 done
21838 case $ac_lo in
21839 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21840 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21841 See \`config.log' for more details." >&5
21842 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21843 See \`config.log' for more details." >&2;}
21844    { (exit 1); exit 1; }; } ;;
21845 esac
21846 else
21847   if test "$cross_compiling" = yes; then
21848   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21849 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21850    { (exit 1); exit 1; }; }
21851 else
21852   cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858
21859         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21860         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21861         #  error "fake wchar_t"
21862         #endif
21863         #ifdef HAVE_WCHAR_H
21864         #  ifdef __CYGWIN__
21865         #    include <stddef.h>
21866         #  endif
21867         #  include <wchar.h>
21868         #endif
21869         #ifdef HAVE_STDLIB_H
21870         #  include <stdlib.h>
21871         #endif
21872         #include <stdio.h>
21873
21874
21875
21876 long longval () { return (long) (sizeof (wchar_t)); }
21877 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21878 #include <stdio.h>
21879 #include <stdlib.h>
21880 int
21881 main ()
21882 {
21883
21884   FILE *f = fopen ("conftest.val", "w");
21885   if (! f)
21886     exit (1);
21887   if (((long) (sizeof (wchar_t))) < 0)
21888     {
21889       long i = longval ();
21890       if (i != ((long) (sizeof (wchar_t))))
21891         exit (1);
21892       fprintf (f, "%ld\n", i);
21893     }
21894   else
21895     {
21896       unsigned long i = ulongval ();
21897       if (i != ((long) (sizeof (wchar_t))))
21898         exit (1);
21899       fprintf (f, "%lu\n", i);
21900     }
21901   exit (ferror (f) || fclose (f) != 0);
21902
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest$ac_exeext
21908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21909   (eval $ac_link) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914   (eval $ac_try) 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); }; }; then
21918   ac_cv_sizeof_wchar_t=`cat conftest.val`
21919 else
21920   echo "$as_me: program exited with status $ac_status" >&5
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ( exit $ac_status )
21925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21926 See \`config.log' for more details." >&5
21927 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21928 See \`config.log' for more details." >&2;}
21929    { (exit 1); exit 1; }; }
21930 fi
21931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21932 fi
21933 fi
21934 rm -f conftest.val
21935 else
21936   ac_cv_sizeof_wchar_t=0
21937 fi
21938 fi
21939 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21940 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21941 cat >>confdefs.h <<_ACEOF
21942 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21943 _ACEOF
21944
21945
21946 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21947     wxUSE_WCHAR_T=yes
21948 else
21949     wxUSE_WCHAR_T=no
21950 fi
21951
21952 echo "$as_me:$LINENO: checking for va_copy" >&5
21953 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21954 if test "${wx_cv_func_va_copy+set}" = set; then
21955   echo $ECHO_N "(cached) $ECHO_C" >&6
21956 else
21957
21958         cat >conftest.$ac_ext <<_ACEOF
21959
21960             #include <stdarg.h>
21961             void foo(char *f, ...)
21962             {
21963                 va_list ap1, ap2;
21964                 va_start(ap1, f);
21965                 va_copy(ap2, ap1);
21966                 va_end(ap2);
21967                 va_end(ap1);
21968             }
21969             int main()
21970             {
21971                 foo("hi", 17);
21972                 return 0;
21973             }
21974 _ACEOF
21975 rm -f conftest.$ac_objext conftest$ac_exeext
21976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21977   (eval $ac_link) 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } &&
21984          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986   (eval $ac_try) 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; } &&
21990          { ac_try='test -s conftest$ac_exeext'
21991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996   wx_cv_func_va_copy=yes
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001 wx_cv_func_va_copy=no
22002
22003 fi
22004 rm -f conftest.err conftest.$ac_objext \
22005       conftest$ac_exeext conftest.$ac_ext
22006
22007
22008 fi
22009 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22010 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22011
22012 if test $wx_cv_func_va_copy = "yes"; then
22013     cat >>confdefs.h <<\_ACEOF
22014 #define HAVE_VA_COPY 1
22015 _ACEOF
22016
22017 else
22018         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22019 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22020 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22021   echo $ECHO_N "(cached) $ECHO_C" >&6
22022 else
22023
22024             if test "$cross_compiling" = yes; then
22025                   wx_cv_type_va_list_lvalue=yes
22026
22027 else
22028   cat >conftest.$ac_ext <<_ACEOF
22029
22030                 #include <stdarg.h>
22031                 int foo(char *f, ...)
22032                 {
22033                     va_list ap1, ap2;
22034                     va_start(ap1, f);
22035                     ap2 = ap1;
22036                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22037                         return 1;
22038                     va_end(ap2);
22039                     va_end(ap1);
22040                     return 0;
22041                 }
22042                 int main()
22043                 {
22044                     return foo("hi", 17);
22045                 }
22046 _ACEOF
22047 rm -f conftest$ac_exeext
22048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22049   (eval $ac_link) 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; }; then
22058   wx_cv_type_va_list_lvalue=yes
22059 else
22060   echo "$as_me: program exited with status $ac_status" >&5
22061 echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22063
22064 ( exit $ac_status )
22065 wx_cv_type_va_list_lvalue=no
22066 fi
22067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22068 fi
22069
22070
22071 fi
22072 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22073 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22074
22075     if test $wx_cv_type_va_list_lvalue != "yes"; then
22076                         cat >>confdefs.h <<\_ACEOF
22077 #define VA_LIST_IS_ARRAY 1
22078 _ACEOF
22079
22080     fi
22081 fi
22082
22083 # Check whether --enable-largefile or --disable-largefile was given.
22084 if test "${enable_largefile+set}" = set; then
22085   enableval="$enable_largefile"
22086
22087 fi;
22088 if test "$enable_largefile" != no; then
22089             wx_largefile=no
22090
22091     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22092 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22093 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22094   echo $ECHO_N "(cached) $ECHO_C" >&6
22095 else
22096
22097           cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 #define _FILE_OFFSET_BITS 64
22104                           #include <sys/types.h>
22105 int
22106 main ()
22107 {
22108 typedef struct {
22109     unsigned int field: sizeof(off_t) == 8;
22110 } wxlf;
22111
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22118   (eval $ac_compile) 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } &&
22125          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
22131          { ac_try='test -s conftest.$ac_objext'
22132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133   (eval $ac_try) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); }; }; then
22137   ac_cv_sys_file_offset_bits=64
22138 else
22139   echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142 ac_cv_sys_file_offset_bits=no
22143 fi
22144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22145
22146
22147 fi
22148 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22149 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22150
22151     if test "$ac_cv_sys_file_offset_bits" != no; then
22152         wx_largefile=yes
22153         cat >>confdefs.h <<_ACEOF
22154 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22155 _ACEOF
22156
22157     fi
22158
22159     if test "x$wx_largefile" != "xyes"; then
22160
22161     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22162 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22163 if test "${ac_cv_sys_large_files+set}" = set; then
22164   echo $ECHO_N "(cached) $ECHO_C" >&6
22165 else
22166
22167           cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h.  */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h.  */
22173 #define _LARGE_FILES 1
22174                           #include <sys/types.h>
22175 int
22176 main ()
22177 {
22178 typedef struct {
22179     unsigned int field: sizeof(off_t) == 8;
22180 } wxlf;
22181
22182   ;
22183   return 0;
22184 }
22185 _ACEOF
22186 rm -f conftest.$ac_objext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188   (eval $ac_compile) 2>conftest.er1
22189   ac_status=$?
22190   grep -v '^ *+' conftest.er1 >conftest.err
22191   rm -f conftest.er1
22192   cat conftest.err >&5
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } &&
22195          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197   (eval $ac_try) 2>&5
22198   ac_status=$?
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); }; } &&
22201          { ac_try='test -s conftest.$ac_objext'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   ac_cv_sys_large_files=1
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 ac_cv_sys_large_files=no
22213 fi
22214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22215
22216
22217 fi
22218 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22219 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22220
22221     if test "$ac_cv_sys_large_files" != no; then
22222         wx_largefile=yes
22223         cat >>confdefs.h <<_ACEOF
22224 #define _LARGE_FILES $ac_cv_sys_large_files
22225 _ACEOF
22226
22227     fi
22228
22229     fi
22230
22231     echo "$as_me:$LINENO: checking if large file support is available" >&5
22232 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22233     if test "x$wx_largefile" = "xyes"; then
22234         cat >>confdefs.h <<\_ACEOF
22235 #define HAVE_LARGEFILE_SUPPORT 1
22236 _ACEOF
22237
22238     fi
22239     echo "$as_me:$LINENO: result: $wx_largefile" >&5
22240 echo "${ECHO_T}$wx_largefile" >&6
22241 fi
22242
22243
22244 if test "x$wx_largefile" = "xyes"; then
22245     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
22246         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
22247
22248                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22249             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22250 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22251 if test "${wx_cv_STDC_EXT_required+set}" = set; then
22252   echo $ECHO_N "(cached) $ECHO_C" >&6
22253 else
22254
22255                     cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h.  */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h.  */
22261
22262 int
22263 main ()
22264 {
22265
22266                             #ifndef __STDC_EXT__
22267                                 choke me
22268                             #endif
22269
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22276   (eval $ac_compile) 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } &&
22283          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285   (eval $ac_try) 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; } &&
22289          { ac_try='test -s conftest.$ac_objext'
22290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291   (eval $ac_try) 2>&5
22292   ac_status=$?
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); }; }; then
22295   wx_cv_STDC_EXT_required=no
22296 else
22297   echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22299
22300 wx_cv_STDC_EXT_required=yes
22301
22302 fi
22303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22304
22305
22306 fi
22307 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22308 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22309             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
22310                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
22311             fi
22312         fi
22313     else
22314         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
22315     fi
22316         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22317 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22318 if test "${ac_cv_sys_largefile_source+set}" = set; then
22319   echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321   while :; do
22322   ac_cv_sys_largefile_source=no
22323   cat >conftest.$ac_ext <<_ACEOF
22324 /* confdefs.h.  */
22325 _ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h.  */
22329 #include <stdio.h>
22330 int
22331 main ()
22332 {
22333 return !fseeko;
22334   ;
22335   return 0;
22336 }
22337 _ACEOF
22338 rm -f conftest.$ac_objext
22339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22340   (eval $ac_compile) 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } &&
22347          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
22353          { ac_try='test -s conftest.$ac_objext'
22354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355   (eval $ac_try) 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); }; }; then
22359   break
22360 else
22361   echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22363
22364 fi
22365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22366   cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 #define _LARGEFILE_SOURCE 1
22373 #include <stdio.h>
22374 int
22375 main ()
22376 {
22377 return !fseeko;
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384   (eval $ac_compile) 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } &&
22391          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393   (eval $ac_try) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }; } &&
22397          { ac_try='test -s conftest.$ac_objext'
22398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399   (eval $ac_try) 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; }; then
22403   ac_cv_sys_largefile_source=1; break
22404 else
22405   echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22407
22408 fi
22409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22410   break
22411 done
22412 fi
22413 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22414 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22415 if test "$ac_cv_sys_largefile_source" != no; then
22416
22417 cat >>confdefs.h <<_ACEOF
22418 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22419 _ACEOF
22420
22421 fi
22422 rm -f conftest*
22423
22424 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22425 # in glibc 2.1.3, but that breaks too many other things.
22426 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22427 echo "$as_me:$LINENO: checking for fseeko" >&5
22428 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22429 if test "${ac_cv_func_fseeko+set}" = set; then
22430   echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432   cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 #include <stdio.h>
22439 int
22440 main ()
22441 {
22442 return fseeko && fseeko (stdin, 0, 0);
22443   ;
22444   return 0;
22445 }
22446 _ACEOF
22447 rm -f conftest.$ac_objext conftest$ac_exeext
22448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22449   (eval $ac_link) 2>conftest.er1
22450   ac_status=$?
22451   grep -v '^ *+' conftest.er1 >conftest.err
22452   rm -f conftest.er1
22453   cat conftest.err >&5
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } &&
22456          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; } &&
22462          { ac_try='test -s conftest$ac_exeext'
22463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464   (eval $ac_try) 2>&5
22465   ac_status=$?
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); }; }; then
22468   ac_cv_func_fseeko=yes
22469 else
22470   echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473 ac_cv_func_fseeko=no
22474 fi
22475 rm -f conftest.err conftest.$ac_objext \
22476       conftest$ac_exeext conftest.$ac_ext
22477 fi
22478 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22479 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22480 if test $ac_cv_func_fseeko = yes; then
22481
22482 cat >>confdefs.h <<\_ACEOF
22483 #define HAVE_FSEEKO 1
22484 _ACEOF
22485
22486 fi
22487
22488     if test "$ac_cv_sys_largefile_source" != no; then
22489         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22490     fi
22491 fi
22492
22493 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22494 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22495 if test "${ac_cv_c_bigendian+set}" = set; then
22496   echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498   ac_cv_c_bigendian=unknown
22499 # See if sys/param.h defines the BYTE_ORDER macro.
22500 cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h.  */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h.  */
22506 #include <sys/types.h>
22507 #include <sys/param.h>
22508 int
22509 main ()
22510 {
22511
22512 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22513  bogus endian macros
22514 #endif
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22521   (eval $ac_compile) 2>conftest.er1
22522   ac_status=$?
22523   grep -v '^ *+' conftest.er1 >conftest.err
22524   rm -f conftest.er1
22525   cat conftest.err >&5
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); } &&
22528          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530   (eval $ac_try) 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); }; } &&
22534          { ac_try='test -s conftest.$ac_objext'
22535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536   (eval $ac_try) 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; }; then
22540   # It does; now see whether it defined to BIG_ENDIAN or not.
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 #include <sys/types.h>
22548 #include <sys/param.h>
22549 int
22550 main ()
22551 {
22552
22553 #if BYTE_ORDER != BIG_ENDIAN
22554  not big endian
22555 #endif
22556   ;
22557   return 0;
22558 }
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22562   (eval $ac_compile) 2>conftest.er1
22563   ac_status=$?
22564   grep -v '^ *+' conftest.er1 >conftest.err
22565   rm -f conftest.er1
22566   cat conftest.err >&5
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); } &&
22569          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }; } &&
22575          { ac_try='test -s conftest.$ac_objext'
22576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577   (eval $ac_try) 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); }; }; then
22581   ac_cv_c_bigendian=yes
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_cv_c_bigendian=no
22587 fi
22588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 fi
22594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22595 if test $ac_cv_c_bigendian = unknown; then
22596 if test "$cross_compiling" = yes; then
22597   ac_cv_c_bigendian=unknown
22598 else
22599   cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 main () {
22606   /* Are we little or big endian?  From Harbison&Steele.  */
22607   union
22608   {
22609     long l;
22610     char c[sizeof (long)];
22611   } u;
22612   u.l = 1;
22613   exit (u.c[sizeof (long) - 1] == 1);
22614 }
22615 _ACEOF
22616 rm -f conftest$ac_exeext
22617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22618   (eval $ac_link) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623   (eval $ac_try) 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); }; }; then
22627   ac_cv_c_bigendian=no
22628 else
22629   echo "$as_me: program exited with status $ac_status" >&5
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22632
22633 ( exit $ac_status )
22634 ac_cv_c_bigendian=yes
22635 fi
22636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22637 fi
22638 fi
22639 fi
22640 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22641 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22642 if test $ac_cv_c_bigendian = unknown; then
22643   { 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
22644 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;}
22645 fi
22646 if test $ac_cv_c_bigendian = yes; then
22647   cat >>confdefs.h <<\_ACEOF
22648 #define WORDS_BIGENDIAN 1
22649 _ACEOF
22650
22651 fi
22652
22653
22654
22655
22656
22657     ac_ext=cc
22658 ac_cpp='$CXXCPP $CPPFLAGS'
22659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22662
22663
22664
22665 for ac_header in iostream
22666 do
22667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22669   echo "$as_me:$LINENO: checking for $ac_header" >&5
22670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22672   echo $ECHO_N "(cached) $ECHO_C" >&6
22673 fi
22674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22676 else
22677   # Is the header compilable?
22678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22680 cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686 $ac_includes_default
22687 #include <$ac_header>
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22691   (eval $ac_compile) 2>conftest.er1
22692   ac_status=$?
22693   grep -v '^ *+' conftest.er1 >conftest.err
22694   rm -f conftest.er1
22695   cat conftest.err >&5
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); } &&
22698          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700   (eval $ac_try) 2>&5
22701   ac_status=$?
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); }; } &&
22704          { ac_try='test -s conftest.$ac_objext'
22705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706   (eval $ac_try) 2>&5
22707   ac_status=$?
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); }; }; then
22710   ac_header_compiler=yes
22711 else
22712   echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22714
22715 ac_header_compiler=no
22716 fi
22717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22719 echo "${ECHO_T}$ac_header_compiler" >&6
22720
22721 # Is the header present?
22722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h.  */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h.  */
22730 #include <$ac_header>
22731 _ACEOF
22732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22734   ac_status=$?
22735   grep -v '^ *+' conftest.er1 >conftest.err
22736   rm -f conftest.er1
22737   cat conftest.err >&5
22738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739   (exit $ac_status); } >/dev/null; then
22740   if test -s conftest.err; then
22741     ac_cpp_err=$ac_cxx_preproc_warn_flag
22742     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22743   else
22744     ac_cpp_err=
22745   fi
22746 else
22747   ac_cpp_err=yes
22748 fi
22749 if test -z "$ac_cpp_err"; then
22750   ac_header_preproc=yes
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755   ac_header_preproc=no
22756 fi
22757 rm -f conftest.err conftest.$ac_ext
22758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22759 echo "${ECHO_T}$ac_header_preproc" >&6
22760
22761 # So?  What about this header?
22762 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22763   yes:no: )
22764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22768     ac_header_preproc=yes
22769     ;;
22770   no:yes:* )
22771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22783     (
22784       cat <<\_ASBOX
22785 ## ----------------------------------------- ##
22786 ## Report this to wx-dev@lists.wxwidgets.org ##
22787 ## ----------------------------------------- ##
22788 _ASBOX
22789     ) |
22790       sed "s/^/$as_me: WARNING:     /" >&2
22791     ;;
22792 esac
22793 echo "$as_me:$LINENO: checking for $ac_header" >&5
22794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22796   echo $ECHO_N "(cached) $ECHO_C" >&6
22797 else
22798   eval "$as_ac_Header=\$ac_header_preproc"
22799 fi
22800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22802
22803 fi
22804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22805   cat >>confdefs.h <<_ACEOF
22806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807 _ACEOF
22808
22809 fi
22810
22811 done
22812
22813
22814     if test "$ac_cv_header_iostream" = "yes" ; then
22815       :
22816     else
22817       cat >>confdefs.h <<\_ACEOF
22818 #define wxUSE_IOSTREAMH 1
22819 _ACEOF
22820
22821     fi
22822
22823     ac_ext=cc
22824 ac_cpp='$CXXCPP $CPPFLAGS'
22825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22828
22829
22830
22831
22832   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22833 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22834 if test "${wx_cv_cpp_bool+set}" = set; then
22835   echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837
22838
22839
22840     ac_ext=cc
22841 ac_cpp='$CXXCPP $CPPFLAGS'
22842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22845
22846
22847     cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853
22854
22855 int
22856 main ()
22857 {
22858
22859         bool b = true;
22860
22861         return 0;
22862
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 rm -f conftest.$ac_objext
22868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22869   (eval $ac_compile) 2>conftest.er1
22870   ac_status=$?
22871   grep -v '^ *+' conftest.er1 >conftest.err
22872   rm -f conftest.er1
22873   cat conftest.err >&5
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); } &&
22876          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878   (eval $ac_try) 2>&5
22879   ac_status=$?
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); }; } &&
22882          { ac_try='test -s conftest.$ac_objext'
22883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884   (eval $ac_try) 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); }; }; then
22888
22889         wx_cv_cpp_bool=yes
22890
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895
22896         wx_cv_cpp_bool=no
22897
22898
22899 fi
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901
22902     ac_ext=cc
22903 ac_cpp='$CXXCPP $CPPFLAGS'
22904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22907
22908
22909 fi
22910 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22911 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22912
22913   if test "$wx_cv_cpp_bool" = "yes"; then
22914     cat >>confdefs.h <<\_ACEOF
22915 #define HAVE_BOOL 1
22916 _ACEOF
22917
22918   fi
22919
22920
22921
22922   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22923 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22924 if test "${wx_cv_explicit+set}" = set; then
22925   echo $ECHO_N "(cached) $ECHO_C" >&6
22926 else
22927
22928
22929
22930     ac_ext=cc
22931 ac_cpp='$CXXCPP $CPPFLAGS'
22932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22935
22936
22937             cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943
22944         class Foo { public: explicit Foo(int) {} };
22945
22946 int
22947 main ()
22948 {
22949
22950         return 0;
22951
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22958   (eval $ac_compile) 2>conftest.er1
22959   ac_status=$?
22960   grep -v '^ *+' conftest.er1 >conftest.err
22961   rm -f conftest.er1
22962   cat conftest.err >&5
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); } &&
22965          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; } &&
22971          { ac_try='test -s conftest.$ac_objext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977
22978         cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984
22985                 class Foo { public: explicit Foo(int) {} };
22986                 static void TakeFoo(const Foo& foo) { }
22987
22988 int
22989 main ()
22990 {
22991
22992                 TakeFoo(17);
22993                 return 0;
22994
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23001   (eval $ac_compile) 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } &&
23008          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; } &&
23014          { ac_try='test -s conftest.$ac_objext'
23015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; }; then
23020   wx_cv_explicit=no
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 wx_cv_explicit=yes
23026
23027 fi
23028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23029
23030 else
23031   echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23033
23034 wx_cv_explicit=no
23035
23036 fi
23037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23038
23039     ac_ext=cc
23040 ac_cpp='$CXXCPP $CPPFLAGS'
23041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23044
23045
23046 fi
23047 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23048 echo "${ECHO_T}$wx_cv_explicit" >&6
23049
23050   if test "$wx_cv_explicit" = "yes"; then
23051     cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_EXPLICIT 1
23053 _ACEOF
23054
23055   fi
23056
23057
23058 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23059 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23060 if test "${ac_cv_cxx_const_cast+set}" = set; then
23061   echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063
23064
23065  ac_ext=cc
23066 ac_cpp='$CXXCPP $CPPFLAGS'
23067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23070
23071  cat >conftest.$ac_ext <<_ACEOF
23072 /* confdefs.h.  */
23073 _ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h.  */
23077
23078 int
23079 main ()
23080 {
23081 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23082   ;
23083   return 0;
23084 }
23085 _ACEOF
23086 rm -f conftest.$ac_objext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23088   (eval $ac_compile) 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } &&
23095          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; } &&
23101          { ac_try='test -s conftest.$ac_objext'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; }; then
23107   ac_cv_cxx_const_cast=yes
23108 else
23109   echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112 ac_cv_cxx_const_cast=no
23113 fi
23114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23115  ac_ext=cc
23116 ac_cpp='$CXXCPP $CPPFLAGS'
23117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23120
23121
23122 fi
23123 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23124 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23125 if test "$ac_cv_cxx_const_cast" = yes; then
23126
23127 cat >>confdefs.h <<\_ACEOF
23128 #define HAVE_CONST_CAST
23129 _ACEOF
23130
23131 fi
23132
23133 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23134 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23135 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23136   echo $ECHO_N "(cached) $ECHO_C" >&6
23137 else
23138
23139
23140  ac_ext=cc
23141 ac_cpp='$CXXCPP $CPPFLAGS'
23142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23145
23146  cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 #include <typeinfo>
23153 class Base { public : Base () {} virtual void f () = 0;};
23154 class Derived : public Base { public : Derived () {} virtual void f () {} };
23155 class Unrelated { public : Unrelated () {} };
23156 int g (Unrelated&) { return 0; }
23157 int
23158 main ()
23159 {
23160
23161 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext
23167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23168   (eval $ac_compile) 2>conftest.er1
23169   ac_status=$?
23170   grep -v '^ *+' conftest.er1 >conftest.err
23171   rm -f conftest.er1
23172   cat conftest.err >&5
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); } &&
23175          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177   (eval $ac_try) 2>&5
23178   ac_status=$?
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); }; } &&
23181          { ac_try='test -s conftest.$ac_objext'
23182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183   (eval $ac_try) 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; }; then
23187   ac_cv_cxx_reinterpret_cast=yes
23188 else
23189   echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192 ac_cv_cxx_reinterpret_cast=no
23193 fi
23194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23195  ac_ext=cc
23196 ac_cpp='$CXXCPP $CPPFLAGS'
23197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23200
23201
23202 fi
23203 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23204 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23205 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23206
23207 cat >>confdefs.h <<\_ACEOF
23208 #define HAVE_REINTERPRET_CAST
23209 _ACEOF
23210
23211 fi
23212
23213 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23214 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23215 if test "${ac_cv_cxx_static_cast+set}" = set; then
23216   echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218
23219
23220  ac_ext=cc
23221 ac_cpp='$CXXCPP $CPPFLAGS'
23222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23225
23226  cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232 #include <typeinfo>
23233 class Base { public : Base () {} virtual void f () = 0; };
23234 class Derived : public Base { public : Derived () {} virtual void f () {} };
23235 int g (Derived&) { return 0; }
23236 int
23237 main ()
23238 {
23239
23240 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23247   (eval $ac_compile) 2>conftest.er1
23248   ac_status=$?
23249   grep -v '^ *+' conftest.er1 >conftest.err
23250   rm -f conftest.er1
23251   cat conftest.err >&5
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); } &&
23254          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; } &&
23260          { ac_try='test -s conftest.$ac_objext'
23261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262   (eval $ac_try) 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; }; then
23266   ac_cv_cxx_static_cast=yes
23267 else
23268   echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271 ac_cv_cxx_static_cast=no
23272 fi
23273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23274  ac_ext=cc
23275 ac_cpp='$CXXCPP $CPPFLAGS'
23276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23279
23280
23281 fi
23282 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23283 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23284 if test "$ac_cv_cxx_static_cast" = yes; then
23285
23286 cat >>confdefs.h <<\_ACEOF
23287 #define HAVE_STATIC_CAST
23288 _ACEOF
23289
23290 fi
23291
23292
23293 if test "x$SUNCXX" = xyes; then
23294     CXXFLAGS="-features=tmplife $CXXFLAGS"
23295 fi
23296
23297 if test "x$SUNCC" = xyes; then
23298     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23299 fi
23300
23301 if test "x$SGICC" = "xyes"; then
23302     CFLAGS="-woff 3970 $CFLAGS"
23303 fi
23304 if test "x$SGICXX" = "xyes"; then
23305     CXXFLAGS="-woff 3970 $CXXFLAGS"
23306 fi
23307
23308 if test "x$HPCC" = "xyes"; then
23309                     CFLAGS="+W 2011,2450 $CFLAGS"
23310 fi
23311 if test "x$HPCXX" = "xyes"; then
23312             CXXFLAGS="+W 2340 $CXXFLAGS"
23313 fi
23314
23315 if test "x$COMPAQCXX" = "xyes"; then
23316                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23317 fi
23318
23319 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23320     if test "$wxUSE_UNICODE" = "yes"; then
23321         std_string="std::wstring"
23322         char_type="wchar_t"
23323     else
23324         std_string="std::string"
23325         char_type="char"
23326     fi
23327
23328         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23329 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23330     cat >conftest.$ac_ext <<_ACEOF
23331 /* confdefs.h.  */
23332 _ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h.  */
23336 #include <string>
23337 int
23338 main ()
23339 {
23340 $std_string foo;
23341   ;
23342   return 0;
23343 }
23344 _ACEOF
23345 rm -f conftest.$ac_objext
23346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23347   (eval $ac_compile) 2>conftest.er1
23348   ac_status=$?
23349   grep -v '^ *+' conftest.er1 >conftest.err
23350   rm -f conftest.er1
23351   cat conftest.err >&5
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); } &&
23354          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356   (eval $ac_try) 2>&5
23357   ac_status=$?
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); }; } &&
23360          { ac_try='test -s conftest.$ac_objext'
23361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362   (eval $ac_try) 2>&5
23363   ac_status=$?
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); }; }; then
23366   echo "$as_me:$LINENO: result: yes" >&5
23367 echo "${ECHO_T}yes" >&6
23368                     cat >>confdefs.h <<\_ACEOF
23369 #define HAVE_STD_WSTRING 1
23370 _ACEOF
23371
23372 else
23373   echo "$as_me: failed program was:" >&5
23374 sed 's/^/| /' conftest.$ac_ext >&5
23375
23376 echo "$as_me:$LINENO: result: no" >&5
23377 echo "${ECHO_T}no" >&6
23378                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23379 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23380                     cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386
23387                         #ifdef HAVE_WCHAR_H
23388                         #  ifdef __CYGWIN__
23389                         #    include <stddef.h>
23390                         #  endif
23391                         #  include <wchar.h>
23392                         #endif
23393                         #ifdef HAVE_STDLIB_H
23394                         #  include <stdlib.h>
23395                         #endif
23396                         #include <stdio.h>
23397                         #include <string>
23398
23399 int
23400 main ()
23401 {
23402 std::basic_string<$char_type> foo;
23403                          const $char_type* dummy = foo.c_str();
23404   ;
23405   return 0;
23406 }
23407 _ACEOF
23408 rm -f conftest.$ac_objext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23410   (eval $ac_compile) 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } &&
23417          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419   (eval $ac_try) 2>&5
23420   ac_status=$?
23421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); }; } &&
23423          { ac_try='test -s conftest.$ac_objext'
23424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425   (eval $ac_try) 2>&5
23426   ac_status=$?
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); }; }; then
23429   echo "$as_me:$LINENO: result: yes" >&5
23430 echo "${ECHO_T}yes" >&6
23431 else
23432   echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435 echo "$as_me:$LINENO: result: no" >&5
23436 echo "${ECHO_T}no" >&6
23437                          if test "$wxUSE_STL" = "yes"; then
23438                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23439 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23440    { (exit 1); exit 1; }; }
23441                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23442                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23443 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23444    { (exit 1); exit 1; }; }
23445                          else
23446                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23447 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23448                              wxUSE_STD_STRING=no
23449                          fi
23450
23451
23452 fi
23453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23454
23455 fi
23456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23457 fi
23458
23459 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23460     echo "$as_me:$LINENO: checking for std::istream" >&5
23461 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23462 if test "${ac_cv_type_std__istream+set}" = set; then
23463   echo $ECHO_N "(cached) $ECHO_C" >&6
23464 else
23465   cat >conftest.$ac_ext <<_ACEOF
23466 /* confdefs.h.  */
23467 _ACEOF
23468 cat confdefs.h >>conftest.$ac_ext
23469 cat >>conftest.$ac_ext <<_ACEOF
23470 /* end confdefs.h.  */
23471 #include <iostream>
23472
23473 int
23474 main ()
23475 {
23476 if ((std::istream *) 0)
23477   return 0;
23478 if (sizeof (std::istream))
23479   return 0;
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest.$ac_objext
23485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23486   (eval $ac_compile) 2>conftest.er1
23487   ac_status=$?
23488   grep -v '^ *+' conftest.er1 >conftest.err
23489   rm -f conftest.er1
23490   cat conftest.err >&5
23491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); } &&
23493          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; } &&
23499          { ac_try='test -s conftest.$ac_objext'
23500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; }; then
23505   ac_cv_type_std__istream=yes
23506 else
23507   echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 ac_cv_type_std__istream=no
23511 fi
23512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23513 fi
23514 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23515 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23516 if test $ac_cv_type_std__istream = yes; then
23517
23518 cat >>confdefs.h <<_ACEOF
23519 #define HAVE_STD__ISTREAM 1
23520 _ACEOF
23521
23522
23523 else
23524   wxUSE_STD_IOSTREAM=no
23525 fi
23526 echo "$as_me:$LINENO: checking for std::ostream" >&5
23527 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23528 if test "${ac_cv_type_std__ostream+set}" = set; then
23529   echo $ECHO_N "(cached) $ECHO_C" >&6
23530 else
23531   cat >conftest.$ac_ext <<_ACEOF
23532 /* confdefs.h.  */
23533 _ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h.  */
23537 #include <iostream>
23538
23539 int
23540 main ()
23541 {
23542 if ((std::ostream *) 0)
23543   return 0;
23544 if (sizeof (std::ostream))
23545   return 0;
23546   ;
23547   return 0;
23548 }
23549 _ACEOF
23550 rm -f conftest.$ac_objext
23551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23552   (eval $ac_compile) 2>conftest.er1
23553   ac_status=$?
23554   grep -v '^ *+' conftest.er1 >conftest.err
23555   rm -f conftest.er1
23556   cat conftest.err >&5
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); } &&
23559          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; } &&
23565          { ac_try='test -s conftest.$ac_objext'
23566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567   (eval $ac_try) 2>&5
23568   ac_status=$?
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); }; }; then
23571   ac_cv_type_std__ostream=yes
23572 else
23573   echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23575
23576 ac_cv_type_std__ostream=no
23577 fi
23578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23579 fi
23580 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23581 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23582 if test $ac_cv_type_std__ostream = yes; then
23583
23584 cat >>confdefs.h <<_ACEOF
23585 #define HAVE_STD__OSTREAM 1
23586 _ACEOF
23587
23588
23589 else
23590   wxUSE_STD_IOSTREAM=no
23591 fi
23592
23593
23594     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23595         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23596             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23597 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23598    { (exit 1); exit 1; }; }
23599         else
23600             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23601 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23602         fi
23603     fi
23604 fi
23605
23606 if test "$wxUSE_STL" = "yes"; then
23607         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23608 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23609     cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615 #include <string>
23616                     #include <functional>
23617                     #include <algorithm>
23618                     #include <vector>
23619                     #include <list>
23620 int
23621 main ()
23622 {
23623 std::vector<int> moo;
23624                      std::list<int> foo;
23625                      std::vector<int>::iterator it =
23626                          std::find_if(moo.begin(), moo.end(),
23627                                       std::bind2nd(std::less<int>(), 3));
23628   ;
23629   return 0;
23630 }
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23634   (eval $ac_compile) 2>conftest.er1
23635   ac_status=$?
23636   grep -v '^ *+' conftest.er1 >conftest.err
23637   rm -f conftest.er1
23638   cat conftest.err >&5
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); } &&
23641          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643   (eval $ac_try) 2>&5
23644   ac_status=$?
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); }; } &&
23647          { ac_try='test -s conftest.$ac_objext'
23648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649   (eval $ac_try) 2>&5
23650   ac_status=$?
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); }; }; then
23653   echo "$as_me:$LINENO: result: yes" >&5
23654 echo "${ECHO_T}yes" >&6
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659 echo "$as_me:$LINENO: result: no" >&5
23660 echo "${ECHO_T}no" >&6
23661                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23662 echo "$as_me: error: Basic STL functionality missing" >&2;}
23663    { (exit 1); exit 1; }; }
23664 fi
23665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23666
23667         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23668 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23669     cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h.  */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h.  */
23675 #include <string>
23676 int
23677 main ()
23678 {
23679 std::string foo, bar;
23680                     foo.compare(bar);
23681                     foo.compare(1, 1, bar);
23682                     foo.compare(1, 1, bar, 1, 1);
23683                     foo.compare("");
23684                     foo.compare(1, 1, "");
23685                     foo.compare(1, 1, "", 2);
23686   ;
23687   return 0;
23688 }
23689 _ACEOF
23690 rm -f conftest.$ac_objext
23691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23692   (eval $ac_compile) 2>conftest.er1
23693   ac_status=$?
23694   grep -v '^ *+' conftest.er1 >conftest.err
23695   rm -f conftest.er1
23696   cat conftest.err >&5
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); } &&
23699          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701   (eval $ac_try) 2>&5
23702   ac_status=$?
23703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704   (exit $ac_status); }; } &&
23705          { ac_try='test -s conftest.$ac_objext'
23706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707   (eval $ac_try) 2>&5
23708   ac_status=$?
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); }; }; then
23711   echo "$as_me:$LINENO: result: yes" >&5
23712 echo "${ECHO_T}yes" >&6
23713                     cat >>confdefs.h <<\_ACEOF
23714 #define HAVE_STD_STRING_COMPARE 1
23715 _ACEOF
23716
23717 else
23718   echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23720
23721 echo "$as_me:$LINENO: result: no" >&5
23722 echo "${ECHO_T}no" >&6
23723 fi
23724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23725
23726         if test "${ac_cv_header_hash_map+set}" = set; then
23727   echo "$as_me:$LINENO: checking for hash_map" >&5
23728 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23729 if test "${ac_cv_header_hash_map+set}" = set; then
23730   echo $ECHO_N "(cached) $ECHO_C" >&6
23731 fi
23732 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23733 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23734 else
23735   # Is the header compilable?
23736 echo "$as_me:$LINENO: checking hash_map usability" >&5
23737 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744 $ac_includes_default
23745 #include <hash_map>
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23749   (eval $ac_compile) 2>conftest.er1
23750   ac_status=$?
23751   grep -v '^ *+' conftest.er1 >conftest.err
23752   rm -f conftest.er1
23753   cat conftest.err >&5
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); } &&
23756          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758   (eval $ac_try) 2>&5
23759   ac_status=$?
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); }; } &&
23762          { ac_try='test -s conftest.$ac_objext'
23763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764   (eval $ac_try) 2>&5
23765   ac_status=$?
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); }; }; then
23768   ac_header_compiler=yes
23769 else
23770   echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23772
23773 ac_header_compiler=no
23774 fi
23775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23777 echo "${ECHO_T}$ac_header_compiler" >&6
23778
23779 # Is the header present?
23780 echo "$as_me:$LINENO: checking hash_map presence" >&5
23781 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23782 cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h.  */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h.  */
23788 #include <hash_map>
23789 _ACEOF
23790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23792   ac_status=$?
23793   grep -v '^ *+' conftest.er1 >conftest.err
23794   rm -f conftest.er1
23795   cat conftest.err >&5
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } >/dev/null; then
23798   if test -s conftest.err; then
23799     ac_cpp_err=$ac_cxx_preproc_warn_flag
23800     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23801   else
23802     ac_cpp_err=
23803   fi
23804 else
23805   ac_cpp_err=yes
23806 fi
23807 if test -z "$ac_cpp_err"; then
23808   ac_header_preproc=yes
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813   ac_header_preproc=no
23814 fi
23815 rm -f conftest.err conftest.$ac_ext
23816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23817 echo "${ECHO_T}$ac_header_preproc" >&6
23818
23819 # So?  What about this header?
23820 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23821   yes:no: )
23822     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23823 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23824     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23825 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23826     ac_header_preproc=yes
23827     ;;
23828   no:yes:* )
23829     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23830 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23831     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23832 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23833     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23834 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23835     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23836 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23837     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23838 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23839     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23840 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23841     (
23842       cat <<\_ASBOX
23843 ## ----------------------------------------- ##
23844 ## Report this to wx-dev@lists.wxwidgets.org ##
23845 ## ----------------------------------------- ##
23846 _ASBOX
23847     ) |
23848       sed "s/^/$as_me: WARNING:     /" >&2
23849     ;;
23850 esac
23851 echo "$as_me:$LINENO: checking for hash_map" >&5
23852 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23853 if test "${ac_cv_header_hash_map+set}" = set; then
23854   echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856   ac_cv_header_hash_map=$ac_header_preproc
23857 fi
23858 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23859 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23860
23861 fi
23862 if test $ac_cv_header_hash_map = yes; then
23863   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23864 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23865                      cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871 #include <hash_map>
23872                                      #include <hash_set>
23873 int
23874 main ()
23875 {
23876 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23877                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 rm -f conftest.$ac_objext
23883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23884   (eval $ac_compile) 2>conftest.er1
23885   ac_status=$?
23886   grep -v '^ *+' conftest.er1 >conftest.err
23887   rm -f conftest.er1
23888   cat conftest.err >&5
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); } &&
23891          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893   (eval $ac_try) 2>&5
23894   ac_status=$?
23895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); }; } &&
23897          { ac_try='test -s conftest.$ac_objext'
23898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899   (eval $ac_try) 2>&5
23900   ac_status=$?
23901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902   (exit $ac_status); }; }; then
23903   echo "$as_me:$LINENO: result: yes" >&5
23904 echo "${ECHO_T}yes" >&6
23905                                      cat >>confdefs.h <<\_ACEOF
23906 #define HAVE_HASH_MAP 1
23907 _ACEOF
23908
23909                                      cat >>confdefs.h <<\_ACEOF
23910 #define HAVE_STD_HASH_MAP 1
23911 _ACEOF
23912
23913 else
23914   echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23916
23917 echo "$as_me:$LINENO: result: no" >&5
23918 echo "${ECHO_T}no" >&6
23919 fi
23920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23921
23922 fi
23923
23924
23925
23926     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23927   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23928 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23929 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23930   echo $ECHO_N "(cached) $ECHO_C" >&6
23931 fi
23932 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23933 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23934 else
23935   # Is the header compilable?
23936 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23937 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23938 cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h.  */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h.  */
23944 $ac_includes_default
23945 #include <ext/hash_map>
23946 _ACEOF
23947 rm -f conftest.$ac_objext
23948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23949   (eval $ac_compile) 2>conftest.er1
23950   ac_status=$?
23951   grep -v '^ *+' conftest.er1 >conftest.err
23952   rm -f conftest.er1
23953   cat conftest.err >&5
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); } &&
23956          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958   (eval $ac_try) 2>&5
23959   ac_status=$?
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); }; } &&
23962          { ac_try='test -s conftest.$ac_objext'
23963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964   (eval $ac_try) 2>&5
23965   ac_status=$?
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); }; }; then
23968   ac_header_compiler=yes
23969 else
23970   echo "$as_me: failed program was:" >&5
23971 sed 's/^/| /' conftest.$ac_ext >&5
23972
23973 ac_header_compiler=no
23974 fi
23975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23977 echo "${ECHO_T}$ac_header_compiler" >&6
23978
23979 # Is the header present?
23980 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23981 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23982 cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h.  */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h.  */
23988 #include <ext/hash_map>
23989 _ACEOF
23990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23992   ac_status=$?
23993   grep -v '^ *+' conftest.er1 >conftest.err
23994   rm -f conftest.er1
23995   cat conftest.err >&5
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); } >/dev/null; then
23998   if test -s conftest.err; then
23999     ac_cpp_err=$ac_cxx_preproc_warn_flag
24000     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24001   else
24002     ac_cpp_err=
24003   fi
24004 else
24005   ac_cpp_err=yes
24006 fi
24007 if test -z "$ac_cpp_err"; then
24008   ac_header_preproc=yes
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013   ac_header_preproc=no
24014 fi
24015 rm -f conftest.err conftest.$ac_ext
24016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24017 echo "${ECHO_T}$ac_header_preproc" >&6
24018
24019 # So?  What about this header?
24020 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24021   yes:no: )
24022     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24023 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
24024     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24025 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24026     ac_header_preproc=yes
24027     ;;
24028   no:yes:* )
24029     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24030 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
24031     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
24032 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
24033     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24034 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24035     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
24036 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
24037     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24038 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
24039     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24040 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
24041     (
24042       cat <<\_ASBOX
24043 ## ----------------------------------------- ##
24044 ## Report this to wx-dev@lists.wxwidgets.org ##
24045 ## ----------------------------------------- ##
24046 _ASBOX
24047     ) |
24048       sed "s/^/$as_me: WARNING:     /" >&2
24049     ;;
24050 esac
24051 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24052 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24053 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24054   echo $ECHO_N "(cached) $ECHO_C" >&6
24055 else
24056   ac_cv_header_ext_hash_map=$ac_header_preproc
24057 fi
24058 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24059 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24060
24061 fi
24062 if test $ac_cv_header_ext_hash_map = yes; then
24063   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24064 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24065                      cat >conftest.$ac_ext <<_ACEOF
24066 /* confdefs.h.  */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h.  */
24071 #include <ext/hash_map>
24072                                      #include <ext/hash_set>
24073 int
24074 main ()
24075 {
24076 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24077                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24078   ;
24079   return 0;
24080 }
24081 _ACEOF
24082 rm -f conftest.$ac_objext
24083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24084   (eval $ac_compile) 2>conftest.er1
24085   ac_status=$?
24086   grep -v '^ *+' conftest.er1 >conftest.err
24087   rm -f conftest.er1
24088   cat conftest.err >&5
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); } &&
24091          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); }; } &&
24097          { ac_try='test -s conftest.$ac_objext'
24098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099   (eval $ac_try) 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); }; }; then
24103   echo "$as_me:$LINENO: result: yes" >&5
24104 echo "${ECHO_T}yes" >&6
24105                                      cat >>confdefs.h <<\_ACEOF
24106 #define HAVE_EXT_HASH_MAP 1
24107 _ACEOF
24108
24109                                      cat >>confdefs.h <<\_ACEOF
24110 #define HAVE_GNU_CXX_HASH_MAP 1
24111 _ACEOF
24112
24113 else
24114   echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24116
24117 echo "$as_me:$LINENO: result: no" >&5
24118 echo "${ECHO_T}no" >&6
24119 fi
24120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24121
24122 fi
24123
24124
24125 fi
24126
24127
24128 SEARCH_INCLUDE="\
24129     /usr/local/include        \
24130                               \
24131     /usr/Motif-2.1/include    \
24132     /usr/Motif-1.2/include    \
24133     /usr/include/Motif1.2     \
24134                               \
24135     /usr/dt/include           \
24136     /usr/openwin/include      \
24137                               \
24138     /usr/include/Xm           \
24139                               \
24140     /usr/X11R6/include        \
24141     /usr/X11R6.4/include      \
24142     /usr/X11R5/include        \
24143     /usr/X11R4/include        \
24144                               \
24145     /usr/include/X11R6        \
24146     /usr/include/X11R5        \
24147     /usr/include/X11R4        \
24148                               \
24149     /usr/local/X11R6/include  \
24150     /usr/local/X11R5/include  \
24151     /usr/local/X11R4/include  \
24152                               \
24153     /usr/local/include/X11R6  \
24154     /usr/local/include/X11R5  \
24155     /usr/local/include/X11R4  \
24156                               \
24157     /usr/X11/include          \
24158     /usr/include/X11          \
24159     /usr/local/X11/include    \
24160     /usr/local/include/X11    \
24161                               \
24162     /usr/XFree86/include/X11  \
24163     /usr/pkg/include          \
24164                               \
24165     /usr/openwin/share/include"
24166
24167 echo "$as_me:$LINENO: checking for libraries directory" >&5
24168 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24169
24170 case "${host}" in
24171     *-*-irix6* )
24172         if test "${wx_cv_std_libpath+set}" = set; then
24173   echo $ECHO_N "(cached) $ECHO_C" >&6
24174 else
24175
24176                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24177                     for e in a so sl dylib dll.a; do
24178                         libc="$d/libc.$e"
24179                         if test -f $libc; then
24180                             save_LIBS="$LIBS"
24181                             LIBS="$libc"
24182                             cat >conftest.$ac_ext <<_ACEOF
24183 int main() { return 0; }
24184 _ACEOF
24185 rm -f conftest.$ac_objext conftest$ac_exeext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187   (eval $ac_link) 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } &&
24194          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196   (eval $ac_try) 2>&5
24197   ac_status=$?
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); }; } &&
24200          { ac_try='test -s conftest$ac_exeext'
24201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202   (eval $ac_try) 2>&5
24203   ac_status=$?
24204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205   (exit $ac_status); }; }; then
24206   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24207 else
24208   echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24210
24211 fi
24212 rm -f conftest.err conftest.$ac_objext \
24213       conftest$ac_exeext conftest.$ac_ext
24214                             LIBS="$save_LIBS"
24215                             if test "x$wx_cv_std_libpath" != "x"; then
24216                                 break 2
24217                             fi
24218                         fi
24219                     done
24220                 done
24221                 if test "x$wx_cv_std_libpath" = "x"; then
24222                     wx_cv_std_libpath="lib"
24223                 fi
24224
24225
24226 fi
24227
24228         ;;
24229
24230     *-*-solaris2* )
24231                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24232             wx_cv_std_libpath="lib/64"
24233         else
24234             wx_cv_std_libpath="lib"
24235         fi
24236         ;;
24237
24238     *-*-linux* )
24239                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24240                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24241             wx_cv_std_libpath="lib64"
24242         else
24243             wx_cv_std_libpath="lib"
24244         fi
24245         ;;
24246
24247     *)
24248         wx_cv_std_libpath="lib";
24249         ;;
24250 esac
24251
24252 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24253 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24254
24255 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24256
24257 if test "$build" != "$host" -a "$GCC" = yes; then
24258                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24259         cross_root=`dirname $cross_root`
24260         cross_root=`dirname $cross_root`
24261
24262                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24263         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24264         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24265
24266                 if test -z "$PKG_CONFIG_PATH"; then
24267             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24268             export PKG_CONFIG_PATH
24269         fi
24270
24271                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24272
24273 ac_find_includes=
24274 for ac_dir in $SEARCH_INCLUDE /usr/include;
24275   do
24276     if test -f "$ac_dir/X11/Intrinsic.h"; then
24277       ac_find_includes=$ac_dir
24278       break
24279     fi
24280   done
24281
24282             x_includes=$ac_find_includes
24283         fi
24284         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24285
24286   ac_find_libraries=
24287   for ac_dir in $SEARCH_LIB;
24288   do
24289     for ac_extension in a so sl dylib dll.a; do
24290       if test -f "$ac_dir/libXt.$ac_extension"; then
24291         ac_find_libraries=$ac_dir
24292         break 2
24293       fi
24294     done
24295   done
24296
24297             x_libraries=$ac_find_libraries
24298         fi
24299     fi
24300 fi
24301
24302
24303 cat >confcache <<\_ACEOF
24304 # This file is a shell script that caches the results of configure
24305 # tests run on this system so they can be shared between configure
24306 # scripts and configure runs, see configure's option --config-cache.
24307 # It is not useful on other systems.  If it contains results you don't
24308 # want to keep, you may remove or edit it.
24309 #
24310 # config.status only pays attention to the cache file if you give it
24311 # the --recheck option to rerun configure.
24312 #
24313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24315 # following values.
24316
24317 _ACEOF
24318
24319 # The following way of writing the cache mishandles newlines in values,
24320 # but we know of no workaround that is simple, portable, and efficient.
24321 # So, don't put newlines in cache variables' values.
24322 # Ultrix sh set writes to stderr and can't be redirected directly,
24323 # and sets the high bit in the cache file unless we assign to the vars.
24324 {
24325   (set) 2>&1 |
24326     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24327     *ac_space=\ *)
24328       # `set' does not quote correctly, so add quotes (double-quote
24329       # substitution turns \\\\ into \\, and sed turns \\ into \).
24330       sed -n \
24331         "s/'/'\\\\''/g;
24332           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24333       ;;
24334     *)
24335       # `set' quotes correctly as required by POSIX, so do not add quotes.
24336       sed -n \
24337         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24338       ;;
24339     esac;
24340 } |
24341   sed '
24342      t clear
24343      : clear
24344      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24345      t end
24346      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24347      : end' >>confcache
24348 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24349   if test -w $cache_file; then
24350     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24351     cat confcache >$cache_file
24352   else
24353     echo "not updating unwritable cache $cache_file"
24354   fi
24355 fi
24356 rm -f confcache
24357
24358 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24359     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24360 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24361 if test "${wx_cv_lib_glibc21+set}" = set; then
24362   echo $ECHO_N "(cached) $ECHO_C" >&6
24363 else
24364
24365         cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h.  */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h.  */
24371 #include <features.h>
24372 int
24373 main ()
24374 {
24375
24376                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24377                 not glibc 2.1
24378                 #endif
24379
24380   ;
24381   return 0;
24382 }
24383 _ACEOF
24384 rm -f conftest.$ac_objext
24385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24386   (eval $ac_compile) 2>conftest.er1
24387   ac_status=$?
24388   grep -v '^ *+' conftest.er1 >conftest.err
24389   rm -f conftest.er1
24390   cat conftest.err >&5
24391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); } &&
24393          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; } &&
24399          { ac_try='test -s conftest.$ac_objext'
24400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401   (eval $ac_try) 2>&5
24402   ac_status=$?
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; }; then
24405
24406                 wx_cv_lib_glibc21=yes
24407
24408 else
24409   echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24411
24412
24413                 wx_cv_lib_glibc21=no
24414
24415
24416 fi
24417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24418
24419 fi
24420 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24421 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24422     if test "$wx_cv_lib_glibc21" = "yes"; then
24423         cat >>confdefs.h <<\_ACEOF
24424 #define wxHAVE_GLIBC2 1
24425 _ACEOF
24426
24427     fi
24428 fi
24429
24430 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24431     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24432         cat >>confdefs.h <<\_ACEOF
24433 #define _GNU_SOURCE 1
24434 _ACEOF
24435
24436     fi
24437 fi
24438
24439 have_cos=0
24440 have_floor=0
24441
24442 for ac_func in cos
24443 do
24444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24445 echo "$as_me:$LINENO: checking for $ac_func" >&5
24446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24447 if eval "test \"\${$as_ac_var+set}\" = set"; then
24448   echo $ECHO_N "(cached) $ECHO_C" >&6
24449 else
24450   cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24458 #define $ac_func innocuous_$ac_func
24459
24460 /* System header to define __stub macros and hopefully few prototypes,
24461     which can conflict with char $ac_func (); below.
24462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24463     <limits.h> exists even on freestanding compilers.  */
24464
24465 #ifdef __STDC__
24466 # include <limits.h>
24467 #else
24468 # include <assert.h>
24469 #endif
24470
24471 #undef $ac_func
24472
24473 /* Override any gcc2 internal prototype to avoid an error.  */
24474 #ifdef __cplusplus
24475 extern "C"
24476 {
24477 #endif
24478 /* We use char because int might match the return type of a gcc2
24479    builtin and then its argument prototype would still apply.  */
24480 char $ac_func ();
24481 /* The GNU C library defines this for functions which it implements
24482     to always fail with ENOSYS.  Some functions are actually named
24483     something starting with __ and the normal name is an alias.  */
24484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24485 choke me
24486 #else
24487 char (*f) () = $ac_func;
24488 #endif
24489 #ifdef __cplusplus
24490 }
24491 #endif
24492
24493 int
24494 main ()
24495 {
24496 return f != $ac_func;
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24503   (eval $ac_link) 2>conftest.er1
24504   ac_status=$?
24505   grep -v '^ *+' conftest.er1 >conftest.err
24506   rm -f conftest.er1
24507   cat conftest.err >&5
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } &&
24510          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512   (eval $ac_try) 2>&5
24513   ac_status=$?
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); }; } &&
24516          { ac_try='test -s conftest$ac_exeext'
24517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518   (eval $ac_try) 2>&5
24519   ac_status=$?
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); }; }; then
24522   eval "$as_ac_var=yes"
24523 else
24524   echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527 eval "$as_ac_var=no"
24528 fi
24529 rm -f conftest.err conftest.$ac_objext \
24530       conftest$ac_exeext conftest.$ac_ext
24531 fi
24532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24534 if test `eval echo '${'$as_ac_var'}'` = yes; then
24535   cat >>confdefs.h <<_ACEOF
24536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24537 _ACEOF
24538  have_cos=1
24539 fi
24540 done
24541
24542
24543 for ac_func in floor
24544 do
24545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24546 echo "$as_me:$LINENO: checking for $ac_func" >&5
24547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24548 if eval "test \"\${$as_ac_var+set}\" = set"; then
24549   echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551   cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24559 #define $ac_func innocuous_$ac_func
24560
24561 /* System header to define __stub macros and hopefully few prototypes,
24562     which can conflict with char $ac_func (); below.
24563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564     <limits.h> exists even on freestanding compilers.  */
24565
24566 #ifdef __STDC__
24567 # include <limits.h>
24568 #else
24569 # include <assert.h>
24570 #endif
24571
24572 #undef $ac_func
24573
24574 /* Override any gcc2 internal prototype to avoid an error.  */
24575 #ifdef __cplusplus
24576 extern "C"
24577 {
24578 #endif
24579 /* We use char because int might match the return type of a gcc2
24580    builtin and then its argument prototype would still apply.  */
24581 char $ac_func ();
24582 /* The GNU C library defines this for functions which it implements
24583     to always fail with ENOSYS.  Some functions are actually named
24584     something starting with __ and the normal name is an alias.  */
24585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24586 choke me
24587 #else
24588 char (*f) () = $ac_func;
24589 #endif
24590 #ifdef __cplusplus
24591 }
24592 #endif
24593
24594 int
24595 main ()
24596 {
24597 return f != $ac_func;
24598   ;
24599   return 0;
24600 }
24601 _ACEOF
24602 rm -f conftest.$ac_objext conftest$ac_exeext
24603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24604   (eval $ac_link) 2>conftest.er1
24605   ac_status=$?
24606   grep -v '^ *+' conftest.er1 >conftest.err
24607   rm -f conftest.er1
24608   cat conftest.err >&5
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); } &&
24611          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613   (eval $ac_try) 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; } &&
24617          { ac_try='test -s conftest$ac_exeext'
24618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619   (eval $ac_try) 2>&5
24620   ac_status=$?
24621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622   (exit $ac_status); }; }; then
24623   eval "$as_ac_var=yes"
24624 else
24625   echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628 eval "$as_ac_var=no"
24629 fi
24630 rm -f conftest.err conftest.$ac_objext \
24631       conftest$ac_exeext conftest.$ac_ext
24632 fi
24633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24635 if test `eval echo '${'$as_ac_var'}'` = yes; then
24636   cat >>confdefs.h <<_ACEOF
24637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24638 _ACEOF
24639  have_floor=1
24640 fi
24641 done
24642
24643 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24644 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24645 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24646     echo "$as_me:$LINENO: result: yes" >&5
24647 echo "${ECHO_T}yes" >&6
24648 else
24649     echo "$as_me:$LINENO: result: no" >&5
24650 echo "${ECHO_T}no" >&6
24651     LIBS="$LIBS -lm"
24652     # use different functions to avoid configure caching
24653     have_sin=0
24654     have_ceil=0
24655
24656 for ac_func in sin
24657 do
24658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659 echo "$as_me:$LINENO: checking for $ac_func" >&5
24660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24661 if eval "test \"\${$as_ac_var+set}\" = set"; then
24662   echo $ECHO_N "(cached) $ECHO_C" >&6
24663 else
24664   cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h.  */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h.  */
24670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24672 #define $ac_func innocuous_$ac_func
24673
24674 /* System header to define __stub macros and hopefully few prototypes,
24675     which can conflict with char $ac_func (); below.
24676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24677     <limits.h> exists even on freestanding compilers.  */
24678
24679 #ifdef __STDC__
24680 # include <limits.h>
24681 #else
24682 # include <assert.h>
24683 #endif
24684
24685 #undef $ac_func
24686
24687 /* Override any gcc2 internal prototype to avoid an error.  */
24688 #ifdef __cplusplus
24689 extern "C"
24690 {
24691 #endif
24692 /* We use char because int might match the return type of a gcc2
24693    builtin and then its argument prototype would still apply.  */
24694 char $ac_func ();
24695 /* The GNU C library defines this for functions which it implements
24696     to always fail with ENOSYS.  Some functions are actually named
24697     something starting with __ and the normal name is an alias.  */
24698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24699 choke me
24700 #else
24701 char (*f) () = $ac_func;
24702 #endif
24703 #ifdef __cplusplus
24704 }
24705 #endif
24706
24707 int
24708 main ()
24709 {
24710 return f != $ac_func;
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24717   (eval $ac_link) 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } &&
24724          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726   (eval $ac_try) 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; } &&
24730          { ac_try='test -s conftest$ac_exeext'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; }; then
24736   eval "$as_ac_var=yes"
24737 else
24738   echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 eval "$as_ac_var=no"
24742 fi
24743 rm -f conftest.err conftest.$ac_objext \
24744       conftest$ac_exeext conftest.$ac_ext
24745 fi
24746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24748 if test `eval echo '${'$as_ac_var'}'` = yes; then
24749   cat >>confdefs.h <<_ACEOF
24750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24751 _ACEOF
24752  have_sin=1
24753 fi
24754 done
24755
24756
24757 for ac_func in ceil
24758 do
24759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24760 echo "$as_me:$LINENO: checking for $ac_func" >&5
24761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24762 if eval "test \"\${$as_ac_var+set}\" = set"; then
24763   echo $ECHO_N "(cached) $ECHO_C" >&6
24764 else
24765   cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h.  */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h.  */
24771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24773 #define $ac_func innocuous_$ac_func
24774
24775 /* System header to define __stub macros and hopefully few prototypes,
24776     which can conflict with char $ac_func (); below.
24777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24778     <limits.h> exists even on freestanding compilers.  */
24779
24780 #ifdef __STDC__
24781 # include <limits.h>
24782 #else
24783 # include <assert.h>
24784 #endif
24785
24786 #undef $ac_func
24787
24788 /* Override any gcc2 internal prototype to avoid an error.  */
24789 #ifdef __cplusplus
24790 extern "C"
24791 {
24792 #endif
24793 /* We use char because int might match the return type of a gcc2
24794    builtin and then its argument prototype would still apply.  */
24795 char $ac_func ();
24796 /* The GNU C library defines this for functions which it implements
24797     to always fail with ENOSYS.  Some functions are actually named
24798     something starting with __ and the normal name is an alias.  */
24799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24800 choke me
24801 #else
24802 char (*f) () = $ac_func;
24803 #endif
24804 #ifdef __cplusplus
24805 }
24806 #endif
24807
24808 int
24809 main ()
24810 {
24811 return f != $ac_func;
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 rm -f conftest.$ac_objext conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818   (eval $ac_link) 2>conftest.er1
24819   ac_status=$?
24820   grep -v '^ *+' conftest.er1 >conftest.err
24821   rm -f conftest.er1
24822   cat conftest.err >&5
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } &&
24825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827   (eval $ac_try) 2>&5
24828   ac_status=$?
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); }; } &&
24831          { ac_try='test -s conftest$ac_exeext'
24832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833   (eval $ac_try) 2>&5
24834   ac_status=$?
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); }; }; then
24837   eval "$as_ac_var=yes"
24838 else
24839   echo "$as_me: failed program was:" >&5
24840 sed 's/^/| /' conftest.$ac_ext >&5
24841
24842 eval "$as_ac_var=no"
24843 fi
24844 rm -f conftest.err conftest.$ac_objext \
24845       conftest$ac_exeext conftest.$ac_ext
24846 fi
24847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24849 if test `eval echo '${'$as_ac_var'}'` = yes; then
24850   cat >>confdefs.h <<_ACEOF
24851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24852 _ACEOF
24853  have_ceil=1
24854 fi
24855 done
24856
24857     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24858 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24859     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24860         echo "$as_me:$LINENO: result: yes" >&5
24861 echo "${ECHO_T}yes" >&6
24862     else
24863         echo "$as_me:$LINENO: result: no" >&5
24864 echo "${ECHO_T}no" >&6
24865         # not sure we should warn the user, crash, etc.
24866     fi
24867 fi
24868
24869
24870
24871 if test "$wxUSE_REGEX" != "no"; then
24872     cat >>confdefs.h <<\_ACEOF
24873 #define wxUSE_REGEX 1
24874 _ACEOF
24875
24876
24877     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24878         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24879 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24880         wxUSE_REGEX=builtin
24881     fi
24882
24883     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24884                         if test "${ac_cv_header_regex_h+set}" = set; then
24885   echo "$as_me:$LINENO: checking for regex.h" >&5
24886 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24887 if test "${ac_cv_header_regex_h+set}" = set; then
24888   echo $ECHO_N "(cached) $ECHO_C" >&6
24889 fi
24890 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24891 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24892 else
24893   # Is the header compilable?
24894 echo "$as_me:$LINENO: checking regex.h usability" >&5
24895 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24896 cat >conftest.$ac_ext <<_ACEOF
24897 /* confdefs.h.  */
24898 _ACEOF
24899 cat confdefs.h >>conftest.$ac_ext
24900 cat >>conftest.$ac_ext <<_ACEOF
24901 /* end confdefs.h.  */
24902 $ac_includes_default
24903 #include <regex.h>
24904 _ACEOF
24905 rm -f conftest.$ac_objext
24906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24907   (eval $ac_compile) 2>conftest.er1
24908   ac_status=$?
24909   grep -v '^ *+' conftest.er1 >conftest.err
24910   rm -f conftest.er1
24911   cat conftest.err >&5
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); } &&
24914          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916   (eval $ac_try) 2>&5
24917   ac_status=$?
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); }; } &&
24920          { ac_try='test -s conftest.$ac_objext'
24921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922   (eval $ac_try) 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); }; }; then
24926   ac_header_compiler=yes
24927 else
24928   echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930
24931 ac_header_compiler=no
24932 fi
24933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24935 echo "${ECHO_T}$ac_header_compiler" >&6
24936
24937 # Is the header present?
24938 echo "$as_me:$LINENO: checking regex.h presence" >&5
24939 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
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 #include <regex.h>
24947 _ACEOF
24948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24950   ac_status=$?
24951   grep -v '^ *+' conftest.er1 >conftest.err
24952   rm -f conftest.er1
24953   cat conftest.err >&5
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); } >/dev/null; then
24956   if test -s conftest.err; then
24957     ac_cpp_err=$ac_cxx_preproc_warn_flag
24958     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24959   else
24960     ac_cpp_err=
24961   fi
24962 else
24963   ac_cpp_err=yes
24964 fi
24965 if test -z "$ac_cpp_err"; then
24966   ac_header_preproc=yes
24967 else
24968   echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.$ac_ext >&5
24970
24971   ac_header_preproc=no
24972 fi
24973 rm -f conftest.err conftest.$ac_ext
24974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24975 echo "${ECHO_T}$ac_header_preproc" >&6
24976
24977 # So?  What about this header?
24978 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24979   yes:no: )
24980     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24981 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24982     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24983 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24984     ac_header_preproc=yes
24985     ;;
24986   no:yes:* )
24987     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24988 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24989     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
24990 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
24991     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24992 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24993     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
24994 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24995     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24996 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24997     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24998 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24999     (
25000       cat <<\_ASBOX
25001 ## ----------------------------------------- ##
25002 ## Report this to wx-dev@lists.wxwidgets.org ##
25003 ## ----------------------------------------- ##
25004 _ASBOX
25005     ) |
25006       sed "s/^/$as_me: WARNING:     /" >&2
25007     ;;
25008 esac
25009 echo "$as_me:$LINENO: checking for regex.h" >&5
25010 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25011 if test "${ac_cv_header_regex_h+set}" = set; then
25012   echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014   ac_cv_header_regex_h=$ac_header_preproc
25015 fi
25016 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25017 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25018
25019 fi
25020 if test $ac_cv_header_regex_h = yes; then
25021
25022
25023 for ac_func in regcomp re_search
25024 do
25025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25026 echo "$as_me:$LINENO: checking for $ac_func" >&5
25027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25028 if eval "test \"\${$as_ac_var+set}\" = set"; then
25029   echo $ECHO_N "(cached) $ECHO_C" >&6
25030 else
25031   cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25039 #define $ac_func innocuous_$ac_func
25040
25041 /* System header to define __stub macros and hopefully few prototypes,
25042     which can conflict with char $ac_func (); below.
25043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044     <limits.h> exists even on freestanding compilers.  */
25045
25046 #ifdef __STDC__
25047 # include <limits.h>
25048 #else
25049 # include <assert.h>
25050 #endif
25051
25052 #undef $ac_func
25053
25054 /* Override any gcc2 internal prototype to avoid an error.  */
25055 #ifdef __cplusplus
25056 extern "C"
25057 {
25058 #endif
25059 /* We use char because int might match the return type of a gcc2
25060    builtin and then its argument prototype would still apply.  */
25061 char $ac_func ();
25062 /* The GNU C library defines this for functions which it implements
25063     to always fail with ENOSYS.  Some functions are actually named
25064     something starting with __ and the normal name is an alias.  */
25065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25066 choke me
25067 #else
25068 char (*f) () = $ac_func;
25069 #endif
25070 #ifdef __cplusplus
25071 }
25072 #endif
25073
25074 int
25075 main ()
25076 {
25077 return f != $ac_func;
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest.$ac_objext conftest$ac_exeext
25083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25084   (eval $ac_link) 2>conftest.er1
25085   ac_status=$?
25086   grep -v '^ *+' conftest.er1 >conftest.err
25087   rm -f conftest.er1
25088   cat conftest.err >&5
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); } &&
25091          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093   (eval $ac_try) 2>&5
25094   ac_status=$?
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); }; } &&
25097          { ac_try='test -s conftest$ac_exeext'
25098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; }; then
25103   eval "$as_ac_var=yes"
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108 eval "$as_ac_var=no"
25109 fi
25110 rm -f conftest.err conftest.$ac_objext \
25111       conftest$ac_exeext conftest.$ac_ext
25112 fi
25113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25115 if test `eval echo '${'$as_ac_var'}'` = yes; then
25116   cat >>confdefs.h <<_ACEOF
25117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25118 _ACEOF
25119
25120 fi
25121 done
25122
25123 fi
25124
25125
25126
25127         if test "x$ac_cv_func_regcomp" != "xyes"; then
25128             if test "$wxUSE_REGEX" = "sys" ; then
25129                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25130 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25131    { (exit 1); exit 1; }; }
25132             else
25133                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25134 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25135                 wxUSE_REGEX=builtin
25136             fi
25137         else
25138                         wxUSE_REGEX=sys
25139                         cat >>confdefs.h <<\_ACEOF
25140 #define WX_NO_REGEX_ADVANCED 1
25141 _ACEOF
25142
25143         fi
25144     fi
25145 fi
25146
25147
25148 ZLIB_LINK=
25149 if test "$wxUSE_ZLIB" != "no" ; then
25150     cat >>confdefs.h <<\_ACEOF
25151 #define wxUSE_ZLIB 1
25152 _ACEOF
25153
25154
25155     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25156                                                 if test "$USE_DARWIN" = 1; then
25157             system_zlib_h_ok="yes"
25158         else
25159                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25160 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25161 if test "${ac_cv_header_zlib_h+set}" = set; then
25162   echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164   if test "$cross_compiling" = yes; then
25165                       unset ac_cv_header_zlib_h
25166
25167 else
25168   cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174
25175                         #include <zlib.h>
25176                         #include <stdio.h>
25177
25178                         int main()
25179                         {
25180                             FILE *f=fopen("conftestval", "w");
25181                             if (!f) exit(1);
25182                             fprintf(f, "%s",
25183                                     ZLIB_VERSION[0] == '1' &&
25184                                     (ZLIB_VERSION[2] > '1' ||
25185                                     (ZLIB_VERSION[2] == '1' &&
25186                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25187                             exit(0);
25188                         }
25189
25190 _ACEOF
25191 rm -f conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193   (eval $ac_link) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198   (eval $ac_try) 2>&5
25199   ac_status=$?
25200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); }; }; then
25202   ac_cv_header_zlib_h=`cat conftestval`
25203 else
25204   echo "$as_me: program exited with status $ac_status" >&5
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208 ( exit $ac_status )
25209 ac_cv_header_zlib_h=no
25210 fi
25211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25212 fi
25213
25214 fi
25215 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25216 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25217                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25218   echo "$as_me:$LINENO: checking for zlib.h" >&5
25219 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25220 if test "${ac_cv_header_zlib_h+set}" = set; then
25221   echo $ECHO_N "(cached) $ECHO_C" >&6
25222 fi
25223 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25224 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25225 else
25226   # Is the header compilable?
25227 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25228 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25229 cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h.  */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h.  */
25235 $ac_includes_default
25236 #include <zlib.h>
25237 _ACEOF
25238 rm -f conftest.$ac_objext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240   (eval $ac_compile) 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } &&
25247          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249   (eval $ac_try) 2>&5
25250   ac_status=$?
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); }; } &&
25253          { ac_try='test -s conftest.$ac_objext'
25254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255   (eval $ac_try) 2>&5
25256   ac_status=$?
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }; }; then
25259   ac_header_compiler=yes
25260 else
25261   echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25263
25264 ac_header_compiler=no
25265 fi
25266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25268 echo "${ECHO_T}$ac_header_compiler" >&6
25269
25270 # Is the header present?
25271 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25272 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25273 cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279 #include <zlib.h>
25280 _ACEOF
25281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25283   ac_status=$?
25284   grep -v '^ *+' conftest.er1 >conftest.err
25285   rm -f conftest.er1
25286   cat conftest.err >&5
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); } >/dev/null; then
25289   if test -s conftest.err; then
25290     ac_cpp_err=$ac_cxx_preproc_warn_flag
25291     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25292   else
25293     ac_cpp_err=
25294   fi
25295 else
25296   ac_cpp_err=yes
25297 fi
25298 if test -z "$ac_cpp_err"; then
25299   ac_header_preproc=yes
25300 else
25301   echo "$as_me: failed program was:" >&5
25302 sed 's/^/| /' conftest.$ac_ext >&5
25303
25304   ac_header_preproc=no
25305 fi
25306 rm -f conftest.err conftest.$ac_ext
25307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25308 echo "${ECHO_T}$ac_header_preproc" >&6
25309
25310 # So?  What about this header?
25311 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25312   yes:no: )
25313     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25314 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25315     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25316 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25317     ac_header_preproc=yes
25318     ;;
25319   no:yes:* )
25320     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25321 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25322     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25323 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25324     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25325 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25326     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25327 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25328     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25329 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25330     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25331 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25332     (
25333       cat <<\_ASBOX
25334 ## ----------------------------------------- ##
25335 ## Report this to wx-dev@lists.wxwidgets.org ##
25336 ## ----------------------------------------- ##
25337 _ASBOX
25338     ) |
25339       sed "s/^/$as_me: WARNING:     /" >&2
25340     ;;
25341 esac
25342 echo "$as_me:$LINENO: checking for zlib.h" >&5
25343 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25344 if test "${ac_cv_header_zlib_h+set}" = set; then
25345   echo $ECHO_N "(cached) $ECHO_C" >&6
25346 else
25347   ac_cv_header_zlib_h=$ac_header_preproc
25348 fi
25349 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25350 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25351
25352 fi
25353
25354
25355
25356             system_zlib_h_ok=$ac_cv_header_zlib_h
25357         fi
25358
25359         if test "$system_zlib_h_ok" = "yes"; then
25360             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25361 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25362 if test "${ac_cv_lib_z_deflate+set}" = set; then
25363   echo $ECHO_N "(cached) $ECHO_C" >&6
25364 else
25365   ac_check_lib_save_LIBS=$LIBS
25366 LIBS="-lz  $LIBS"
25367 cat >conftest.$ac_ext <<_ACEOF
25368 /* confdefs.h.  */
25369 _ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h.  */
25373
25374 /* Override any gcc2 internal prototype to avoid an error.  */
25375 #ifdef __cplusplus
25376 extern "C"
25377 #endif
25378 /* We use char because int might match the return type of a gcc2
25379    builtin and then its argument prototype would still apply.  */
25380 char deflate ();
25381 int
25382 main ()
25383 {
25384 deflate ();
25385   ;
25386   return 0;
25387 }
25388 _ACEOF
25389 rm -f conftest.$ac_objext conftest$ac_exeext
25390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25391   (eval $ac_link) 2>conftest.er1
25392   ac_status=$?
25393   grep -v '^ *+' conftest.er1 >conftest.err
25394   rm -f conftest.er1
25395   cat conftest.err >&5
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); } &&
25398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400   (eval $ac_try) 2>&5
25401   ac_status=$?
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); }; } &&
25404          { ac_try='test -s conftest$ac_exeext'
25405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406   (eval $ac_try) 2>&5
25407   ac_status=$?
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); }; }; then
25410   ac_cv_lib_z_deflate=yes
25411 else
25412   echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25414
25415 ac_cv_lib_z_deflate=no
25416 fi
25417 rm -f conftest.err conftest.$ac_objext \
25418       conftest$ac_exeext conftest.$ac_ext
25419 LIBS=$ac_check_lib_save_LIBS
25420 fi
25421 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25422 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25423 if test $ac_cv_lib_z_deflate = yes; then
25424   ZLIB_LINK=" -lz"
25425 fi
25426
25427         fi
25428
25429         if test "x$ZLIB_LINK" = "x" ; then
25430             if test "$wxUSE_ZLIB" = "sys" ; then
25431                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25432 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25433    { (exit 1); exit 1; }; }
25434             else
25435                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25436 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25437                 wxUSE_ZLIB=builtin
25438             fi
25439         else
25440                         wxUSE_ZLIB=sys
25441         fi
25442     fi
25443 fi
25444
25445
25446 PNG_LINK=
25447 if test "$wxUSE_LIBPNG" != "no" ; then
25448     cat >>confdefs.h <<\_ACEOF
25449 #define wxUSE_LIBPNG 1
25450 _ACEOF
25451
25452
25453     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25454         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25455 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25456         wxUSE_LIBPNG=sys
25457     fi
25458
25459                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25460         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25461 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25462         wxUSE_LIBPNG=builtin
25463     fi
25464
25465     if test "$wxUSE_MGL" != 1 ; then
25466                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25467                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25468 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25469 if test "${ac_cv_header_png_h+set}" = set; then
25470   echo $ECHO_N "(cached) $ECHO_C" >&6
25471 else
25472   if test "$cross_compiling" = yes; then
25473                       unset ac_cv_header_png_h
25474
25475 else
25476   cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25482
25483                         #include <png.h>
25484                         #include <stdio.h>
25485
25486                         int main()
25487                         {
25488                             FILE *f=fopen("conftestval", "w");
25489                             if (!f) exit(1);
25490                             fprintf(f, "%s",
25491                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25492                             exit(0);
25493                         }
25494
25495 _ACEOF
25496 rm -f conftest$ac_exeext
25497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25498   (eval $ac_link) 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503   (eval $ac_try) 2>&5
25504   ac_status=$?
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); }; }; then
25507   ac_cv_header_png_h=`cat conftestval`
25508 else
25509   echo "$as_me: program exited with status $ac_status" >&5
25510 echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513 ( exit $ac_status )
25514 ac_cv_header_png_h=no
25515 fi
25516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25517 fi
25518
25519 fi
25520 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25521 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25522             if test "${ac_cv_header_png_h+set}" = set; then
25523   echo "$as_me:$LINENO: checking for png.h" >&5
25524 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25525 if test "${ac_cv_header_png_h+set}" = set; then
25526   echo $ECHO_N "(cached) $ECHO_C" >&6
25527 fi
25528 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25529 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25530 else
25531   # Is the header compilable?
25532 echo "$as_me:$LINENO: checking png.h usability" >&5
25533 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 $ac_includes_default
25541 #include <png.h>
25542 _ACEOF
25543 rm -f conftest.$ac_objext
25544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25545   (eval $ac_compile) 2>conftest.er1
25546   ac_status=$?
25547   grep -v '^ *+' conftest.er1 >conftest.err
25548   rm -f conftest.er1
25549   cat conftest.err >&5
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); } &&
25552          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554   (eval $ac_try) 2>&5
25555   ac_status=$?
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); }; } &&
25558          { ac_try='test -s conftest.$ac_objext'
25559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560   (eval $ac_try) 2>&5
25561   ac_status=$?
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); }; }; then
25564   ac_header_compiler=yes
25565 else
25566   echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25568
25569 ac_header_compiler=no
25570 fi
25571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25573 echo "${ECHO_T}$ac_header_compiler" >&6
25574
25575 # Is the header present?
25576 echo "$as_me:$LINENO: checking png.h presence" >&5
25577 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25578 cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584 #include <png.h>
25585 _ACEOF
25586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25588   ac_status=$?
25589   grep -v '^ *+' conftest.er1 >conftest.err
25590   rm -f conftest.er1
25591   cat conftest.err >&5
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); } >/dev/null; then
25594   if test -s conftest.err; then
25595     ac_cpp_err=$ac_cxx_preproc_warn_flag
25596     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25597   else
25598     ac_cpp_err=
25599   fi
25600 else
25601   ac_cpp_err=yes
25602 fi
25603 if test -z "$ac_cpp_err"; then
25604   ac_header_preproc=yes
25605 else
25606   echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.$ac_ext >&5
25608
25609   ac_header_preproc=no
25610 fi
25611 rm -f conftest.err conftest.$ac_ext
25612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25613 echo "${ECHO_T}$ac_header_preproc" >&6
25614
25615 # So?  What about this header?
25616 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25617   yes:no: )
25618     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25619 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25620     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25621 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25622     ac_header_preproc=yes
25623     ;;
25624   no:yes:* )
25625     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25626 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25627     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25628 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25629     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25630 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25631     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25632 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25633     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25634 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25635     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25636 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25637     (
25638       cat <<\_ASBOX
25639 ## ----------------------------------------- ##
25640 ## Report this to wx-dev@lists.wxwidgets.org ##
25641 ## ----------------------------------------- ##
25642 _ASBOX
25643     ) |
25644       sed "s/^/$as_me: WARNING:     /" >&2
25645     ;;
25646 esac
25647 echo "$as_me:$LINENO: checking for png.h" >&5
25648 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25649 if test "${ac_cv_header_png_h+set}" = set; then
25650   echo $ECHO_N "(cached) $ECHO_C" >&6
25651 else
25652   ac_cv_header_png_h=$ac_header_preproc
25653 fi
25654 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25655 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25656
25657 fi
25658
25659
25660
25661             if test "$ac_cv_header_png_h" = "yes"; then
25662                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25663 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25664 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667   ac_check_lib_save_LIBS=$LIBS
25668 LIBS="-lpng -lz -lm $LIBS"
25669 cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h.  */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h.  */
25675
25676 /* Override any gcc2 internal prototype to avoid an error.  */
25677 #ifdef __cplusplus
25678 extern "C"
25679 #endif
25680 /* We use char because int might match the return type of a gcc2
25681    builtin and then its argument prototype would still apply.  */
25682 char png_check_sig ();
25683 int
25684 main ()
25685 {
25686 png_check_sig ();
25687   ;
25688   return 0;
25689 }
25690 _ACEOF
25691 rm -f conftest.$ac_objext conftest$ac_exeext
25692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25693   (eval $ac_link) 2>conftest.er1
25694   ac_status=$?
25695   grep -v '^ *+' conftest.er1 >conftest.err
25696   rm -f conftest.er1
25697   cat conftest.err >&5
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); } &&
25700          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702   (eval $ac_try) 2>&5
25703   ac_status=$?
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); }; } &&
25706          { ac_try='test -s conftest$ac_exeext'
25707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708   (eval $ac_try) 2>&5
25709   ac_status=$?
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); }; }; then
25712   ac_cv_lib_png_png_check_sig=yes
25713 else
25714   echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25716
25717 ac_cv_lib_png_png_check_sig=no
25718 fi
25719 rm -f conftest.err conftest.$ac_objext \
25720       conftest$ac_exeext conftest.$ac_ext
25721 LIBS=$ac_check_lib_save_LIBS
25722 fi
25723 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25724 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25725 if test $ac_cv_lib_png_png_check_sig = yes; then
25726   PNG_LINK=" -lpng -lz"
25727 fi
25728
25729             fi
25730
25731             if test "x$PNG_LINK" = "x" ; then
25732                 if test "$wxUSE_LIBPNG" = "sys" ; then
25733                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25734 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25735    { (exit 1); exit 1; }; }
25736                 else
25737                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25738 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25739                     wxUSE_LIBPNG=builtin
25740                 fi
25741             else
25742                                 wxUSE_LIBPNG=sys
25743             fi
25744         fi
25745     fi
25746
25747     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25748 fi
25749
25750
25751 JPEG_LINK=
25752 if test "$wxUSE_LIBJPEG" != "no" ; then
25753     cat >>confdefs.h <<\_ACEOF
25754 #define wxUSE_LIBJPEG 1
25755 _ACEOF
25756
25757
25758     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25759         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25760 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25761         wxUSE_LIBJPEG=sys
25762     fi
25763
25764     if test "$wxUSE_MGL" != 1 ; then
25765                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25766                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25767 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25768             if test "${ac_cv_header_jpeglib_h+set}" = set; then
25769   echo $ECHO_N "(cached) $ECHO_C" >&6
25770 else
25771   cat >conftest.$ac_ext <<_ACEOF
25772 /* confdefs.h.  */
25773 _ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h.  */
25777
25778                         #undef HAVE_STDLIB_H
25779                         #include <stdio.h>
25780                         #include <jpeglib.h>
25781
25782 int
25783 main ()
25784 {
25785
25786
25787   ;
25788   return 0;
25789 }
25790 _ACEOF
25791 rm -f conftest.$ac_objext
25792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25793   (eval $ac_compile) 2>conftest.er1
25794   ac_status=$?
25795   grep -v '^ *+' conftest.er1 >conftest.err
25796   rm -f conftest.er1
25797   cat conftest.err >&5
25798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799   (exit $ac_status); } &&
25800          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802   (eval $ac_try) 2>&5
25803   ac_status=$?
25804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805   (exit $ac_status); }; } &&
25806          { ac_try='test -s conftest.$ac_objext'
25807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808   (eval $ac_try) 2>&5
25809   ac_status=$?
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); }; }; then
25812   ac_cv_header_jpeglib_h=yes
25813 else
25814   echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25816
25817 ac_cv_header_jpeglib_h=no
25818
25819 fi
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25821
25822 fi
25823
25824             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25825 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25826
25827             if test "$ac_cv_header_jpeglib_h" = "yes"; then
25828                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25829 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25830 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25831   echo $ECHO_N "(cached) $ECHO_C" >&6
25832 else
25833   ac_check_lib_save_LIBS=$LIBS
25834 LIBS="-ljpeg  $LIBS"
25835 cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h.  */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h.  */
25841
25842 /* Override any gcc2 internal prototype to avoid an error.  */
25843 #ifdef __cplusplus
25844 extern "C"
25845 #endif
25846 /* We use char because int might match the return type of a gcc2
25847    builtin and then its argument prototype would still apply.  */
25848 char jpeg_read_header ();
25849 int
25850 main ()
25851 {
25852 jpeg_read_header ();
25853   ;
25854   return 0;
25855 }
25856 _ACEOF
25857 rm -f conftest.$ac_objext conftest$ac_exeext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25859   (eval $ac_link) 2>conftest.er1
25860   ac_status=$?
25861   grep -v '^ *+' conftest.er1 >conftest.err
25862   rm -f conftest.er1
25863   cat conftest.err >&5
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } &&
25866          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868   (eval $ac_try) 2>&5
25869   ac_status=$?
25870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); }; } &&
25872          { ac_try='test -s conftest$ac_exeext'
25873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874   (eval $ac_try) 2>&5
25875   ac_status=$?
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); }; }; then
25878   ac_cv_lib_jpeg_jpeg_read_header=yes
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883 ac_cv_lib_jpeg_jpeg_read_header=no
25884 fi
25885 rm -f conftest.err conftest.$ac_objext \
25886       conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25888 fi
25889 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25890 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25891 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25892   JPEG_LINK=" -ljpeg"
25893 fi
25894
25895             fi
25896
25897             if test "x$JPEG_LINK" = "x" ; then
25898                 if test "$wxUSE_LIBJPEG" = "sys" ; then
25899                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25900 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25901    { (exit 1); exit 1; }; }
25902                 else
25903                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25904 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25905                     wxUSE_LIBJPEG=builtin
25906                 fi
25907             else
25908                                 wxUSE_LIBJPEG=sys
25909             fi
25910         fi
25911     fi
25912 fi
25913
25914
25915 TIFF_LINK=
25916 TIFF_PREREQ_LINKS=-lm
25917 if test "$wxUSE_LIBTIFF" != "no" ; then
25918     cat >>confdefs.h <<\_ACEOF
25919 #define wxUSE_LIBTIFF 1
25920 _ACEOF
25921
25922
25923     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25924                         if test "$wxUSE_LIBJPEG" = "sys"; then
25925             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25926         fi
25927         if test "$wxUSE_ZLIB" = "sys"; then
25928             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25929         fi
25930         if test "${ac_cv_header_tiffio_h+set}" = set; then
25931   echo "$as_me:$LINENO: checking for tiffio.h" >&5
25932 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25933 if test "${ac_cv_header_tiffio_h+set}" = set; then
25934   echo $ECHO_N "(cached) $ECHO_C" >&6
25935 fi
25936 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25937 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25938 else
25939   # Is the header compilable?
25940 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25941 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25942 cat >conftest.$ac_ext <<_ACEOF
25943 /* confdefs.h.  */
25944 _ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h.  */
25948 $ac_includes_default
25949 #include <tiffio.h>
25950 _ACEOF
25951 rm -f conftest.$ac_objext
25952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25953   (eval $ac_compile) 2>conftest.er1
25954   ac_status=$?
25955   grep -v '^ *+' conftest.er1 >conftest.err
25956   rm -f conftest.er1
25957   cat conftest.err >&5
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); } &&
25960          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962   (eval $ac_try) 2>&5
25963   ac_status=$?
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); }; } &&
25966          { ac_try='test -s conftest.$ac_objext'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; }; then
25972   ac_header_compiler=yes
25973 else
25974   echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25976
25977 ac_header_compiler=no
25978 fi
25979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25981 echo "${ECHO_T}$ac_header_compiler" >&6
25982
25983 # Is the header present?
25984 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25985 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25986 cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 #include <tiffio.h>
25993 _ACEOF
25994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25996   ac_status=$?
25997   grep -v '^ *+' conftest.er1 >conftest.err
25998   rm -f conftest.er1
25999   cat conftest.err >&5
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); } >/dev/null; then
26002   if test -s conftest.err; then
26003     ac_cpp_err=$ac_cxx_preproc_warn_flag
26004     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26005   else
26006     ac_cpp_err=
26007   fi
26008 else
26009   ac_cpp_err=yes
26010 fi
26011 if test -z "$ac_cpp_err"; then
26012   ac_header_preproc=yes
26013 else
26014   echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26016
26017   ac_header_preproc=no
26018 fi
26019 rm -f conftest.err conftest.$ac_ext
26020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26021 echo "${ECHO_T}$ac_header_preproc" >&6
26022
26023 # So?  What about this header?
26024 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26025   yes:no: )
26026     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26027 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26028     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26029 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26030     ac_header_preproc=yes
26031     ;;
26032   no:yes:* )
26033     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26034 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26035     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26036 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26037     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26038 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26039     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26040 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26041     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26042 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26043     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26044 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26045     (
26046       cat <<\_ASBOX
26047 ## ----------------------------------------- ##
26048 ## Report this to wx-dev@lists.wxwidgets.org ##
26049 ## ----------------------------------------- ##
26050 _ASBOX
26051     ) |
26052       sed "s/^/$as_me: WARNING:     /" >&2
26053     ;;
26054 esac
26055 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26056 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26057 if test "${ac_cv_header_tiffio_h+set}" = set; then
26058   echo $ECHO_N "(cached) $ECHO_C" >&6
26059 else
26060   ac_cv_header_tiffio_h=$ac_header_preproc
26061 fi
26062 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26063 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26064
26065 fi
26066 if test $ac_cv_header_tiffio_h = yes; then
26067
26068                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26069 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26070 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073   ac_check_lib_save_LIBS=$LIBS
26074 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26075 cat >conftest.$ac_ext <<_ACEOF
26076 /* confdefs.h.  */
26077 _ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h.  */
26081
26082 /* Override any gcc2 internal prototype to avoid an error.  */
26083 #ifdef __cplusplus
26084 extern "C"
26085 #endif
26086 /* We use char because int might match the return type of a gcc2
26087    builtin and then its argument prototype would still apply.  */
26088 char TIFFError ();
26089 int
26090 main ()
26091 {
26092 TIFFError ();
26093   ;
26094   return 0;
26095 }
26096 _ACEOF
26097 rm -f conftest.$ac_objext conftest$ac_exeext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26099   (eval $ac_link) 2>conftest.er1
26100   ac_status=$?
26101   grep -v '^ *+' conftest.er1 >conftest.err
26102   rm -f conftest.er1
26103   cat conftest.err >&5
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); } &&
26106          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108   (eval $ac_try) 2>&5
26109   ac_status=$?
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); }; } &&
26112          { ac_try='test -s conftest$ac_exeext'
26113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114   (eval $ac_try) 2>&5
26115   ac_status=$?
26116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117   (exit $ac_status); }; }; then
26118   ac_cv_lib_tiff_TIFFError=yes
26119 else
26120   echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26122
26123 ac_cv_lib_tiff_TIFFError=no
26124 fi
26125 rm -f conftest.err conftest.$ac_objext \
26126       conftest$ac_exeext conftest.$ac_ext
26127 LIBS=$ac_check_lib_save_LIBS
26128 fi
26129 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26130 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26131 if test $ac_cv_lib_tiff_TIFFError = yes; then
26132   TIFF_LINK=" -ltiff"
26133 fi
26134
26135
26136
26137 fi
26138
26139
26140
26141         if test "x$TIFF_LINK" = "x" ; then
26142             if test "$wxUSE_LIBTIFF" = "sys" ; then
26143                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26144 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26145    { (exit 1); exit 1; }; }
26146             else
26147                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26148 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26149                 wxUSE_LIBTIFF=builtin
26150             fi
26151         else
26152                         wxUSE_LIBTIFF=sys
26153         fi
26154     fi
26155 fi
26156
26157
26158 if test "$wxUSE_WCHAR_T" != "yes"; then
26159     if test "$wxUSE_EXPAT" != "no"; then
26160         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26161 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26162         wxUSE_EXPAT=no
26163     fi
26164     if test "$wxUSE_XML" != "no"; then
26165         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26166 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26167         wxUSE_XML=no
26168     fi
26169 fi
26170
26171 if test "$wxUSE_EXPAT" != "no"; then
26172     wxUSE_XML=yes
26173     cat >>confdefs.h <<\_ACEOF
26174 #define wxUSE_EXPAT 1
26175 _ACEOF
26176
26177     cat >>confdefs.h <<\_ACEOF
26178 #define wxUSE_XML 1
26179 _ACEOF
26180
26181
26182     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26183         if test "${ac_cv_header_expat_h+set}" = set; then
26184   echo "$as_me:$LINENO: checking for expat.h" >&5
26185 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26186 if test "${ac_cv_header_expat_h+set}" = set; then
26187   echo $ECHO_N "(cached) $ECHO_C" >&6
26188 fi
26189 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26190 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26191 else
26192   # Is the header compilable?
26193 echo "$as_me:$LINENO: checking expat.h usability" >&5
26194 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 $ac_includes_default
26202 #include <expat.h>
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206   (eval $ac_compile) 2>conftest.er1
26207   ac_status=$?
26208   grep -v '^ *+' conftest.er1 >conftest.err
26209   rm -f conftest.er1
26210   cat conftest.err >&5
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); } &&
26213          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26215   (eval $ac_try) 2>&5
26216   ac_status=$?
26217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218   (exit $ac_status); }; } &&
26219          { ac_try='test -s conftest.$ac_objext'
26220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221   (eval $ac_try) 2>&5
26222   ac_status=$?
26223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224   (exit $ac_status); }; }; then
26225   ac_header_compiler=yes
26226 else
26227   echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26229
26230 ac_header_compiler=no
26231 fi
26232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26234 echo "${ECHO_T}$ac_header_compiler" >&6
26235
26236 # Is the header present?
26237 echo "$as_me:$LINENO: checking expat.h presence" >&5
26238 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245 #include <expat.h>
26246 _ACEOF
26247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } >/dev/null; then
26255   if test -s conftest.err; then
26256     ac_cpp_err=$ac_cxx_preproc_warn_flag
26257     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26258   else
26259     ac_cpp_err=
26260   fi
26261 else
26262   ac_cpp_err=yes
26263 fi
26264 if test -z "$ac_cpp_err"; then
26265   ac_header_preproc=yes
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270   ac_header_preproc=no
26271 fi
26272 rm -f conftest.err conftest.$ac_ext
26273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26274 echo "${ECHO_T}$ac_header_preproc" >&6
26275
26276 # So?  What about this header?
26277 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26278   yes:no: )
26279     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26280 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26281     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26282 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26283     ac_header_preproc=yes
26284     ;;
26285   no:yes:* )
26286     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26287 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26288     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26289 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26290     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26291 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26292     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26293 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26294     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26295 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26296     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26297 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26298     (
26299       cat <<\_ASBOX
26300 ## ----------------------------------------- ##
26301 ## Report this to wx-dev@lists.wxwidgets.org ##
26302 ## ----------------------------------------- ##
26303 _ASBOX
26304     ) |
26305       sed "s/^/$as_me: WARNING:     /" >&2
26306     ;;
26307 esac
26308 echo "$as_me:$LINENO: checking for expat.h" >&5
26309 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26310 if test "${ac_cv_header_expat_h+set}" = set; then
26311   echo $ECHO_N "(cached) $ECHO_C" >&6
26312 else
26313   ac_cv_header_expat_h=$ac_header_preproc
26314 fi
26315 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26316 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26317
26318 fi
26319 if test $ac_cv_header_expat_h = yes; then
26320   found_expat_h=1
26321 fi
26322
26323
26324         if test "x$found_expat_h" = "x1"; then
26325                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26326 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26327 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330
26331                 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h.  */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h.  */
26337 #include <expat.h>
26338 int
26339 main ()
26340 {
26341
26342   ;
26343   return 0;
26344 }
26345 _ACEOF
26346 rm -f conftest.$ac_objext
26347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26348   (eval $ac_compile) 2>conftest.er1
26349   ac_status=$?
26350   grep -v '^ *+' conftest.er1 >conftest.err
26351   rm -f conftest.er1
26352   cat conftest.err >&5
26353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); } &&
26355          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357   (eval $ac_try) 2>&5
26358   ac_status=$?
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); }; } &&
26361          { ac_try='test -s conftest.$ac_objext'
26362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363   (eval $ac_try) 2>&5
26364   ac_status=$?
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); }; }; then
26367   wx_cv_expat_is_not_broken=yes
26368 else
26369   echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26371
26372 wx_cv_expat_is_not_broken=no
26373
26374 fi
26375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26376
26377
26378 fi
26379 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26380 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26381             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26382                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26383 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26384 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26385   echo $ECHO_N "(cached) $ECHO_C" >&6
26386 else
26387   ac_check_lib_save_LIBS=$LIBS
26388 LIBS="-lexpat  $LIBS"
26389 cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h.  */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h.  */
26395
26396 /* Override any gcc2 internal prototype to avoid an error.  */
26397 #ifdef __cplusplus
26398 extern "C"
26399 #endif
26400 /* We use char because int might match the return type of a gcc2
26401    builtin and then its argument prototype would still apply.  */
26402 char XML_ParserCreate ();
26403 int
26404 main ()
26405 {
26406 XML_ParserCreate ();
26407   ;
26408   return 0;
26409 }
26410 _ACEOF
26411 rm -f conftest.$ac_objext conftest$ac_exeext
26412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26413   (eval $ac_link) 2>conftest.er1
26414   ac_status=$?
26415   grep -v '^ *+' conftest.er1 >conftest.err
26416   rm -f conftest.er1
26417   cat conftest.err >&5
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } &&
26420          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422   (eval $ac_try) 2>&5
26423   ac_status=$?
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); }; } &&
26426          { ac_try='test -s conftest$ac_exeext'
26427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428   (eval $ac_try) 2>&5
26429   ac_status=$?
26430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431   (exit $ac_status); }; }; then
26432   ac_cv_lib_expat_XML_ParserCreate=yes
26433 else
26434   echo "$as_me: failed program was:" >&5
26435 sed 's/^/| /' conftest.$ac_ext >&5
26436
26437 ac_cv_lib_expat_XML_ParserCreate=no
26438 fi
26439 rm -f conftest.err conftest.$ac_objext \
26440       conftest$ac_exeext conftest.$ac_ext
26441 LIBS=$ac_check_lib_save_LIBS
26442 fi
26443 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26444 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26445 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26446   EXPAT_LINK=" -lexpat"
26447 fi
26448
26449             fi
26450         fi
26451         if test "x$EXPAT_LINK" = "x" ; then
26452             if test "$wxUSE_EXPAT" = "sys" ; then
26453                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26454 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26455    { (exit 1); exit 1; }; }
26456             else
26457                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26458 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26459                 wxUSE_EXPAT=builtin
26460             fi
26461         else
26462                         wxUSE_EXPAT=sys
26463         fi
26464     fi
26465     if test "$wxUSE_EXPAT" = "builtin" ; then
26466
26467
26468 subdirs="$subdirs src/expat"
26469
26470     fi
26471 fi
26472
26473
26474
26475 if test "$wxUSE_LIBMSPACK" != "no"; then
26476     if test "${ac_cv_header_mspack_h+set}" = set; then
26477   echo "$as_me:$LINENO: checking for mspack.h" >&5
26478 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26479 if test "${ac_cv_header_mspack_h+set}" = set; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 fi
26482 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26483 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26484 else
26485   # Is the header compilable?
26486 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26487 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26488 cat >conftest.$ac_ext <<_ACEOF
26489 /* confdefs.h.  */
26490 _ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h.  */
26494 $ac_includes_default
26495 #include <mspack.h>
26496 _ACEOF
26497 rm -f conftest.$ac_objext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26499   (eval $ac_compile) 2>conftest.er1
26500   ac_status=$?
26501   grep -v '^ *+' conftest.er1 >conftest.err
26502   rm -f conftest.er1
26503   cat conftest.err >&5
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); } &&
26506          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508   (eval $ac_try) 2>&5
26509   ac_status=$?
26510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511   (exit $ac_status); }; } &&
26512          { ac_try='test -s conftest.$ac_objext'
26513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514   (eval $ac_try) 2>&5
26515   ac_status=$?
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); }; }; then
26518   ac_header_compiler=yes
26519 else
26520   echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26522
26523 ac_header_compiler=no
26524 fi
26525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26527 echo "${ECHO_T}$ac_header_compiler" >&6
26528
26529 # Is the header present?
26530 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26531 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26532 cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h.  */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h.  */
26538 #include <mspack.h>
26539 _ACEOF
26540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26542   ac_status=$?
26543   grep -v '^ *+' conftest.er1 >conftest.err
26544   rm -f conftest.er1
26545   cat conftest.err >&5
26546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547   (exit $ac_status); } >/dev/null; then
26548   if test -s conftest.err; then
26549     ac_cpp_err=$ac_cxx_preproc_warn_flag
26550     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26551   else
26552     ac_cpp_err=
26553   fi
26554 else
26555   ac_cpp_err=yes
26556 fi
26557 if test -z "$ac_cpp_err"; then
26558   ac_header_preproc=yes
26559 else
26560   echo "$as_me: failed program was:" >&5
26561 sed 's/^/| /' conftest.$ac_ext >&5
26562
26563   ac_header_preproc=no
26564 fi
26565 rm -f conftest.err conftest.$ac_ext
26566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26567 echo "${ECHO_T}$ac_header_preproc" >&6
26568
26569 # So?  What about this header?
26570 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26571   yes:no: )
26572     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26573 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26574     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26575 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26576     ac_header_preproc=yes
26577     ;;
26578   no:yes:* )
26579     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26580 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26581     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26582 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26583     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26584 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26585     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26586 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26587     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26588 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26589     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26590 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26591     (
26592       cat <<\_ASBOX
26593 ## ----------------------------------------- ##
26594 ## Report this to wx-dev@lists.wxwidgets.org ##
26595 ## ----------------------------------------- ##
26596 _ASBOX
26597     ) |
26598       sed "s/^/$as_me: WARNING:     /" >&2
26599     ;;
26600 esac
26601 echo "$as_me:$LINENO: checking for mspack.h" >&5
26602 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26603 if test "${ac_cv_header_mspack_h+set}" = set; then
26604   echo $ECHO_N "(cached) $ECHO_C" >&6
26605 else
26606   ac_cv_header_mspack_h=$ac_header_preproc
26607 fi
26608 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26609 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26610
26611 fi
26612 if test $ac_cv_header_mspack_h = yes; then
26613   found_mspack_h=1
26614 fi
26615
26616
26617     if test "x$found_mspack_h" = "x1"; then
26618         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26619 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26620 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26621   echo $ECHO_N "(cached) $ECHO_C" >&6
26622 else
26623   ac_check_lib_save_LIBS=$LIBS
26624 LIBS="-lmspack  $LIBS"
26625 cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631
26632 /* Override any gcc2 internal prototype to avoid an error.  */
26633 #ifdef __cplusplus
26634 extern "C"
26635 #endif
26636 /* We use char because int might match the return type of a gcc2
26637    builtin and then its argument prototype would still apply.  */
26638 char mspack_create_chm_decompressor ();
26639 int
26640 main ()
26641 {
26642 mspack_create_chm_decompressor ();
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 rm -f conftest.$ac_objext conftest$ac_exeext
26648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26649   (eval $ac_link) 2>conftest.er1
26650   ac_status=$?
26651   grep -v '^ *+' conftest.er1 >conftest.err
26652   rm -f conftest.er1
26653   cat conftest.err >&5
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); } &&
26656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658   (eval $ac_try) 2>&5
26659   ac_status=$?
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); }; } &&
26662          { ac_try='test -s conftest$ac_exeext'
26663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664   (eval $ac_try) 2>&5
26665   ac_status=$?
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); }; }; then
26668   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26674 fi
26675 rm -f conftest.err conftest.$ac_objext \
26676       conftest$ac_exeext conftest.$ac_ext
26677 LIBS=$ac_check_lib_save_LIBS
26678 fi
26679 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26680 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26681 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26682   MSPACK_LINK=" -lmspack"
26683 fi
26684
26685     fi
26686     if test "x$MSPACK_LINK" = "x" ; then
26687         wxUSE_LIBMSPACK=no
26688     fi
26689 fi
26690
26691 if test "$wxUSE_LIBMSPACK" != "no"; then
26692     cat >>confdefs.h <<\_ACEOF
26693 #define wxUSE_LIBMSPACK 1
26694 _ACEOF
26695
26696 fi
26697
26698
26699
26700 AFMINSTALL=
26701 WIN32INSTALL=
26702
26703 TOOLKIT=
26704 TOOLKIT_INCLUDE=
26705 WIDGET_SET=
26706
26707 if test "$USE_WIN32" = 1 ; then
26708
26709 for ac_header in w32api.h
26710 do
26711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26713   echo "$as_me:$LINENO: checking for $ac_header" >&5
26714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26716   echo $ECHO_N "(cached) $ECHO_C" >&6
26717 fi
26718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26720 else
26721   # Is the header compilable?
26722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26724 cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730 $ac_includes_default
26731 #include <$ac_header>
26732 _ACEOF
26733 rm -f conftest.$ac_objext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26735   (eval $ac_compile) 2>conftest.er1
26736   ac_status=$?
26737   grep -v '^ *+' conftest.er1 >conftest.err
26738   rm -f conftest.er1
26739   cat conftest.err >&5
26740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); } &&
26742          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744   (eval $ac_try) 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); }; } &&
26748          { ac_try='test -s conftest.$ac_objext'
26749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750   (eval $ac_try) 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   ac_header_compiler=yes
26755 else
26756   echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759 ac_header_compiler=no
26760 fi
26761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763 echo "${ECHO_T}$ac_header_compiler" >&6
26764
26765 # Is the header present?
26766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 #include <$ac_header>
26775 _ACEOF
26776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } >/dev/null; then
26784   if test -s conftest.err; then
26785     ac_cpp_err=$ac_cxx_preproc_warn_flag
26786     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26787   else
26788     ac_cpp_err=
26789   fi
26790 else
26791   ac_cpp_err=yes
26792 fi
26793 if test -z "$ac_cpp_err"; then
26794   ac_header_preproc=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799   ac_header_preproc=no
26800 fi
26801 rm -f conftest.err conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 echo "${ECHO_T}$ac_header_preproc" >&6
26804
26805 # So?  What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26807   yes:no: )
26808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26812     ac_header_preproc=yes
26813     ;;
26814   no:yes:* )
26815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26827     (
26828       cat <<\_ASBOX
26829 ## ----------------------------------------- ##
26830 ## Report this to wx-dev@lists.wxwidgets.org ##
26831 ## ----------------------------------------- ##
26832 _ASBOX
26833     ) |
26834       sed "s/^/$as_me: WARNING:     /" >&2
26835     ;;
26836 esac
26837 echo "$as_me:$LINENO: checking for $ac_header" >&5
26838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840   echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842   eval "$as_ac_Header=\$ac_header_preproc"
26843 fi
26844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26846
26847 fi
26848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849   cat >>confdefs.h <<_ACEOF
26850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26851 _ACEOF
26852
26853 fi
26854
26855 done
26856
26857     if test "${ac_cv_header_windows_h+set}" = set; then
26858   echo "$as_me:$LINENO: checking for windows.h" >&5
26859 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26860 if test "${ac_cv_header_windows_h+set}" = set; then
26861   echo $ECHO_N "(cached) $ECHO_C" >&6
26862 fi
26863 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26864 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26865 else
26866   # Is the header compilable?
26867 echo "$as_me:$LINENO: checking windows.h usability" >&5
26868 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26869 cat >conftest.$ac_ext <<_ACEOF
26870 /* confdefs.h.  */
26871 _ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h.  */
26875 $ac_includes_default
26876 #include <windows.h>
26877 _ACEOF
26878 rm -f conftest.$ac_objext
26879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26880   (eval $ac_compile) 2>conftest.er1
26881   ac_status=$?
26882   grep -v '^ *+' conftest.er1 >conftest.err
26883   rm -f conftest.er1
26884   cat conftest.err >&5
26885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); } &&
26887          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889   (eval $ac_try) 2>&5
26890   ac_status=$?
26891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892   (exit $ac_status); }; } &&
26893          { ac_try='test -s conftest.$ac_objext'
26894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895   (eval $ac_try) 2>&5
26896   ac_status=$?
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); }; }; then
26899   ac_header_compiler=yes
26900 else
26901   echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26903
26904 ac_header_compiler=no
26905 fi
26906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26908 echo "${ECHO_T}$ac_header_compiler" >&6
26909
26910 # Is the header present?
26911 echo "$as_me:$LINENO: checking windows.h presence" >&5
26912 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26913 cat >conftest.$ac_ext <<_ACEOF
26914 /* confdefs.h.  */
26915 _ACEOF
26916 cat confdefs.h >>conftest.$ac_ext
26917 cat >>conftest.$ac_ext <<_ACEOF
26918 /* end confdefs.h.  */
26919 #include <windows.h>
26920 _ACEOF
26921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } >/dev/null; then
26929   if test -s conftest.err; then
26930     ac_cpp_err=$ac_cxx_preproc_warn_flag
26931     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26932   else
26933     ac_cpp_err=
26934   fi
26935 else
26936   ac_cpp_err=yes
26937 fi
26938 if test -z "$ac_cpp_err"; then
26939   ac_header_preproc=yes
26940 else
26941   echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944   ac_header_preproc=no
26945 fi
26946 rm -f conftest.err conftest.$ac_ext
26947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26948 echo "${ECHO_T}$ac_header_preproc" >&6
26949
26950 # So?  What about this header?
26951 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26952   yes:no: )
26953     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26954 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26955     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26956 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26957     ac_header_preproc=yes
26958     ;;
26959   no:yes:* )
26960     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26961 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
26962     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
26963 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
26964     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26965 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26966     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
26967 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26968     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26969 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
26970     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26971 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
26972     (
26973       cat <<\_ASBOX
26974 ## ----------------------------------------- ##
26975 ## Report this to wx-dev@lists.wxwidgets.org ##
26976 ## ----------------------------------------- ##
26977 _ASBOX
26978     ) |
26979       sed "s/^/$as_me: WARNING:     /" >&2
26980     ;;
26981 esac
26982 echo "$as_me:$LINENO: checking for windows.h" >&5
26983 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26984 if test "${ac_cv_header_windows_h+set}" = set; then
26985   echo $ECHO_N "(cached) $ECHO_C" >&6
26986 else
26987   ac_cv_header_windows_h=$ac_header_preproc
26988 fi
26989 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26990 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26991
26992 fi
26993 if test $ac_cv_header_windows_h = yes; then
26994   :
26995 else
26996
26997         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26998 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26999    { (exit 1); exit 1; }; }
27000
27001 fi
27002
27003
27004
27005             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27006
27007     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27008         LIBS="$LIBS -loleacc"
27009     fi
27010
27011     case "${host}" in
27012         *-*-cygwin* )
27013                         LIBS="$LIBS -lkernel32 -luser32"
27014     esac
27015
27016         if test "$wxUSE_ODBC" = "sys" ; then
27017         wxUSE_ODBC = "yes"
27018     fi
27019     if test "$wxUSE_ODBC" = "yes" ; then
27020         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27021         cat >>confdefs.h <<\_ACEOF
27022 #define wxUSE_ODBC 1
27023 _ACEOF
27024
27025     fi
27026
27027         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27028     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27029
27030                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27031
27032         WIN32INSTALL=win32install
27033 fi
27034
27035 if test "$wxUSE_GUI" = "yes"; then
27036     USE_GUI=1
27037
27038     GUI_TK_LIBRARY=
27039
27040     WXGTK12=
27041     WXGTK127=
27042     WXGTK20=
27043     WXGPE=
27044
27045     if test "$wxUSE_COCOA" = 1 ; then
27046         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27047             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27048 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27049             wxUSE_PRINTING_ARCHITECTURE=no
27050         fi
27051         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27052             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27053 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27054             wxUSE_DRAG_AND_DROP=no
27055         fi
27056         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27057             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27058 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27059             wxUSE_DRAGIMAGE=no
27060         fi
27061     fi
27062
27063     if test "$wxUSE_MSW" = 1 ; then
27064         TOOLKIT=MSW
27065         GUIDIST=MSW_DIST
27066
27067                 case "${host}" in
27068             *-*-mingw32* )
27069                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27070         esac
27071     fi
27072
27073     if test "$wxUSE_GTK" = 1; then
27074                 ac_ext=c
27075 ac_cpp='$CPP $CPPFLAGS'
27076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27079
27080
27081         echo "$as_me:$LINENO: checking for GTK+ version" >&5
27082 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27083
27084         gtk_version_cached=1
27085         if test "${wx_cv_lib_gtk+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088
27089                                                 gtk_version_cached=0
27090                 echo "$as_me:$LINENO: result: " >&5
27091 echo "${ECHO_T}" >&6
27092
27093                                                 GTK_MODULES=
27094                 if test "$wxUSE_THREADS" = "yes"; then
27095                     GTK_MODULES=gthread
27096                 fi
27097
27098                                 wx_cv_lib_gtk=
27099                 if test "x$wxGTK_VERSION" != "x1"
27100                 then
27101                                                                                 case "${host}" in
27102                         *-*-solaris2* )
27103                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27104                             enable_gtktest=no
27105                             fi
27106                     esac
27107
27108                     # Check whether --enable-gtktest or --disable-gtktest was given.
27109 if test "${enable_gtktest+set}" = set; then
27110   enableval="$enable_gtktest"
27111
27112 else
27113   enable_gtktest=yes
27114 fi;
27115
27116   pkg_config_args=gtk+-2.0
27117   for module in . $GTK_MODULES
27118   do
27119       case "$module" in
27120          gthread)
27121              pkg_config_args="$pkg_config_args gthread-2.0"
27122          ;;
27123       esac
27124   done
27125
27126   no_gtk=""
27127
27128   # Extract the first word of "pkg-config", so it can be a program name with args.
27129 set dummy pkg-config; ac_word=$2
27130 echo "$as_me:$LINENO: checking for $ac_word" >&5
27131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27132 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27133   echo $ECHO_N "(cached) $ECHO_C" >&6
27134 else
27135   case $PKG_CONFIG in
27136   [\\/]* | ?:[\\/]*)
27137   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27138   ;;
27139   *)
27140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27141 for as_dir in $PATH
27142 do
27143   IFS=$as_save_IFS
27144   test -z "$as_dir" && as_dir=.
27145   for ac_exec_ext in '' $ac_executable_extensions; do
27146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27147     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27149     break 2
27150   fi
27151 done
27152 done
27153
27154   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27155   ;;
27156 esac
27157 fi
27158 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27159
27160 if test -n "$PKG_CONFIG"; then
27161   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27162 echo "${ECHO_T}$PKG_CONFIG" >&6
27163 else
27164   echo "$as_me:$LINENO: result: no" >&5
27165 echo "${ECHO_T}no" >&6
27166 fi
27167
27168
27169   if test x$PKG_CONFIG != xno ; then
27170     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27171       :
27172     else
27173       echo "*** pkg-config too old; version 0.7 or better required."
27174       no_gtk=yes
27175       PKG_CONFIG=no
27176     fi
27177   else
27178     no_gtk=yes
27179   fi
27180
27181   min_gtk_version=2.0.0
27182   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27183 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27184
27185   if test x$PKG_CONFIG != xno ; then
27186     ## don't try to run the test against uninstalled libtool libs
27187     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27188           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27189           enable_gtktest=no
27190     fi
27191
27192     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27193           :
27194     else
27195           no_gtk=yes
27196     fi
27197   fi
27198
27199   if test x"$no_gtk" = x ; then
27200     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27201     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27202     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27203            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27204     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27205            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27206     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27207            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27208     if test "x$enable_gtktest" = "xyes" ; then
27209       ac_save_CFLAGS="$CFLAGS"
27210       ac_save_LIBS="$LIBS"
27211       CFLAGS="$CFLAGS $GTK_CFLAGS"
27212       LIBS="$GTK_LIBS $LIBS"
27213       rm -f conf.gtktest
27214       if test "$cross_compiling" = yes; then
27215   echo $ac_n "cross compiling; assumed OK... $ac_c"
27216 else
27217   cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223
27224 #include <gtk/gtk.h>
27225 #include <stdio.h>
27226 #include <stdlib.h>
27227
27228 int
27229 main ()
27230 {
27231   int major, minor, micro;
27232   char *tmp_version;
27233
27234   system ("touch conf.gtktest");
27235
27236   /* HP/UX 9 (%@#!) writes to sscanf strings */
27237   tmp_version = g_strdup("$min_gtk_version");
27238   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27239      printf("%s, bad version string\n", "$min_gtk_version");
27240      exit(1);
27241    }
27242
27243   if ((gtk_major_version != $gtk_config_major_version) ||
27244       (gtk_minor_version != $gtk_config_minor_version) ||
27245       (gtk_micro_version != $gtk_config_micro_version))
27246     {
27247       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27248              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27249              gtk_major_version, gtk_minor_version, gtk_micro_version);
27250       printf ("*** was found! If pkg-config was correct, then it is best\n");
27251       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27252       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27253       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27254       printf("*** required on your system.\n");
27255       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27256       printf("*** to point to the correct configuration files\n");
27257     }
27258   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27259            (gtk_minor_version != GTK_MINOR_VERSION) ||
27260            (gtk_micro_version != GTK_MICRO_VERSION))
27261     {
27262       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27263              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27264       printf("*** library (version %d.%d.%d)\n",
27265              gtk_major_version, gtk_minor_version, gtk_micro_version);
27266     }
27267   else
27268     {
27269       if ((gtk_major_version > major) ||
27270         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27271         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27272       {
27273         return 0;
27274        }
27275      else
27276       {
27277         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27278                gtk_major_version, gtk_minor_version, gtk_micro_version);
27279         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27280                major, minor, micro);
27281         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27282         printf("***\n");
27283         printf("*** If you have already installed a sufficiently new version, this error\n");
27284         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27285         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27286         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27287         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27288         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27289         printf("*** so that the correct libraries are found at run-time))\n");
27290       }
27291     }
27292   return 1;
27293 }
27294
27295 _ACEOF
27296 rm -f conftest$ac_exeext
27297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27298   (eval $ac_link) 2>&5
27299   ac_status=$?
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; }; then
27307   :
27308 else
27309   echo "$as_me: program exited with status $ac_status" >&5
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313 ( exit $ac_status )
27314 no_gtk=yes
27315 fi
27316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27317 fi
27318        CFLAGS="$ac_save_CFLAGS"
27319        LIBS="$ac_save_LIBS"
27320      fi
27321   fi
27322   if test "x$no_gtk" = x ; then
27323      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27324 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27325      wx_cv_lib_gtk=2.0
27326   else
27327      echo "$as_me:$LINENO: result: no" >&5
27328 echo "${ECHO_T}no" >&6
27329      if test "$PKG_CONFIG" = "no" ; then
27330        echo "*** A new enough version of pkg-config was not found."
27331        echo "*** See http://pkgconfig.sourceforge.net"
27332      else
27333        if test -f conf.gtktest ; then
27334         :
27335        else
27336           echo "*** Could not run GTK+ test program, checking why..."
27337           ac_save_CFLAGS="$CFLAGS"
27338           ac_save_LIBS="$LIBS"
27339           CFLAGS="$CFLAGS $GTK_CFLAGS"
27340           LIBS="$LIBS $GTK_LIBS"
27341           cat >conftest.$ac_ext <<_ACEOF
27342 /* confdefs.h.  */
27343 _ACEOF
27344 cat confdefs.h >>conftest.$ac_ext
27345 cat >>conftest.$ac_ext <<_ACEOF
27346 /* end confdefs.h.  */
27347
27348 #include <gtk/gtk.h>
27349 #include <stdio.h>
27350
27351 int
27352 main ()
27353 {
27354  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27361   (eval $ac_link) 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } &&
27368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370   (eval $ac_try) 2>&5
27371   ac_status=$?
27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); }; } &&
27374          { ac_try='test -s conftest$ac_exeext'
27375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376   (eval $ac_try) 2>&5
27377   ac_status=$?
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); }; }; then
27380    echo "*** The test program compiled, but did not run. This usually means"
27381           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27382           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27383           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27384           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27385           echo "*** is required on your system"
27386           echo "***"
27387           echo "*** If you have an old version installed, it is best to remove it, although"
27388           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27389 else
27390   echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27392
27393  echo "*** The test program failed to compile or link. See the file config.log for the"
27394           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27395 fi
27396 rm -f conftest.err conftest.$ac_objext \
27397       conftest$ac_exeext conftest.$ac_ext
27398           CFLAGS="$ac_save_CFLAGS"
27399           LIBS="$ac_save_LIBS"
27400        fi
27401      fi
27402      GTK_CFLAGS=""
27403      GTK_LIBS=""
27404      :
27405   fi
27406
27407
27408   rm -f conf.gtktest
27409
27410
27411                                         case "${host}" in
27412                         *-*-solaris2* )
27413                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27414                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27415                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27416                             fi
27417                                                         if test "$wxUSE_SHARED" != "yes"; then
27418                                 GTK_LIBS="$GTK_LIBS -lX11"
27419                             fi
27420                     esac
27421                 fi
27422
27423                                 if test -z "$wx_cv_lib_gtk"; then
27424                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27425
27426 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27427 if test "${with_gtk_prefix+set}" = set; then
27428   withval="$with_gtk_prefix"
27429   gtk_config_prefix="$withval"
27430 else
27431   gtk_config_prefix=""
27432 fi;
27433
27434 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27435 if test "${with_gtk_exec_prefix+set}" = set; then
27436   withval="$with_gtk_exec_prefix"
27437   gtk_config_exec_prefix="$withval"
27438 else
27439   gtk_config_exec_prefix=""
27440 fi;
27441 # Check whether --enable-gtktest or --disable-gtktest was given.
27442 if test "${enable_gtktest+set}" = set; then
27443   enableval="$enable_gtktest"
27444
27445 else
27446   enable_gtktest=yes
27447 fi;
27448
27449   for module in . $GTK_MODULES
27450   do
27451       case "$module" in
27452          gthread)
27453              gtk_config_args="$gtk_config_args gthread"
27454          ;;
27455       esac
27456   done
27457
27458   if test x$gtk_config_exec_prefix != x ; then
27459      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27460      if test x${GTK_CONFIG+set} != xset ; then
27461         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27462      fi
27463   fi
27464   if test x$gtk_config_prefix != x ; then
27465      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27466      if test x${GTK_CONFIG+set} != xset ; then
27467         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27468      fi
27469   fi
27470
27471   # Extract the first word of "gtk-config", so it can be a program name with args.
27472 set dummy gtk-config; ac_word=$2
27473 echo "$as_me:$LINENO: checking for $ac_word" >&5
27474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27475 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27476   echo $ECHO_N "(cached) $ECHO_C" >&6
27477 else
27478   case $GTK_CONFIG in
27479   [\\/]* | ?:[\\/]*)
27480   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27481   ;;
27482   *)
27483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27484 for as_dir in $PATH
27485 do
27486   IFS=$as_save_IFS
27487   test -z "$as_dir" && as_dir=.
27488   for ac_exec_ext in '' $ac_executable_extensions; do
27489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27490     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27492     break 2
27493   fi
27494 done
27495 done
27496
27497   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27498   ;;
27499 esac
27500 fi
27501 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27502
27503 if test -n "$GTK_CONFIG"; then
27504   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27505 echo "${ECHO_T}$GTK_CONFIG" >&6
27506 else
27507   echo "$as_me:$LINENO: result: no" >&5
27508 echo "${ECHO_T}no" >&6
27509 fi
27510
27511   min_gtk_version=1.2.7
27512   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27513 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27514   no_gtk=""
27515   if test "$GTK_CONFIG" = "no" ; then
27516     no_gtk=yes
27517   else
27518     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27519     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27520     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27521            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27522     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27523            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27524     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27525            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27526     if test "x$enable_gtktest" = "xyes" ; then
27527       ac_save_CFLAGS="$CFLAGS"
27528       ac_save_LIBS="$LIBS"
27529       CFLAGS="$CFLAGS $GTK_CFLAGS"
27530       LIBS="$GTK_LIBS $LIBS"
27531       rm -f conf.gtktest
27532       if test "$cross_compiling" = yes; then
27533   echo $ac_n "cross compiling; assumed OK... $ac_c"
27534 else
27535   cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h.  */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h.  */
27541
27542 #include <gtk/gtk.h>
27543 #include <stdio.h>
27544 #include <stdlib.h>
27545
27546 int
27547 main ()
27548 {
27549   int major, minor, micro;
27550   char *tmp_version;
27551
27552   system ("touch conf.gtktest");
27553
27554   /* HP/UX 9 (%@#!) writes to sscanf strings */
27555   tmp_version = g_strdup("$min_gtk_version");
27556   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27557      printf("%s, bad version string\n", "$min_gtk_version");
27558      exit(1);
27559    }
27560
27561   if ((gtk_major_version != $gtk_config_major_version) ||
27562       (gtk_minor_version != $gtk_config_minor_version) ||
27563       (gtk_micro_version != $gtk_config_micro_version))
27564     {
27565       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27566              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27567              gtk_major_version, gtk_minor_version, gtk_micro_version);
27568       printf ("*** was found! If gtk-config was correct, then it is best\n");
27569       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27570       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27571       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27572       printf("*** required on your system.\n");
27573       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27574       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27575       printf("*** before re-running configure\n");
27576     }
27577 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27578   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27579            (gtk_minor_version != GTK_MINOR_VERSION) ||
27580            (gtk_micro_version != GTK_MICRO_VERSION))
27581     {
27582       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27583              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27584       printf("*** library (version %d.%d.%d)\n",
27585              gtk_major_version, gtk_minor_version, gtk_micro_version);
27586     }
27587 #endif /* defined (GTK_MAJOR_VERSION) ... */
27588   else
27589     {
27590       if ((gtk_major_version > major) ||
27591         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27592         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27593       {
27594         return 0;
27595        }
27596      else
27597       {
27598         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27599                gtk_major_version, gtk_minor_version, gtk_micro_version);
27600         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27601                major, minor, micro);
27602         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27603         printf("***\n");
27604         printf("*** If you have already installed a sufficiently new version, this error\n");
27605         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27606         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27607         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27608         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27609         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27610         printf("*** so that the correct libraries are found at run-time))\n");
27611       }
27612     }
27613   return 1;
27614 }
27615
27616 _ACEOF
27617 rm -f conftest$ac_exeext
27618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27619   (eval $ac_link) 2>&5
27620   ac_status=$?
27621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624   (eval $ac_try) 2>&5
27625   ac_status=$?
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); }; }; then
27628   :
27629 else
27630   echo "$as_me: program exited with status $ac_status" >&5
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634 ( exit $ac_status )
27635 no_gtk=yes
27636 fi
27637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27638 fi
27639        CFLAGS="$ac_save_CFLAGS"
27640        LIBS="$ac_save_LIBS"
27641      fi
27642   fi
27643   if test "x$no_gtk" = x ; then
27644      echo "$as_me:$LINENO: result: yes" >&5
27645 echo "${ECHO_T}yes" >&6
27646      wx_cv_lib_gtk=1.2.7
27647   else
27648      echo "$as_me:$LINENO: result: no" >&5
27649 echo "${ECHO_T}no" >&6
27650      if test "$GTK_CONFIG" = "no" ; then
27651        echo "*** The gtk-config script installed by GTK could not be found"
27652        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27653        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27654        echo "*** full path to gtk-config."
27655      else
27656        if test -f conf.gtktest ; then
27657         :
27658        else
27659           echo "*** Could not run GTK test program, checking why..."
27660           CFLAGS="$CFLAGS $GTK_CFLAGS"
27661           LIBS="$LIBS $GTK_LIBS"
27662           cat >conftest.$ac_ext <<_ACEOF
27663 /* confdefs.h.  */
27664 _ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h.  */
27668
27669 #include <gtk/gtk.h>
27670 #include <stdio.h>
27671
27672 int
27673 main ()
27674 {
27675  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 rm -f conftest.$ac_objext conftest$ac_exeext
27681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27682   (eval $ac_link) 2>conftest.er1
27683   ac_status=$?
27684   grep -v '^ *+' conftest.er1 >conftest.err
27685   rm -f conftest.er1
27686   cat conftest.err >&5
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); } &&
27689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691   (eval $ac_try) 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); }; } &&
27695          { ac_try='test -s conftest$ac_exeext'
27696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697   (eval $ac_try) 2>&5
27698   ac_status=$?
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); }; }; then
27701    echo "*** The test program compiled, but did not run. This usually means"
27702           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27703           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27704           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27705           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27706           echo "*** is required on your system"
27707           echo "***"
27708           echo "*** If you have an old version installed, it is best to remove it, although"
27709           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27710           echo "***"
27711           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27712           echo "*** came with the system with the command"
27713           echo "***"
27714           echo "***    rpm --erase --nodeps gtk gtk-devel"
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719  echo "*** The test program failed to compile or link. See the file config.log for the"
27720           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27721           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27722           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27723 fi
27724 rm -f conftest.err conftest.$ac_objext \
27725       conftest$ac_exeext conftest.$ac_ext
27726           CFLAGS="$ac_save_CFLAGS"
27727           LIBS="$ac_save_LIBS"
27728        fi
27729      fi
27730      GTK_CFLAGS=""
27731      GTK_LIBS=""
27732      :
27733   fi
27734
27735
27736   rm -f conf.gtktest
27737
27738
27739                         if test -z "$wx_cv_lib_gtk"; then
27740
27741 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27742 if test "${with_gtk_prefix+set}" = set; then
27743   withval="$with_gtk_prefix"
27744   gtk_config_prefix="$withval"
27745 else
27746   gtk_config_prefix=""
27747 fi;
27748
27749 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27750 if test "${with_gtk_exec_prefix+set}" = set; then
27751   withval="$with_gtk_exec_prefix"
27752   gtk_config_exec_prefix="$withval"
27753 else
27754   gtk_config_exec_prefix=""
27755 fi;
27756 # Check whether --enable-gtktest or --disable-gtktest was given.
27757 if test "${enable_gtktest+set}" = set; then
27758   enableval="$enable_gtktest"
27759
27760 else
27761   enable_gtktest=yes
27762 fi;
27763
27764   for module in . $GTK_MODULES
27765   do
27766       case "$module" in
27767          gthread)
27768              gtk_config_args="$gtk_config_args gthread"
27769          ;;
27770       esac
27771   done
27772
27773   if test x$gtk_config_exec_prefix != x ; then
27774      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27775      if test x${GTK_CONFIG+set} != xset ; then
27776         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27777      fi
27778   fi
27779   if test x$gtk_config_prefix != x ; then
27780      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27781      if test x${GTK_CONFIG+set} != xset ; then
27782         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27783      fi
27784   fi
27785
27786   # Extract the first word of "gtk-config", so it can be a program name with args.
27787 set dummy gtk-config; ac_word=$2
27788 echo "$as_me:$LINENO: checking for $ac_word" >&5
27789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27790 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27791   echo $ECHO_N "(cached) $ECHO_C" >&6
27792 else
27793   case $GTK_CONFIG in
27794   [\\/]* | ?:[\\/]*)
27795   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27796   ;;
27797   *)
27798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27799 for as_dir in $PATH
27800 do
27801   IFS=$as_save_IFS
27802   test -z "$as_dir" && as_dir=.
27803   for ac_exec_ext in '' $ac_executable_extensions; do
27804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27805     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27807     break 2
27808   fi
27809 done
27810 done
27811
27812   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27813   ;;
27814 esac
27815 fi
27816 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27817
27818 if test -n "$GTK_CONFIG"; then
27819   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27820 echo "${ECHO_T}$GTK_CONFIG" >&6
27821 else
27822   echo "$as_me:$LINENO: result: no" >&5
27823 echo "${ECHO_T}no" >&6
27824 fi
27825
27826   min_gtk_version=1.2.3
27827   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27828 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27829   no_gtk=""
27830   if test "$GTK_CONFIG" = "no" ; then
27831     no_gtk=yes
27832   else
27833     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27834     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27835     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27836            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27837     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27838            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27839     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27840            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27841     if test "x$enable_gtktest" = "xyes" ; then
27842       ac_save_CFLAGS="$CFLAGS"
27843       ac_save_LIBS="$LIBS"
27844       CFLAGS="$CFLAGS $GTK_CFLAGS"
27845       LIBS="$GTK_LIBS $LIBS"
27846       rm -f conf.gtktest
27847       if test "$cross_compiling" = yes; then
27848   echo $ac_n "cross compiling; assumed OK... $ac_c"
27849 else
27850   cat >conftest.$ac_ext <<_ACEOF
27851 /* confdefs.h.  */
27852 _ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h.  */
27856
27857 #include <gtk/gtk.h>
27858 #include <stdio.h>
27859 #include <stdlib.h>
27860
27861 int
27862 main ()
27863 {
27864   int major, minor, micro;
27865   char *tmp_version;
27866
27867   system ("touch conf.gtktest");
27868
27869   /* HP/UX 9 (%@#!) writes to sscanf strings */
27870   tmp_version = g_strdup("$min_gtk_version");
27871   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27872      printf("%s, bad version string\n", "$min_gtk_version");
27873      exit(1);
27874    }
27875
27876   if ((gtk_major_version != $gtk_config_major_version) ||
27877       (gtk_minor_version != $gtk_config_minor_version) ||
27878       (gtk_micro_version != $gtk_config_micro_version))
27879     {
27880       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27881              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27882              gtk_major_version, gtk_minor_version, gtk_micro_version);
27883       printf ("*** was found! If gtk-config was correct, then it is best\n");
27884       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27885       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27886       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27887       printf("*** required on your system.\n");
27888       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27889       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27890       printf("*** before re-running configure\n");
27891     }
27892 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27893   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27894            (gtk_minor_version != GTK_MINOR_VERSION) ||
27895            (gtk_micro_version != GTK_MICRO_VERSION))
27896     {
27897       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27898              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27899       printf("*** library (version %d.%d.%d)\n",
27900              gtk_major_version, gtk_minor_version, gtk_micro_version);
27901     }
27902 #endif /* defined (GTK_MAJOR_VERSION) ... */
27903   else
27904     {
27905       if ((gtk_major_version > major) ||
27906         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27907         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27908       {
27909         return 0;
27910        }
27911      else
27912       {
27913         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27914                gtk_major_version, gtk_minor_version, gtk_micro_version);
27915         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27916                major, minor, micro);
27917         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27918         printf("***\n");
27919         printf("*** If you have already installed a sufficiently new version, this error\n");
27920         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27921         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27922         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27923         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27924         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27925         printf("*** so that the correct libraries are found at run-time))\n");
27926       }
27927     }
27928   return 1;
27929 }
27930
27931 _ACEOF
27932 rm -f conftest$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934   (eval $ac_link) 2>&5
27935   ac_status=$?
27936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939   (eval $ac_try) 2>&5
27940   ac_status=$?
27941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942   (exit $ac_status); }; }; then
27943   :
27944 else
27945   echo "$as_me: program exited with status $ac_status" >&5
27946 echo "$as_me: failed program was:" >&5
27947 sed 's/^/| /' conftest.$ac_ext >&5
27948
27949 ( exit $ac_status )
27950 no_gtk=yes
27951 fi
27952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27953 fi
27954        CFLAGS="$ac_save_CFLAGS"
27955        LIBS="$ac_save_LIBS"
27956      fi
27957   fi
27958   if test "x$no_gtk" = x ; then
27959      echo "$as_me:$LINENO: result: yes" >&5
27960 echo "${ECHO_T}yes" >&6
27961      wx_cv_lib_gtk=1.2.3
27962   else
27963      echo "$as_me:$LINENO: result: no" >&5
27964 echo "${ECHO_T}no" >&6
27965      if test "$GTK_CONFIG" = "no" ; then
27966        echo "*** The gtk-config script installed by GTK could not be found"
27967        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27968        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27969        echo "*** full path to gtk-config."
27970      else
27971        if test -f conf.gtktest ; then
27972         :
27973        else
27974           echo "*** Could not run GTK test program, checking why..."
27975           CFLAGS="$CFLAGS $GTK_CFLAGS"
27976           LIBS="$LIBS $GTK_LIBS"
27977           cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h.  */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h.  */
27983
27984 #include <gtk/gtk.h>
27985 #include <stdio.h>
27986
27987 int
27988 main ()
27989 {
27990  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27991   ;
27992   return 0;
27993 }
27994 _ACEOF
27995 rm -f conftest.$ac_objext conftest$ac_exeext
27996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27997   (eval $ac_link) 2>conftest.er1
27998   ac_status=$?
27999   grep -v '^ *+' conftest.er1 >conftest.err
28000   rm -f conftest.er1
28001   cat conftest.err >&5
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); } &&
28004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006   (eval $ac_try) 2>&5
28007   ac_status=$?
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); }; } &&
28010          { ac_try='test -s conftest$ac_exeext'
28011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012   (eval $ac_try) 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; }; then
28016    echo "*** The test program compiled, but did not run. This usually means"
28017           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28018           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28019           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28020           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28021           echo "*** is required on your system"
28022           echo "***"
28023           echo "*** If you have an old version installed, it is best to remove it, although"
28024           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28025           echo "***"
28026           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28027           echo "*** came with the system with the command"
28028           echo "***"
28029           echo "***    rpm --erase --nodeps gtk gtk-devel"
28030 else
28031   echo "$as_me: failed program was:" >&5
28032 sed 's/^/| /' conftest.$ac_ext >&5
28033
28034  echo "*** The test program failed to compile or link. See the file config.log for the"
28035           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28036           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28037           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28038 fi
28039 rm -f conftest.err conftest.$ac_objext \
28040       conftest$ac_exeext conftest.$ac_ext
28041           CFLAGS="$ac_save_CFLAGS"
28042           LIBS="$ac_save_LIBS"
28043        fi
28044      fi
28045      GTK_CFLAGS=""
28046      GTK_LIBS=""
28047      :
28048   fi
28049
28050
28051   rm -f conf.gtktest
28052
28053                         fi
28054                     fi
28055                 fi
28056
28057                 if test -z "$wx_cv_lib_gtk"; then
28058                                         wx_cv_lib_gtk=none
28059                 else
28060                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28061                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28062                 fi
28063
28064
28065 fi
28066
28067
28068                         if test "$gtk_version_cached" = 1; then
28069             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28070 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28071         fi
28072
28073         case "$wx_cv_lib_gtk" in
28074             2.0)    WXGTK20=1
28075                     TOOLKIT_VERSION=2
28076                     ;;
28077             1.2.7)  WXGTK127=1
28078                     WXGTK12=1
28079                     ;;
28080             1.2.3)  WXGTK12=1
28081                     ;;
28082             *)      { { echo "$as_me:$LINENO: error:
28083 The development files for GTK+ were not found. For GTK+ 2, please
28084 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28085 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28086 and that the version is 1.2.3 or above. Also check that the
28087 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28088 --libs' are in the LD_LIBRARY_PATH or equivalent.
28089                             " >&5
28090 echo "$as_me: error:
28091 The development files for GTK+ were not found. For GTK+ 2, please
28092 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28093 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28094 and that the version is 1.2.3 or above. Also check that the
28095 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28096 --libs' are in the LD_LIBRARY_PATH or equivalent.
28097                             " >&2;}
28098    { (exit 1); exit 1; }; }
28099                     ;;
28100         esac
28101
28102         if test "$WXGTK20" = 1; then
28103             save_CFLAGS="$CFLAGS"
28104             save_LIBS="$LIBS"
28105             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28106             LIBS="$LIBS $wx_cv_libs_gtk"
28107
28108                                                             echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28109 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28110             cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116
28117                             #include <gtk/gtk.h>
28118
28119 int
28120 main ()
28121 {
28122
28123                             void *f = gtk_icon_size_lookup;
28124
28125   ;
28126   return 0;
28127 }
28128 _ACEOF
28129 rm -f conftest.$ac_objext
28130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28131   (eval $ac_compile) 2>conftest.er1
28132   ac_status=$?
28133   grep -v '^ *+' conftest.er1 >conftest.err
28134   rm -f conftest.er1
28135   cat conftest.err >&5
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } &&
28138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; } &&
28144          { ac_try='test -s conftest.$ac_objext'
28145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146   (eval $ac_try) 2>&5
28147   ac_status=$?
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); }; }; then
28150
28151                             echo "$as_me:$LINENO: result: no" >&5
28152 echo "${ECHO_T}no" >&6
28153
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158
28159                             cat >>confdefs.h <<\_ACEOF
28160 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28161 _ACEOF
28162
28163                             echo "$as_me:$LINENO: result: yes" >&5
28164 echo "${ECHO_T}yes" >&6
28165
28166 fi
28167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28168
28169                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28170 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28171             cat >conftest.$ac_ext <<_ACEOF
28172 /* confdefs.h.  */
28173 _ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h.  */
28177
28178                             #include <gtk/gtk.h>
28179
28180 int
28181 main ()
28182 {
28183
28184                             #if !GTK_CHECK_VERSION(2,6,0)
28185                             Not GTK+ 2.6
28186                             #endif
28187
28188   ;
28189   return 0;
28190 }
28191 _ACEOF
28192 rm -f conftest.$ac_objext
28193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28194   (eval $ac_compile) 2>conftest.er1
28195   ac_status=$?
28196   grep -v '^ *+' conftest.er1 >conftest.err
28197   rm -f conftest.er1
28198   cat conftest.err >&5
28199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200   (exit $ac_status); } &&
28201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203   (eval $ac_try) 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; } &&
28207          { ac_try='test -s conftest.$ac_objext'
28208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209   (eval $ac_try) 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; }; then
28213
28214                             cat >>confdefs.h <<\_ACEOF
28215 #define __WXGTK26__ 1
28216 _ACEOF
28217
28218                             cat >>confdefs.h <<\_ACEOF
28219 #define __WXGTK24__ 1
28220 _ACEOF
28221
28222                             echo "$as_me:$LINENO: result: yes" >&5
28223 echo "${ECHO_T}yes" >&6
28224                             ac_wxgtk26=1
28225
28226 else
28227   echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28229
28230
28231                             echo "$as_me:$LINENO: result: no" >&5
28232 echo "${ECHO_T}no" >&6
28233                             ac_wxgtk26=0
28234
28235 fi
28236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28237
28238             if test "$ac_wxgtk26" = 0; then
28239                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28240 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28241             cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247
28248                             #include <gtk/gtk.h>
28249
28250 int
28251 main ()
28252 {
28253
28254                             #if !GTK_CHECK_VERSION(2,4,0)
28255                             Not GTK+ 2.4
28256                             #endif
28257
28258   ;
28259   return 0;
28260 }
28261 _ACEOF
28262 rm -f conftest.$ac_objext
28263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28264   (eval $ac_compile) 2>conftest.er1
28265   ac_status=$?
28266   grep -v '^ *+' conftest.er1 >conftest.err
28267   rm -f conftest.er1
28268   cat conftest.err >&5
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); } &&
28271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273   (eval $ac_try) 2>&5
28274   ac_status=$?
28275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); }; } &&
28277          { ac_try='test -s conftest.$ac_objext'
28278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279   (eval $ac_try) 2>&5
28280   ac_status=$?
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; }; then
28283
28284                             cat >>confdefs.h <<\_ACEOF
28285 #define __WXGTK24__ 1
28286 _ACEOF
28287
28288                             echo "$as_me:$LINENO: result: yes" >&5
28289 echo "${ECHO_T}yes" >&6
28290
28291 else
28292   echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295
28296                             echo "$as_me:$LINENO: result: no" >&5
28297 echo "${ECHO_T}no" >&6
28298
28299 fi
28300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28301             fi
28302
28303             CFLAGS="$save_CFLAGS"
28304             LIBS="$save_LIBS"
28305         else
28306             if test "$wxUSE_UNICODE" = "yes"; then
28307                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28308 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28309                 wxUSE_UNICODE=no
28310             fi
28311         fi
28312
28313         ac_ext=cc
28314 ac_cpp='$CXXCPP $CPPFLAGS'
28315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28318
28319
28320                         if test "$USE_DARWIN" != 1; then
28321
28322 for ac_func in poll
28323 do
28324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28325 echo "$as_me:$LINENO: checking for $ac_func" >&5
28326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28327 if eval "test \"\${$as_ac_var+set}\" = set"; then
28328   echo $ECHO_N "(cached) $ECHO_C" >&6
28329 else
28330   cat >conftest.$ac_ext <<_ACEOF
28331 /* confdefs.h.  */
28332 _ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h.  */
28336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28338 #define $ac_func innocuous_$ac_func
28339
28340 /* System header to define __stub macros and hopefully few prototypes,
28341     which can conflict with char $ac_func (); below.
28342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28343     <limits.h> exists even on freestanding compilers.  */
28344
28345 #ifdef __STDC__
28346 # include <limits.h>
28347 #else
28348 # include <assert.h>
28349 #endif
28350
28351 #undef $ac_func
28352
28353 /* Override any gcc2 internal prototype to avoid an error.  */
28354 #ifdef __cplusplus
28355 extern "C"
28356 {
28357 #endif
28358 /* We use char because int might match the return type of a gcc2
28359    builtin and then its argument prototype would still apply.  */
28360 char $ac_func ();
28361 /* The GNU C library defines this for functions which it implements
28362     to always fail with ENOSYS.  Some functions are actually named
28363     something starting with __ and the normal name is an alias.  */
28364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28365 choke me
28366 #else
28367 char (*f) () = $ac_func;
28368 #endif
28369 #ifdef __cplusplus
28370 }
28371 #endif
28372
28373 int
28374 main ()
28375 {
28376 return f != $ac_func;
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28383   (eval $ac_link) 2>conftest.er1
28384   ac_status=$?
28385   grep -v '^ *+' conftest.er1 >conftest.err
28386   rm -f conftest.er1
28387   cat conftest.err >&5
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); } &&
28390          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392   (eval $ac_try) 2>&5
28393   ac_status=$?
28394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); }; } &&
28396          { ac_try='test -s conftest$ac_exeext'
28397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398   (eval $ac_try) 2>&5
28399   ac_status=$?
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); }; }; then
28402   eval "$as_ac_var=yes"
28403 else
28404   echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407 eval "$as_ac_var=no"
28408 fi
28409 rm -f conftest.err conftest.$ac_objext \
28410       conftest$ac_exeext conftest.$ac_ext
28411 fi
28412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28414 if test `eval echo '${'$as_ac_var'}'` = yes; then
28415   cat >>confdefs.h <<_ACEOF
28416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28417 _ACEOF
28418
28419 fi
28420 done
28421
28422         fi
28423
28424         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28425         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28426
28427         AFMINSTALL=afminstall
28428         TOOLKIT=GTK
28429         GUIDIST=GTK_DIST
28430
28431                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28432 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28433 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28434   echo $ECHO_N "(cached) $ECHO_C" >&6
28435 else
28436   ac_check_lib_save_LIBS=$LIBS
28437 LIBS="-lgdk  $LIBS"
28438 cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h.  */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h.  */
28444
28445 /* Override any gcc2 internal prototype to avoid an error.  */
28446 #ifdef __cplusplus
28447 extern "C"
28448 #endif
28449 /* We use char because int might match the return type of a gcc2
28450    builtin and then its argument prototype would still apply.  */
28451 char gdk_im_open ();
28452 int
28453 main ()
28454 {
28455 gdk_im_open ();
28456   ;
28457   return 0;
28458 }
28459 _ACEOF
28460 rm -f conftest.$ac_objext conftest$ac_exeext
28461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28462   (eval $ac_link) 2>conftest.er1
28463   ac_status=$?
28464   grep -v '^ *+' conftest.er1 >conftest.err
28465   rm -f conftest.er1
28466   cat conftest.err >&5
28467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468   (exit $ac_status); } &&
28469          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471   (eval $ac_try) 2>&5
28472   ac_status=$?
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); }; } &&
28475          { ac_try='test -s conftest$ac_exeext'
28476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477   (eval $ac_try) 2>&5
28478   ac_status=$?
28479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480   (exit $ac_status); }; }; then
28481   ac_cv_lib_gdk_gdk_im_open=yes
28482 else
28483   echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28485
28486 ac_cv_lib_gdk_gdk_im_open=no
28487 fi
28488 rm -f conftest.err conftest.$ac_objext \
28489       conftest$ac_exeext conftest.$ac_ext
28490 LIBS=$ac_check_lib_save_LIBS
28491 fi
28492 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28493 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28494 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28495   cat >>confdefs.h <<\_ACEOF
28496 #define HAVE_XIM 1
28497 _ACEOF
28498
28499 fi
28500
28501
28502
28503                 if test "$wxUSE_GPE" = "yes"; then
28504             echo "$as_me:$LINENO: checking for gpewidget library" >&5
28505 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28506
28507   ac_find_libraries=
28508   for ac_dir in $SEARCH_LIB;
28509   do
28510     for ac_extension in a so sl dylib dll.a; do
28511       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28512         ac_find_libraries=$ac_dir
28513         break 2
28514       fi
28515     done
28516   done
28517
28518             if test "$ac_find_libraries" != "" ; then
28519
28520     if test "$ac_find_libraries" = "default location"; then
28521     ac_path_to_link=""
28522   else
28523     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28524     result=$?
28525     if test $result = 0; then
28526       ac_path_to_link=""
28527     else
28528       ac_path_to_link=" -L$ac_find_libraries"
28529     fi
28530   fi
28531
28532                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28533                 WXGPE=1
28534                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28535 echo "${ECHO_T}found in $ac_find_libraries" >&6
28536             else
28537                 echo "$as_me:$LINENO: result: not found" >&5
28538 echo "${ECHO_T}not found" >&6
28539             fi
28540
28541                                                                                                                     fi
28542     fi
28543
28544     if test "$wxUSE_MGL" = 1; then
28545        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28546 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28547         if test "x$MGL_ROOT" = x ; then
28548             echo "$as_me:$LINENO: result: not found" >&5
28549 echo "${ECHO_T}not found" >&6
28550             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28551 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28552    { (exit 1); exit 1; }; }
28553         else
28554             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28555 echo "${ECHO_T}$MGL_ROOT" >&6
28556         fi
28557
28558         echo "$as_me:$LINENO: checking for libmgl location" >&5
28559 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28560                                 case "${host}" in
28561             *-*-linux* )
28562                                           if test "x$wxUSE_SHARED" = xyes ; then
28563                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28564               else
28565                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28566               fi
28567               ;;
28568             *-pc-msdosdjgpp )
28569               mgl_os_candidates="dos32/dj2"
28570               ;;
28571             *)
28572               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28573 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28574    { (exit 1); exit 1; }; }
28575         esac
28576
28577         mgl_lib_type=""
28578         mgl_os=""
28579
28580         for mgl_os_i in $mgl_os_candidates ; do
28581             if test "x$mgl_os" = x ; then
28582                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28583                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28584                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28585                         mgl_lib_type=debug
28586                         mgl_os=$mgl_os_i
28587                     fi
28588                 fi
28589                 if test "x$mgl_lib_type" = x ; then
28590                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28591                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28592                         mgl_lib_type=release
28593                         mgl_os=$mgl_os_i
28594                     fi
28595                 fi
28596             fi
28597         done
28598
28599         if test "x$mgl_os" = x ; then
28600             echo "$as_me:$LINENO: result: not found" >&5
28601 echo "${ECHO_T}not found" >&6
28602             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28603 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28604    { (exit 1); exit 1; }; }
28605         fi
28606         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28607 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28608
28609         wxUSE_UNIVERSAL="yes"
28610
28611         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28612         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28613
28614         AFMINSTALL=afminstall
28615         TOOLKIT=MGL
28616         GUIDIST=MGL_DIST
28617     fi
28618
28619     if test "$wxUSE_MICROWIN" = 1; then
28620         echo "$as_me:$LINENO: checking for MicroWindows" >&5
28621 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28622         if test "x$MICROWINDOWS" = x ; then
28623             echo "$as_me:$LINENO: result: not found" >&5
28624 echo "${ECHO_T}not found" >&6
28625             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28626 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28627    { (exit 1); exit 1; }; }
28628         else
28629             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28630 echo "${ECHO_T}$MICROWINDOWS" >&6
28631         fi
28632
28633         if test -f $MICROWINDOWS/lib/libmwin.a; then
28634             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28635 echo "${ECHO_T}MicroWindows' libraries found." >&6
28636         else
28637             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28638 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28639    { (exit 1); exit 1; }; }
28640         fi
28641
28642         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28643         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28644
28645         wxUSE_UNIVERSAL="yes"
28646
28647         AFMINSTALL=afminstall
28648         TOOLKIT=MICROWIN
28649         GUIDIST=MICROWIN_DIST
28650
28651         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28652     fi
28653
28654         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
28655
28656 if test "x$ac_path_x_has_been_run" != xyes; then
28657   echo "$as_me:$LINENO: checking for X" >&5
28658 echo $ECHO_N "checking for X... $ECHO_C" >&6
28659
28660 ac_path_x_has_been_run=yes
28661
28662 # Check whether --with-x or --without-x was given.
28663 if test "${with_x+set}" = set; then
28664   withval="$with_x"
28665
28666 fi;
28667 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28668 if test "x$with_x" = xno; then
28669   # The user explicitly disabled X.
28670   have_x=disabled
28671 else
28672   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28673     # Both variables are already set.
28674     have_x=yes
28675   else
28676     if test "${ac_cv_have_x+set}" = set; then
28677   echo $ECHO_N "(cached) $ECHO_C" >&6
28678 else
28679   # One or both of the vars are not set, and there is no cached value.
28680 ac_x_includes=no ac_x_libraries=no
28681 rm -fr conftest.dir
28682 if mkdir conftest.dir; then
28683   cd conftest.dir
28684   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28685   cat >Imakefile <<'_ACEOF'
28686 acfindx:
28687         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28688 _ACEOF
28689   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28690     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28691     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28692     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28693     for ac_extension in a so sl; do
28694       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28695          test -f $ac_im_libdir/libX11.$ac_extension; then
28696         ac_im_usrlibdir=$ac_im_libdir; break
28697       fi
28698     done
28699     # Screen out bogus values from the imake configuration.  They are
28700     # bogus both because they are the default anyway, and because
28701     # using them would break gcc on systems where it needs fixed includes.
28702     case $ac_im_incroot in
28703         /usr/include) ;;
28704         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28705     esac
28706     case $ac_im_usrlibdir in
28707         /usr/lib | /lib) ;;
28708         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28709     esac
28710   fi
28711   cd ..
28712   rm -fr conftest.dir
28713 fi
28714
28715 # Standard set of common directories for X headers.
28716 # Check X11 before X11Rn because it is often a symlink to the current release.
28717 ac_x_header_dirs='
28718 /usr/X11/include
28719 /usr/X11R6/include
28720 /usr/X11R5/include
28721 /usr/X11R4/include
28722
28723 /usr/include/X11
28724 /usr/include/X11R6
28725 /usr/include/X11R5
28726 /usr/include/X11R4
28727
28728 /usr/local/X11/include
28729 /usr/local/X11R6/include
28730 /usr/local/X11R5/include
28731 /usr/local/X11R4/include
28732
28733 /usr/local/include/X11
28734 /usr/local/include/X11R6
28735 /usr/local/include/X11R5
28736 /usr/local/include/X11R4
28737
28738 /usr/X386/include
28739 /usr/x386/include
28740 /usr/XFree86/include/X11
28741
28742 /usr/include
28743 /usr/local/include
28744 /usr/unsupported/include
28745 /usr/athena/include
28746 /usr/local/x11r5/include
28747 /usr/lpp/Xamples/include
28748
28749 /usr/openwin/include
28750 /usr/openwin/share/include'
28751
28752 if test "$ac_x_includes" = no; then
28753   # Guess where to find include files, by looking for a specified header file.
28754   # First, try using that file with no special directory specified.
28755   cat >conftest.$ac_ext <<_ACEOF
28756 /* confdefs.h.  */
28757 _ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h.  */
28761 #include <X11/Xlib.h>
28762 _ACEOF
28763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28765   ac_status=$?
28766   grep -v '^ *+' conftest.er1 >conftest.err
28767   rm -f conftest.er1
28768   cat conftest.err >&5
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); } >/dev/null; then
28771   if test -s conftest.err; then
28772     ac_cpp_err=$ac_cxx_preproc_warn_flag
28773     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28774   else
28775     ac_cpp_err=
28776   fi
28777 else
28778   ac_cpp_err=yes
28779 fi
28780 if test -z "$ac_cpp_err"; then
28781   # We can compile using X headers with no special include directory.
28782 ac_x_includes=
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787   for ac_dir in $ac_x_header_dirs; do
28788   if test -r "$ac_dir/X11/Xlib.h"; then
28789     ac_x_includes=$ac_dir
28790     break
28791   fi
28792 done
28793 fi
28794 rm -f conftest.err conftest.$ac_ext
28795 fi # $ac_x_includes = no
28796
28797 if test "$ac_x_libraries" = no; then
28798   # Check for the libraries.
28799   # See if we find them without any special options.
28800   # Don't add to $LIBS permanently.
28801   ac_save_LIBS=$LIBS
28802   LIBS="-lX11 $LIBS"
28803   cat >conftest.$ac_ext <<_ACEOF
28804 /* confdefs.h.  */
28805 _ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h.  */
28809 #include <X11/Xlib.h>
28810 int
28811 main ()
28812 {
28813 XrmInitialize ()
28814   ;
28815   return 0;
28816 }
28817 _ACEOF
28818 rm -f conftest.$ac_objext conftest$ac_exeext
28819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28820   (eval $ac_link) 2>conftest.er1
28821   ac_status=$?
28822   grep -v '^ *+' conftest.er1 >conftest.err
28823   rm -f conftest.er1
28824   cat conftest.err >&5
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } &&
28827          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829   (eval $ac_try) 2>&5
28830   ac_status=$?
28831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832   (exit $ac_status); }; } &&
28833          { ac_try='test -s conftest$ac_exeext'
28834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835   (eval $ac_try) 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; }; then
28839   LIBS=$ac_save_LIBS
28840 # We can link X programs with no special library path.
28841 ac_x_libraries=
28842 else
28843   echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28845
28846 LIBS=$ac_save_LIBS
28847 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28848 do
28849   # Don't even attempt the hair of trying to link an X program!
28850   for ac_extension in a so sl; do
28851     if test -r $ac_dir/libX11.$ac_extension; then
28852       ac_x_libraries=$ac_dir
28853       break 2
28854     fi
28855   done
28856 done
28857 fi
28858 rm -f conftest.err conftest.$ac_objext \
28859       conftest$ac_exeext conftest.$ac_ext
28860 fi # $ac_x_libraries = no
28861
28862 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28863   # Didn't find X anywhere.  Cache the known absence of X.
28864   ac_cv_have_x="have_x=no"
28865 else
28866   # Record where we found X for the cache.
28867   ac_cv_have_x="have_x=yes \
28868                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28869 fi
28870 fi
28871
28872   fi
28873   eval "$ac_cv_have_x"
28874 fi # $with_x != no
28875
28876 if test "$have_x" != yes; then
28877   echo "$as_me:$LINENO: result: $have_x" >&5
28878 echo "${ECHO_T}$have_x" >&6
28879   no_x=yes
28880 else
28881   # If each of the values was on the command line, it overrides each guess.
28882   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28883   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28884   # Update the cache value to reflect the command line values.
28885   ac_cv_have_x="have_x=yes \
28886                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28887   # It might be that x_includes is empty (headers are found in the
28888   # standard search path. Then output the corresponding message
28889   ac_out_x_includes=$x_includes
28890   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28891   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28892 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
28893 fi
28894
28895 fi
28896 if test "$no_x" = yes; then
28897   # Not all programs may use this symbol, but it does not hurt to define it.
28898
28899 cat >>confdefs.h <<\_ACEOF
28900 #define X_DISPLAY_MISSING 1
28901 _ACEOF
28902
28903   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28904 else
28905   if test -n "$x_includes"; then
28906     X_CFLAGS="$X_CFLAGS -I$x_includes"
28907   fi
28908
28909   # It would also be nice to do this for all -L options, not just this one.
28910   if test -n "$x_libraries"; then
28911     X_LIBS="$X_LIBS -L$x_libraries"
28912     # For Solaris; some versions of Sun CC require a space after -R and
28913     # others require no space.  Words are not sufficient . . . .
28914     case `(uname -sr) 2>/dev/null` in
28915     "SunOS 5"*)
28916       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28917 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28918       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28919       cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h.  */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h.  */
28925
28926 int
28927 main ()
28928 {
28929
28930   ;
28931   return 0;
28932 }
28933 _ACEOF
28934 rm -f conftest.$ac_objext conftest$ac_exeext
28935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28936   (eval $ac_link) 2>conftest.er1
28937   ac_status=$?
28938   grep -v '^ *+' conftest.er1 >conftest.err
28939   rm -f conftest.er1
28940   cat conftest.err >&5
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); } &&
28943          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945   (eval $ac_try) 2>&5
28946   ac_status=$?
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); }; } &&
28949          { ac_try='test -s conftest$ac_exeext'
28950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951   (eval $ac_try) 2>&5
28952   ac_status=$?
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); }; }; then
28955   ac_R_nospace=yes
28956 else
28957   echo "$as_me: failed program was:" >&5
28958 sed 's/^/| /' conftest.$ac_ext >&5
28959
28960 ac_R_nospace=no
28961 fi
28962 rm -f conftest.err conftest.$ac_objext \
28963       conftest$ac_exeext conftest.$ac_ext
28964       if test $ac_R_nospace = yes; then
28965         echo "$as_me:$LINENO: result: no" >&5
28966 echo "${ECHO_T}no" >&6
28967         X_LIBS="$X_LIBS -R$x_libraries"
28968       else
28969         LIBS="$ac_xsave_LIBS -R $x_libraries"
28970         cat >conftest.$ac_ext <<_ACEOF
28971 /* confdefs.h.  */
28972 _ACEOF
28973 cat confdefs.h >>conftest.$ac_ext
28974 cat >>conftest.$ac_ext <<_ACEOF
28975 /* end confdefs.h.  */
28976
28977 int
28978 main ()
28979 {
28980
28981   ;
28982   return 0;
28983 }
28984 _ACEOF
28985 rm -f conftest.$ac_objext conftest$ac_exeext
28986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28987   (eval $ac_link) 2>conftest.er1
28988   ac_status=$?
28989   grep -v '^ *+' conftest.er1 >conftest.err
28990   rm -f conftest.er1
28991   cat conftest.err >&5
28992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993   (exit $ac_status); } &&
28994          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996   (eval $ac_try) 2>&5
28997   ac_status=$?
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); }; } &&
29000          { ac_try='test -s conftest$ac_exeext'
29001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002   (eval $ac_try) 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); }; }; then
29006   ac_R_space=yes
29007 else
29008   echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29010
29011 ac_R_space=no
29012 fi
29013 rm -f conftest.err conftest.$ac_objext \
29014       conftest$ac_exeext conftest.$ac_ext
29015         if test $ac_R_space = yes; then
29016           echo "$as_me:$LINENO: result: yes" >&5
29017 echo "${ECHO_T}yes" >&6
29018           X_LIBS="$X_LIBS -R $x_libraries"
29019         else
29020           echo "$as_me:$LINENO: result: neither works" >&5
29021 echo "${ECHO_T}neither works" >&6
29022         fi
29023       fi
29024       LIBS=$ac_xsave_LIBS
29025     esac
29026   fi
29027
29028   # Check for system-dependent libraries X programs must link with.
29029   # Do this before checking for the system-independent R6 libraries
29030   # (-lICE), since we may need -lsocket or whatever for X linking.
29031
29032   if test "$ISC" = yes; then
29033     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29034   else
29035     # Martyn Johnson says this is needed for Ultrix, if the X
29036     # libraries were built with DECnet support.  And Karl Berry says
29037     # the Alpha needs dnet_stub (dnet does not exist).
29038     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29039     cat >conftest.$ac_ext <<_ACEOF
29040 /* confdefs.h.  */
29041 _ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h.  */
29045
29046 /* Override any gcc2 internal prototype to avoid an error.  */
29047 #ifdef __cplusplus
29048 extern "C"
29049 #endif
29050 /* We use char because int might match the return type of a gcc2
29051    builtin and then its argument prototype would still apply.  */
29052 char XOpenDisplay ();
29053 int
29054 main ()
29055 {
29056 XOpenDisplay ();
29057   ;
29058   return 0;
29059 }
29060 _ACEOF
29061 rm -f conftest.$ac_objext conftest$ac_exeext
29062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29063   (eval $ac_link) 2>conftest.er1
29064   ac_status=$?
29065   grep -v '^ *+' conftest.er1 >conftest.err
29066   rm -f conftest.er1
29067   cat conftest.err >&5
29068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069   (exit $ac_status); } &&
29070          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072   (eval $ac_try) 2>&5
29073   ac_status=$?
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); }; } &&
29076          { ac_try='test -s conftest$ac_exeext'
29077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078   (eval $ac_try) 2>&5
29079   ac_status=$?
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); }; }; then
29082   :
29083 else
29084   echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29086
29087 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29088 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29089 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29090   echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092   ac_check_lib_save_LIBS=$LIBS
29093 LIBS="-ldnet  $LIBS"
29094 cat >conftest.$ac_ext <<_ACEOF
29095 /* confdefs.h.  */
29096 _ACEOF
29097 cat confdefs.h >>conftest.$ac_ext
29098 cat >>conftest.$ac_ext <<_ACEOF
29099 /* end confdefs.h.  */
29100
29101 /* Override any gcc2 internal prototype to avoid an error.  */
29102 #ifdef __cplusplus
29103 extern "C"
29104 #endif
29105 /* We use char because int might match the return type of a gcc2
29106    builtin and then its argument prototype would still apply.  */
29107 char dnet_ntoa ();
29108 int
29109 main ()
29110 {
29111 dnet_ntoa ();
29112   ;
29113   return 0;
29114 }
29115 _ACEOF
29116 rm -f conftest.$ac_objext conftest$ac_exeext
29117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29118   (eval $ac_link) 2>conftest.er1
29119   ac_status=$?
29120   grep -v '^ *+' conftest.er1 >conftest.err
29121   rm -f conftest.er1
29122   cat conftest.err >&5
29123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124   (exit $ac_status); } &&
29125          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127   (eval $ac_try) 2>&5
29128   ac_status=$?
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); }; } &&
29131          { ac_try='test -s conftest$ac_exeext'
29132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133   (eval $ac_try) 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; }; then
29137   ac_cv_lib_dnet_dnet_ntoa=yes
29138 else
29139   echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142 ac_cv_lib_dnet_dnet_ntoa=no
29143 fi
29144 rm -f conftest.err conftest.$ac_objext \
29145       conftest$ac_exeext conftest.$ac_ext
29146 LIBS=$ac_check_lib_save_LIBS
29147 fi
29148 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29149 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29150 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29151   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29152 fi
29153
29154     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29155       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29156 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29157 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 else
29160   ac_check_lib_save_LIBS=$LIBS
29161 LIBS="-ldnet_stub  $LIBS"
29162 cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h.  */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h.  */
29168
29169 /* Override any gcc2 internal prototype to avoid an error.  */
29170 #ifdef __cplusplus
29171 extern "C"
29172 #endif
29173 /* We use char because int might match the return type of a gcc2
29174    builtin and then its argument prototype would still apply.  */
29175 char dnet_ntoa ();
29176 int
29177 main ()
29178 {
29179 dnet_ntoa ();
29180   ;
29181   return 0;
29182 }
29183 _ACEOF
29184 rm -f conftest.$ac_objext conftest$ac_exeext
29185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29186   (eval $ac_link) 2>conftest.er1
29187   ac_status=$?
29188   grep -v '^ *+' conftest.er1 >conftest.err
29189   rm -f conftest.er1
29190   cat conftest.err >&5
29191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192   (exit $ac_status); } &&
29193          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195   (eval $ac_try) 2>&5
29196   ac_status=$?
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); }; } &&
29199          { ac_try='test -s conftest$ac_exeext'
29200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201   (eval $ac_try) 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; }; then
29205   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29206 else
29207   echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29209
29210 ac_cv_lib_dnet_stub_dnet_ntoa=no
29211 fi
29212 rm -f conftest.err conftest.$ac_objext \
29213       conftest$ac_exeext conftest.$ac_ext
29214 LIBS=$ac_check_lib_save_LIBS
29215 fi
29216 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29217 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29218 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29219   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29220 fi
29221
29222     fi
29223 fi
29224 rm -f conftest.err conftest.$ac_objext \
29225       conftest$ac_exeext conftest.$ac_ext
29226     LIBS="$ac_xsave_LIBS"
29227
29228     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29229     # to get the SysV transport functions.
29230     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29231     # needs -lnsl.
29232     # The nsl library prevents programs from opening the X display
29233     # on Irix 5.2, according to T.E. Dickey.
29234     # The functions gethostbyname, getservbyname, and inet_addr are
29235     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29236     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29237 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29238 if test "${ac_cv_func_gethostbyname+set}" = set; then
29239   echo $ECHO_N "(cached) $ECHO_C" >&6
29240 else
29241   cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29249 #define gethostbyname innocuous_gethostbyname
29250
29251 /* System header to define __stub macros and hopefully few prototypes,
29252     which can conflict with char gethostbyname (); below.
29253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29254     <limits.h> exists even on freestanding compilers.  */
29255
29256 #ifdef __STDC__
29257 # include <limits.h>
29258 #else
29259 # include <assert.h>
29260 #endif
29261
29262 #undef gethostbyname
29263
29264 /* Override any gcc2 internal prototype to avoid an error.  */
29265 #ifdef __cplusplus
29266 extern "C"
29267 {
29268 #endif
29269 /* We use char because int might match the return type of a gcc2
29270    builtin and then its argument prototype would still apply.  */
29271 char gethostbyname ();
29272 /* The GNU C library defines this for functions which it implements
29273     to always fail with ENOSYS.  Some functions are actually named
29274     something starting with __ and the normal name is an alias.  */
29275 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29276 choke me
29277 #else
29278 char (*f) () = gethostbyname;
29279 #endif
29280 #ifdef __cplusplus
29281 }
29282 #endif
29283
29284 int
29285 main ()
29286 {
29287 return f != gethostbyname;
29288   ;
29289   return 0;
29290 }
29291 _ACEOF
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29294   (eval $ac_link) 2>conftest.er1
29295   ac_status=$?
29296   grep -v '^ *+' conftest.er1 >conftest.err
29297   rm -f conftest.er1
29298   cat conftest.err >&5
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); } &&
29301          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303   (eval $ac_try) 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); }; } &&
29307          { ac_try='test -s conftest$ac_exeext'
29308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309   (eval $ac_try) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); }; }; then
29313   ac_cv_func_gethostbyname=yes
29314 else
29315   echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318 ac_cv_func_gethostbyname=no
29319 fi
29320 rm -f conftest.err conftest.$ac_objext \
29321       conftest$ac_exeext conftest.$ac_ext
29322 fi
29323 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29324 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29325
29326     if test $ac_cv_func_gethostbyname = no; then
29327       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29328 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29329 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332   ac_check_lib_save_LIBS=$LIBS
29333 LIBS="-lnsl  $LIBS"
29334 cat >conftest.$ac_ext <<_ACEOF
29335 /* confdefs.h.  */
29336 _ACEOF
29337 cat confdefs.h >>conftest.$ac_ext
29338 cat >>conftest.$ac_ext <<_ACEOF
29339 /* end confdefs.h.  */
29340
29341 /* Override any gcc2 internal prototype to avoid an error.  */
29342 #ifdef __cplusplus
29343 extern "C"
29344 #endif
29345 /* We use char because int might match the return type of a gcc2
29346    builtin and then its argument prototype would still apply.  */
29347 char gethostbyname ();
29348 int
29349 main ()
29350 {
29351 gethostbyname ();
29352   ;
29353   return 0;
29354 }
29355 _ACEOF
29356 rm -f conftest.$ac_objext conftest$ac_exeext
29357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29358   (eval $ac_link) 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } &&
29365          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29367   (eval $ac_try) 2>&5
29368   ac_status=$?
29369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370   (exit $ac_status); }; } &&
29371          { ac_try='test -s conftest$ac_exeext'
29372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373   (eval $ac_try) 2>&5
29374   ac_status=$?
29375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376   (exit $ac_status); }; }; then
29377   ac_cv_lib_nsl_gethostbyname=yes
29378 else
29379   echo "$as_me: failed program was:" >&5
29380 sed 's/^/| /' conftest.$ac_ext >&5
29381
29382 ac_cv_lib_nsl_gethostbyname=no
29383 fi
29384 rm -f conftest.err conftest.$ac_objext \
29385       conftest$ac_exeext conftest.$ac_ext
29386 LIBS=$ac_check_lib_save_LIBS
29387 fi
29388 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29389 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29390 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29391   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29392 fi
29393
29394       if test $ac_cv_lib_nsl_gethostbyname = no; then
29395         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29396 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29397 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400   ac_check_lib_save_LIBS=$LIBS
29401 LIBS="-lbsd  $LIBS"
29402 cat >conftest.$ac_ext <<_ACEOF
29403 /* confdefs.h.  */
29404 _ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h.  */
29408
29409 /* Override any gcc2 internal prototype to avoid an error.  */
29410 #ifdef __cplusplus
29411 extern "C"
29412 #endif
29413 /* We use char because int might match the return type of a gcc2
29414    builtin and then its argument prototype would still apply.  */
29415 char gethostbyname ();
29416 int
29417 main ()
29418 {
29419 gethostbyname ();
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29426   (eval $ac_link) 2>conftest.er1
29427   ac_status=$?
29428   grep -v '^ *+' conftest.er1 >conftest.err
29429   rm -f conftest.er1
29430   cat conftest.err >&5
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); } &&
29433          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435   (eval $ac_try) 2>&5
29436   ac_status=$?
29437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438   (exit $ac_status); }; } &&
29439          { ac_try='test -s conftest$ac_exeext'
29440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441   (eval $ac_try) 2>&5
29442   ac_status=$?
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); }; }; then
29445   ac_cv_lib_bsd_gethostbyname=yes
29446 else
29447   echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29449
29450 ac_cv_lib_bsd_gethostbyname=no
29451 fi
29452 rm -f conftest.err conftest.$ac_objext \
29453       conftest$ac_exeext conftest.$ac_ext
29454 LIBS=$ac_check_lib_save_LIBS
29455 fi
29456 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29457 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29458 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29459   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29460 fi
29461
29462       fi
29463     fi
29464
29465     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29466     # socket/setsockopt and other routines are undefined under SCO ODT
29467     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29468     # on later versions), says Simon Leinen: it contains gethostby*
29469     # variants that don't use the name server (or something).  -lsocket
29470     # must be given before -lnsl if both are needed.  We assume that
29471     # if connect needs -lnsl, so does gethostbyname.
29472     echo "$as_me:$LINENO: checking for connect" >&5
29473 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29474 if test "${ac_cv_func_connect+set}" = set; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 else
29477   cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h.  */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h.  */
29483 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29485 #define connect innocuous_connect
29486
29487 /* System header to define __stub macros and hopefully few prototypes,
29488     which can conflict with char connect (); below.
29489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29490     <limits.h> exists even on freestanding compilers.  */
29491
29492 #ifdef __STDC__
29493 # include <limits.h>
29494 #else
29495 # include <assert.h>
29496 #endif
29497
29498 #undef connect
29499
29500 /* Override any gcc2 internal prototype to avoid an error.  */
29501 #ifdef __cplusplus
29502 extern "C"
29503 {
29504 #endif
29505 /* We use char because int might match the return type of a gcc2
29506    builtin and then its argument prototype would still apply.  */
29507 char connect ();
29508 /* The GNU C library defines this for functions which it implements
29509     to always fail with ENOSYS.  Some functions are actually named
29510     something starting with __ and the normal name is an alias.  */
29511 #if defined (__stub_connect) || defined (__stub___connect)
29512 choke me
29513 #else
29514 char (*f) () = connect;
29515 #endif
29516 #ifdef __cplusplus
29517 }
29518 #endif
29519
29520 int
29521 main ()
29522 {
29523 return f != connect;
29524   ;
29525   return 0;
29526 }
29527 _ACEOF
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29530   (eval $ac_link) 2>conftest.er1
29531   ac_status=$?
29532   grep -v '^ *+' conftest.er1 >conftest.err
29533   rm -f conftest.er1
29534   cat conftest.err >&5
29535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536   (exit $ac_status); } &&
29537          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539   (eval $ac_try) 2>&5
29540   ac_status=$?
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); }; } &&
29543          { ac_try='test -s conftest$ac_exeext'
29544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545   (eval $ac_try) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; }; then
29549   ac_cv_func_connect=yes
29550 else
29551   echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29553
29554 ac_cv_func_connect=no
29555 fi
29556 rm -f conftest.err conftest.$ac_objext \
29557       conftest$ac_exeext conftest.$ac_ext
29558 fi
29559 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29560 echo "${ECHO_T}$ac_cv_func_connect" >&6
29561
29562     if test $ac_cv_func_connect = no; then
29563       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29564 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29565 if test "${ac_cv_lib_socket_connect+set}" = set; then
29566   echo $ECHO_N "(cached) $ECHO_C" >&6
29567 else
29568   ac_check_lib_save_LIBS=$LIBS
29569 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29570 cat >conftest.$ac_ext <<_ACEOF
29571 /* confdefs.h.  */
29572 _ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h.  */
29576
29577 /* Override any gcc2 internal prototype to avoid an error.  */
29578 #ifdef __cplusplus
29579 extern "C"
29580 #endif
29581 /* We use char because int might match the return type of a gcc2
29582    builtin and then its argument prototype would still apply.  */
29583 char connect ();
29584 int
29585 main ()
29586 {
29587 connect ();
29588   ;
29589   return 0;
29590 }
29591 _ACEOF
29592 rm -f conftest.$ac_objext conftest$ac_exeext
29593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29594   (eval $ac_link) 2>conftest.er1
29595   ac_status=$?
29596   grep -v '^ *+' conftest.er1 >conftest.err
29597   rm -f conftest.er1
29598   cat conftest.err >&5
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } &&
29601          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603   (eval $ac_try) 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; } &&
29607          { ac_try='test -s conftest$ac_exeext'
29608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609   (eval $ac_try) 2>&5
29610   ac_status=$?
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); }; }; then
29613   ac_cv_lib_socket_connect=yes
29614 else
29615   echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29617
29618 ac_cv_lib_socket_connect=no
29619 fi
29620 rm -f conftest.err conftest.$ac_objext \
29621       conftest$ac_exeext conftest.$ac_ext
29622 LIBS=$ac_check_lib_save_LIBS
29623 fi
29624 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29625 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29626 if test $ac_cv_lib_socket_connect = yes; then
29627   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29628 fi
29629
29630     fi
29631
29632     # Guillermo Gomez says -lposix is necessary on A/UX.
29633     echo "$as_me:$LINENO: checking for remove" >&5
29634 echo $ECHO_N "checking for remove... $ECHO_C" >&6
29635 if test "${ac_cv_func_remove+set}" = set; then
29636   echo $ECHO_N "(cached) $ECHO_C" >&6
29637 else
29638   cat >conftest.$ac_ext <<_ACEOF
29639 /* confdefs.h.  */
29640 _ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h.  */
29644 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
29645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29646 #define remove innocuous_remove
29647
29648 /* System header to define __stub macros and hopefully few prototypes,
29649     which can conflict with char remove (); below.
29650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29651     <limits.h> exists even on freestanding compilers.  */
29652
29653 #ifdef __STDC__
29654 # include <limits.h>
29655 #else
29656 # include <assert.h>
29657 #endif
29658
29659 #undef remove
29660
29661 /* Override any gcc2 internal prototype to avoid an error.  */
29662 #ifdef __cplusplus
29663 extern "C"
29664 {
29665 #endif
29666 /* We use char because int might match the return type of a gcc2
29667    builtin and then its argument prototype would still apply.  */
29668 char remove ();
29669 /* The GNU C library defines this for functions which it implements
29670     to always fail with ENOSYS.  Some functions are actually named
29671     something starting with __ and the normal name is an alias.  */
29672 #if defined (__stub_remove) || defined (__stub___remove)
29673 choke me
29674 #else
29675 char (*f) () = remove;
29676 #endif
29677 #ifdef __cplusplus
29678 }
29679 #endif
29680
29681 int
29682 main ()
29683 {
29684 return f != remove;
29685   ;
29686   return 0;
29687 }
29688 _ACEOF
29689 rm -f conftest.$ac_objext conftest$ac_exeext
29690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29691   (eval $ac_link) 2>conftest.er1
29692   ac_status=$?
29693   grep -v '^ *+' conftest.er1 >conftest.err
29694   rm -f conftest.er1
29695   cat conftest.err >&5
29696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697   (exit $ac_status); } &&
29698          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700   (eval $ac_try) 2>&5
29701   ac_status=$?
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; } &&
29704          { ac_try='test -s conftest$ac_exeext'
29705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706   (eval $ac_try) 2>&5
29707   ac_status=$?
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); }; }; then
29710   ac_cv_func_remove=yes
29711 else
29712   echo "$as_me: failed program was:" >&5
29713 sed 's/^/| /' conftest.$ac_ext >&5
29714
29715 ac_cv_func_remove=no
29716 fi
29717 rm -f conftest.err conftest.$ac_objext \
29718       conftest$ac_exeext conftest.$ac_ext
29719 fi
29720 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29721 echo "${ECHO_T}$ac_cv_func_remove" >&6
29722
29723     if test $ac_cv_func_remove = no; then
29724       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29725 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29726 if test "${ac_cv_lib_posix_remove+set}" = set; then
29727   echo $ECHO_N "(cached) $ECHO_C" >&6
29728 else
29729   ac_check_lib_save_LIBS=$LIBS
29730 LIBS="-lposix  $LIBS"
29731 cat >conftest.$ac_ext <<_ACEOF
29732 /* confdefs.h.  */
29733 _ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h.  */
29737
29738 /* Override any gcc2 internal prototype to avoid an error.  */
29739 #ifdef __cplusplus
29740 extern "C"
29741 #endif
29742 /* We use char because int might match the return type of a gcc2
29743    builtin and then its argument prototype would still apply.  */
29744 char remove ();
29745 int
29746 main ()
29747 {
29748 remove ();
29749   ;
29750   return 0;
29751 }
29752 _ACEOF
29753 rm -f conftest.$ac_objext conftest$ac_exeext
29754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29755   (eval $ac_link) 2>conftest.er1
29756   ac_status=$?
29757   grep -v '^ *+' conftest.er1 >conftest.err
29758   rm -f conftest.er1
29759   cat conftest.err >&5
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); } &&
29762          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764   (eval $ac_try) 2>&5
29765   ac_status=$?
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); }; } &&
29768          { ac_try='test -s conftest$ac_exeext'
29769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770   (eval $ac_try) 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; }; then
29774   ac_cv_lib_posix_remove=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ac_cv_lib_posix_remove=no
29780 fi
29781 rm -f conftest.err conftest.$ac_objext \
29782       conftest$ac_exeext conftest.$ac_ext
29783 LIBS=$ac_check_lib_save_LIBS
29784 fi
29785 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29786 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29787 if test $ac_cv_lib_posix_remove = yes; then
29788   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29789 fi
29790
29791     fi
29792
29793     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29794     echo "$as_me:$LINENO: checking for shmat" >&5
29795 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29796 if test "${ac_cv_func_shmat+set}" = set; then
29797   echo $ECHO_N "(cached) $ECHO_C" >&6
29798 else
29799   cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h.  */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h.  */
29805 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29807 #define shmat innocuous_shmat
29808
29809 /* System header to define __stub macros and hopefully few prototypes,
29810     which can conflict with char shmat (); below.
29811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29812     <limits.h> exists even on freestanding compilers.  */
29813
29814 #ifdef __STDC__
29815 # include <limits.h>
29816 #else
29817 # include <assert.h>
29818 #endif
29819
29820 #undef shmat
29821
29822 /* Override any gcc2 internal prototype to avoid an error.  */
29823 #ifdef __cplusplus
29824 extern "C"
29825 {
29826 #endif
29827 /* We use char because int might match the return type of a gcc2
29828    builtin and then its argument prototype would still apply.  */
29829 char shmat ();
29830 /* The GNU C library defines this for functions which it implements
29831     to always fail with ENOSYS.  Some functions are actually named
29832     something starting with __ and the normal name is an alias.  */
29833 #if defined (__stub_shmat) || defined (__stub___shmat)
29834 choke me
29835 #else
29836 char (*f) () = shmat;
29837 #endif
29838 #ifdef __cplusplus
29839 }
29840 #endif
29841
29842 int
29843 main ()
29844 {
29845 return f != shmat;
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29852   (eval $ac_link) 2>conftest.er1
29853   ac_status=$?
29854   grep -v '^ *+' conftest.er1 >conftest.err
29855   rm -f conftest.er1
29856   cat conftest.err >&5
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); } &&
29859          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861   (eval $ac_try) 2>&5
29862   ac_status=$?
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); }; } &&
29865          { ac_try='test -s conftest$ac_exeext'
29866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29867   (eval $ac_try) 2>&5
29868   ac_status=$?
29869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870   (exit $ac_status); }; }; then
29871   ac_cv_func_shmat=yes
29872 else
29873   echo "$as_me: failed program was:" >&5
29874 sed 's/^/| /' conftest.$ac_ext >&5
29875
29876 ac_cv_func_shmat=no
29877 fi
29878 rm -f conftest.err conftest.$ac_objext \
29879       conftest$ac_exeext conftest.$ac_ext
29880 fi
29881 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29882 echo "${ECHO_T}$ac_cv_func_shmat" >&6
29883
29884     if test $ac_cv_func_shmat = no; then
29885       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29886 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29887 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29888   echo $ECHO_N "(cached) $ECHO_C" >&6
29889 else
29890   ac_check_lib_save_LIBS=$LIBS
29891 LIBS="-lipc  $LIBS"
29892 cat >conftest.$ac_ext <<_ACEOF
29893 /* confdefs.h.  */
29894 _ACEOF
29895 cat confdefs.h >>conftest.$ac_ext
29896 cat >>conftest.$ac_ext <<_ACEOF
29897 /* end confdefs.h.  */
29898
29899 /* Override any gcc2 internal prototype to avoid an error.  */
29900 #ifdef __cplusplus
29901 extern "C"
29902 #endif
29903 /* We use char because int might match the return type of a gcc2
29904    builtin and then its argument prototype would still apply.  */
29905 char shmat ();
29906 int
29907 main ()
29908 {
29909 shmat ();
29910   ;
29911   return 0;
29912 }
29913 _ACEOF
29914 rm -f conftest.$ac_objext conftest$ac_exeext
29915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29916   (eval $ac_link) 2>conftest.er1
29917   ac_status=$?
29918   grep -v '^ *+' conftest.er1 >conftest.err
29919   rm -f conftest.er1
29920   cat conftest.err >&5
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); } &&
29923          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925   (eval $ac_try) 2>&5
29926   ac_status=$?
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); }; } &&
29929          { ac_try='test -s conftest$ac_exeext'
29930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931   (eval $ac_try) 2>&5
29932   ac_status=$?
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); }; }; then
29935   ac_cv_lib_ipc_shmat=yes
29936 else
29937   echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29939
29940 ac_cv_lib_ipc_shmat=no
29941 fi
29942 rm -f conftest.err conftest.$ac_objext \
29943       conftest$ac_exeext conftest.$ac_ext
29944 LIBS=$ac_check_lib_save_LIBS
29945 fi
29946 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29947 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29948 if test $ac_cv_lib_ipc_shmat = yes; then
29949   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29950 fi
29951
29952     fi
29953   fi
29954
29955   # Check for libraries that X11R6 Xt/Xaw programs need.
29956   ac_save_LDFLAGS=$LDFLAGS
29957   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29958   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29959   # check for ICE first), but we must link in the order -lSM -lICE or
29960   # we get undefined symbols.  So assume we have SM if we have ICE.
29961   # These have to be linked with before -lX11, unlike the other
29962   # libraries we check for below, so use a different variable.
29963   # John Interrante, Karl Berry
29964   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29965 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29966 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29967   echo $ECHO_N "(cached) $ECHO_C" >&6
29968 else
29969   ac_check_lib_save_LIBS=$LIBS
29970 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29971 cat >conftest.$ac_ext <<_ACEOF
29972 /* confdefs.h.  */
29973 _ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h.  */
29977
29978 /* Override any gcc2 internal prototype to avoid an error.  */
29979 #ifdef __cplusplus
29980 extern "C"
29981 #endif
29982 /* We use char because int might match the return type of a gcc2
29983    builtin and then its argument prototype would still apply.  */
29984 char IceConnectionNumber ();
29985 int
29986 main ()
29987 {
29988 IceConnectionNumber ();
29989   ;
29990   return 0;
29991 }
29992 _ACEOF
29993 rm -f conftest.$ac_objext conftest$ac_exeext
29994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29995   (eval $ac_link) 2>conftest.er1
29996   ac_status=$?
29997   grep -v '^ *+' conftest.er1 >conftest.err
29998   rm -f conftest.er1
29999   cat conftest.err >&5
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); } &&
30002          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004   (eval $ac_try) 2>&5
30005   ac_status=$?
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); }; } &&
30008          { ac_try='test -s conftest$ac_exeext'
30009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010   (eval $ac_try) 2>&5
30011   ac_status=$?
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); }; }; then
30014   ac_cv_lib_ICE_IceConnectionNumber=yes
30015 else
30016   echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30018
30019 ac_cv_lib_ICE_IceConnectionNumber=no
30020 fi
30021 rm -f conftest.err conftest.$ac_objext \
30022       conftest$ac_exeext conftest.$ac_ext
30023 LIBS=$ac_check_lib_save_LIBS
30024 fi
30025 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30026 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30027 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30028   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30029 fi
30030
30031   LDFLAGS=$ac_save_LDFLAGS
30032
30033 fi
30034
30035
30036         if test "$no_x" = "yes"; then
30037           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30038 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30039    { (exit 1); exit 1; }; }
30040         fi
30041
30042                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30043         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30044         AFMINSTALL=afminstall
30045         COMPILED_X_PROGRAM=0
30046
30047     fi
30048
30049     if test "$wxUSE_X11" = 1; then
30050         if test "$wxUSE_NANOX" = "yes"; then
30051             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30052 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30053             if test "x$MICROWIN" = x ; then
30054                 echo "$as_me:$LINENO: result: not found" >&5
30055 echo "${ECHO_T}not found" >&6
30056                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30057 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30058    { (exit 1); exit 1; }; }
30059             else
30060                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30061 echo "${ECHO_T}$MICROWIN" >&6
30062                 cat >>confdefs.h <<\_ACEOF
30063 #define wxUSE_NANOX 1
30064 _ACEOF
30065
30066             fi
30067         fi
30068
30069         if test "$wxUSE_UNICODE" = "yes"; then
30070
30071
30072 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30073         if test -n "$ac_tool_prefix"; then
30074   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30075 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30076 echo "$as_me:$LINENO: checking for $ac_word" >&5
30077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30078 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30079   echo $ECHO_N "(cached) $ECHO_C" >&6
30080 else
30081   case $PKG_CONFIG in
30082   [\\/]* | ?:[\\/]*)
30083   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30084   ;;
30085   *)
30086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30087 for as_dir in $PATH
30088 do
30089   IFS=$as_save_IFS
30090   test -z "$as_dir" && as_dir=.
30091   for ac_exec_ext in '' $ac_executable_extensions; do
30092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30093     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30095     break 2
30096   fi
30097 done
30098 done
30099
30100   ;;
30101 esac
30102 fi
30103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30104
30105 if test -n "$PKG_CONFIG"; then
30106   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30107 echo "${ECHO_T}$PKG_CONFIG" >&6
30108 else
30109   echo "$as_me:$LINENO: result: no" >&5
30110 echo "${ECHO_T}no" >&6
30111 fi
30112
30113 fi
30114 if test -z "$ac_cv_path_PKG_CONFIG"; then
30115   ac_pt_PKG_CONFIG=$PKG_CONFIG
30116   # Extract the first word of "pkg-config", so it can be a program name with args.
30117 set dummy pkg-config; ac_word=$2
30118 echo "$as_me:$LINENO: checking for $ac_word" >&5
30119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30120 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30121   echo $ECHO_N "(cached) $ECHO_C" >&6
30122 else
30123   case $ac_pt_PKG_CONFIG in
30124   [\\/]* | ?:[\\/]*)
30125   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30126   ;;
30127   *)
30128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129 for as_dir in $PATH
30130 do
30131   IFS=$as_save_IFS
30132   test -z "$as_dir" && as_dir=.
30133   for ac_exec_ext in '' $ac_executable_extensions; do
30134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30135     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30137     break 2
30138   fi
30139 done
30140 done
30141
30142   ;;
30143 esac
30144 fi
30145 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30146
30147 if test -n "$ac_pt_PKG_CONFIG"; then
30148   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30149 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30150 else
30151   echo "$as_me:$LINENO: result: no" >&5
30152 echo "${ECHO_T}no" >&6
30153 fi
30154
30155   PKG_CONFIG=$ac_pt_PKG_CONFIG
30156 else
30157   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30158 fi
30159
30160 fi
30161 if test -n "$PKG_CONFIG"; then
30162         _pkg_min_version=0.9.0
30163         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30164 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30165         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30166                 echo "$as_me:$LINENO: result: yes" >&5
30167 echo "${ECHO_T}yes" >&6
30168         else
30169                 echo "$as_me:$LINENO: result: no" >&5
30170 echo "${ECHO_T}no" >&6
30171                 PKG_CONFIG=""
30172         fi
30173
30174 fi
30175
30176 pkg_failed=no
30177 echo "$as_me:$LINENO: checking for PANGOX" >&5
30178 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
30179
30180 if test -n "$PKG_CONFIG"; then
30181     if test -n "$PANGOX_CFLAGS"; then
30182         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30183     else
30184         if test -n "$PKG_CONFIG" && \
30185     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30186   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; then
30190   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30191 else
30192   pkg_failed=yes
30193 fi
30194     fi
30195 else
30196         pkg_failed=untried
30197 fi
30198 if test -n "$PKG_CONFIG"; then
30199     if test -n "$PANGOX_LIBS"; then
30200         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30201     else
30202         if test -n "$PKG_CONFIG" && \
30203     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30204   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30205   ac_status=$?
30206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207   (exit $ac_status); }; then
30208   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30209 else
30210   pkg_failed=yes
30211 fi
30212     fi
30213 else
30214         pkg_failed=untried
30215 fi
30216
30217
30218
30219 if test $pkg_failed = yes; then
30220
30221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30222         _pkg_short_errors_supported=yes
30223 else
30224         _pkg_short_errors_supported=no
30225 fi
30226         if test $_pkg_short_errors_supported = yes; then
30227                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30228         else
30229                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30230         fi
30231         # Put the nasty error message in config.log where it belongs
30232         echo "$PANGOX_PKG_ERRORS" >&5
30233
30234
30235                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30236 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30237    { (exit 1); exit 1; }; }
30238
30239
30240 elif test $pkg_failed = untried; then
30241
30242                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30243 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30244    { (exit 1); exit 1; }; }
30245
30246
30247 else
30248         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30249         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30250         echo "$as_me:$LINENO: result: yes" >&5
30251 echo "${ECHO_T}yes" >&6
30252
30253                         CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30254                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30255
30256 fi
30257
30258 pkg_failed=no
30259 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30260 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30261
30262 if test -n "$PKG_CONFIG"; then
30263     if test -n "$PANGOFT2_CFLAGS"; then
30264         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30265     else
30266         if test -n "$PKG_CONFIG" && \
30267     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30268   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30269   ac_status=$?
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); }; then
30272   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30273 else
30274   pkg_failed=yes
30275 fi
30276     fi
30277 else
30278         pkg_failed=untried
30279 fi
30280 if test -n "$PKG_CONFIG"; then
30281     if test -n "$PANGOFT2_LIBS"; then
30282         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30283     else
30284         if test -n "$PKG_CONFIG" && \
30285     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30286   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30287   ac_status=$?
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); }; then
30290   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30291 else
30292   pkg_failed=yes
30293 fi
30294     fi
30295 else
30296         pkg_failed=untried
30297 fi
30298
30299
30300
30301 if test $pkg_failed = yes; then
30302
30303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30304         _pkg_short_errors_supported=yes
30305 else
30306         _pkg_short_errors_supported=no
30307 fi
30308         if test $_pkg_short_errors_supported = yes; then
30309                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30310         else
30311                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30312         fi
30313         # Put the nasty error message in config.log where it belongs
30314         echo "$PANGOFT2_PKG_ERRORS" >&5
30315
30316
30317                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30318 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30319                         wxUSE_PRINTING_ARCHITECTURE="no"
30320
30321
30322 elif test $pkg_failed = untried; then
30323
30324                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30325 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30326                         wxUSE_PRINTING_ARCHITECTURE="no"
30327
30328
30329 else
30330         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30331         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30332         echo "$as_me:$LINENO: result: yes" >&5
30333 echo "${ECHO_T}yes" >&6
30334
30335                         CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30336                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30337
30338 fi
30339
30340 pkg_failed=no
30341 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30342 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
30343
30344 if test -n "$PKG_CONFIG"; then
30345     if test -n "$PANGOXFT_CFLAGS"; then
30346         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30347     else
30348         if test -n "$PKG_CONFIG" && \
30349     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30350   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30351   ac_status=$?
30352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353   (exit $ac_status); }; then
30354   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
30355 else
30356   pkg_failed=yes
30357 fi
30358     fi
30359 else
30360         pkg_failed=untried
30361 fi
30362 if test -n "$PKG_CONFIG"; then
30363     if test -n "$PANGOXFT_LIBS"; then
30364         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30365     else
30366         if test -n "$PKG_CONFIG" && \
30367     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30368   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; then
30372   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30373 else
30374   pkg_failed=yes
30375 fi
30376     fi
30377 else
30378         pkg_failed=untried
30379 fi
30380
30381
30382
30383 if test $pkg_failed = yes; then
30384
30385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30386         _pkg_short_errors_supported=yes
30387 else
30388         _pkg_short_errors_supported=no
30389 fi
30390         if test $_pkg_short_errors_supported = yes; then
30391                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30392         else
30393                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30394         fi
30395         # Put the nasty error message in config.log where it belongs
30396         echo "$PANGOXFT_PKG_ERRORS" >&5
30397
30398
30399                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30400 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30401
30402
30403 elif test $pkg_failed = untried; then
30404
30405                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30406 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30407
30408
30409 else
30410         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30411         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30412         echo "$as_me:$LINENO: result: yes" >&5
30413 echo "${ECHO_T}yes" >&6
30414
30415                         cat >>confdefs.h <<\_ACEOF
30416 #define HAVE_PANGO_XFT 1
30417 _ACEOF
30418
30419                         CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30420                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30421
30422 fi
30423                 save_CXXFLAGS="$CXXFLAGS"
30424                 save_LIBS="$LIBS"
30425                 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30426                 LIBS="$LIBS $PANGOX_LIBS"
30427
30428 for ac_func in pango_font_family_is_monospace
30429 do
30430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431 echo "$as_me:$LINENO: checking for $ac_func" >&5
30432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30433 if eval "test \"\${$as_ac_var+set}\" = set"; then
30434   echo $ECHO_N "(cached) $ECHO_C" >&6
30435 else
30436   cat >conftest.$ac_ext <<_ACEOF
30437 /* confdefs.h.  */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h.  */
30442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30444 #define $ac_func innocuous_$ac_func
30445
30446 /* System header to define __stub macros and hopefully few prototypes,
30447     which can conflict with char $ac_func (); below.
30448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30449     <limits.h> exists even on freestanding compilers.  */
30450
30451 #ifdef __STDC__
30452 # include <limits.h>
30453 #else
30454 # include <assert.h>
30455 #endif
30456
30457 #undef $ac_func
30458
30459 /* Override any gcc2 internal prototype to avoid an error.  */
30460 #ifdef __cplusplus
30461 extern "C"
30462 {
30463 #endif
30464 /* We use char because int might match the return type of a gcc2
30465    builtin and then its argument prototype would still apply.  */
30466 char $ac_func ();
30467 /* The GNU C library defines this for functions which it implements
30468     to always fail with ENOSYS.  Some functions are actually named
30469     something starting with __ and the normal name is an alias.  */
30470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30471 choke me
30472 #else
30473 char (*f) () = $ac_func;
30474 #endif
30475 #ifdef __cplusplus
30476 }
30477 #endif
30478
30479 int
30480 main ()
30481 {
30482 return f != $ac_func;
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489   (eval $ac_link) 2>conftest.er1
30490   ac_status=$?
30491   grep -v '^ *+' conftest.er1 >conftest.err
30492   rm -f conftest.er1
30493   cat conftest.err >&5
30494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495   (exit $ac_status); } &&
30496          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498   (eval $ac_try) 2>&5
30499   ac_status=$?
30500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); }; } &&
30502          { ac_try='test -s conftest$ac_exeext'
30503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504   (eval $ac_try) 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; }; then
30508   eval "$as_ac_var=yes"
30509 else
30510   echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513 eval "$as_ac_var=no"
30514 fi
30515 rm -f conftest.err conftest.$ac_objext \
30516       conftest$ac_exeext conftest.$ac_ext
30517 fi
30518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30520 if test `eval echo '${'$as_ac_var'}'` = yes; then
30521   cat >>confdefs.h <<_ACEOF
30522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30523 _ACEOF
30524
30525 fi
30526 done
30527
30528                 CXXFLAGS="$save_CXXFLAGS"
30529                 LIBS="$save_LIBS"
30530         fi
30531
30532         wxUSE_UNIVERSAL="yes"
30533
30534         if test "$wxUSE_NANOX" = "yes"; then
30535             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30536             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"
30537             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30538         else
30539             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30540         fi
30541
30542         TOOLKIT=X11
30543         GUIDIST=X11_DIST
30544     fi
30545
30546     if test "$wxUSE_MOTIF" = 1; then
30547         if test "$wxUSE_UNICODE" = "yes"; then
30548             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30549 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30550    { (exit 1); exit 1; }; }
30551         fi
30552
30553         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30554 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
30555
30556 ac_find_includes=
30557 for ac_dir in $SEARCH_INCLUDE /usr/include;
30558   do
30559     if test -f "$ac_dir/Xm/Xm.h"; then
30560       ac_find_includes=$ac_dir
30561       break
30562     fi
30563   done
30564
30565         if test "$ac_find_includes" != "" ; then
30566             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30567 echo "${ECHO_T}found in $ac_find_includes" >&6
30568
30569     if test "x$ac_find_includes" = "x/usr/include"; then
30570     ac_path_to_include=""
30571   else
30572     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30573     result=$?
30574     if test $result = 0; then
30575       ac_path_to_include=""
30576     else
30577       ac_path_to_include=" -I$ac_find_includes"
30578     fi
30579   fi
30580
30581             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30582         else
30583             save_CXXFLAGS=$CXXFLAGS
30584             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30585
30586             cat >conftest.$ac_ext <<_ACEOF
30587 /* confdefs.h.  */
30588 _ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h.  */
30592
30593                     #include <Xm/Xm.h>
30594
30595 int
30596 main ()
30597 {
30598
30599                     int version;
30600                     version = xmUseVersion;
30601
30602   ;
30603   return 0;
30604 }
30605 _ACEOF
30606 rm -f conftest.$ac_objext
30607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30608   (eval $ac_compile) 2>conftest.er1
30609   ac_status=$?
30610   grep -v '^ *+' conftest.er1 >conftest.err
30611   rm -f conftest.er1
30612   cat conftest.err >&5
30613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614   (exit $ac_status); } &&
30615          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617   (eval $ac_try) 2>&5
30618   ac_status=$?
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); }; } &&
30621          { ac_try='test -s conftest.$ac_objext'
30622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623   (eval $ac_try) 2>&5
30624   ac_status=$?
30625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626   (exit $ac_status); }; }; then
30627
30628                     echo "$as_me:$LINENO: result: found in default search path" >&5
30629 echo "${ECHO_T}found in default search path" >&6
30630                     COMPILED_X_PROGRAM=1
30631
30632 else
30633   echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30635
30636
30637                     echo "$as_me:$LINENO: result: no" >&5
30638 echo "${ECHO_T}no" >&6
30639                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30640 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
30641    { (exit 1); exit 1; }; }
30642
30643
30644 fi
30645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30646
30647             CXXFLAGS=$save_CXXFLAGS
30648         fi
30649
30650
30651         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
30652 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30653
30654   ac_find_libraries=
30655   for ac_dir in $SEARCH_LIB;
30656   do
30657     for ac_extension in a so sl dylib dll.a; do
30658       if test -f "$ac_dir/libXm.$ac_extension"; then
30659         ac_find_libraries=$ac_dir
30660         break 2
30661       fi
30662     done
30663   done
30664
30665
30666         if test "x$ac_find_libraries" != "x" ; then
30667             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30668 echo "${ECHO_T}found in $ac_find_libraries" >&6
30669
30670
30671     if test "$ac_find_libraries" = "default location"; then
30672     ac_path_to_link=""
30673   else
30674     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30675     result=$?
30676     if test $result = 0; then
30677       ac_path_to_link=""
30678     else
30679       ac_path_to_link=" -L$ac_find_libraries"
30680     fi
30681   fi
30682
30683             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30684         else
30685                                                 save_CXXFLAGS=$CXXFLAGS
30686             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30687             save_LIBS="$LIBS"
30688             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
30689
30690             cat >conftest.$ac_ext <<_ACEOF
30691 /* confdefs.h.  */
30692 _ACEOF
30693 cat confdefs.h >>conftest.$ac_ext
30694 cat >>conftest.$ac_ext <<_ACEOF
30695 /* end confdefs.h.  */
30696
30697                     #include <Xm/Xm.h>
30698
30699 int
30700 main ()
30701 {
30702
30703                     int version;
30704                     version = xmUseVersion;
30705
30706   ;
30707   return 0;
30708 }
30709 _ACEOF
30710 rm -f conftest.$ac_objext conftest$ac_exeext
30711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30712   (eval $ac_link) 2>conftest.er1
30713   ac_status=$?
30714   grep -v '^ *+' conftest.er1 >conftest.err
30715   rm -f conftest.er1
30716   cat conftest.err >&5
30717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718   (exit $ac_status); } &&
30719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721   (eval $ac_try) 2>&5
30722   ac_status=$?
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); }; } &&
30725          { ac_try='test -s conftest$ac_exeext'
30726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727   (eval $ac_try) 2>&5
30728   ac_status=$?
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); }; }; then
30731
30732                     echo "$as_me:$LINENO: result: found in default search path" >&5
30733 echo "${ECHO_T}found in default search path" >&6
30734                     COMPILED_X_PROGRAM=1
30735
30736 else
30737   echo "$as_me: failed program was:" >&5
30738 sed 's/^/| /' conftest.$ac_ext >&5
30739
30740
30741                     echo "$as_me:$LINENO: result: no" >&5
30742 echo "${ECHO_T}no" >&6
30743                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
30744 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30745    { (exit 1); exit 1; }; }
30746
30747
30748 fi
30749 rm -f conftest.err conftest.$ac_objext \
30750       conftest$ac_exeext conftest.$ac_ext
30751
30752             CXXFLAGS=$save_CXXFLAGS
30753             LIBS="$save_LIBS"
30754         fi
30755
30756         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30757 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30758         libp_link=""
30759         libsm_ice_link=""
30760         libs_found=0
30761         for libp in "" " -lXp"; do
30762             if test "$libs_found" = "0"; then
30763                 for libsm_ice in "" " -lSM -lICE"; do
30764                     if test "$libs_found" = "0"; then
30765                         save_LIBS="$LIBS"
30766                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
30767                         save_CXXFLAGS=$CXXFLAGS
30768                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30769
30770                         cat >conftest.$ac_ext <<_ACEOF
30771 /* confdefs.h.  */
30772 _ACEOF
30773 cat confdefs.h >>conftest.$ac_ext
30774 cat >>conftest.$ac_ext <<_ACEOF
30775 /* end confdefs.h.  */
30776
30777                                 #include <Xm/Xm.h>
30778                                 #include <Xm/List.h>
30779
30780 int
30781 main ()
30782 {
30783
30784                                 XmString string = NULL;
30785                                 Widget w = NULL;
30786                                 int position = 0;
30787                                 XmListAddItem(w, string, position);
30788
30789   ;
30790   return 0;
30791 }
30792 _ACEOF
30793 rm -f conftest.$ac_objext conftest$ac_exeext
30794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30795   (eval $ac_link) 2>conftest.er1
30796   ac_status=$?
30797   grep -v '^ *+' conftest.er1 >conftest.err
30798   rm -f conftest.er1
30799   cat conftest.err >&5
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); } &&
30802          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804   (eval $ac_try) 2>&5
30805   ac_status=$?
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); }; } &&
30808          { ac_try='test -s conftest$ac_exeext'
30809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810   (eval $ac_try) 2>&5
30811   ac_status=$?
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); }; }; then
30814
30815                                 libp_link="$libp"
30816                                 libsm_ice_link="$libsm_ice"
30817                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30818 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30819                                 libs_found=1
30820
30821 else
30822   echo "$as_me: failed program was:" >&5
30823 sed 's/^/| /' conftest.$ac_ext >&5
30824
30825
30826
30827 fi
30828 rm -f conftest.err conftest.$ac_objext \
30829       conftest$ac_exeext conftest.$ac_ext
30830
30831                         LIBS="$save_LIBS"
30832                         CXXFLAGS=$save_CXXFLAGS
30833                     fi
30834                 done
30835             fi
30836         done
30837
30838         if test "$libs_found" = "0"; then
30839             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30840 echo "${ECHO_T}can't find the right libraries" >&6
30841             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30842 echo "$as_me: error: can't link a simple motif program" >&2;}
30843    { (exit 1); exit 1; }; }
30844         fi
30845
30846                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30847 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30848 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30849   echo $ECHO_N "(cached) $ECHO_C" >&6
30850 else
30851   ac_check_lib_save_LIBS=$LIBS
30852 LIBS="-lSgm  $LIBS"
30853 cat >conftest.$ac_ext <<_ACEOF
30854 /* confdefs.h.  */
30855 _ACEOF
30856 cat confdefs.h >>conftest.$ac_ext
30857 cat >>conftest.$ac_ext <<_ACEOF
30858 /* end confdefs.h.  */
30859
30860 /* Override any gcc2 internal prototype to avoid an error.  */
30861 #ifdef __cplusplus
30862 extern "C"
30863 #endif
30864 /* We use char because int might match the return type of a gcc2
30865    builtin and then its argument prototype would still apply.  */
30866 char SgCreateList ();
30867 int
30868 main ()
30869 {
30870 SgCreateList ();
30871   ;
30872   return 0;
30873 }
30874 _ACEOF
30875 rm -f conftest.$ac_objext conftest$ac_exeext
30876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877   (eval $ac_link) 2>conftest.er1
30878   ac_status=$?
30879   grep -v '^ *+' conftest.er1 >conftest.err
30880   rm -f conftest.er1
30881   cat conftest.err >&5
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); } &&
30884          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886   (eval $ac_try) 2>&5
30887   ac_status=$?
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); }; } &&
30890          { ac_try='test -s conftest$ac_exeext'
30891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892   (eval $ac_try) 2>&5
30893   ac_status=$?
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); }; }; then
30896   ac_cv_lib_Sgm_SgCreateList=yes
30897 else
30898   echo "$as_me: failed program was:" >&5
30899 sed 's/^/| /' conftest.$ac_ext >&5
30900
30901 ac_cv_lib_Sgm_SgCreateList=no
30902 fi
30903 rm -f conftest.err conftest.$ac_objext \
30904       conftest$ac_exeext conftest.$ac_ext
30905 LIBS=$ac_check_lib_save_LIBS
30906 fi
30907 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30908 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30909 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30910   libsgm_link=" -lSgm"
30911 fi
30912
30913
30914         save_CXXFLAGS=$CXXFLAGS
30915         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30916
30917         echo "$as_me:$LINENO: checking for Motif 2" >&5
30918 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
30919 if test "${wx_cv_lib_motif2+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h.  */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h.  */
30928
30929                             #include <Xm/Xm.h>
30930
30931 int
30932 main ()
30933 {
30934
30935                             #if XmVersion < 2000
30936                             Not Motif 2
30937                             #endif
30938
30939   ;
30940   return 0;
30941 }
30942 _ACEOF
30943 rm -f conftest.$ac_objext
30944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30945   (eval $ac_compile) 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_objext'
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   wx_cv_lib_motif2="yes"
30965 else
30966   echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30968
30969 wx_cv_lib_motif2="no"
30970 fi
30971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30972 fi
30973 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30974 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30975         if test "$wx_cv_lib_motif2" = "yes"; then
30976             cat >>confdefs.h <<\_ACEOF
30977 #define __WXMOTIF20__ 1
30978 _ACEOF
30979
30980         else
30981             cat >>confdefs.h <<\_ACEOF
30982 #define __WXMOTIF20__ 0
30983 _ACEOF
30984
30985         fi
30986
30987         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30988 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
30989 if test "${wx_cv_lib_lesstif+set}" = set; then
30990   echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992   cat >conftest.$ac_ext <<_ACEOF
30993 /* confdefs.h.  */
30994 _ACEOF
30995 cat confdefs.h >>conftest.$ac_ext
30996 cat >>conftest.$ac_ext <<_ACEOF
30997 /* end confdefs.h.  */
30998
30999                             #include <Xm/Xm.h>
31000
31001 int
31002 main ()
31003 {
31004
31005                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31006                             Not Lesstif
31007                             #endif
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   wx_cv_lib_lesstif="yes"
31035 else
31036   echo "$as_me: failed program was:" >&5
31037 sed 's/^/| /' conftest.$ac_ext >&5
31038
31039 wx_cv_lib_lesstif="no"
31040 fi
31041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31042
31043 fi
31044 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31045 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31046         if test "$wx_cv_lib_lesstif" = "yes"; then
31047             cat >>confdefs.h <<\_ACEOF
31048 #define __WXLESSTIF__ 1
31049 _ACEOF
31050
31051         else
31052             cat >>confdefs.h <<\_ACEOF
31053 #define __WXLESSTIF__ 0
31054 _ACEOF
31055
31056         fi
31057
31058         CXXFLAGS=$save_CXXFLAGS
31059
31060         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31061         TOOLKIT=MOTIF
31062         GUIDIST=MOTIF_DIST
31063     fi
31064
31065         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31066                 if test "$wxUSE_LIBXPM" = "sys"; then
31067             echo "$as_me:$LINENO: checking for Xpm library" >&5
31068 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31069
31070   ac_find_libraries=
31071   for ac_dir in $SEARCH_LIB;
31072   do
31073     for ac_extension in a so sl dylib dll.a; do
31074       if test -f "$ac_dir/libXpm.$ac_extension"; then
31075         ac_find_libraries=$ac_dir
31076         break 2
31077       fi
31078     done
31079   done
31080
31081             if test "$ac_find_libraries" != "" ; then
31082
31083     if test "$ac_find_libraries" = "default location"; then
31084     ac_path_to_link=""
31085   else
31086     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31087     result=$?
31088     if test $result = 0; then
31089       ac_path_to_link=""
31090     else
31091       ac_path_to_link=" -L$ac_find_libraries"
31092     fi
31093   fi
31094
31095                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31096                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31097 echo "${ECHO_T}found in $ac_find_libraries" >&6
31098
31099                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31100 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31101 if test "${wx_cv_x11_xpm_h+set}" = set; then
31102   echo $ECHO_N "(cached) $ECHO_C" >&6
31103 else
31104
31105                         save_CXXFLAGS=$CXXFLAGS
31106                         CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31107
31108                         cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114
31115                                 #include <X11/xpm.h>
31116
31117 int
31118 main ()
31119 {
31120
31121                                 int version;
31122                                 version = XpmLibraryVersion();
31123
31124   ;
31125   return 0;
31126 }
31127 _ACEOF
31128 rm -f conftest.$ac_objext
31129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31130   (eval $ac_compile) 2>conftest.er1
31131   ac_status=$?
31132   grep -v '^ *+' conftest.er1 >conftest.err
31133   rm -f conftest.er1
31134   cat conftest.err >&5
31135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136   (exit $ac_status); } &&
31137          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139   (eval $ac_try) 2>&5
31140   ac_status=$?
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); }; } &&
31143          { ac_try='test -s conftest.$ac_objext'
31144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145   (eval $ac_try) 2>&5
31146   ac_status=$?
31147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148   (exit $ac_status); }; }; then
31149   wx_cv_x11_xpm_h=yes
31150 else
31151   echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31153
31154 wx_cv_x11_xpm_h=no
31155
31156 fi
31157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31158
31159                         CXXFLAGS=$save_CXXFLAGS
31160
31161
31162 fi
31163 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31164 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31165
31166                 if test $wx_cv_x11_xpm_h = "yes"; then
31167                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31168                     cat >>confdefs.h <<\_ACEOF
31169 #define wxHAVE_LIB_XPM 1
31170 _ACEOF
31171
31172                 else
31173                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31174 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31175                 fi
31176             fi
31177
31178         fi
31179
31180                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31181 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31182 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31183   echo $ECHO_N "(cached) $ECHO_C" >&6
31184 else
31185   ac_check_lib_save_LIBS=$LIBS
31186 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31187 cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h.  */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h.  */
31193
31194 /* Override any gcc2 internal prototype to avoid an error.  */
31195 #ifdef __cplusplus
31196 extern "C"
31197 #endif
31198 /* We use char because int might match the return type of a gcc2
31199    builtin and then its argument prototype would still apply.  */
31200 char XShapeQueryExtension ();
31201 int
31202 main ()
31203 {
31204 XShapeQueryExtension ();
31205   ;
31206   return 0;
31207 }
31208 _ACEOF
31209 rm -f conftest.$ac_objext conftest$ac_exeext
31210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31211   (eval $ac_link) 2>conftest.er1
31212   ac_status=$?
31213   grep -v '^ *+' conftest.er1 >conftest.err
31214   rm -f conftest.er1
31215   cat conftest.err >&5
31216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217   (exit $ac_status); } &&
31218          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31220   (eval $ac_try) 2>&5
31221   ac_status=$?
31222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223   (exit $ac_status); }; } &&
31224          { ac_try='test -s conftest$ac_exeext'
31225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226   (eval $ac_try) 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); }; }; then
31230   ac_cv_lib_Xext_XShapeQueryExtension=yes
31231 else
31232   echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31234
31235 ac_cv_lib_Xext_XShapeQueryExtension=no
31236 fi
31237 rm -f conftest.err conftest.$ac_objext \
31238       conftest$ac_exeext conftest.$ac_ext
31239 LIBS=$ac_check_lib_save_LIBS
31240 fi
31241 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31242 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31243 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31244
31245                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31246                       wxHAVE_XEXT_LIB=1
31247
31248 fi
31249
31250
31251         if test "$wxHAVE_XEXT_LIB" = 1; then
31252             save_CXXFLAGS="$CXXFLAGS"
31253             CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
31254
31255             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31256 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31257             cat >conftest.$ac_ext <<_ACEOF
31258 /* confdefs.h.  */
31259 _ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h.  */
31263
31264                             #include <X11/Xlib.h>
31265                             #include <X11/extensions/shape.h>
31266
31267 int
31268 main ()
31269 {
31270
31271                             int dummy1, dummy2;
31272                             XShapeQueryExtension((Display*)NULL,
31273                                                  (int*)NULL, (int*)NULL);
31274
31275   ;
31276   return 0;
31277 }
31278 _ACEOF
31279 rm -f conftest.$ac_objext
31280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31281   (eval $ac_compile) 2>conftest.er1
31282   ac_status=$?
31283   grep -v '^ *+' conftest.er1 >conftest.err
31284   rm -f conftest.er1
31285   cat conftest.err >&5
31286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287   (exit $ac_status); } &&
31288          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290   (eval $ac_try) 2>&5
31291   ac_status=$?
31292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293   (exit $ac_status); }; } &&
31294          { ac_try='test -s conftest.$ac_objext'
31295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31296   (eval $ac_try) 2>&5
31297   ac_status=$?
31298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299   (exit $ac_status); }; }; then
31300
31301                             cat >>confdefs.h <<\_ACEOF
31302 #define HAVE_XSHAPE 1
31303 _ACEOF
31304
31305                             echo "$as_me:$LINENO: result: found" >&5
31306 echo "${ECHO_T}found" >&6
31307
31308 else
31309   echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31311
31312
31313                             echo "$as_me:$LINENO: result: not found" >&5
31314 echo "${ECHO_T}not found" >&6
31315
31316 fi
31317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31318             CXXFLAGS="$save_CXXFLAGS"
31319
31320         fi
31321     fi
31322
31323     if test "$wxUSE_MAC" = 1; then
31324         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31325 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31326         if test "$GCC" = yes; then
31327             echo "$as_me:$LINENO: result: gcc" >&5
31328 echo "${ECHO_T}gcc" >&6
31329             CPPFLAGS_PASCAL="-fpascal-strings"
31330         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31331             echo "$as_me:$LINENO: result: xlc" >&5
31332 echo "${ECHO_T}xlc" >&6
31333             CPPFLAGS_PASCAL="-qmacpstr"
31334         else
31335             echo "$as_me:$LINENO: result: none" >&5
31336 echo "${ECHO_T}none" >&6
31337         fi
31338
31339         if test "x$wxUSE_UNIX" = "xyes"; then
31340             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31341         else
31342                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31343         fi
31344
31345         TOOLKIT=MAC
31346                 GUIDIST=MACX_DIST
31347                         WXBASEPORT="_carbon"
31348     fi
31349
31350     if test "$wxUSE_COCOA" = 1; then
31351         TOOLKIT=COCOA
31352         GUIDIST=COCOA_DIST
31353     fi
31354
31355     if test "$wxUSE_PM" = 1; then
31356         TOOLKIT=PM
31357         GUIDIST=PM_DIST
31358         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31359 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31360 if test "${wx_cv_spbcdata+set}" = set; then
31361   echo $ECHO_N "(cached) $ECHO_C" >&6
31362 else
31363
31364                 cat >conftest.$ac_ext <<_ACEOF
31365 /* confdefs.h.  */
31366 _ACEOF
31367 cat confdefs.h >>conftest.$ac_ext
31368 cat >>conftest.$ac_ext <<_ACEOF
31369 /* end confdefs.h.  */
31370
31371                         #define INCL_PM
31372                         #include <os2.h>
31373
31374 int
31375 main ()
31376 {
31377
31378                         SPBCDATA test;
31379
31380   ;
31381   return 0;
31382 }
31383 _ACEOF
31384 rm -f conftest.$ac_objext
31385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31386   (eval $ac_compile) 2>conftest.er1
31387   ac_status=$?
31388   grep -v '^ *+' conftest.er1 >conftest.err
31389   rm -f conftest.er1
31390   cat conftest.err >&5
31391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392   (exit $ac_status); } &&
31393          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395   (eval $ac_try) 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; } &&
31399          { ac_try='test -s conftest.$ac_objext'
31400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401   (eval $ac_try) 2>&5
31402   ac_status=$?
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); }; }; then
31405   wx_cv_spbcdata=yes
31406 else
31407   echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31409
31410 wx_cv_spbcdata=no
31411
31412 fi
31413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31414
31415
31416 fi
31417 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31418 echo "${ECHO_T}$wx_cv_spbcdata" >&6
31419
31420         if test $wx_cv_spbcdata = "yes"; then
31421             cat >>confdefs.h <<\_ACEOF
31422 #define HAVE_SPBCDATA 1
31423 _ACEOF
31424
31425         fi
31426     fi
31427
31428         if test "$TOOLKIT" = "PM" ; then
31429         TOOLKIT_DIR="os2"
31430     else
31431         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31432     fi
31433
31434     if test "$wxUSE_UNIVERSAL" = "yes"; then
31435         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31436         WIDGET_SET=univ
31437     fi
31438
31439         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31440     DISTDIR="wx\$(TOOLKIT)"
31441 else
31442     USE_GUI=0
31443
31444             TOOLKIT_DIR="base"
31445
31446         if test "$USE_WIN32" = 1 ; then
31447                         TOOLKIT="MSW"
31448     fi
31449
31450         GUIDIST="BASE_DIST"
31451     DISTDIR="wxBase"
31452 fi
31453
31454
31455 if test "$wxUSE_GUI" = "yes"; then
31456     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31457
31458 for ac_header in X11/Xlib.h
31459 do
31460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31462   echo "$as_me:$LINENO: checking for $ac_header" >&5
31463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31465   echo $ECHO_N "(cached) $ECHO_C" >&6
31466 fi
31467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31469 else
31470   # Is the header compilable?
31471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31473 cat >conftest.$ac_ext <<_ACEOF
31474 /* confdefs.h.  */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h.  */
31479 $ac_includes_default
31480 #include <$ac_header>
31481 _ACEOF
31482 rm -f conftest.$ac_objext
31483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484   (eval $ac_compile) 2>conftest.er1
31485   ac_status=$?
31486   grep -v '^ *+' conftest.er1 >conftest.err
31487   rm -f conftest.er1
31488   cat conftest.err >&5
31489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490   (exit $ac_status); } &&
31491          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493   (eval $ac_try) 2>&5
31494   ac_status=$?
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); }; } &&
31497          { ac_try='test -s conftest.$ac_objext'
31498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499   (eval $ac_try) 2>&5
31500   ac_status=$?
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); }; }; then
31503   ac_header_compiler=yes
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508 ac_header_compiler=no
31509 fi
31510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31512 echo "${ECHO_T}$ac_header_compiler" >&6
31513
31514 # Is the header present?
31515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31517 cat >conftest.$ac_ext <<_ACEOF
31518 /* confdefs.h.  */
31519 _ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h.  */
31523 #include <$ac_header>
31524 _ACEOF
31525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31527   ac_status=$?
31528   grep -v '^ *+' conftest.er1 >conftest.err
31529   rm -f conftest.er1
31530   cat conftest.err >&5
31531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532   (exit $ac_status); } >/dev/null; then
31533   if test -s conftest.err; then
31534     ac_cpp_err=$ac_cxx_preproc_warn_flag
31535     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31536   else
31537     ac_cpp_err=
31538   fi
31539 else
31540   ac_cpp_err=yes
31541 fi
31542 if test -z "$ac_cpp_err"; then
31543   ac_header_preproc=yes
31544 else
31545   echo "$as_me: failed program was:" >&5
31546 sed 's/^/| /' conftest.$ac_ext >&5
31547
31548   ac_header_preproc=no
31549 fi
31550 rm -f conftest.err conftest.$ac_ext
31551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31552 echo "${ECHO_T}$ac_header_preproc" >&6
31553
31554 # So?  What about this header?
31555 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31556   yes:no: )
31557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31561     ac_header_preproc=yes
31562     ;;
31563   no:yes:* )
31564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31576     (
31577       cat <<\_ASBOX
31578 ## ----------------------------------------- ##
31579 ## Report this to wx-dev@lists.wxwidgets.org ##
31580 ## ----------------------------------------- ##
31581 _ASBOX
31582     ) |
31583       sed "s/^/$as_me: WARNING:     /" >&2
31584     ;;
31585 esac
31586 echo "$as_me:$LINENO: checking for $ac_header" >&5
31587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31589   echo $ECHO_N "(cached) $ECHO_C" >&6
31590 else
31591   eval "$as_ac_Header=\$ac_header_preproc"
31592 fi
31593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31595
31596 fi
31597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31598   cat >>confdefs.h <<_ACEOF
31599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31600 _ACEOF
31601
31602 fi
31603
31604 done
31605
31606
31607 for ac_header in X11/XKBlib.h
31608 do
31609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31610 echo "$as_me:$LINENO: checking for $ac_header" >&5
31611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31613   echo $ECHO_N "(cached) $ECHO_C" >&6
31614 else
31615   cat >conftest.$ac_ext <<_ACEOF
31616 /* confdefs.h.  */
31617 _ACEOF
31618 cat confdefs.h >>conftest.$ac_ext
31619 cat >>conftest.$ac_ext <<_ACEOF
31620 /* end confdefs.h.  */
31621
31622                           #if HAVE_X11_XLIB_H
31623                             #include <X11/Xlib.h>
31624                           #endif
31625
31626
31627 #include <$ac_header>
31628 _ACEOF
31629 rm -f conftest.$ac_objext
31630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31631   (eval $ac_compile) 2>conftest.er1
31632   ac_status=$?
31633   grep -v '^ *+' conftest.er1 >conftest.err
31634   rm -f conftest.er1
31635   cat conftest.err >&5
31636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637   (exit $ac_status); } &&
31638          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640   (eval $ac_try) 2>&5
31641   ac_status=$?
31642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643   (exit $ac_status); }; } &&
31644          { ac_try='test -s conftest.$ac_objext'
31645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646   (eval $ac_try) 2>&5
31647   ac_status=$?
31648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649   (exit $ac_status); }; }; then
31650   eval "$as_ac_Header=yes"
31651 else
31652   echo "$as_me: failed program was:" >&5
31653 sed 's/^/| /' conftest.$ac_ext >&5
31654
31655 eval "$as_ac_Header=no"
31656 fi
31657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31658 fi
31659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31662   cat >>confdefs.h <<_ACEOF
31663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31664 _ACEOF
31665
31666 fi
31667
31668 done
31669
31670     fi
31671 fi
31672
31673
31674
31675 IODBC_C_SRC=""
31676
31677
31678 if test "$TOOLKIT" != "MSW" ; then
31679
31680     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31681
31682         if test "${ac_cv_header_sql_h+set}" = set; then
31683   echo "$as_me:$LINENO: checking for sql.h" >&5
31684 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31685 if test "${ac_cv_header_sql_h+set}" = set; then
31686   echo $ECHO_N "(cached) $ECHO_C" >&6
31687 fi
31688 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31689 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31690 else
31691   # Is the header compilable?
31692 echo "$as_me:$LINENO: checking sql.h usability" >&5
31693 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31694 cat >conftest.$ac_ext <<_ACEOF
31695 /* confdefs.h.  */
31696 _ACEOF
31697 cat confdefs.h >>conftest.$ac_ext
31698 cat >>conftest.$ac_ext <<_ACEOF
31699 /* end confdefs.h.  */
31700 $ac_includes_default
31701 #include <sql.h>
31702 _ACEOF
31703 rm -f conftest.$ac_objext
31704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31705   (eval $ac_compile) 2>conftest.er1
31706   ac_status=$?
31707   grep -v '^ *+' conftest.er1 >conftest.err
31708   rm -f conftest.er1
31709   cat conftest.err >&5
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); } &&
31712          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714   (eval $ac_try) 2>&5
31715   ac_status=$?
31716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717   (exit $ac_status); }; } &&
31718          { ac_try='test -s conftest.$ac_objext'
31719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31720   (eval $ac_try) 2>&5
31721   ac_status=$?
31722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723   (exit $ac_status); }; }; then
31724   ac_header_compiler=yes
31725 else
31726   echo "$as_me: failed program was:" >&5
31727 sed 's/^/| /' conftest.$ac_ext >&5
31728
31729 ac_header_compiler=no
31730 fi
31731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31733 echo "${ECHO_T}$ac_header_compiler" >&6
31734
31735 # Is the header present?
31736 echo "$as_me:$LINENO: checking sql.h presence" >&5
31737 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31738 cat >conftest.$ac_ext <<_ACEOF
31739 /* confdefs.h.  */
31740 _ACEOF
31741 cat confdefs.h >>conftest.$ac_ext
31742 cat >>conftest.$ac_ext <<_ACEOF
31743 /* end confdefs.h.  */
31744 #include <sql.h>
31745 _ACEOF
31746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31748   ac_status=$?
31749   grep -v '^ *+' conftest.er1 >conftest.err
31750   rm -f conftest.er1
31751   cat conftest.err >&5
31752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753   (exit $ac_status); } >/dev/null; then
31754   if test -s conftest.err; then
31755     ac_cpp_err=$ac_cxx_preproc_warn_flag
31756     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31757   else
31758     ac_cpp_err=
31759   fi
31760 else
31761   ac_cpp_err=yes
31762 fi
31763 if test -z "$ac_cpp_err"; then
31764   ac_header_preproc=yes
31765 else
31766   echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31768
31769   ac_header_preproc=no
31770 fi
31771 rm -f conftest.err conftest.$ac_ext
31772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31773 echo "${ECHO_T}$ac_header_preproc" >&6
31774
31775 # So?  What about this header?
31776 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31777   yes:no: )
31778     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31779 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31780     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31781 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31782     ac_header_preproc=yes
31783     ;;
31784   no:yes:* )
31785     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31786 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
31787     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
31788 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
31789     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31790 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31791     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
31792 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31793     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31794 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
31795     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31796 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
31797     (
31798       cat <<\_ASBOX
31799 ## ----------------------------------------- ##
31800 ## Report this to wx-dev@lists.wxwidgets.org ##
31801 ## ----------------------------------------- ##
31802 _ASBOX
31803     ) |
31804       sed "s/^/$as_me: WARNING:     /" >&2
31805     ;;
31806 esac
31807 echo "$as_me:$LINENO: checking for sql.h" >&5
31808 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31809 if test "${ac_cv_header_sql_h+set}" = set; then
31810   echo $ECHO_N "(cached) $ECHO_C" >&6
31811 else
31812   ac_cv_header_sql_h=$ac_header_preproc
31813 fi
31814 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31815 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31816
31817 fi
31818 if test $ac_cv_header_sql_h = yes; then
31819   found_sql_h=1
31820 fi
31821
31822
31823         if test "x$found_sql_h" = "x1" ; then
31824             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31825 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31826 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31827   echo $ECHO_N "(cached) $ECHO_C" >&6
31828 else
31829   ac_check_lib_save_LIBS=$LIBS
31830 LIBS="-liodbc  $LIBS"
31831 cat >conftest.$ac_ext <<_ACEOF
31832 /* confdefs.h.  */
31833 _ACEOF
31834 cat confdefs.h >>conftest.$ac_ext
31835 cat >>conftest.$ac_ext <<_ACEOF
31836 /* end confdefs.h.  */
31837
31838 /* Override any gcc2 internal prototype to avoid an error.  */
31839 #ifdef __cplusplus
31840 extern "C"
31841 #endif
31842 /* We use char because int might match the return type of a gcc2
31843    builtin and then its argument prototype would still apply.  */
31844 char SQLAllocEnv ();
31845 int
31846 main ()
31847 {
31848 SQLAllocEnv ();
31849   ;
31850   return 0;
31851 }
31852 _ACEOF
31853 rm -f conftest.$ac_objext conftest$ac_exeext
31854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31855   (eval $ac_link) 2>conftest.er1
31856   ac_status=$?
31857   grep -v '^ *+' conftest.er1 >conftest.err
31858   rm -f conftest.er1
31859   cat conftest.err >&5
31860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861   (exit $ac_status); } &&
31862          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864   (eval $ac_try) 2>&5
31865   ac_status=$?
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); }; } &&
31868          { ac_try='test -s conftest$ac_exeext'
31869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870   (eval $ac_try) 2>&5
31871   ac_status=$?
31872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873   (exit $ac_status); }; }; then
31874   ac_cv_lib_iodbc_SQLAllocEnv=yes
31875 else
31876   echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31878
31879 ac_cv_lib_iodbc_SQLAllocEnv=no
31880 fi
31881 rm -f conftest.err conftest.$ac_objext \
31882       conftest$ac_exeext conftest.$ac_ext
31883 LIBS=$ac_check_lib_save_LIBS
31884 fi
31885 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31886 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31887 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31888   ODBC_LINK=" -liodbc"
31889 else
31890
31891                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31892 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31893 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31894   echo $ECHO_N "(cached) $ECHO_C" >&6
31895 else
31896   ac_check_lib_save_LIBS=$LIBS
31897 LIBS="-lunixodbc  $LIBS"
31898 cat >conftest.$ac_ext <<_ACEOF
31899 /* confdefs.h.  */
31900 _ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h.  */
31904
31905 /* Override any gcc2 internal prototype to avoid an error.  */
31906 #ifdef __cplusplus
31907 extern "C"
31908 #endif
31909 /* We use char because int might match the return type of a gcc2
31910    builtin and then its argument prototype would still apply.  */
31911 char SQLAllocEnv ();
31912 int
31913 main ()
31914 {
31915 SQLAllocEnv ();
31916   ;
31917   return 0;
31918 }
31919 _ACEOF
31920 rm -f conftest.$ac_objext conftest$ac_exeext
31921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31922   (eval $ac_link) 2>conftest.er1
31923   ac_status=$?
31924   grep -v '^ *+' conftest.er1 >conftest.err
31925   rm -f conftest.er1
31926   cat conftest.err >&5
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); } &&
31929          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931   (eval $ac_try) 2>&5
31932   ac_status=$?
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); }; } &&
31935          { ac_try='test -s conftest$ac_exeext'
31936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937   (eval $ac_try) 2>&5
31938   ac_status=$?
31939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940   (exit $ac_status); }; }; then
31941   ac_cv_lib_unixodbc_SQLAllocEnv=yes
31942 else
31943   echo "$as_me: failed program was:" >&5
31944 sed 's/^/| /' conftest.$ac_ext >&5
31945
31946 ac_cv_lib_unixodbc_SQLAllocEnv=no
31947 fi
31948 rm -f conftest.err conftest.$ac_objext \
31949       conftest$ac_exeext conftest.$ac_ext
31950 LIBS=$ac_check_lib_save_LIBS
31951 fi
31952 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31953 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31954 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31955   ODBC_LINK=" -lunixodbc"
31956 else
31957
31958                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31959 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31960 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31961   echo $ECHO_N "(cached) $ECHO_C" >&6
31962 else
31963   ac_check_lib_save_LIBS=$LIBS
31964 LIBS="-lodbc  $LIBS"
31965 cat >conftest.$ac_ext <<_ACEOF
31966 /* confdefs.h.  */
31967 _ACEOF
31968 cat confdefs.h >>conftest.$ac_ext
31969 cat >>conftest.$ac_ext <<_ACEOF
31970 /* end confdefs.h.  */
31971
31972 /* Override any gcc2 internal prototype to avoid an error.  */
31973 #ifdef __cplusplus
31974 extern "C"
31975 #endif
31976 /* We use char because int might match the return type of a gcc2
31977    builtin and then its argument prototype would still apply.  */
31978 char SQLAllocEnv ();
31979 int
31980 main ()
31981 {
31982 SQLAllocEnv ();
31983   ;
31984   return 0;
31985 }
31986 _ACEOF
31987 rm -f conftest.$ac_objext conftest$ac_exeext
31988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31989   (eval $ac_link) 2>conftest.er1
31990   ac_status=$?
31991   grep -v '^ *+' conftest.er1 >conftest.err
31992   rm -f conftest.er1
31993   cat conftest.err >&5
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); } &&
31996          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998   (eval $ac_try) 2>&5
31999   ac_status=$?
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); }; } &&
32002          { ac_try='test -s conftest$ac_exeext'
32003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004   (eval $ac_try) 2>&5
32005   ac_status=$?
32006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007   (exit $ac_status); }; }; then
32008   ac_cv_lib_odbc_SQLAllocEnv=yes
32009 else
32010   echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32012
32013 ac_cv_lib_odbc_SQLAllocEnv=no
32014 fi
32015 rm -f conftest.err conftest.$ac_objext \
32016       conftest$ac_exeext conftest.$ac_ext
32017 LIBS=$ac_check_lib_save_LIBS
32018 fi
32019 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32020 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32021 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32022   ODBC_LINK=" -lodbc"
32023 fi
32024
32025
32026 fi
32027
32028
32029 fi
32030
32031         fi
32032         if test "x$ODBC_LINK" = "x" ; then
32033             if test "$wxUSE_ODBC" = "sys" ; then
32034                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32035 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32036    { (exit 1); exit 1; }; }
32037             else
32038                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32039 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32040                 wxUSE_ODBC=builtin
32041             fi
32042         else
32043                         wxUSE_ODBC=sys
32044         fi
32045     fi
32046
32047     if test "$wxUSE_ODBC" = "builtin" ; then
32048         cat >>confdefs.h <<\_ACEOF
32049 #define wxUSE_BUILTIN_IODBC 1
32050 _ACEOF
32051
32052     fi
32053 fi
32054
32055 if test "$wxUSE_ODBC" != "no" ; then
32056     cat >>confdefs.h <<\_ACEOF
32057 #define wxUSE_ODBC 1
32058 _ACEOF
32059
32060     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32061
32062         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32063 fi
32064
32065
32066 if test "$wxUSE_DISPLAY" = "yes"; then
32067     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32068         echo "$as_me:$LINENO: checking for Xinerama" >&5
32069 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32070
32071   ac_find_libraries=
32072   for ac_dir in $SEARCH_LIB;
32073   do
32074     for ac_extension in a so sl dylib dll.a; do
32075       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32076         ac_find_libraries=$ac_dir
32077         break 2
32078       fi
32079     done
32080   done
32081
32082         if test "$ac_find_libraries" != "" ; then
32083
32084     if test "$ac_find_libraries" = "default location"; then
32085     ac_path_to_link=""
32086   else
32087     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32088     result=$?
32089     if test $result = 0; then
32090       ac_path_to_link=""
32091     else
32092       ac_path_to_link=" -L$ac_find_libraries"
32093     fi
32094   fi
32095
32096             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32097                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32098             fi
32099             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32100             echo "$as_me:$LINENO: result: yes" >&5
32101 echo "${ECHO_T}yes" >&6
32102
32103             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32104 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32105
32106   ac_find_libraries=
32107   for ac_dir in $SEARCH_LIB;
32108   do
32109     for ac_extension in a so sl dylib dll.a; do
32110       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32111         ac_find_libraries=$ac_dir
32112         break 2
32113       fi
32114     done
32115   done
32116
32117             if test "$ac_find_libraries" != "" ; then
32118                 echo "$as_me:$LINENO: result: yes" >&5
32119 echo "${ECHO_T}yes" >&6
32120
32121 for ac_header in X11/extensions/xf86vmode.h
32122 do
32123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32124 echo "$as_me:$LINENO: checking for $ac_header" >&5
32125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32127   echo $ECHO_N "(cached) $ECHO_C" >&6
32128 else
32129   cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135
32136                                       #if HAVE_X11_XLIB_H
32137                                         #include <X11/Xlib.h>
32138                                       #endif
32139
32140
32141 #include <$ac_header>
32142 _ACEOF
32143 rm -f conftest.$ac_objext
32144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32145   (eval $ac_compile) 2>conftest.er1
32146   ac_status=$?
32147   grep -v '^ *+' conftest.er1 >conftest.err
32148   rm -f conftest.er1
32149   cat conftest.err >&5
32150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151   (exit $ac_status); } &&
32152          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154   (eval $ac_try) 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); }; } &&
32158          { ac_try='test -s conftest.$ac_objext'
32159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160   (eval $ac_try) 2>&5
32161   ac_status=$?
32162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163   (exit $ac_status); }; }; then
32164   eval "$as_ac_Header=yes"
32165 else
32166   echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32168
32169 eval "$as_ac_Header=no"
32170 fi
32171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32172 fi
32173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32176   cat >>confdefs.h <<_ACEOF
32177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32178 _ACEOF
32179
32180                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32181
32182 fi
32183
32184 done
32185
32186             else
32187                 echo "$as_me:$LINENO: result: no" >&5
32188 echo "${ECHO_T}no" >&6
32189             fi
32190
32191         else
32192             echo "$as_me:$LINENO: result: no" >&5
32193 echo "${ECHO_T}no" >&6
32194             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32195 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32196             wxUSE_DISPLAY="no"
32197         fi
32198     elif test "$wxUSE_MSW" = 1; then
32199
32200 for ac_header in ddraw.h
32201 do
32202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32203 echo "$as_me:$LINENO: checking for $ac_header" >&5
32204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32206   echo $ECHO_N "(cached) $ECHO_C" >&6
32207 else
32208   cat >conftest.$ac_ext <<_ACEOF
32209 /* confdefs.h.  */
32210 _ACEOF
32211 cat confdefs.h >>conftest.$ac_ext
32212 cat >>conftest.$ac_ext <<_ACEOF
32213 /* end confdefs.h.  */
32214 #include <windows.h>
32215
32216 #include <$ac_header>
32217 _ACEOF
32218 rm -f conftest.$ac_objext
32219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32220   (eval $ac_compile) 2>conftest.er1
32221   ac_status=$?
32222   grep -v '^ *+' conftest.er1 >conftest.err
32223   rm -f conftest.er1
32224   cat conftest.err >&5
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); } &&
32227          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229   (eval $ac_try) 2>&5
32230   ac_status=$?
32231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232   (exit $ac_status); }; } &&
32233          { ac_try='test -s conftest.$ac_objext'
32234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235   (eval $ac_try) 2>&5
32236   ac_status=$?
32237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238   (exit $ac_status); }; }; then
32239   eval "$as_ac_Header=yes"
32240 else
32241   echo "$as_me: failed program was:" >&5
32242 sed 's/^/| /' conftest.$ac_ext >&5
32243
32244 eval "$as_ac_Header=no"
32245 fi
32246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32247 fi
32248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32251   cat >>confdefs.h <<_ACEOF
32252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32253 _ACEOF
32254
32255 fi
32256
32257 done
32258
32259     fi
32260 fi
32261
32262
32263 USE_OPENGL=0
32264 if test "$wxUSE_OPENGL" = "yes"; then
32265     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32266         OPENGL_LIBS="-framework OpenGL -framework AGL"
32267     elif test "$wxUSE_MSW" = 1; then
32268         OPENGL_LIBS="-lopengl32 -lglu32"
32269     else
32270
32271
32272 ac_find_includes=
32273 for ac_dir in $SEARCH_INCLUDE /usr/include;
32274   do
32275     if test -f "$ac_dir/GL/gl.h"; then
32276       ac_find_includes=$ac_dir
32277       break
32278     fi
32279   done
32280
32281         if test "$ac_find_includes" != "" ; then
32282             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32283 echo "${ECHO_T}found in $ac_find_includes" >&6
32284
32285     if test "x$ac_find_includes" = "x/usr/include"; then
32286     ac_path_to_include=""
32287   else
32288     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32289     result=$?
32290     if test $result = 0; then
32291       ac_path_to_include=""
32292     else
32293       ac_path_to_include=" -I$ac_find_includes"
32294     fi
32295   fi
32296
32297             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32298         fi
32299
32300         if test "${ac_cv_header_GL_gl_h+set}" = set; then
32301   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32302 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32303 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32304   echo $ECHO_N "(cached) $ECHO_C" >&6
32305 fi
32306 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32307 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32308 else
32309   # Is the header compilable?
32310 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32311 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32312 cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h.  */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h.  */
32318 $ac_includes_default
32319 #include <GL/gl.h>
32320 _ACEOF
32321 rm -f conftest.$ac_objext
32322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32323   (eval $ac_compile) 2>conftest.er1
32324   ac_status=$?
32325   grep -v '^ *+' conftest.er1 >conftest.err
32326   rm -f conftest.er1
32327   cat conftest.err >&5
32328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329   (exit $ac_status); } &&
32330          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332   (eval $ac_try) 2>&5
32333   ac_status=$?
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); }; } &&
32336          { ac_try='test -s conftest.$ac_objext'
32337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338   (eval $ac_try) 2>&5
32339   ac_status=$?
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); }; }; then
32342   ac_header_compiler=yes
32343 else
32344   echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32346
32347 ac_header_compiler=no
32348 fi
32349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32351 echo "${ECHO_T}$ac_header_compiler" >&6
32352
32353 # Is the header present?
32354 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32355 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32356 cat >conftest.$ac_ext <<_ACEOF
32357 /* confdefs.h.  */
32358 _ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h.  */
32362 #include <GL/gl.h>
32363 _ACEOF
32364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32366   ac_status=$?
32367   grep -v '^ *+' conftest.er1 >conftest.err
32368   rm -f conftest.er1
32369   cat conftest.err >&5
32370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371   (exit $ac_status); } >/dev/null; then
32372   if test -s conftest.err; then
32373     ac_cpp_err=$ac_cxx_preproc_warn_flag
32374     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
32375   else
32376     ac_cpp_err=
32377   fi
32378 else
32379   ac_cpp_err=yes
32380 fi
32381 if test -z "$ac_cpp_err"; then
32382   ac_header_preproc=yes
32383 else
32384   echo "$as_me: failed program was:" >&5
32385 sed 's/^/| /' conftest.$ac_ext >&5
32386
32387   ac_header_preproc=no
32388 fi
32389 rm -f conftest.err conftest.$ac_ext
32390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32391 echo "${ECHO_T}$ac_header_preproc" >&6
32392
32393 # So?  What about this header?
32394 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
32395   yes:no: )
32396     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32397 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32398     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32399 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32400     ac_header_preproc=yes
32401     ;;
32402   no:yes:* )
32403     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32404 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32405     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
32406 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
32407     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32408 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32409     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
32410 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32411     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32412 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32413     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32414 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
32415     (
32416       cat <<\_ASBOX
32417 ## ----------------------------------------- ##
32418 ## Report this to wx-dev@lists.wxwidgets.org ##
32419 ## ----------------------------------------- ##
32420 _ASBOX
32421     ) |
32422       sed "s/^/$as_me: WARNING:     /" >&2
32423     ;;
32424 esac
32425 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32426 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32427 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32428   echo $ECHO_N "(cached) $ECHO_C" >&6
32429 else
32430   ac_cv_header_GL_gl_h=$ac_header_preproc
32431 fi
32432 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32433 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32434
32435 fi
32436 if test $ac_cv_header_GL_gl_h = yes; then
32437
32438                 found_gl=0
32439
32440                 echo "$as_me:$LINENO: checking for -lGL" >&5
32441 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32442
32443   ac_find_libraries=
32444   for ac_dir in $SEARCH_LIB;
32445   do
32446     for ac_extension in a so sl dylib dll.a; do
32447       if test -f "$ac_dir/libGL.$ac_extension"; then
32448         ac_find_libraries=$ac_dir
32449         break 2
32450       fi
32451     done
32452   done
32453
32454                 if test "$ac_find_libraries" != "" ; then
32455                     echo "$as_me:$LINENO: result: yes" >&5
32456 echo "${ECHO_T}yes" >&6
32457
32458
32459     if test "$ac_find_libraries" = "default location"; then
32460     ac_path_to_link=""
32461   else
32462     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32463     result=$?
32464     if test $result = 0; then
32465       ac_path_to_link=""
32466     else
32467       ac_path_to_link=" -L$ac_find_libraries"
32468     fi
32469   fi
32470
32471                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
32472                         LDFLAGS_GL="$ac_path_to_link"
32473                     fi
32474
32475                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
32476 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
32477
32478   ac_find_libraries=
32479   for ac_dir in $SEARCH_LIB;
32480   do
32481     for ac_extension in a so sl dylib dll.a; do
32482       if test -f "$ac_dir/libGLU.$ac_extension"; then
32483         ac_find_libraries=$ac_dir
32484         break 2
32485       fi
32486     done
32487   done
32488
32489                     if test "$ac_find_libraries" != "" ; then
32490
32491     if test "$ac_find_libraries" = "default location"; then
32492     ac_path_to_link=""
32493   else
32494     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32495     result=$?
32496     if test $result = 0; then
32497       ac_path_to_link=""
32498     else
32499       ac_path_to_link=" -L$ac_find_libraries"
32500     fi
32501   fi
32502
32503                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
32504                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
32505                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32506                         fi
32507
32508                         found_gl=1
32509                         OPENGL_LIBS="-lGL -lGLU"
32510                         echo "$as_me:$LINENO: result: yes" >&5
32511 echo "${ECHO_T}yes" >&6
32512                     else
32513                         echo "$as_me:$LINENO: result: no" >&5
32514 echo "${ECHO_T}no" >&6
32515                     fi
32516                 else
32517                     echo "$as_me:$LINENO: result: no" >&5
32518 echo "${ECHO_T}no" >&6
32519                 fi
32520
32521                 if test "$found_gl" != 1; then
32522                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32523 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32524
32525   ac_find_libraries=
32526   for ac_dir in $SEARCH_LIB;
32527   do
32528     for ac_extension in a so sl dylib dll.a; do
32529       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32530         ac_find_libraries=$ac_dir
32531         break 2
32532       fi
32533     done
32534   done
32535
32536                     if test "$ac_find_libraries" != "" ; then
32537
32538     if test "$ac_find_libraries" = "default location"; then
32539     ac_path_to_link=""
32540   else
32541     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32542     result=$?
32543     if test $result = 0; then
32544       ac_path_to_link=""
32545     else
32546       ac_path_to_link=" -L$ac_find_libraries"
32547     fi
32548   fi
32549
32550                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32551                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
32552                         echo "$as_me:$LINENO: result: yes" >&5
32553 echo "${ECHO_T}yes" >&6
32554                     else
32555                         echo "$as_me:$LINENO: result: no" >&5
32556 echo "${ECHO_T}no" >&6
32557                     fi
32558                 fi
32559
32560 fi
32561
32562
32563
32564         if test "x$OPENGL_LIBS" = "x"; then
32565                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32566 echo "$as_me: error: OpenGL libraries not available" >&2;}
32567    { (exit 1); exit 1; }; }
32568         fi
32569     fi
32570
32571     if test "$wxUSE_OPENGL" = "yes"; then
32572         USE_OPENGL=1
32573         cat >>confdefs.h <<\_ACEOF
32574 #define wxUSE_OPENGL 1
32575 _ACEOF
32576
32577         cat >>confdefs.h <<\_ACEOF
32578 #define wxUSE_GLCANVAS 1
32579 _ACEOF
32580
32581         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32582     fi
32583 fi
32584
32585
32586 if test -n "$TOOLKIT" ; then
32587     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32588 fi
32589
32590
32591
32592 if test "$wxUSE_SHARED" = "yes"; then
32593     case "${host}" in
32594       *-pc-msdosdjgpp )
32595                 wxUSE_SHARED=no
32596         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32597 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32598       ;;
32599     esac
32600 fi
32601
32602 if test "$wxUSE_SHARED" = "yes"; then
32603
32604
32605   found_versioning=no
32606
32607
32608     if test $found_versioning = no ; then
32609       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32610 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32611 if test "${wx_cv_version_script+set}" = set; then
32612   echo $ECHO_N "(cached) $ECHO_C" >&6
32613 else
32614
32615         echo "VER_1 { *; };" >conftest.sym
32616         echo "int main() { return 0; }" >conftest.cpp
32617
32618         if { ac_try='
32619                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32620                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622   (eval $ac_try) 2>&5
32623   ac_status=$?
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); }; } ; then
32626           if test -s conftest.stderr ; then
32627               wx_cv_version_script=no
32628           else
32629               wx_cv_version_script=yes
32630           fi
32631         else
32632           wx_cv_version_script=no
32633         fi
32634
32635                                                                                                 if test $wx_cv_version_script = yes
32636         then
32637           echo "struct B { virtual ~B() { } }; \
32638                 struct D : public B { }; \
32639                 void F() { D d; }" > conftest.cpp
32640
32641           if { ac_try='
32642                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32643                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645   (eval $ac_try) 2>&5
32646   ac_status=$?
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); }; } &&
32649              { ac_try='
32650                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32651                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32653   (eval $ac_try) 2>&5
32654   ac_status=$?
32655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656   (exit $ac_status); }; }
32657           then
32658             if { ac_try='
32659                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32660                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662   (eval $ac_try) 2>&5
32663   ac_status=$?
32664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665   (exit $ac_status); }; }
32666             then
32667               wx_cv_version_script=yes
32668             else
32669               wx_cv_version_script=no
32670             fi
32671           fi
32672         fi
32673
32674         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
32675         rm -f conftest1.output conftest2.output conftest3.output
32676
32677 fi
32678 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32679 echo "${ECHO_T}$wx_cv_version_script" >&6
32680       if test $wx_cv_version_script = yes ; then
32681         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32682       fi
32683   fi
32684
32685
32686     case "${host}" in
32687       *-*-linux* | *-*-gnu* )
32688         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32689         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32690         ;;
32691
32692       *-*-solaris2* )
32693         if test "$GCC" = yes ; then
32694                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
32695
32696                                     saveLdflags="$LDFLAGS"
32697             LDFLAGS="$saveLdflags -Wl,-rpath,/"
32698             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32699 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32700             cat >conftest.$ac_ext <<_ACEOF
32701 /* confdefs.h.  */
32702 _ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h.  */
32706
32707 int
32708 main ()
32709 {
32710
32711   ;
32712   return 0;
32713 }
32714 _ACEOF
32715 rm -f conftest.$ac_objext conftest$ac_exeext
32716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32717   (eval $ac_link) 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } &&
32724          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726   (eval $ac_try) 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); }; } &&
32730          { ac_try='test -s conftest$ac_exeext'
32731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732   (eval $ac_try) 2>&5
32733   ac_status=$?
32734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735   (exit $ac_status); }; }; then
32736
32737                     echo "$as_me:$LINENO: result: yes" >&5
32738 echo "${ECHO_T}yes" >&6
32739                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32740                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32741
32742 else
32743   echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32745
32746
32747                     echo "$as_me:$LINENO: result: no" >&5
32748 echo "${ECHO_T}no" >&6
32749                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32750 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32751                     LDFLAGS="$saveLdflags -Wl,-R,/"
32752                     cat >conftest.$ac_ext <<_ACEOF
32753 /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758
32759 int
32760 main ()
32761 {
32762
32763   ;
32764   return 0;
32765 }
32766 _ACEOF
32767 rm -f conftest.$ac_objext conftest$ac_exeext
32768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32769   (eval $ac_link) 2>conftest.er1
32770   ac_status=$?
32771   grep -v '^ *+' conftest.er1 >conftest.err
32772   rm -f conftest.er1
32773   cat conftest.err >&5
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); } &&
32776          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778   (eval $ac_try) 2>&5
32779   ac_status=$?
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); }; } &&
32782          { ac_try='test -s conftest$ac_exeext'
32783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784   (eval $ac_try) 2>&5
32785   ac_status=$?
32786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787   (exit $ac_status); }; }; then
32788
32789                             echo "$as_me:$LINENO: result: yes" >&5
32790 echo "${ECHO_T}yes" >&6
32791                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32792                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
32793
32794 else
32795   echo "$as_me: failed program was:" >&5
32796 sed 's/^/| /' conftest.$ac_ext >&5
32797
32798
32799                             echo "$as_me:$LINENO: result: no" >&5
32800 echo "${ECHO_T}no" >&6
32801
32802 fi
32803 rm -f conftest.err conftest.$ac_objext \
32804       conftest$ac_exeext conftest.$ac_ext
32805
32806 fi
32807 rm -f conftest.err conftest.$ac_objext \
32808       conftest$ac_exeext conftest.$ac_ext
32809             LDFLAGS="$saveLdflags"
32810         else
32811             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
32812             WXCONFIG_RPATH="-R\$libdir"
32813         fi
32814       ;;
32815
32816       *-*-darwin* )
32817         install_name_tool=`which install_name_tool`
32818         if test "$install_name_tool" -a -x "$install_name_tool"; then
32819             SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32820             cat <<EOF >change-install-names
32821 #!/bin/sh
32822 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32823 inst_cmd="install_name_tool "
32824 for i in \${libnames} ; do
32825     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32826 done
32827 \${inst_cmd} \${3}
32828 EOF
32829             chmod +x change-install-names
32830         fi
32831       ;;
32832
32833       *-*-cygwin* | *-*-mingw32* )
32834                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32835         ;;
32836
32837       *-*-hpux* )
32838         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32839         WXCONFIG_RPATH="-Wl,+b,\$libdir"
32840         ;;
32841
32842     esac
32843
32844     if test $wxUSE_RPATH = "no"; then
32845         SAMPLES_RPATH_FLAG=''
32846         SAMPLES_RPATH_POSTLINK=''
32847         WXCONFIG_RPATH=''
32848     fi
32849
32850     SHARED=1
32851
32852 else
32853
32854     config_linkage_component="-static"
32855     SHARED=0
32856
32857 fi
32858
32859
32860 UNICODE=0
32861 lib_unicode_suffix=
32862 WX_CHARTYPE="ansi"
32863 if test "$wxUSE_UNICODE" = "yes"; then
32864     lib_unicode_suffix=u
32865     WX_CHARTYPE="unicode"
32866     UNICODE=1
32867 fi
32868
32869 lib_debug_suffix=
32870 WX_DEBUGTYPE="release"
32871 DEBUG_FLAG=0
32872 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32873     lib_debug_suffix=d
32874     WX_DEBUGTYPE="debug"
32875     DEBUG_FLAG=1
32876 fi
32877
32878 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32879 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
32880
32881 DEBUG_INFO=0
32882 if test "$wxUSE_DEBUG_INFO" = "yes"; then
32883     DEBUG_INFO=1
32884 fi
32885
32886 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
32887
32888 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
32889
32890 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
32891
32892 if test "$cross_compiling" = "yes"; then
32893     HOST_SUFFIX="-$host_alias"
32894     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32895     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
32896 fi
32897
32898 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32899 if test "${TOOLKIT_DIR}" = "os2"; then
32900     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32901 else
32902     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32903 fi
32904
32905
32906
32907 if test "$wxUSE_COCOA" = 1; then
32908
32909
32910     ac_ext=c
32911 ac_cpp='$CPP $CPPFLAGS'
32912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915
32916 ac_ext=m
32917
32918     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32919 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32920     cat >conftest.$ac_ext <<_ACEOF
32921 /* confdefs.h.  */
32922 _ACEOF
32923 cat confdefs.h >>conftest.$ac_ext
32924 cat >>conftest.$ac_ext <<_ACEOF
32925 /* end confdefs.h.  */
32926 #include <AppKit/NSEvent.h>
32927 #include <CoreFoundation/CoreFoundation.h>
32928
32929 int
32930 main ()
32931 {
32932
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_c_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   echo "$as_me:$LINENO: result: no" >&5
32959 echo "${ECHO_T}no" >&6
32960 else
32961   echo "$as_me: failed program was:" >&5
32962 sed 's/^/| /' conftest.$ac_ext >&5
32963
32964 echo "$as_me:$LINENO: result: yes" >&5
32965 echo "${ECHO_T}yes" >&6
32966         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32967 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32968         cat >conftest.$ac_ext <<_ACEOF
32969 /* confdefs.h.  */
32970 _ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h.  */
32974 #define __Point__ 1
32975 #include <AppKit/NSEvent.h>
32976 #include <CoreFoundation/CoreFoundation.h>
32977
32978 int
32979 main ()
32980 {
32981
32982   ;
32983   return 0;
32984 }
32985 _ACEOF
32986 rm -f conftest.$ac_objext
32987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32988   (eval $ac_compile) 2>conftest.er1
32989   ac_status=$?
32990   grep -v '^ *+' conftest.er1 >conftest.err
32991   rm -f conftest.er1
32992   cat conftest.err >&5
32993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994   (exit $ac_status); } &&
32995          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997   (eval $ac_try) 2>&5
32998   ac_status=$?
32999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000   (exit $ac_status); }; } &&
33001          { ac_try='test -s conftest.$ac_objext'
33002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003   (eval $ac_try) 2>&5
33004   ac_status=$?
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); }; }; then
33007   echo "$as_me:$LINENO: result: yes" >&5
33008 echo "${ECHO_T}yes" >&6
33009             cat >>confdefs.h <<\_ACEOF
33010 #define __Point__ 1
33011 _ACEOF
33012
33013
33014 else
33015   echo "$as_me: failed program was:" >&5
33016 sed 's/^/| /' conftest.$ac_ext >&5
33017
33018 { { echo "$as_me:$LINENO: error: no
33019 See \`config.log' for more details." >&5
33020 echo "$as_me: error: no
33021 See \`config.log' for more details." >&2;}
33022    { (exit 1); exit 1; }; }
33023
33024 fi
33025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33026
33027 fi
33028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33029     ac_ext=cc
33030 ac_cpp='$CXXCPP $CPPFLAGS'
33031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33034
33035 fi
33036
33037 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33038             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33039     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33040
33041         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
33042
33043     # Extract the first word of "Rez", so it can be a program name with args.
33044 set dummy Rez; ac_word=$2
33045 echo "$as_me:$LINENO: checking for $ac_word" >&5
33046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33047 if test "${ac_cv_prog_REZ+set}" = set; then
33048   echo $ECHO_N "(cached) $ECHO_C" >&6
33049 else
33050   if test -n "$REZ"; then
33051   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33052 else
33053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054 for as_dir in $PATH
33055 do
33056   IFS=$as_save_IFS
33057   test -z "$as_dir" && as_dir=.
33058   for ac_exec_ext in '' $ac_executable_extensions; do
33059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33060     ac_cv_prog_REZ="Rez"
33061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33062     break 2
33063   fi
33064 done
33065 done
33066
33067   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33068 fi
33069 fi
33070 REZ=$ac_cv_prog_REZ
33071 if test -n "$REZ"; then
33072   echo "$as_me:$LINENO: result: $REZ" >&5
33073 echo "${ECHO_T}$REZ" >&6
33074 else
33075   echo "$as_me:$LINENO: result: no" >&5
33076 echo "${ECHO_T}no" >&6
33077 fi
33078
33079     # Extract the first word of "DeRez", so it can be a program name with args.
33080 set dummy DeRez; ac_word=$2
33081 echo "$as_me:$LINENO: checking for $ac_word" >&5
33082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33083 if test "${ac_cv_prog_DEREZ+set}" = set; then
33084   echo $ECHO_N "(cached) $ECHO_C" >&6
33085 else
33086   if test -n "$DEREZ"; then
33087   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33088 else
33089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090 for as_dir in $PATH
33091 do
33092   IFS=$as_save_IFS
33093   test -z "$as_dir" && as_dir=.
33094   for ac_exec_ext in '' $ac_executable_extensions; do
33095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33096     ac_cv_prog_DEREZ="DeRez"
33097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33098     break 2
33099   fi
33100 done
33101 done
33102
33103   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33104 fi
33105 fi
33106 DEREZ=$ac_cv_prog_DEREZ
33107 if test -n "$DEREZ"; then
33108   echo "$as_me:$LINENO: result: $DEREZ" >&5
33109 echo "${ECHO_T}$DEREZ" >&6
33110 else
33111   echo "$as_me:$LINENO: result: no" >&5
33112 echo "${ECHO_T}no" >&6
33113 fi
33114
33115     # Extract the first word of "SetFile", so it can be a program name with args.
33116 set dummy SetFile; ac_word=$2
33117 echo "$as_me:$LINENO: checking for $ac_word" >&5
33118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33119 if test "${ac_cv_prog_SETFILE+set}" = set; then
33120   echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122   if test -n "$SETFILE"; then
33123   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33124 else
33125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33126 for as_dir in $PATH
33127 do
33128   IFS=$as_save_IFS
33129   test -z "$as_dir" && as_dir=.
33130   for ac_exec_ext in '' $ac_executable_extensions; do
33131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33132     ac_cv_prog_SETFILE="SetFile"
33133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33134     break 2
33135   fi
33136 done
33137 done
33138
33139   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33140 fi
33141 fi
33142 SETFILE=$ac_cv_prog_SETFILE
33143 if test -n "$SETFILE"; then
33144   echo "$as_me:$LINENO: result: $SETFILE" >&5
33145 echo "${ECHO_T}$SETFILE" >&6
33146 else
33147   echo "$as_me:$LINENO: result: no" >&5
33148 echo "${ECHO_T}no" >&6
33149 fi
33150
33151
33152     MACSETFILE="\$(SETFILE)"
33153
33154             if test "$wxUSE_MAC" = 1; then
33155         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33156         RESCOMP="$REZ"
33157         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33158     else
33159         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33160         RESCOMP="echo -n \| $REZ"
33161         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33162     fi
33163
33164 else
33165         MACSETFILE="@true"
33166
33167     if test "$wxUSE_PM" = 1; then
33168         RESCOMP="emxbind"
33169         WXCONFIG_RESFLAGS="-ep"
33170
33171                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33172     else
33173         POSTLINK_COMMAND="@true"
33174     fi
33175
33176 fi
33177
33178
33179
33180 echo "$as_me:$LINENO: checking for mode_t" >&5
33181 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33182 if test "${ac_cv_type_mode_t+set}" = set; then
33183   echo $ECHO_N "(cached) $ECHO_C" >&6
33184 else
33185   cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 $ac_includes_default
33192 int
33193 main ()
33194 {
33195 if ((mode_t *) 0)
33196   return 0;
33197 if (sizeof (mode_t))
33198   return 0;
33199   ;
33200   return 0;
33201 }
33202 _ACEOF
33203 rm -f conftest.$ac_objext
33204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33205   (eval $ac_compile) 2>conftest.er1
33206   ac_status=$?
33207   grep -v '^ *+' conftest.er1 >conftest.err
33208   rm -f conftest.er1
33209   cat conftest.err >&5
33210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211   (exit $ac_status); } &&
33212          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214   (eval $ac_try) 2>&5
33215   ac_status=$?
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); }; } &&
33218          { ac_try='test -s conftest.$ac_objext'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; }; then
33224   ac_cv_type_mode_t=yes
33225 else
33226   echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33228
33229 ac_cv_type_mode_t=no
33230 fi
33231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33232 fi
33233 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33234 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33235 if test $ac_cv_type_mode_t = yes; then
33236   :
33237 else
33238
33239 cat >>confdefs.h <<_ACEOF
33240 #define mode_t int
33241 _ACEOF
33242
33243 fi
33244
33245 echo "$as_me:$LINENO: checking for off_t" >&5
33246 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33247 if test "${ac_cv_type_off_t+set}" = set; then
33248   echo $ECHO_N "(cached) $ECHO_C" >&6
33249 else
33250   cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h.  */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h.  */
33256 $ac_includes_default
33257 int
33258 main ()
33259 {
33260 if ((off_t *) 0)
33261   return 0;
33262 if (sizeof (off_t))
33263   return 0;
33264   ;
33265   return 0;
33266 }
33267 _ACEOF
33268 rm -f conftest.$ac_objext
33269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33270   (eval $ac_compile) 2>conftest.er1
33271   ac_status=$?
33272   grep -v '^ *+' conftest.er1 >conftest.err
33273   rm -f conftest.er1
33274   cat conftest.err >&5
33275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276   (exit $ac_status); } &&
33277          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279   (eval $ac_try) 2>&5
33280   ac_status=$?
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); }; } &&
33283          { ac_try='test -s conftest.$ac_objext'
33284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285   (eval $ac_try) 2>&5
33286   ac_status=$?
33287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288   (exit $ac_status); }; }; then
33289   ac_cv_type_off_t=yes
33290 else
33291   echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33293
33294 ac_cv_type_off_t=no
33295 fi
33296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33297 fi
33298 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33299 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33300 if test $ac_cv_type_off_t = yes; then
33301   :
33302 else
33303
33304 cat >>confdefs.h <<_ACEOF
33305 #define off_t long
33306 _ACEOF
33307
33308 fi
33309
33310 echo "$as_me:$LINENO: checking for pid_t" >&5
33311 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33312 if test "${ac_cv_type_pid_t+set}" = set; then
33313   echo $ECHO_N "(cached) $ECHO_C" >&6
33314 else
33315   cat >conftest.$ac_ext <<_ACEOF
33316 /* confdefs.h.  */
33317 _ACEOF
33318 cat confdefs.h >>conftest.$ac_ext
33319 cat >>conftest.$ac_ext <<_ACEOF
33320 /* end confdefs.h.  */
33321 $ac_includes_default
33322 int
33323 main ()
33324 {
33325 if ((pid_t *) 0)
33326   return 0;
33327 if (sizeof (pid_t))
33328   return 0;
33329   ;
33330   return 0;
33331 }
33332 _ACEOF
33333 rm -f conftest.$ac_objext
33334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33335   (eval $ac_compile) 2>conftest.er1
33336   ac_status=$?
33337   grep -v '^ *+' conftest.er1 >conftest.err
33338   rm -f conftest.er1
33339   cat conftest.err >&5
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); } &&
33342          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344   (eval $ac_try) 2>&5
33345   ac_status=$?
33346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347   (exit $ac_status); }; } &&
33348          { ac_try='test -s conftest.$ac_objext'
33349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350   (eval $ac_try) 2>&5
33351   ac_status=$?
33352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353   (exit $ac_status); }; }; then
33354   ac_cv_type_pid_t=yes
33355 else
33356   echo "$as_me: failed program was:" >&5
33357 sed 's/^/| /' conftest.$ac_ext >&5
33358
33359 ac_cv_type_pid_t=no
33360 fi
33361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33362 fi
33363 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33364 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33365 if test $ac_cv_type_pid_t = yes; then
33366   :
33367 else
33368
33369 cat >>confdefs.h <<_ACEOF
33370 #define pid_t int
33371 _ACEOF
33372
33373 fi
33374
33375 echo "$as_me:$LINENO: checking for size_t" >&5
33376 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33377 if test "${ac_cv_type_size_t+set}" = set; then
33378   echo $ECHO_N "(cached) $ECHO_C" >&6
33379 else
33380   cat >conftest.$ac_ext <<_ACEOF
33381 /* confdefs.h.  */
33382 _ACEOF
33383 cat confdefs.h >>conftest.$ac_ext
33384 cat >>conftest.$ac_ext <<_ACEOF
33385 /* end confdefs.h.  */
33386 $ac_includes_default
33387 int
33388 main ()
33389 {
33390 if ((size_t *) 0)
33391   return 0;
33392 if (sizeof (size_t))
33393   return 0;
33394   ;
33395   return 0;
33396 }
33397 _ACEOF
33398 rm -f conftest.$ac_objext
33399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33400   (eval $ac_compile) 2>conftest.er1
33401   ac_status=$?
33402   grep -v '^ *+' conftest.er1 >conftest.err
33403   rm -f conftest.er1
33404   cat conftest.err >&5
33405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406   (exit $ac_status); } &&
33407          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409   (eval $ac_try) 2>&5
33410   ac_status=$?
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); }; } &&
33413          { ac_try='test -s conftest.$ac_objext'
33414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415   (eval $ac_try) 2>&5
33416   ac_status=$?
33417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418   (exit $ac_status); }; }; then
33419   ac_cv_type_size_t=yes
33420 else
33421   echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33423
33424 ac_cv_type_size_t=no
33425 fi
33426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33427 fi
33428 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33429 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33430 if test $ac_cv_type_size_t = yes; then
33431   :
33432 else
33433
33434 cat >>confdefs.h <<_ACEOF
33435 #define size_t unsigned
33436 _ACEOF
33437
33438 fi
33439
33440 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33441 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33442 if test "${ac_cv_type_uid_t+set}" = set; then
33443   echo $ECHO_N "(cached) $ECHO_C" >&6
33444 else
33445   cat >conftest.$ac_ext <<_ACEOF
33446 /* confdefs.h.  */
33447 _ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h.  */
33451 #include <sys/types.h>
33452
33453 _ACEOF
33454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33455   $EGREP "uid_t" >/dev/null 2>&1; then
33456   ac_cv_type_uid_t=yes
33457 else
33458   ac_cv_type_uid_t=no
33459 fi
33460 rm -f conftest*
33461
33462 fi
33463 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33464 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33465 if test $ac_cv_type_uid_t = no; then
33466
33467 cat >>confdefs.h <<\_ACEOF
33468 #define uid_t int
33469 _ACEOF
33470
33471
33472 cat >>confdefs.h <<\_ACEOF
33473 #define gid_t int
33474 _ACEOF
33475
33476 fi
33477
33478
33479 echo "$as_me:$LINENO: checking for ssize_t" >&5
33480 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33481 if test "${ac_cv_type_ssize_t+set}" = set; then
33482   echo $ECHO_N "(cached) $ECHO_C" >&6
33483 else
33484   cat >conftest.$ac_ext <<_ACEOF
33485 /* confdefs.h.  */
33486 _ACEOF
33487 cat confdefs.h >>conftest.$ac_ext
33488 cat >>conftest.$ac_ext <<_ACEOF
33489 /* end confdefs.h.  */
33490 $ac_includes_default
33491 int
33492 main ()
33493 {
33494 if ((ssize_t *) 0)
33495   return 0;
33496 if (sizeof (ssize_t))
33497   return 0;
33498   ;
33499   return 0;
33500 }
33501 _ACEOF
33502 rm -f conftest.$ac_objext
33503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33504   (eval $ac_compile) 2>conftest.er1
33505   ac_status=$?
33506   grep -v '^ *+' conftest.er1 >conftest.err
33507   rm -f conftest.er1
33508   cat conftest.err >&5
33509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510   (exit $ac_status); } &&
33511          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513   (eval $ac_try) 2>&5
33514   ac_status=$?
33515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516   (exit $ac_status); }; } &&
33517          { ac_try='test -s conftest.$ac_objext'
33518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519   (eval $ac_try) 2>&5
33520   ac_status=$?
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); }; }; then
33523   ac_cv_type_ssize_t=yes
33524 else
33525   echo "$as_me: failed program was:" >&5
33526 sed 's/^/| /' conftest.$ac_ext >&5
33527
33528 ac_cv_type_ssize_t=no
33529 fi
33530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33531 fi
33532 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33533 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33534 if test $ac_cv_type_ssize_t = yes; then
33535
33536 cat >>confdefs.h <<_ACEOF
33537 #define HAVE_SSIZE_T 1
33538 _ACEOF
33539
33540
33541 fi
33542
33543
33544 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33545 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33546 if test "${wx_cv_size_t_is_uint+set}" = set; then
33547   echo $ECHO_N "(cached) $ECHO_C" >&6
33548 else
33549
33550                             cat >conftest.$ac_ext <<_ACEOF
33551 /* confdefs.h.  */
33552 _ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h.  */
33556 #include <stddef.h>
33557 int
33558 main ()
33559 {
33560
33561             return 0; }
33562
33563             struct Foo { void foo(size_t); void foo(unsigned int); };
33564
33565             int bar() {
33566
33567   ;
33568   return 0;
33569 }
33570 _ACEOF
33571 rm -f conftest.$ac_objext
33572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33573   (eval $ac_compile) 2>conftest.er1
33574   ac_status=$?
33575   grep -v '^ *+' conftest.er1 >conftest.err
33576   rm -f conftest.er1
33577   cat conftest.err >&5
33578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579   (exit $ac_status); } &&
33580          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33582   (eval $ac_try) 2>&5
33583   ac_status=$?
33584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585   (exit $ac_status); }; } &&
33586          { ac_try='test -s conftest.$ac_objext'
33587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588   (eval $ac_try) 2>&5
33589   ac_status=$?
33590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591   (exit $ac_status); }; }; then
33592   wx_cv_size_t_is_uint=no
33593 else
33594   echo "$as_me: failed program was:" >&5
33595 sed 's/^/| /' conftest.$ac_ext >&5
33596
33597 wx_cv_size_t_is_uint=yes
33598
33599 fi
33600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33601
33602
33603 fi
33604 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33605 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33606
33607 if test "$wx_cv_size_t_is_uint" = "yes"; then
33608     cat >>confdefs.h <<\_ACEOF
33609 #define wxSIZE_T_IS_UINT 1
33610 _ACEOF
33611
33612 else
33613     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33614 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33615 if test "${wx_cv_size_t_is_ulong+set}" = set; then
33616   echo $ECHO_N "(cached) $ECHO_C" >&6
33617 else
33618   cat >conftest.$ac_ext <<_ACEOF
33619 /* confdefs.h.  */
33620 _ACEOF
33621 cat confdefs.h >>conftest.$ac_ext
33622 cat >>conftest.$ac_ext <<_ACEOF
33623 /* end confdefs.h.  */
33624 #include <stddef.h>
33625 int
33626 main ()
33627 {
33628
33629                 return 0; }
33630
33631                 struct Foo { void foo(size_t); void foo(unsigned long); };
33632
33633                 int bar() {
33634
33635   ;
33636   return 0;
33637 }
33638 _ACEOF
33639 rm -f conftest.$ac_objext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33641   (eval $ac_compile) 2>conftest.er1
33642   ac_status=$?
33643   grep -v '^ *+' conftest.er1 >conftest.err
33644   rm -f conftest.er1
33645   cat conftest.err >&5
33646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647   (exit $ac_status); } &&
33648          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33650   (eval $ac_try) 2>&5
33651   ac_status=$?
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); }; } &&
33654          { ac_try='test -s conftest.$ac_objext'
33655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656   (eval $ac_try) 2>&5
33657   ac_status=$?
33658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659   (exit $ac_status); }; }; then
33660   wx_cv_size_t_is_ulong=no
33661 else
33662   echo "$as_me: failed program was:" >&5
33663 sed 's/^/| /' conftest.$ac_ext >&5
33664
33665 wx_cv_size_t_is_ulong=yes
33666
33667 fi
33668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33669
33670 fi
33671 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33672 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33673
33674     if test "$wx_cv_size_t_is_ulong" = "yes"; then
33675         cat >>confdefs.h <<\_ACEOF
33676 #define wxSIZE_T_IS_ULONG 1
33677 _ACEOF
33678
33679     fi
33680 fi
33681
33682
33683 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33684 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33685 if test "${wx_cv_struct_pw_gecos+set}" = set; then
33686   echo $ECHO_N "(cached) $ECHO_C" >&6
33687 else
33688
33689         cat >conftest.$ac_ext <<_ACEOF
33690 /* confdefs.h.  */
33691 _ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h.  */
33695 #include <pwd.h>
33696 int
33697 main ()
33698 {
33699
33700                 char *p;
33701                 struct passwd *pw;
33702                 p = pw->pw_gecos;
33703
33704   ;
33705   return 0;
33706 }
33707 _ACEOF
33708 rm -f conftest.$ac_objext
33709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33710   (eval $ac_compile) 2>conftest.er1
33711   ac_status=$?
33712   grep -v '^ *+' conftest.er1 >conftest.err
33713   rm -f conftest.er1
33714   cat conftest.err >&5
33715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716   (exit $ac_status); } &&
33717          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719   (eval $ac_try) 2>&5
33720   ac_status=$?
33721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722   (exit $ac_status); }; } &&
33723          { ac_try='test -s conftest.$ac_objext'
33724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725   (eval $ac_try) 2>&5
33726   ac_status=$?
33727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); }; }; then
33729
33730                 wx_cv_struct_pw_gecos=yes
33731
33732 else
33733   echo "$as_me: failed program was:" >&5
33734 sed 's/^/| /' conftest.$ac_ext >&5
33735
33736
33737                 wx_cv_struct_pw_gecos=no
33738
33739
33740 fi
33741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33742
33743
33744 fi
33745 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33746 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33747
33748 if test "$wx_cv_struct_pw_gecos" = "yes"; then
33749     cat >>confdefs.h <<\_ACEOF
33750 #define HAVE_PW_GECOS 1
33751 _ACEOF
33752
33753 fi
33754
33755
33756 if test "$wxUSE_WCHAR_T" = "yes"; then
33757     cat >>confdefs.h <<\_ACEOF
33758 #define wxUSE_WCHAR_T 1
33759 _ACEOF
33760
33761
33762         WCSLEN_FOUND=0
33763     WCHAR_LINK=
33764
33765 for ac_func in wcslen
33766 do
33767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33768 echo "$as_me:$LINENO: checking for $ac_func" >&5
33769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33770 if eval "test \"\${$as_ac_var+set}\" = set"; then
33771   echo $ECHO_N "(cached) $ECHO_C" >&6
33772 else
33773   cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33781 #define $ac_func innocuous_$ac_func
33782
33783 /* System header to define __stub macros and hopefully few prototypes,
33784     which can conflict with char $ac_func (); below.
33785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33786     <limits.h> exists even on freestanding compilers.  */
33787
33788 #ifdef __STDC__
33789 # include <limits.h>
33790 #else
33791 # include <assert.h>
33792 #endif
33793
33794 #undef $ac_func
33795
33796 /* Override any gcc2 internal prototype to avoid an error.  */
33797 #ifdef __cplusplus
33798 extern "C"
33799 {
33800 #endif
33801 /* We use char because int might match the return type of a gcc2
33802    builtin and then its argument prototype would still apply.  */
33803 char $ac_func ();
33804 /* The GNU C library defines this for functions which it implements
33805     to always fail with ENOSYS.  Some functions are actually named
33806     something starting with __ and the normal name is an alias.  */
33807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33808 choke me
33809 #else
33810 char (*f) () = $ac_func;
33811 #endif
33812 #ifdef __cplusplus
33813 }
33814 #endif
33815
33816 int
33817 main ()
33818 {
33819 return f != $ac_func;
33820   ;
33821   return 0;
33822 }
33823 _ACEOF
33824 rm -f conftest.$ac_objext conftest$ac_exeext
33825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33826   (eval $ac_link) 2>conftest.er1
33827   ac_status=$?
33828   grep -v '^ *+' conftest.er1 >conftest.err
33829   rm -f conftest.er1
33830   cat conftest.err >&5
33831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832   (exit $ac_status); } &&
33833          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33835   (eval $ac_try) 2>&5
33836   ac_status=$?
33837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838   (exit $ac_status); }; } &&
33839          { ac_try='test -s conftest$ac_exeext'
33840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841   (eval $ac_try) 2>&5
33842   ac_status=$?
33843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); }; }; then
33845   eval "$as_ac_var=yes"
33846 else
33847   echo "$as_me: failed program was:" >&5
33848 sed 's/^/| /' conftest.$ac_ext >&5
33849
33850 eval "$as_ac_var=no"
33851 fi
33852 rm -f conftest.err conftest.$ac_objext \
33853       conftest$ac_exeext conftest.$ac_ext
33854 fi
33855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33857 if test `eval echo '${'$as_ac_var'}'` = yes; then
33858   cat >>confdefs.h <<_ACEOF
33859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33860 _ACEOF
33861  WCSLEN_FOUND=1
33862 fi
33863 done
33864
33865
33866     if test "$WCSLEN_FOUND" = 0; then
33867         if test "$TOOLKIT" = "MSW"; then
33868             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33869 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33870 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33871   echo $ECHO_N "(cached) $ECHO_C" >&6
33872 else
33873   ac_check_lib_save_LIBS=$LIBS
33874 LIBS="-lmsvcrt  $LIBS"
33875 cat >conftest.$ac_ext <<_ACEOF
33876 /* confdefs.h.  */
33877 _ACEOF
33878 cat confdefs.h >>conftest.$ac_ext
33879 cat >>conftest.$ac_ext <<_ACEOF
33880 /* end confdefs.h.  */
33881
33882 /* Override any gcc2 internal prototype to avoid an error.  */
33883 #ifdef __cplusplus
33884 extern "C"
33885 #endif
33886 /* We use char because int might match the return type of a gcc2
33887    builtin and then its argument prototype would still apply.  */
33888 char wcslen ();
33889 int
33890 main ()
33891 {
33892 wcslen ();
33893   ;
33894   return 0;
33895 }
33896 _ACEOF
33897 rm -f conftest.$ac_objext conftest$ac_exeext
33898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33899   (eval $ac_link) 2>conftest.er1
33900   ac_status=$?
33901   grep -v '^ *+' conftest.er1 >conftest.err
33902   rm -f conftest.er1
33903   cat conftest.err >&5
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); } &&
33906          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908   (eval $ac_try) 2>&5
33909   ac_status=$?
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); }; } &&
33912          { ac_try='test -s conftest$ac_exeext'
33913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914   (eval $ac_try) 2>&5
33915   ac_status=$?
33916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917   (exit $ac_status); }; }; then
33918   ac_cv_lib_msvcrt_wcslen=yes
33919 else
33920   echo "$as_me: failed program was:" >&5
33921 sed 's/^/| /' conftest.$ac_ext >&5
33922
33923 ac_cv_lib_msvcrt_wcslen=no
33924 fi
33925 rm -f conftest.err conftest.$ac_objext \
33926       conftest$ac_exeext conftest.$ac_ext
33927 LIBS=$ac_check_lib_save_LIBS
33928 fi
33929 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33930 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33931 if test $ac_cv_lib_msvcrt_wcslen = yes; then
33932   WCHAR_OK=1
33933 fi
33934
33935         else
33936             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33937 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33938 if test "${ac_cv_lib_w_wcslen+set}" = set; then
33939   echo $ECHO_N "(cached) $ECHO_C" >&6
33940 else
33941   ac_check_lib_save_LIBS=$LIBS
33942 LIBS="-lw  $LIBS"
33943 cat >conftest.$ac_ext <<_ACEOF
33944 /* confdefs.h.  */
33945 _ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h.  */
33949
33950 /* Override any gcc2 internal prototype to avoid an error.  */
33951 #ifdef __cplusplus
33952 extern "C"
33953 #endif
33954 /* We use char because int might match the return type of a gcc2
33955    builtin and then its argument prototype would still apply.  */
33956 char wcslen ();
33957 int
33958 main ()
33959 {
33960 wcslen ();
33961   ;
33962   return 0;
33963 }
33964 _ACEOF
33965 rm -f conftest.$ac_objext conftest$ac_exeext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33967   (eval $ac_link) 2>conftest.er1
33968   ac_status=$?
33969   grep -v '^ *+' conftest.er1 >conftest.err
33970   rm -f conftest.er1
33971   cat conftest.err >&5
33972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973   (exit $ac_status); } &&
33974          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976   (eval $ac_try) 2>&5
33977   ac_status=$?
33978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979   (exit $ac_status); }; } &&
33980          { ac_try='test -s conftest$ac_exeext'
33981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982   (eval $ac_try) 2>&5
33983   ac_status=$?
33984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985   (exit $ac_status); }; }; then
33986   ac_cv_lib_w_wcslen=yes
33987 else
33988   echo "$as_me: failed program was:" >&5
33989 sed 's/^/| /' conftest.$ac_ext >&5
33990
33991 ac_cv_lib_w_wcslen=no
33992 fi
33993 rm -f conftest.err conftest.$ac_objext \
33994       conftest$ac_exeext conftest.$ac_ext
33995 LIBS=$ac_check_lib_save_LIBS
33996 fi
33997 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33998 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33999 if test $ac_cv_lib_w_wcslen = yes; then
34000
34001                             WCHAR_LINK=" -lw"
34002                             WCSLEN_FOUND=1
34003
34004 fi
34005
34006         fi
34007     fi
34008
34009     if test "$WCSLEN_FOUND" = 1; then
34010         cat >>confdefs.h <<\_ACEOF
34011 #define HAVE_WCSLEN 1
34012 _ACEOF
34013
34014     fi
34015
34016                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34017         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34018     fi
34019
34020                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34021 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34022 if test "${ac_cv_type_mbstate_t+set}" = set; then
34023   echo $ECHO_N "(cached) $ECHO_C" >&6
34024 else
34025   cat >conftest.$ac_ext <<_ACEOF
34026 /* confdefs.h.  */
34027 _ACEOF
34028 cat confdefs.h >>conftest.$ac_ext
34029 cat >>conftest.$ac_ext <<_ACEOF
34030 /* end confdefs.h.  */
34031 #include <wchar.h>
34032
34033 int
34034 main ()
34035 {
34036 if ((mbstate_t *) 0)
34037   return 0;
34038 if (sizeof (mbstate_t))
34039   return 0;
34040   ;
34041   return 0;
34042 }
34043 _ACEOF
34044 rm -f conftest.$ac_objext
34045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34046   (eval $ac_compile) 2>conftest.er1
34047   ac_status=$?
34048   grep -v '^ *+' conftest.er1 >conftest.err
34049   rm -f conftest.er1
34050   cat conftest.err >&5
34051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052   (exit $ac_status); } &&
34053          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34055   (eval $ac_try) 2>&5
34056   ac_status=$?
34057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058   (exit $ac_status); }; } &&
34059          { ac_try='test -s conftest.$ac_objext'
34060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061   (eval $ac_try) 2>&5
34062   ac_status=$?
34063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064   (exit $ac_status); }; }; then
34065   ac_cv_type_mbstate_t=yes
34066 else
34067   echo "$as_me: failed program was:" >&5
34068 sed 's/^/| /' conftest.$ac_ext >&5
34069
34070 ac_cv_type_mbstate_t=no
34071 fi
34072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34073 fi
34074 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34075 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34076 if test $ac_cv_type_mbstate_t = yes; then
34077
34078 cat >>confdefs.h <<_ACEOF
34079 #define HAVE_MBSTATE_T 1
34080 _ACEOF
34081
34082
34083 for ac_func in wcsrtombs
34084 do
34085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34086 echo "$as_me:$LINENO: checking for $ac_func" >&5
34087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34088 if eval "test \"\${$as_ac_var+set}\" = set"; then
34089   echo $ECHO_N "(cached) $ECHO_C" >&6
34090 else
34091   cat >conftest.$ac_ext <<_ACEOF
34092 /* confdefs.h.  */
34093 _ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h.  */
34097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34099 #define $ac_func innocuous_$ac_func
34100
34101 /* System header to define __stub macros and hopefully few prototypes,
34102     which can conflict with char $ac_func (); below.
34103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34104     <limits.h> exists even on freestanding compilers.  */
34105
34106 #ifdef __STDC__
34107 # include <limits.h>
34108 #else
34109 # include <assert.h>
34110 #endif
34111
34112 #undef $ac_func
34113
34114 /* Override any gcc2 internal prototype to avoid an error.  */
34115 #ifdef __cplusplus
34116 extern "C"
34117 {
34118 #endif
34119 /* We use char because int might match the return type of a gcc2
34120    builtin and then its argument prototype would still apply.  */
34121 char $ac_func ();
34122 /* The GNU C library defines this for functions which it implements
34123     to always fail with ENOSYS.  Some functions are actually named
34124     something starting with __ and the normal name is an alias.  */
34125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34126 choke me
34127 #else
34128 char (*f) () = $ac_func;
34129 #endif
34130 #ifdef __cplusplus
34131 }
34132 #endif
34133
34134 int
34135 main ()
34136 {
34137 return f != $ac_func;
34138   ;
34139   return 0;
34140 }
34141 _ACEOF
34142 rm -f conftest.$ac_objext conftest$ac_exeext
34143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34144   (eval $ac_link) 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } &&
34151          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153   (eval $ac_try) 2>&5
34154   ac_status=$?
34155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); }; } &&
34157          { ac_try='test -s conftest$ac_exeext'
34158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159   (eval $ac_try) 2>&5
34160   ac_status=$?
34161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162   (exit $ac_status); }; }; then
34163   eval "$as_ac_var=yes"
34164 else
34165   echo "$as_me: failed program was:" >&5
34166 sed 's/^/| /' conftest.$ac_ext >&5
34167
34168 eval "$as_ac_var=no"
34169 fi
34170 rm -f conftest.err conftest.$ac_objext \
34171       conftest$ac_exeext conftest.$ac_ext
34172 fi
34173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34175 if test `eval echo '${'$as_ac_var'}'` = yes; then
34176   cat >>confdefs.h <<_ACEOF
34177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34178 _ACEOF
34179
34180 fi
34181 done
34182
34183 fi
34184
34185 else
34186     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34187 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34188 fi
34189
34190
34191
34192 for ac_func in snprintf vsnprintf
34193 do
34194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34195 echo "$as_me:$LINENO: checking for $ac_func" >&5
34196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34197 if eval "test \"\${$as_ac_var+set}\" = set"; then
34198   echo $ECHO_N "(cached) $ECHO_C" >&6
34199 else
34200   cat >conftest.$ac_ext <<_ACEOF
34201 /* confdefs.h.  */
34202 _ACEOF
34203 cat confdefs.h >>conftest.$ac_ext
34204 cat >>conftest.$ac_ext <<_ACEOF
34205 /* end confdefs.h.  */
34206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34208 #define $ac_func innocuous_$ac_func
34209
34210 /* System header to define __stub macros and hopefully few prototypes,
34211     which can conflict with char $ac_func (); below.
34212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34213     <limits.h> exists even on freestanding compilers.  */
34214
34215 #ifdef __STDC__
34216 # include <limits.h>
34217 #else
34218 # include <assert.h>
34219 #endif
34220
34221 #undef $ac_func
34222
34223 /* Override any gcc2 internal prototype to avoid an error.  */
34224 #ifdef __cplusplus
34225 extern "C"
34226 {
34227 #endif
34228 /* We use char because int might match the return type of a gcc2
34229    builtin and then its argument prototype would still apply.  */
34230 char $ac_func ();
34231 /* The GNU C library defines this for functions which it implements
34232     to always fail with ENOSYS.  Some functions are actually named
34233     something starting with __ and the normal name is an alias.  */
34234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34235 choke me
34236 #else
34237 char (*f) () = $ac_func;
34238 #endif
34239 #ifdef __cplusplus
34240 }
34241 #endif
34242
34243 int
34244 main ()
34245 {
34246 return f != $ac_func;
34247   ;
34248   return 0;
34249 }
34250 _ACEOF
34251 rm -f conftest.$ac_objext conftest$ac_exeext
34252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34253   (eval $ac_link) 2>conftest.er1
34254   ac_status=$?
34255   grep -v '^ *+' conftest.er1 >conftest.err
34256   rm -f conftest.er1
34257   cat conftest.err >&5
34258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259   (exit $ac_status); } &&
34260          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34262   (eval $ac_try) 2>&5
34263   ac_status=$?
34264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265   (exit $ac_status); }; } &&
34266          { ac_try='test -s conftest$ac_exeext'
34267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34268   (eval $ac_try) 2>&5
34269   ac_status=$?
34270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271   (exit $ac_status); }; }; then
34272   eval "$as_ac_var=yes"
34273 else
34274   echo "$as_me: failed program was:" >&5
34275 sed 's/^/| /' conftest.$ac_ext >&5
34276
34277 eval "$as_ac_var=no"
34278 fi
34279 rm -f conftest.err conftest.$ac_objext \
34280       conftest$ac_exeext conftest.$ac_ext
34281 fi
34282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34284 if test `eval echo '${'$as_ac_var'}'` = yes; then
34285   cat >>confdefs.h <<_ACEOF
34286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34287 _ACEOF
34288
34289 fi
34290 done
34291
34292
34293 if test "$ac_cv_func_vsnprintf" = "yes"; then
34294         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34295 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34296 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34297   echo $ECHO_N "(cached) $ECHO_C" >&6
34298 else
34299
34300                                                             cat >conftest.$ac_ext <<_ACEOF
34301 /* confdefs.h.  */
34302 _ACEOF
34303 cat confdefs.h >>conftest.$ac_ext
34304 cat >>conftest.$ac_ext <<_ACEOF
34305 /* end confdefs.h.  */
34306
34307                     #include <stdio.h>
34308                     #include <stdarg.h>
34309                     #ifdef __MSL__
34310                     #if __MSL__ >= 0x6000
34311                     namespace std {}
34312                     using namespace std;
34313                     #endif
34314                     #endif
34315
34316 int
34317 main ()
34318 {
34319
34320                     char *buf;
34321                     va_list ap;
34322                     vsnprintf(buf, 10u, "%s", ap);
34323
34324   ;
34325   return 0;
34326 }
34327 _ACEOF
34328 rm -f conftest.$ac_objext
34329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34330   (eval $ac_compile) 2>conftest.er1
34331   ac_status=$?
34332   grep -v '^ *+' conftest.er1 >conftest.err
34333   rm -f conftest.er1
34334   cat conftest.err >&5
34335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336   (exit $ac_status); } &&
34337          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339   (eval $ac_try) 2>&5
34340   ac_status=$?
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); }; } &&
34343          { ac_try='test -s conftest.$ac_objext'
34344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345   (eval $ac_try) 2>&5
34346   ac_status=$?
34347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348   (exit $ac_status); }; }; then
34349   wx_cv_func_vsnprintf_decl=yes
34350 else
34351   echo "$as_me: failed program was:" >&5
34352 sed 's/^/| /' conftest.$ac_ext >&5
34353
34354 wx_cv_func_vsnprintf_decl=no
34355
34356 fi
34357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34358
34359
34360 fi
34361 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34362 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34363
34364     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34365         cat >>confdefs.h <<\_ACEOF
34366 #define HAVE_VSNPRINTF_DECL 1
34367 _ACEOF
34368
34369
34370                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34371 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34372 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34373   echo $ECHO_N "(cached) $ECHO_C" >&6
34374 else
34375
34376                 cat >conftest.$ac_ext <<_ACEOF
34377 /* confdefs.h.  */
34378 _ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h.  */
34382
34383                         #include <stdio.h>
34384                         #include <stdarg.h>
34385                         #ifdef __MSL__
34386                         #if __MSL__ >= 0x6000
34387                         namespace std {}
34388                         using namespace std;
34389                         #endif
34390                         #endif
34391
34392 int
34393 main ()
34394 {
34395
34396                         char *buf;
34397                         va_list ap;
34398                         const char *fmt = "%s";
34399                         vsnprintf(buf, 10u, fmt, ap);
34400
34401   ;
34402   return 0;
34403 }
34404 _ACEOF
34405 rm -f conftest.$ac_objext
34406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34407   (eval $ac_compile) 2>conftest.er1
34408   ac_status=$?
34409   grep -v '^ *+' conftest.er1 >conftest.err
34410   rm -f conftest.er1
34411   cat conftest.err >&5
34412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413   (exit $ac_status); } &&
34414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416   (eval $ac_try) 2>&5
34417   ac_status=$?
34418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419   (exit $ac_status); }; } &&
34420          { ac_try='test -s conftest.$ac_objext'
34421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422   (eval $ac_try) 2>&5
34423   ac_status=$?
34424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425   (exit $ac_status); }; }; then
34426   wx_cv_func_broken_vsnprintf_decl=no
34427 else
34428   echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.$ac_ext >&5
34430
34431 wx_cv_func_broken_vsnprintf_decl=yes
34432
34433 fi
34434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34435
34436
34437 fi
34438 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34439 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34440
34441         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34442             cat >>confdefs.h <<\_ACEOF
34443 #define HAVE_BROKEN_VSNPRINTF_DECL 1
34444 _ACEOF
34445
34446         fi
34447     fi
34448 fi
34449
34450 if test "$ac_cv_func_snprintf" = "yes"; then
34451     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34452 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34453 if test "${wx_cv_func_snprintf_decl+set}" = set; then
34454   echo $ECHO_N "(cached) $ECHO_C" >&6
34455 else
34456
34457             cat >conftest.$ac_ext <<_ACEOF
34458 /* confdefs.h.  */
34459 _ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h.  */
34463
34464                     #include <stdio.h>
34465                     #include <stdarg.h>
34466                     #ifdef __MSL__
34467                     #if __MSL__ >= 0x6000
34468                     namespace std {}
34469                     using namespace std;
34470                     #endif
34471                     #endif
34472
34473 int
34474 main ()
34475 {
34476
34477                     char *buf;
34478                     snprintf(buf, 10u, "%s", "wx");
34479
34480   ;
34481   return 0;
34482 }
34483 _ACEOF
34484 rm -f conftest.$ac_objext
34485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34486   (eval $ac_compile) 2>conftest.er1
34487   ac_status=$?
34488   grep -v '^ *+' conftest.er1 >conftest.err
34489   rm -f conftest.er1
34490   cat conftest.err >&5
34491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492   (exit $ac_status); } &&
34493          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34495   (eval $ac_try) 2>&5
34496   ac_status=$?
34497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498   (exit $ac_status); }; } &&
34499          { ac_try='test -s conftest.$ac_objext'
34500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501   (eval $ac_try) 2>&5
34502   ac_status=$?
34503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504   (exit $ac_status); }; }; then
34505   wx_cv_func_snprintf_decl=yes
34506 else
34507   echo "$as_me: failed program was:" >&5
34508 sed 's/^/| /' conftest.$ac_ext >&5
34509
34510 wx_cv_func_snprintf_decl=no
34511
34512 fi
34513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34514
34515
34516 fi
34517 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34518 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34519
34520     if test "$wx_cv_func_snprintf_decl" = "yes"; then
34521         cat >>confdefs.h <<\_ACEOF
34522 #define HAVE_SNPRINTF_DECL 1
34523 _ACEOF
34524
34525
34526                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34527 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34528 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34529   echo $ECHO_N "(cached) $ECHO_C" >&6
34530 else
34531
34532                 cat >conftest.$ac_ext <<_ACEOF
34533 /* confdefs.h.  */
34534 _ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h.  */
34538
34539                         #include <stdio.h>
34540                         #include <stdarg.h>
34541                         #ifdef __MSL__
34542                         #if __MSL__ >= 0x6000
34543                         namespace std {}
34544                         using namespace std;
34545                         #endif
34546                         #endif
34547
34548 int
34549 main ()
34550 {
34551
34552                         char *buf;
34553                         const char *fmt = "%s";
34554                         snprintf(buf, 10u, fmt, "wx");
34555
34556   ;
34557   return 0;
34558 }
34559 _ACEOF
34560 rm -f conftest.$ac_objext
34561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34562   (eval $ac_compile) 2>conftest.er1
34563   ac_status=$?
34564   grep -v '^ *+' conftest.er1 >conftest.err
34565   rm -f conftest.er1
34566   cat conftest.err >&5
34567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568   (exit $ac_status); } &&
34569          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571   (eval $ac_try) 2>&5
34572   ac_status=$?
34573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574   (exit $ac_status); }; } &&
34575          { ac_try='test -s conftest.$ac_objext'
34576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577   (eval $ac_try) 2>&5
34578   ac_status=$?
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); }; }; then
34581   wx_cv_func_broken_snprintf_decl=no
34582 else
34583   echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34585
34586 wx_cv_func_broken_snprintf_decl=yes
34587
34588 fi
34589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34590
34591
34592 fi
34593 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34594 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34595
34596         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34597             cat >>confdefs.h <<\_ACEOF
34598 #define HAVE_BROKEN_SNPRINTF_DECL 1
34599 _ACEOF
34600
34601         fi
34602     fi
34603
34604     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34605
34606                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34607 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34608 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34609   echo $ECHO_N "(cached) $ECHO_C" >&6
34610 else
34611
34612                 if test "$cross_compiling" = yes; then
34613   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34614 See \`config.log' for more details." >&5
34615 echo "$as_me: error: cannot run test program while cross compiling
34616 See \`config.log' for more details." >&2;}
34617    { (exit 1); exit 1; }; }
34618 else
34619   cat >conftest.$ac_ext <<_ACEOF
34620 /* confdefs.h.  */
34621 _ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h.  */
34625
34626                         #include <stdio.h>
34627
34628                         int main (void)
34629                         {
34630                             char buffer[128];
34631                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34632                             if (strcmp ("2 3 1", buffer) == 0)
34633                                 exit (0);
34634                             exit (1);
34635                         }
34636
34637 _ACEOF
34638 rm -f conftest$ac_exeext
34639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34640   (eval $ac_link) 2>&5
34641   ac_status=$?
34642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
34649   wx_cv_func_snprintf_pos_params=no
34650 else
34651   echo "$as_me: program exited with status $ac_status" >&5
34652 echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34654
34655 ( exit $ac_status )
34656 wx_cv_func_snprintf_pos_params=yes
34657
34658 fi
34659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34660 fi
34661
34662
34663 fi
34664 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34665 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34666
34667         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34668             cat >>confdefs.h <<\_ACEOF
34669 #define HAVE_UNIX98_PRINTF 1
34670 _ACEOF
34671
34672         fi
34673     fi
34674 fi
34675
34676
34677 if test "$wxUSE_UNICODE" = yes; then
34678
34679
34680
34681
34682
34683
34684 for ac_func in wputc wputchar putws fputws wprintf vswprintf
34685 do
34686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34687 echo "$as_me:$LINENO: checking for $ac_func" >&5
34688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34689 if eval "test \"\${$as_ac_var+set}\" = set"; then
34690   echo $ECHO_N "(cached) $ECHO_C" >&6
34691 else
34692   cat >conftest.$ac_ext <<_ACEOF
34693 /* confdefs.h.  */
34694 _ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h.  */
34698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34700 #define $ac_func innocuous_$ac_func
34701
34702 /* System header to define __stub macros and hopefully few prototypes,
34703     which can conflict with char $ac_func (); below.
34704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34705     <limits.h> exists even on freestanding compilers.  */
34706
34707 #ifdef __STDC__
34708 # include <limits.h>
34709 #else
34710 # include <assert.h>
34711 #endif
34712
34713 #undef $ac_func
34714
34715 /* Override any gcc2 internal prototype to avoid an error.  */
34716 #ifdef __cplusplus
34717 extern "C"
34718 {
34719 #endif
34720 /* We use char because int might match the return type of a gcc2
34721    builtin and then its argument prototype would still apply.  */
34722 char $ac_func ();
34723 /* The GNU C library defines this for functions which it implements
34724     to always fail with ENOSYS.  Some functions are actually named
34725     something starting with __ and the normal name is an alias.  */
34726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34727 choke me
34728 #else
34729 char (*f) () = $ac_func;
34730 #endif
34731 #ifdef __cplusplus
34732 }
34733 #endif
34734
34735 int
34736 main ()
34737 {
34738 return f != $ac_func;
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext conftest$ac_exeext
34744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34745   (eval $ac_link) 2>conftest.er1
34746   ac_status=$?
34747   grep -v '^ *+' conftest.er1 >conftest.err
34748   rm -f conftest.er1
34749   cat conftest.err >&5
34750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751   (exit $ac_status); } &&
34752          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754   (eval $ac_try) 2>&5
34755   ac_status=$?
34756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); }; } &&
34758          { ac_try='test -s conftest$ac_exeext'
34759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760   (eval $ac_try) 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); }; }; then
34764   eval "$as_ac_var=yes"
34765 else
34766   echo "$as_me: failed program was:" >&5
34767 sed 's/^/| /' conftest.$ac_ext >&5
34768
34769 eval "$as_ac_var=no"
34770 fi
34771 rm -f conftest.err conftest.$ac_objext \
34772       conftest$ac_exeext conftest.$ac_ext
34773 fi
34774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34776 if test `eval echo '${'$as_ac_var'}'` = yes; then
34777   cat >>confdefs.h <<_ACEOF
34778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34779 _ACEOF
34780
34781 fi
34782 done
34783
34784
34785                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34786 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34787     cat >conftest.$ac_ext <<_ACEOF
34788 /* confdefs.h.  */
34789 _ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h.  */
34793 #include <wchar.h>
34794 int
34795 main ()
34796 {
34797 &_vsnwprintf;
34798   ;
34799   return 0;
34800 }
34801 _ACEOF
34802 rm -f conftest.$ac_objext
34803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34804   (eval $ac_compile) 2>conftest.er1
34805   ac_status=$?
34806   grep -v '^ *+' conftest.er1 >conftest.err
34807   rm -f conftest.er1
34808   cat conftest.err >&5
34809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34810   (exit $ac_status); } &&
34811          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813   (eval $ac_try) 2>&5
34814   ac_status=$?
34815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816   (exit $ac_status); }; } &&
34817          { ac_try='test -s conftest.$ac_objext'
34818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819   (eval $ac_try) 2>&5
34820   ac_status=$?
34821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822   (exit $ac_status); }; }; then
34823   echo "$as_me:$LINENO: result: yes" >&5
34824 echo "${ECHO_T}yes" >&6
34825                     cat >>confdefs.h <<\_ACEOF
34826 #define HAVE__VSNWPRINTF 1
34827 _ACEOF
34828
34829 else
34830   echo "$as_me: failed program was:" >&5
34831 sed 's/^/| /' conftest.$ac_ext >&5
34832
34833 echo "$as_me:$LINENO: result: no" >&5
34834 echo "${ECHO_T}no" >&6
34835 fi
34836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
34837 fi
34838
34839 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34840
34841 for ac_func in fnmatch
34842 do
34843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34844 echo "$as_me:$LINENO: checking for $ac_func" >&5
34845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34846 if eval "test \"\${$as_ac_var+set}\" = set"; then
34847   echo $ECHO_N "(cached) $ECHO_C" >&6
34848 else
34849   cat >conftest.$ac_ext <<_ACEOF
34850 /* confdefs.h.  */
34851 _ACEOF
34852 cat confdefs.h >>conftest.$ac_ext
34853 cat >>conftest.$ac_ext <<_ACEOF
34854 /* end confdefs.h.  */
34855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34857 #define $ac_func innocuous_$ac_func
34858
34859 /* System header to define __stub macros and hopefully few prototypes,
34860     which can conflict with char $ac_func (); below.
34861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34862     <limits.h> exists even on freestanding compilers.  */
34863
34864 #ifdef __STDC__
34865 # include <limits.h>
34866 #else
34867 # include <assert.h>
34868 #endif
34869
34870 #undef $ac_func
34871
34872 /* Override any gcc2 internal prototype to avoid an error.  */
34873 #ifdef __cplusplus
34874 extern "C"
34875 {
34876 #endif
34877 /* We use char because int might match the return type of a gcc2
34878    builtin and then its argument prototype would still apply.  */
34879 char $ac_func ();
34880 /* The GNU C library defines this for functions which it implements
34881     to always fail with ENOSYS.  Some functions are actually named
34882     something starting with __ and the normal name is an alias.  */
34883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34884 choke me
34885 #else
34886 char (*f) () = $ac_func;
34887 #endif
34888 #ifdef __cplusplus
34889 }
34890 #endif
34891
34892 int
34893 main ()
34894 {
34895 return f != $ac_func;
34896   ;
34897   return 0;
34898 }
34899 _ACEOF
34900 rm -f conftest.$ac_objext conftest$ac_exeext
34901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34902   (eval $ac_link) 2>conftest.er1
34903   ac_status=$?
34904   grep -v '^ *+' conftest.er1 >conftest.err
34905   rm -f conftest.er1
34906   cat conftest.err >&5
34907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908   (exit $ac_status); } &&
34909          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911   (eval $ac_try) 2>&5
34912   ac_status=$?
34913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914   (exit $ac_status); }; } &&
34915          { ac_try='test -s conftest$ac_exeext'
34916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917   (eval $ac_try) 2>&5
34918   ac_status=$?
34919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920   (exit $ac_status); }; }; then
34921   eval "$as_ac_var=yes"
34922 else
34923   echo "$as_me: failed program was:" >&5
34924 sed 's/^/| /' conftest.$ac_ext >&5
34925
34926 eval "$as_ac_var=no"
34927 fi
34928 rm -f conftest.err conftest.$ac_objext \
34929       conftest$ac_exeext conftest.$ac_ext
34930 fi
34931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34933 if test `eval echo '${'$as_ac_var'}'` = yes; then
34934   cat >>confdefs.h <<_ACEOF
34935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34936 _ACEOF
34937
34938 fi
34939 done
34940
34941 fi
34942
34943 if test "$wxUSE_FILE" = "yes"; then
34944
34945 for ac_func in fsync
34946 do
34947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34948 echo "$as_me:$LINENO: checking for $ac_func" >&5
34949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34950 if eval "test \"\${$as_ac_var+set}\" = set"; then
34951   echo $ECHO_N "(cached) $ECHO_C" >&6
34952 else
34953   cat >conftest.$ac_ext <<_ACEOF
34954 /* confdefs.h.  */
34955 _ACEOF
34956 cat confdefs.h >>conftest.$ac_ext
34957 cat >>conftest.$ac_ext <<_ACEOF
34958 /* end confdefs.h.  */
34959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34961 #define $ac_func innocuous_$ac_func
34962
34963 /* System header to define __stub macros and hopefully few prototypes,
34964     which can conflict with char $ac_func (); below.
34965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34966     <limits.h> exists even on freestanding compilers.  */
34967
34968 #ifdef __STDC__
34969 # include <limits.h>
34970 #else
34971 # include <assert.h>
34972 #endif
34973
34974 #undef $ac_func
34975
34976 /* Override any gcc2 internal prototype to avoid an error.  */
34977 #ifdef __cplusplus
34978 extern "C"
34979 {
34980 #endif
34981 /* We use char because int might match the return type of a gcc2
34982    builtin and then its argument prototype would still apply.  */
34983 char $ac_func ();
34984 /* The GNU C library defines this for functions which it implements
34985     to always fail with ENOSYS.  Some functions are actually named
34986     something starting with __ and the normal name is an alias.  */
34987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34988 choke me
34989 #else
34990 char (*f) () = $ac_func;
34991 #endif
34992 #ifdef __cplusplus
34993 }
34994 #endif
34995
34996 int
34997 main ()
34998 {
34999 return f != $ac_func;
35000   ;
35001   return 0;
35002 }
35003 _ACEOF
35004 rm -f conftest.$ac_objext conftest$ac_exeext
35005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35006   (eval $ac_link) 2>conftest.er1
35007   ac_status=$?
35008   grep -v '^ *+' conftest.er1 >conftest.err
35009   rm -f conftest.er1
35010   cat conftest.err >&5
35011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012   (exit $ac_status); } &&
35013          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015   (eval $ac_try) 2>&5
35016   ac_status=$?
35017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018   (exit $ac_status); }; } &&
35019          { ac_try='test -s conftest$ac_exeext'
35020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021   (eval $ac_try) 2>&5
35022   ac_status=$?
35023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024   (exit $ac_status); }; }; then
35025   eval "$as_ac_var=yes"
35026 else
35027   echo "$as_me: failed program was:" >&5
35028 sed 's/^/| /' conftest.$ac_ext >&5
35029
35030 eval "$as_ac_var=no"
35031 fi
35032 rm -f conftest.err conftest.$ac_objext \
35033       conftest$ac_exeext conftest.$ac_ext
35034 fi
35035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35037 if test `eval echo '${'$as_ac_var'}'` = yes; then
35038   cat >>confdefs.h <<_ACEOF
35039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35040 _ACEOF
35041
35042 fi
35043 done
35044
35045 fi
35046
35047
35048 for ac_func in round
35049 do
35050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35051 echo "$as_me:$LINENO: checking for $ac_func" >&5
35052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35053 if eval "test \"\${$as_ac_var+set}\" = set"; then
35054   echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056   cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h.  */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h.  */
35062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35064 #define $ac_func innocuous_$ac_func
35065
35066 /* System header to define __stub macros and hopefully few prototypes,
35067     which can conflict with char $ac_func (); below.
35068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35069     <limits.h> exists even on freestanding compilers.  */
35070
35071 #ifdef __STDC__
35072 # include <limits.h>
35073 #else
35074 # include <assert.h>
35075 #endif
35076
35077 #undef $ac_func
35078
35079 /* Override any gcc2 internal prototype to avoid an error.  */
35080 #ifdef __cplusplus
35081 extern "C"
35082 {
35083 #endif
35084 /* We use char because int might match the return type of a gcc2
35085    builtin and then its argument prototype would still apply.  */
35086 char $ac_func ();
35087 /* The GNU C library defines this for functions which it implements
35088     to always fail with ENOSYS.  Some functions are actually named
35089     something starting with __ and the normal name is an alias.  */
35090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35091 choke me
35092 #else
35093 char (*f) () = $ac_func;
35094 #endif
35095 #ifdef __cplusplus
35096 }
35097 #endif
35098
35099 int
35100 main ()
35101 {
35102 return f != $ac_func;
35103   ;
35104   return 0;
35105 }
35106 _ACEOF
35107 rm -f conftest.$ac_objext conftest$ac_exeext
35108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35109   (eval $ac_link) 2>conftest.er1
35110   ac_status=$?
35111   grep -v '^ *+' conftest.er1 >conftest.err
35112   rm -f conftest.er1
35113   cat conftest.err >&5
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } &&
35116          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118   (eval $ac_try) 2>&5
35119   ac_status=$?
35120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121   (exit $ac_status); }; } &&
35122          { ac_try='test -s conftest$ac_exeext'
35123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124   (eval $ac_try) 2>&5
35125   ac_status=$?
35126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127   (exit $ac_status); }; }; then
35128   eval "$as_ac_var=yes"
35129 else
35130   echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35132
35133 eval "$as_ac_var=no"
35134 fi
35135 rm -f conftest.err conftest.$ac_objext \
35136       conftest$ac_exeext conftest.$ac_ext
35137 fi
35138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35140 if test `eval echo '${'$as_ac_var'}'` = yes; then
35141   cat >>confdefs.h <<_ACEOF
35142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35143 _ACEOF
35144
35145 fi
35146 done
35147
35148 if test "$ac_cv_func_round" = yes; then
35149     echo "$as_me:$LINENO: checking whether round is declared" >&5
35150 echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35151 if test "${ac_cv_have_decl_round+set}" = set; then
35152   echo $ECHO_N "(cached) $ECHO_C" >&6
35153 else
35154   cat >conftest.$ac_ext <<_ACEOF
35155 /* confdefs.h.  */
35156 _ACEOF
35157 cat confdefs.h >>conftest.$ac_ext
35158 cat >>conftest.$ac_ext <<_ACEOF
35159 /* end confdefs.h.  */
35160 #include <math.h>
35161
35162 int
35163 main ()
35164 {
35165 #ifndef round
35166   char *p = (char *) round;
35167 #endif
35168
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext
35174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35175   (eval $ac_compile) 2>conftest.er1
35176   ac_status=$?
35177   grep -v '^ *+' conftest.er1 >conftest.err
35178   rm -f conftest.er1
35179   cat conftest.err >&5
35180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181   (exit $ac_status); } &&
35182          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184   (eval $ac_try) 2>&5
35185   ac_status=$?
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); }; } &&
35188          { ac_try='test -s conftest.$ac_objext'
35189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190   (eval $ac_try) 2>&5
35191   ac_status=$?
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); }; }; then
35194   ac_cv_have_decl_round=yes
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199 ac_cv_have_decl_round=no
35200 fi
35201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35202 fi
35203 echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35204 echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35205 if test $ac_cv_have_decl_round = yes; then
35206
35207 cat >>confdefs.h <<_ACEOF
35208 #define HAVE_DECL_ROUND 1
35209 _ACEOF
35210
35211
35212 else
35213   cat >>confdefs.h <<_ACEOF
35214 #define HAVE_DECL_ROUND 0
35215 _ACEOF
35216
35217
35218 fi
35219
35220
35221 fi
35222
35223
35224 if test "$TOOLKIT" != "MSW"; then
35225
35226
35227
35228
35229
35230 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35231 if test "${with_libiconv_prefix+set}" = set; then
35232   withval="$with_libiconv_prefix"
35233
35234     for dir in `echo "$withval" | tr : ' '`; do
35235       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35236       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35237     done
35238
35239 fi;
35240
35241   echo "$as_me:$LINENO: checking for iconv" >&5
35242 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35243 if test "${am_cv_func_iconv+set}" = set; then
35244   echo $ECHO_N "(cached) $ECHO_C" >&6
35245 else
35246
35247     am_cv_func_iconv="no, consider installing GNU libiconv"
35248     am_cv_lib_iconv=no
35249     cat >conftest.$ac_ext <<_ACEOF
35250 /* confdefs.h.  */
35251 _ACEOF
35252 cat confdefs.h >>conftest.$ac_ext
35253 cat >>conftest.$ac_ext <<_ACEOF
35254 /* end confdefs.h.  */
35255 #include <stdlib.h>
35256 #include <iconv.h>
35257 int
35258 main ()
35259 {
35260 iconv_t cd = iconv_open("","");
35261        iconv(cd,NULL,NULL,NULL,NULL);
35262        iconv_close(cd);
35263   ;
35264   return 0;
35265 }
35266 _ACEOF
35267 rm -f conftest.$ac_objext conftest$ac_exeext
35268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35269   (eval $ac_link) 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } &&
35276          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35278   (eval $ac_try) 2>&5
35279   ac_status=$?
35280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281   (exit $ac_status); }; } &&
35282          { ac_try='test -s conftest$ac_exeext'
35283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284   (eval $ac_try) 2>&5
35285   ac_status=$?
35286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287   (exit $ac_status); }; }; then
35288   am_cv_func_iconv=yes
35289 else
35290   echo "$as_me: failed program was:" >&5
35291 sed 's/^/| /' conftest.$ac_ext >&5
35292
35293 fi
35294 rm -f conftest.err conftest.$ac_objext \
35295       conftest$ac_exeext conftest.$ac_ext
35296     if test "$am_cv_func_iconv" != yes; then
35297       am_save_LIBS="$LIBS"
35298       LIBS="$LIBS -liconv"
35299       cat >conftest.$ac_ext <<_ACEOF
35300 /* confdefs.h.  */
35301 _ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h.  */
35305 #include <stdlib.h>
35306 #include <iconv.h>
35307 int
35308 main ()
35309 {
35310 iconv_t cd = iconv_open("","");
35311          iconv(cd,NULL,NULL,NULL,NULL);
35312          iconv_close(cd);
35313   ;
35314   return 0;
35315 }
35316 _ACEOF
35317 rm -f conftest.$ac_objext conftest$ac_exeext
35318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35319   (eval $ac_link) 2>conftest.er1
35320   ac_status=$?
35321   grep -v '^ *+' conftest.er1 >conftest.err
35322   rm -f conftest.er1
35323   cat conftest.err >&5
35324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325   (exit $ac_status); } &&
35326          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35328   (eval $ac_try) 2>&5
35329   ac_status=$?
35330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331   (exit $ac_status); }; } &&
35332          { ac_try='test -s conftest$ac_exeext'
35333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35334   (eval $ac_try) 2>&5
35335   ac_status=$?
35336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); }; }; then
35338   am_cv_lib_iconv=yes
35339         am_cv_func_iconv=yes
35340 else
35341   echo "$as_me: failed program was:" >&5
35342 sed 's/^/| /' conftest.$ac_ext >&5
35343
35344 fi
35345 rm -f conftest.err conftest.$ac_objext \
35346       conftest$ac_exeext conftest.$ac_ext
35347       LIBS="$am_save_LIBS"
35348     fi
35349
35350 fi
35351 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35352 echo "${ECHO_T}$am_cv_func_iconv" >&6
35353   if test "$am_cv_func_iconv" = yes; then
35354
35355 cat >>confdefs.h <<\_ACEOF
35356 #define HAVE_ICONV 1
35357 _ACEOF
35358
35359     echo "$as_me:$LINENO: checking if iconv needs const" >&5
35360 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35361 if test "${wx_cv_func_iconv_const+set}" = set; then
35362   echo $ECHO_N "(cached) $ECHO_C" >&6
35363 else
35364   cat >conftest.$ac_ext <<_ACEOF
35365 /* confdefs.h.  */
35366 _ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h.  */
35370
35371 #include <stdlib.h>
35372 #include <iconv.h>
35373 extern
35374 #ifdef __cplusplus
35375 "C"
35376 #endif
35377 #if defined(__STDC__) || defined(__cplusplus)
35378 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35379 #else
35380 size_t iconv();
35381 #endif
35382
35383 int
35384 main ()
35385 {
35386
35387   ;
35388   return 0;
35389 }
35390 _ACEOF
35391 rm -f conftest.$ac_objext
35392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35393   (eval $ac_compile) 2>conftest.er1
35394   ac_status=$?
35395   grep -v '^ *+' conftest.er1 >conftest.err
35396   rm -f conftest.er1
35397   cat conftest.err >&5
35398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399   (exit $ac_status); } &&
35400          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35402   (eval $ac_try) 2>&5
35403   ac_status=$?
35404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405   (exit $ac_status); }; } &&
35406          { ac_try='test -s conftest.$ac_objext'
35407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408   (eval $ac_try) 2>&5
35409   ac_status=$?
35410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411   (exit $ac_status); }; }; then
35412   wx_cv_func_iconv_const="no"
35413 else
35414   echo "$as_me: failed program was:" >&5
35415 sed 's/^/| /' conftest.$ac_ext >&5
35416
35417 wx_cv_func_iconv_const="yes"
35418
35419 fi
35420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35421
35422 fi
35423 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35424 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35425
35426     iconv_const=
35427     if test "x$wx_cv_func_iconv_const" = "xyes"; then
35428         iconv_const="const"
35429     fi
35430
35431
35432 cat >>confdefs.h <<_ACEOF
35433 #define ICONV_CONST $iconv_const
35434 _ACEOF
35435
35436   fi
35437   LIBICONV=
35438   if test "$am_cv_lib_iconv" = yes; then
35439     LIBICONV="-liconv"
35440   fi
35441
35442
35443 LIBS="$LIBICONV $LIBS"
35444
35445 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35446
35447 for ac_func in sigaction
35448 do
35449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35450 echo "$as_me:$LINENO: checking for $ac_func" >&5
35451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35452 if eval "test \"\${$as_ac_var+set}\" = set"; then
35453   echo $ECHO_N "(cached) $ECHO_C" >&6
35454 else
35455   cat >conftest.$ac_ext <<_ACEOF
35456 /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35463 #define $ac_func innocuous_$ac_func
35464
35465 /* System header to define __stub macros and hopefully few prototypes,
35466     which can conflict with char $ac_func (); below.
35467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35468     <limits.h> exists even on freestanding compilers.  */
35469
35470 #ifdef __STDC__
35471 # include <limits.h>
35472 #else
35473 # include <assert.h>
35474 #endif
35475
35476 #undef $ac_func
35477
35478 /* Override any gcc2 internal prototype to avoid an error.  */
35479 #ifdef __cplusplus
35480 extern "C"
35481 {
35482 #endif
35483 /* We use char because int might match the return type of a gcc2
35484    builtin and then its argument prototype would still apply.  */
35485 char $ac_func ();
35486 /* The GNU C library defines this for functions which it implements
35487     to always fail with ENOSYS.  Some functions are actually named
35488     something starting with __ and the normal name is an alias.  */
35489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35490 choke me
35491 #else
35492 char (*f) () = $ac_func;
35493 #endif
35494 #ifdef __cplusplus
35495 }
35496 #endif
35497
35498 int
35499 main ()
35500 {
35501 return f != $ac_func;
35502   ;
35503   return 0;
35504 }
35505 _ACEOF
35506 rm -f conftest.$ac_objext conftest$ac_exeext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35508   (eval $ac_link) 2>conftest.er1
35509   ac_status=$?
35510   grep -v '^ *+' conftest.er1 >conftest.err
35511   rm -f conftest.er1
35512   cat conftest.err >&5
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); } &&
35515          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517   (eval $ac_try) 2>&5
35518   ac_status=$?
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); }; } &&
35521          { ac_try='test -s conftest$ac_exeext'
35522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523   (eval $ac_try) 2>&5
35524   ac_status=$?
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); }; }; then
35527   eval "$as_ac_var=yes"
35528 else
35529   echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35531
35532 eval "$as_ac_var=no"
35533 fi
35534 rm -f conftest.err conftest.$ac_objext \
35535       conftest$ac_exeext conftest.$ac_ext
35536 fi
35537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35539 if test `eval echo '${'$as_ac_var'}'` = yes; then
35540   cat >>confdefs.h <<_ACEOF
35541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35542 _ACEOF
35543
35544 fi
35545 done
35546
35547
35548     if test "$ac_cv_func_sigaction" = "no"; then
35549         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35550 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35551         wxUSE_ON_FATAL_EXCEPTION=no
35552     fi
35553
35554     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35555       echo "$as_me:$LINENO: checking for sa_handler type" >&5
35556 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35557 if test "${wx_cv_type_sa_handler+set}" = set; then
35558   echo $ECHO_N "(cached) $ECHO_C" >&6
35559 else
35560
35561         cat >conftest.$ac_ext <<_ACEOF
35562 /* confdefs.h.  */
35563 _ACEOF
35564 cat confdefs.h >>conftest.$ac_ext
35565 cat >>conftest.$ac_ext <<_ACEOF
35566 /* end confdefs.h.  */
35567 #include <signal.h>
35568 int
35569 main ()
35570 {
35571
35572                         extern void testSigHandler(int);
35573
35574                         struct sigaction sa;
35575                         sa.sa_handler = testSigHandler;
35576
35577   ;
35578   return 0;
35579 }
35580 _ACEOF
35581 rm -f conftest.$ac_objext
35582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35583   (eval $ac_compile) 2>conftest.er1
35584   ac_status=$?
35585   grep -v '^ *+' conftest.er1 >conftest.err
35586   rm -f conftest.er1
35587   cat conftest.err >&5
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } &&
35590          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592   (eval $ac_try) 2>&5
35593   ac_status=$?
35594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595   (exit $ac_status); }; } &&
35596          { ac_try='test -s conftest.$ac_objext'
35597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598   (eval $ac_try) 2>&5
35599   ac_status=$?
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); }; }; then
35602
35603                         wx_cv_type_sa_handler=int
35604
35605 else
35606   echo "$as_me: failed program was:" >&5
35607 sed 's/^/| /' conftest.$ac_ext >&5
35608
35609
35610                         wx_cv_type_sa_handler=void
35611
35612 fi
35613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35614
35615 fi
35616 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35617 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35618
35619       cat >>confdefs.h <<_ACEOF
35620 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35621 _ACEOF
35622
35623     fi
35624 fi
35625
35626 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35627     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35628 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35629 if test "${wx_cv_func_backtrace+set}" = set; then
35630   echo $ECHO_N "(cached) $ECHO_C" >&6
35631 else
35632
35633             cat >conftest.$ac_ext <<_ACEOF
35634 /* confdefs.h.  */
35635 _ACEOF
35636 cat confdefs.h >>conftest.$ac_ext
35637 cat >>conftest.$ac_ext <<_ACEOF
35638 /* end confdefs.h.  */
35639 #include <execinfo.h>
35640 int
35641 main ()
35642 {
35643
35644                     void *trace[1];
35645                     char **messages;
35646
35647                     backtrace(trace, 1);
35648                     messages = backtrace_symbols(trace, 1);
35649
35650   ;
35651   return 0;
35652 }
35653 _ACEOF
35654 rm -f conftest.$ac_objext
35655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35656   (eval $ac_compile) 2>conftest.er1
35657   ac_status=$?
35658   grep -v '^ *+' conftest.er1 >conftest.err
35659   rm -f conftest.er1
35660   cat conftest.err >&5
35661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662   (exit $ac_status); } &&
35663          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665   (eval $ac_try) 2>&5
35666   ac_status=$?
35667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668   (exit $ac_status); }; } &&
35669          { ac_try='test -s conftest.$ac_objext'
35670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671   (eval $ac_try) 2>&5
35672   ac_status=$?
35673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674   (exit $ac_status); }; }; then
35675   wx_cv_func_backtrace=yes
35676 else
35677   echo "$as_me: failed program was:" >&5
35678 sed 's/^/| /' conftest.$ac_ext >&5
35679
35680 wx_cv_func_backtrace=no
35681
35682 fi
35683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35684
35685
35686 fi
35687 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35688 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35689
35690
35691     if test "$wx_cv_func_backtrace" = "no"; then
35692         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35693 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35694         wxUSE_STACKWALKER=no
35695     else
35696         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35697 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35698 if test "${wx_cv_func_cxa_demangle+set}" = set; then
35699   echo $ECHO_N "(cached) $ECHO_C" >&6
35700 else
35701
35702                 cat >conftest.$ac_ext <<_ACEOF
35703 /* confdefs.h.  */
35704 _ACEOF
35705 cat confdefs.h >>conftest.$ac_ext
35706 cat >>conftest.$ac_ext <<_ACEOF
35707 /* end confdefs.h.  */
35708 #include <cxxabi.h>
35709 int
35710 main ()
35711 {
35712
35713                         int rc;
35714                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35715
35716   ;
35717   return 0;
35718 }
35719 _ACEOF
35720 rm -f conftest.$ac_objext conftest$ac_exeext
35721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35722   (eval $ac_link) 2>conftest.er1
35723   ac_status=$?
35724   grep -v '^ *+' conftest.er1 >conftest.err
35725   rm -f conftest.er1
35726   cat conftest.err >&5
35727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728   (exit $ac_status); } &&
35729          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731   (eval $ac_try) 2>&5
35732   ac_status=$?
35733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); }; } &&
35735          { ac_try='test -s conftest$ac_exeext'
35736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737   (eval $ac_try) 2>&5
35738   ac_status=$?
35739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740   (exit $ac_status); }; }; then
35741   wx_cv_func_cxa_demangle=yes
35742 else
35743   echo "$as_me: failed program was:" >&5
35744 sed 's/^/| /' conftest.$ac_ext >&5
35745
35746 wx_cv_func_cxa_demangle=no
35747
35748 fi
35749 rm -f conftest.err conftest.$ac_objext \
35750       conftest$ac_exeext conftest.$ac_ext
35751
35752
35753 fi
35754 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35755 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35756
35757         if test "$wx_cv_func_cxa_demangle" = "yes"; then
35758             cat >>confdefs.h <<\_ACEOF
35759 #define HAVE_CXA_DEMANGLE 1
35760 _ACEOF
35761
35762         fi
35763     fi
35764 fi
35765
35766 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35767     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35768 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35769     wxUSE_STACKWALKER=no
35770 fi
35771
35772
35773
35774
35775 for ac_func in mkstemp mktemp
35776 do
35777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35778 echo "$as_me:$LINENO: checking for $ac_func" >&5
35779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35780 if eval "test \"\${$as_ac_var+set}\" = set"; then
35781   echo $ECHO_N "(cached) $ECHO_C" >&6
35782 else
35783   cat >conftest.$ac_ext <<_ACEOF
35784 /* confdefs.h.  */
35785 _ACEOF
35786 cat confdefs.h >>conftest.$ac_ext
35787 cat >>conftest.$ac_ext <<_ACEOF
35788 /* end confdefs.h.  */
35789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35791 #define $ac_func innocuous_$ac_func
35792
35793 /* System header to define __stub macros and hopefully few prototypes,
35794     which can conflict with char $ac_func (); below.
35795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35796     <limits.h> exists even on freestanding compilers.  */
35797
35798 #ifdef __STDC__
35799 # include <limits.h>
35800 #else
35801 # include <assert.h>
35802 #endif
35803
35804 #undef $ac_func
35805
35806 /* Override any gcc2 internal prototype to avoid an error.  */
35807 #ifdef __cplusplus
35808 extern "C"
35809 {
35810 #endif
35811 /* We use char because int might match the return type of a gcc2
35812    builtin and then its argument prototype would still apply.  */
35813 char $ac_func ();
35814 /* The GNU C library defines this for functions which it implements
35815     to always fail with ENOSYS.  Some functions are actually named
35816     something starting with __ and the normal name is an alias.  */
35817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35818 choke me
35819 #else
35820 char (*f) () = $ac_func;
35821 #endif
35822 #ifdef __cplusplus
35823 }
35824 #endif
35825
35826 int
35827 main ()
35828 {
35829 return f != $ac_func;
35830   ;
35831   return 0;
35832 }
35833 _ACEOF
35834 rm -f conftest.$ac_objext conftest$ac_exeext
35835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35836   (eval $ac_link) 2>conftest.er1
35837   ac_status=$?
35838   grep -v '^ *+' conftest.er1 >conftest.err
35839   rm -f conftest.er1
35840   cat conftest.err >&5
35841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842   (exit $ac_status); } &&
35843          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35845   (eval $ac_try) 2>&5
35846   ac_status=$?
35847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35848   (exit $ac_status); }; } &&
35849          { ac_try='test -s conftest$ac_exeext'
35850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35851   (eval $ac_try) 2>&5
35852   ac_status=$?
35853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854   (exit $ac_status); }; }; then
35855   eval "$as_ac_var=yes"
35856 else
35857   echo "$as_me: failed program was:" >&5
35858 sed 's/^/| /' conftest.$ac_ext >&5
35859
35860 eval "$as_ac_var=no"
35861 fi
35862 rm -f conftest.err conftest.$ac_objext \
35863       conftest$ac_exeext conftest.$ac_ext
35864 fi
35865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35867 if test `eval echo '${'$as_ac_var'}'` = yes; then
35868   cat >>confdefs.h <<_ACEOF
35869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35870 _ACEOF
35871  break
35872 fi
35873 done
35874
35875
35876 echo "$as_me:$LINENO: checking for statfs" >&5
35877 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35878 if test "${wx_cv_func_statfs+set}" = set; then
35879   echo $ECHO_N "(cached) $ECHO_C" >&6
35880 else
35881   cat >conftest.$ac_ext <<_ACEOF
35882 /* confdefs.h.  */
35883 _ACEOF
35884 cat confdefs.h >>conftest.$ac_ext
35885 cat >>conftest.$ac_ext <<_ACEOF
35886 /* end confdefs.h.  */
35887
35888              #if defined(__BSD__)
35889              #include <sys/param.h>
35890              #include <sys/mount.h>
35891              #else
35892              #include <sys/vfs.h>
35893              #endif
35894
35895 int
35896 main ()
35897 {
35898
35899              long l;
35900              struct statfs fs;
35901              statfs("/", &fs);
35902              l = fs.f_bsize;
35903              l += fs.f_blocks;
35904              l += fs.f_bavail;
35905
35906   ;
35907   return 0;
35908 }
35909 _ACEOF
35910 rm -f conftest.$ac_objext
35911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35912   (eval $ac_compile) 2>conftest.er1
35913   ac_status=$?
35914   grep -v '^ *+' conftest.er1 >conftest.err
35915   rm -f conftest.er1
35916   cat conftest.err >&5
35917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918   (exit $ac_status); } &&
35919          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35921   (eval $ac_try) 2>&5
35922   ac_status=$?
35923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924   (exit $ac_status); }; } &&
35925          { ac_try='test -s conftest.$ac_objext'
35926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35927   (eval $ac_try) 2>&5
35928   ac_status=$?
35929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930   (exit $ac_status); }; }; then
35931   wx_cv_func_statfs=yes
35932 else
35933   echo "$as_me: failed program was:" >&5
35934 sed 's/^/| /' conftest.$ac_ext >&5
35935
35936 wx_cv_func_statfs=no
35937
35938 fi
35939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35940
35941 fi
35942 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35943 echo "${ECHO_T}$wx_cv_func_statfs" >&6
35944
35945 if test "$wx_cv_func_statfs" = "yes"; then
35946         echo "$as_me:$LINENO: checking for statfs declaration" >&5
35947 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35948 if test "${wx_cv_func_statfs_decl+set}" = set; then
35949   echo $ECHO_N "(cached) $ECHO_C" >&6
35950 else
35951   cat >conftest.$ac_ext <<_ACEOF
35952 /* confdefs.h.  */
35953 _ACEOF
35954 cat confdefs.h >>conftest.$ac_ext
35955 cat >>conftest.$ac_ext <<_ACEOF
35956 /* end confdefs.h.  */
35957
35958                  #if defined(__BSD__)
35959                  #include <sys/param.h>
35960                  #include <sys/mount.h>
35961                  #else
35962                  #include <sys/vfs.h>
35963                  #endif
35964
35965 int
35966 main ()
35967 {
35968
35969                 struct statfs fs;
35970                 statfs("", &fs);
35971
35972   ;
35973   return 0;
35974 }
35975 _ACEOF
35976 rm -f conftest.$ac_objext
35977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978   (eval $ac_compile) 2>conftest.er1
35979   ac_status=$?
35980   grep -v '^ *+' conftest.er1 >conftest.err
35981   rm -f conftest.er1
35982   cat conftest.err >&5
35983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984   (exit $ac_status); } &&
35985          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987   (eval $ac_try) 2>&5
35988   ac_status=$?
35989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990   (exit $ac_status); }; } &&
35991          { ac_try='test -s conftest.$ac_objext'
35992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993   (eval $ac_try) 2>&5
35994   ac_status=$?
35995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996   (exit $ac_status); }; }; then
35997   wx_cv_func_statfs_decl=yes
35998 else
35999   echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36001
36002 wx_cv_func_statfs_decl=no
36003
36004 fi
36005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36006
36007 fi
36008 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36009 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
36010
36011     if test "$wx_cv_func_statfs_decl" = "yes"; then
36012         cat >>confdefs.h <<\_ACEOF
36013 #define HAVE_STATFS_DECL 1
36014 _ACEOF
36015
36016     fi
36017
36018     wx_cv_type_statvfs_t="struct statfs"
36019     cat >>confdefs.h <<\_ACEOF
36020 #define HAVE_STATFS 1
36021 _ACEOF
36022
36023 else
36024     echo "$as_me:$LINENO: checking for statvfs" >&5
36025 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36026 if test "${wx_cv_func_statvfs+set}" = set; then
36027   echo $ECHO_N "(cached) $ECHO_C" >&6
36028 else
36029   cat >conftest.$ac_ext <<_ACEOF
36030 /* confdefs.h.  */
36031 _ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h.  */
36035
36036                 #include <stddef.h>
36037                 #include <sys/statvfs.h>
36038
36039 int
36040 main ()
36041 {
36042
36043                 statvfs("/", NULL);
36044
36045   ;
36046   return 0;
36047 }
36048 _ACEOF
36049 rm -f conftest.$ac_objext
36050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36051   (eval $ac_compile) 2>conftest.er1
36052   ac_status=$?
36053   grep -v '^ *+' conftest.er1 >conftest.err
36054   rm -f conftest.er1
36055   cat conftest.err >&5
36056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057   (exit $ac_status); } &&
36058          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060   (eval $ac_try) 2>&5
36061   ac_status=$?
36062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063   (exit $ac_status); }; } &&
36064          { ac_try='test -s conftest.$ac_objext'
36065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066   (eval $ac_try) 2>&5
36067   ac_status=$?
36068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069   (exit $ac_status); }; }; then
36070   wx_cv_func_statvfs=yes
36071 else
36072   echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.$ac_ext >&5
36074
36075 wx_cv_func_statvfs=no
36076
36077 fi
36078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36079
36080 fi
36081 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36082 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36083
36084     if test "$wx_cv_func_statvfs" = "yes"; then
36085                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36086 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36087 if test "${wx_cv_type_statvfs_t+set}" = set; then
36088   echo $ECHO_N "(cached) $ECHO_C" >&6
36089 else
36090   cat >conftest.$ac_ext <<_ACEOF
36091 /* confdefs.h.  */
36092 _ACEOF
36093 cat confdefs.h >>conftest.$ac_ext
36094 cat >>conftest.$ac_ext <<_ACEOF
36095 /* end confdefs.h.  */
36096
36097                     #include <sys/statvfs.h>
36098
36099 int
36100 main ()
36101 {
36102
36103                     long l;
36104                     statvfs_t fs;
36105                     statvfs("/", &fs);
36106                     l = fs.f_bsize;
36107                     l += fs.f_blocks;
36108                     l += fs.f_bavail;
36109
36110   ;
36111   return 0;
36112 }
36113 _ACEOF
36114 rm -f conftest.$ac_objext
36115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36116   (eval $ac_compile) 2>conftest.er1
36117   ac_status=$?
36118   grep -v '^ *+' conftest.er1 >conftest.err
36119   rm -f conftest.er1
36120   cat conftest.err >&5
36121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122   (exit $ac_status); } &&
36123          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36125   (eval $ac_try) 2>&5
36126   ac_status=$?
36127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128   (exit $ac_status); }; } &&
36129          { ac_try='test -s conftest.$ac_objext'
36130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36131   (eval $ac_try) 2>&5
36132   ac_status=$?
36133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134   (exit $ac_status); }; }; then
36135   wx_cv_type_statvfs_t=statvfs_t
36136 else
36137   echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36139
36140
36141                     cat >conftest.$ac_ext <<_ACEOF
36142 /* confdefs.h.  */
36143 _ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h.  */
36147
36148                             #include <sys/statvfs.h>
36149
36150 int
36151 main ()
36152 {
36153
36154                             long l;
36155                             struct statvfs fs;
36156                             statvfs("/", &fs);
36157                             l = fs.f_bsize;
36158                             l += fs.f_blocks;
36159                             l += fs.f_bavail;
36160
36161   ;
36162   return 0;
36163 }
36164 _ACEOF
36165 rm -f conftest.$ac_objext
36166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36167   (eval $ac_compile) 2>conftest.er1
36168   ac_status=$?
36169   grep -v '^ *+' conftest.er1 >conftest.err
36170   rm -f conftest.er1
36171   cat conftest.err >&5
36172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173   (exit $ac_status); } &&
36174          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36176   (eval $ac_try) 2>&5
36177   ac_status=$?
36178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179   (exit $ac_status); }; } &&
36180          { ac_try='test -s conftest.$ac_objext'
36181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182   (eval $ac_try) 2>&5
36183   ac_status=$?
36184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185   (exit $ac_status); }; }; then
36186   wx_cv_type_statvfs_t="struct statvfs"
36187 else
36188   echo "$as_me: failed program was:" >&5
36189 sed 's/^/| /' conftest.$ac_ext >&5
36190
36191 wx_cv_type_statvfs_t="unknown"
36192
36193 fi
36194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36195
36196
36197 fi
36198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36199
36200 fi
36201 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36202 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36203
36204         if test "$wx_cv_type_statvfs_t" != "unknown"; then
36205             cat >>confdefs.h <<\_ACEOF
36206 #define HAVE_STATVFS 1
36207 _ACEOF
36208
36209         fi
36210     else
36211                 wx_cv_type_statvfs_t="unknown"
36212     fi
36213 fi
36214
36215 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36216     cat >>confdefs.h <<_ACEOF
36217 #define WX_STATFS_T $wx_cv_type_statvfs_t
36218 _ACEOF
36219
36220 else
36221     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36222 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36223 fi
36224
36225 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36226
36227
36228 for ac_func in fcntl flock
36229 do
36230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36231 echo "$as_me:$LINENO: checking for $ac_func" >&5
36232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36233 if eval "test \"\${$as_ac_var+set}\" = set"; then
36234   echo $ECHO_N "(cached) $ECHO_C" >&6
36235 else
36236   cat >conftest.$ac_ext <<_ACEOF
36237 /* confdefs.h.  */
36238 _ACEOF
36239 cat confdefs.h >>conftest.$ac_ext
36240 cat >>conftest.$ac_ext <<_ACEOF
36241 /* end confdefs.h.  */
36242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36244 #define $ac_func innocuous_$ac_func
36245
36246 /* System header to define __stub macros and hopefully few prototypes,
36247     which can conflict with char $ac_func (); below.
36248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36249     <limits.h> exists even on freestanding compilers.  */
36250
36251 #ifdef __STDC__
36252 # include <limits.h>
36253 #else
36254 # include <assert.h>
36255 #endif
36256
36257 #undef $ac_func
36258
36259 /* Override any gcc2 internal prototype to avoid an error.  */
36260 #ifdef __cplusplus
36261 extern "C"
36262 {
36263 #endif
36264 /* We use char because int might match the return type of a gcc2
36265    builtin and then its argument prototype would still apply.  */
36266 char $ac_func ();
36267 /* The GNU C library defines this for functions which it implements
36268     to always fail with ENOSYS.  Some functions are actually named
36269     something starting with __ and the normal name is an alias.  */
36270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36271 choke me
36272 #else
36273 char (*f) () = $ac_func;
36274 #endif
36275 #ifdef __cplusplus
36276 }
36277 #endif
36278
36279 int
36280 main ()
36281 {
36282 return f != $ac_func;
36283   ;
36284   return 0;
36285 }
36286 _ACEOF
36287 rm -f conftest.$ac_objext conftest$ac_exeext
36288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36289   (eval $ac_link) 2>conftest.er1
36290   ac_status=$?
36291   grep -v '^ *+' conftest.er1 >conftest.err
36292   rm -f conftest.er1
36293   cat conftest.err >&5
36294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295   (exit $ac_status); } &&
36296          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298   (eval $ac_try) 2>&5
36299   ac_status=$?
36300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301   (exit $ac_status); }; } &&
36302          { ac_try='test -s conftest$ac_exeext'
36303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304   (eval $ac_try) 2>&5
36305   ac_status=$?
36306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); }; }; then
36308   eval "$as_ac_var=yes"
36309 else
36310   echo "$as_me: failed program was:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36312
36313 eval "$as_ac_var=no"
36314 fi
36315 rm -f conftest.err conftest.$ac_objext \
36316       conftest$ac_exeext conftest.$ac_ext
36317 fi
36318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36320 if test `eval echo '${'$as_ac_var'}'` = yes; then
36321   cat >>confdefs.h <<_ACEOF
36322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36323 _ACEOF
36324  break
36325 fi
36326 done
36327
36328
36329     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36330         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36331 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36332         wxUSE_SNGLINST_CHECKER=no
36333     fi
36334 fi
36335
36336
36337 for ac_func in timegm
36338 do
36339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36340 echo "$as_me:$LINENO: checking for $ac_func" >&5
36341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36342 if eval "test \"\${$as_ac_var+set}\" = set"; then
36343   echo $ECHO_N "(cached) $ECHO_C" >&6
36344 else
36345   cat >conftest.$ac_ext <<_ACEOF
36346 /* confdefs.h.  */
36347 _ACEOF
36348 cat confdefs.h >>conftest.$ac_ext
36349 cat >>conftest.$ac_ext <<_ACEOF
36350 /* end confdefs.h.  */
36351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36353 #define $ac_func innocuous_$ac_func
36354
36355 /* System header to define __stub macros and hopefully few prototypes,
36356     which can conflict with char $ac_func (); below.
36357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36358     <limits.h> exists even on freestanding compilers.  */
36359
36360 #ifdef __STDC__
36361 # include <limits.h>
36362 #else
36363 # include <assert.h>
36364 #endif
36365
36366 #undef $ac_func
36367
36368 /* Override any gcc2 internal prototype to avoid an error.  */
36369 #ifdef __cplusplus
36370 extern "C"
36371 {
36372 #endif
36373 /* We use char because int might match the return type of a gcc2
36374    builtin and then its argument prototype would still apply.  */
36375 char $ac_func ();
36376 /* The GNU C library defines this for functions which it implements
36377     to always fail with ENOSYS.  Some functions are actually named
36378     something starting with __ and the normal name is an alias.  */
36379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36380 choke me
36381 #else
36382 char (*f) () = $ac_func;
36383 #endif
36384 #ifdef __cplusplus
36385 }
36386 #endif
36387
36388 int
36389 main ()
36390 {
36391 return f != $ac_func;
36392   ;
36393   return 0;
36394 }
36395 _ACEOF
36396 rm -f conftest.$ac_objext conftest$ac_exeext
36397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36398   (eval $ac_link) 2>conftest.er1
36399   ac_status=$?
36400   grep -v '^ *+' conftest.er1 >conftest.err
36401   rm -f conftest.er1
36402   cat conftest.err >&5
36403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404   (exit $ac_status); } &&
36405          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407   (eval $ac_try) 2>&5
36408   ac_status=$?
36409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410   (exit $ac_status); }; } &&
36411          { ac_try='test -s conftest$ac_exeext'
36412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413   (eval $ac_try) 2>&5
36414   ac_status=$?
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); }; }; then
36417   eval "$as_ac_var=yes"
36418 else
36419   echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36421
36422 eval "$as_ac_var=no"
36423 fi
36424 rm -f conftest.err conftest.$ac_objext \
36425       conftest$ac_exeext conftest.$ac_ext
36426 fi
36427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36429 if test `eval echo '${'$as_ac_var'}'` = yes; then
36430   cat >>confdefs.h <<_ACEOF
36431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36432 _ACEOF
36433
36434 fi
36435 done
36436
36437
36438
36439
36440 for ac_func in putenv setenv
36441 do
36442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36443 echo "$as_me:$LINENO: checking for $ac_func" >&5
36444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36445 if eval "test \"\${$as_ac_var+set}\" = set"; then
36446   echo $ECHO_N "(cached) $ECHO_C" >&6
36447 else
36448   cat >conftest.$ac_ext <<_ACEOF
36449 /* confdefs.h.  */
36450 _ACEOF
36451 cat confdefs.h >>conftest.$ac_ext
36452 cat >>conftest.$ac_ext <<_ACEOF
36453 /* end confdefs.h.  */
36454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36456 #define $ac_func innocuous_$ac_func
36457
36458 /* System header to define __stub macros and hopefully few prototypes,
36459     which can conflict with char $ac_func (); below.
36460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36461     <limits.h> exists even on freestanding compilers.  */
36462
36463 #ifdef __STDC__
36464 # include <limits.h>
36465 #else
36466 # include <assert.h>
36467 #endif
36468
36469 #undef $ac_func
36470
36471 /* Override any gcc2 internal prototype to avoid an error.  */
36472 #ifdef __cplusplus
36473 extern "C"
36474 {
36475 #endif
36476 /* We use char because int might match the return type of a gcc2
36477    builtin and then its argument prototype would still apply.  */
36478 char $ac_func ();
36479 /* The GNU C library defines this for functions which it implements
36480     to always fail with ENOSYS.  Some functions are actually named
36481     something starting with __ and the normal name is an alias.  */
36482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36483 choke me
36484 #else
36485 char (*f) () = $ac_func;
36486 #endif
36487 #ifdef __cplusplus
36488 }
36489 #endif
36490
36491 int
36492 main ()
36493 {
36494 return f != $ac_func;
36495   ;
36496   return 0;
36497 }
36498 _ACEOF
36499 rm -f conftest.$ac_objext conftest$ac_exeext
36500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36501   (eval $ac_link) 2>conftest.er1
36502   ac_status=$?
36503   grep -v '^ *+' conftest.er1 >conftest.err
36504   rm -f conftest.er1
36505   cat conftest.err >&5
36506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); } &&
36508          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36510   (eval $ac_try) 2>&5
36511   ac_status=$?
36512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513   (exit $ac_status); }; } &&
36514          { ac_try='test -s conftest$ac_exeext'
36515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516   (eval $ac_try) 2>&5
36517   ac_status=$?
36518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519   (exit $ac_status); }; }; then
36520   eval "$as_ac_var=yes"
36521 else
36522   echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36524
36525 eval "$as_ac_var=no"
36526 fi
36527 rm -f conftest.err conftest.$ac_objext \
36528       conftest$ac_exeext conftest.$ac_ext
36529 fi
36530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36532 if test `eval echo '${'$as_ac_var'}'` = yes; then
36533   cat >>confdefs.h <<_ACEOF
36534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36535 _ACEOF
36536  break
36537 fi
36538 done
36539
36540
36541 HAVE_SOME_SLEEP_FUNC=0
36542 if test "$USE_BEOS" = 1; then
36543             cat >>confdefs.h <<\_ACEOF
36544 #define HAVE_SLEEP 1
36545 _ACEOF
36546
36547     HAVE_SOME_SLEEP_FUNC=1
36548 fi
36549
36550 if test "$USE_DARWIN" = 1; then
36551             cat >>confdefs.h <<\_ACEOF
36552 #define HAVE_USLEEP 1
36553 _ACEOF
36554
36555     HAVE_SOME_SLEEP_FUNC=1
36556 fi
36557
36558 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36559         POSIX4_LINK=
36560
36561 for ac_func in nanosleep
36562 do
36563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564 echo "$as_me:$LINENO: checking for $ac_func" >&5
36565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36566 if eval "test \"\${$as_ac_var+set}\" = set"; then
36567   echo $ECHO_N "(cached) $ECHO_C" >&6
36568 else
36569   cat >conftest.$ac_ext <<_ACEOF
36570 /* confdefs.h.  */
36571 _ACEOF
36572 cat confdefs.h >>conftest.$ac_ext
36573 cat >>conftest.$ac_ext <<_ACEOF
36574 /* end confdefs.h.  */
36575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36577 #define $ac_func innocuous_$ac_func
36578
36579 /* System header to define __stub macros and hopefully few prototypes,
36580     which can conflict with char $ac_func (); below.
36581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582     <limits.h> exists even on freestanding compilers.  */
36583
36584 #ifdef __STDC__
36585 # include <limits.h>
36586 #else
36587 # include <assert.h>
36588 #endif
36589
36590 #undef $ac_func
36591
36592 /* Override any gcc2 internal prototype to avoid an error.  */
36593 #ifdef __cplusplus
36594 extern "C"
36595 {
36596 #endif
36597 /* We use char because int might match the return type of a gcc2
36598    builtin and then its argument prototype would still apply.  */
36599 char $ac_func ();
36600 /* The GNU C library defines this for functions which it implements
36601     to always fail with ENOSYS.  Some functions are actually named
36602     something starting with __ and the normal name is an alias.  */
36603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36604 choke me
36605 #else
36606 char (*f) () = $ac_func;
36607 #endif
36608 #ifdef __cplusplus
36609 }
36610 #endif
36611
36612 int
36613 main ()
36614 {
36615 return f != $ac_func;
36616   ;
36617   return 0;
36618 }
36619 _ACEOF
36620 rm -f conftest.$ac_objext conftest$ac_exeext
36621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36622   (eval $ac_link) 2>conftest.er1
36623   ac_status=$?
36624   grep -v '^ *+' conftest.er1 >conftest.err
36625   rm -f conftest.er1
36626   cat conftest.err >&5
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); } &&
36629          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631   (eval $ac_try) 2>&5
36632   ac_status=$?
36633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634   (exit $ac_status); }; } &&
36635          { ac_try='test -s conftest$ac_exeext'
36636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637   (eval $ac_try) 2>&5
36638   ac_status=$?
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); }; }; then
36641   eval "$as_ac_var=yes"
36642 else
36643   echo "$as_me: failed program was:" >&5
36644 sed 's/^/| /' conftest.$ac_ext >&5
36645
36646 eval "$as_ac_var=no"
36647 fi
36648 rm -f conftest.err conftest.$ac_objext \
36649       conftest$ac_exeext conftest.$ac_ext
36650 fi
36651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36653 if test `eval echo '${'$as_ac_var'}'` = yes; then
36654   cat >>confdefs.h <<_ACEOF
36655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36656 _ACEOF
36657  cat >>confdefs.h <<\_ACEOF
36658 #define HAVE_NANOSLEEP 1
36659 _ACEOF
36660
36661 else
36662
36663             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36664 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36665 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36666   echo $ECHO_N "(cached) $ECHO_C" >&6
36667 else
36668   ac_check_lib_save_LIBS=$LIBS
36669 LIBS="-lposix4  $LIBS"
36670 cat >conftest.$ac_ext <<_ACEOF
36671 /* confdefs.h.  */
36672 _ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h.  */
36676
36677 /* Override any gcc2 internal prototype to avoid an error.  */
36678 #ifdef __cplusplus
36679 extern "C"
36680 #endif
36681 /* We use char because int might match the return type of a gcc2
36682    builtin and then its argument prototype would still apply.  */
36683 char nanosleep ();
36684 int
36685 main ()
36686 {
36687 nanosleep ();
36688   ;
36689   return 0;
36690 }
36691 _ACEOF
36692 rm -f conftest.$ac_objext conftest$ac_exeext
36693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36694   (eval $ac_link) 2>conftest.er1
36695   ac_status=$?
36696   grep -v '^ *+' conftest.er1 >conftest.err
36697   rm -f conftest.er1
36698   cat conftest.err >&5
36699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700   (exit $ac_status); } &&
36701          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703   (eval $ac_try) 2>&5
36704   ac_status=$?
36705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706   (exit $ac_status); }; } &&
36707          { ac_try='test -s conftest$ac_exeext'
36708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709   (eval $ac_try) 2>&5
36710   ac_status=$?
36711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712   (exit $ac_status); }; }; then
36713   ac_cv_lib_posix4_nanosleep=yes
36714 else
36715   echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36717
36718 ac_cv_lib_posix4_nanosleep=no
36719 fi
36720 rm -f conftest.err conftest.$ac_objext \
36721       conftest$ac_exeext conftest.$ac_ext
36722 LIBS=$ac_check_lib_save_LIBS
36723 fi
36724 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36725 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36726 if test $ac_cv_lib_posix4_nanosleep = yes; then
36727
36728                     cat >>confdefs.h <<\_ACEOF
36729 #define HAVE_NANOSLEEP 1
36730 _ACEOF
36731
36732                     POSIX4_LINK=" -lposix4"
36733
36734 else
36735
36736
36737 for ac_func in usleep
36738 do
36739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36740 echo "$as_me:$LINENO: checking for $ac_func" >&5
36741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36742 if eval "test \"\${$as_ac_var+set}\" = set"; then
36743   echo $ECHO_N "(cached) $ECHO_C" >&6
36744 else
36745   cat >conftest.$ac_ext <<_ACEOF
36746 /* confdefs.h.  */
36747 _ACEOF
36748 cat confdefs.h >>conftest.$ac_ext
36749 cat >>conftest.$ac_ext <<_ACEOF
36750 /* end confdefs.h.  */
36751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36753 #define $ac_func innocuous_$ac_func
36754
36755 /* System header to define __stub macros and hopefully few prototypes,
36756     which can conflict with char $ac_func (); below.
36757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36758     <limits.h> exists even on freestanding compilers.  */
36759
36760 #ifdef __STDC__
36761 # include <limits.h>
36762 #else
36763 # include <assert.h>
36764 #endif
36765
36766 #undef $ac_func
36767
36768 /* Override any gcc2 internal prototype to avoid an error.  */
36769 #ifdef __cplusplus
36770 extern "C"
36771 {
36772 #endif
36773 /* We use char because int might match the return type of a gcc2
36774    builtin and then its argument prototype would still apply.  */
36775 char $ac_func ();
36776 /* The GNU C library defines this for functions which it implements
36777     to always fail with ENOSYS.  Some functions are actually named
36778     something starting with __ and the normal name is an alias.  */
36779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36780 choke me
36781 #else
36782 char (*f) () = $ac_func;
36783 #endif
36784 #ifdef __cplusplus
36785 }
36786 #endif
36787
36788 int
36789 main ()
36790 {
36791 return f != $ac_func;
36792   ;
36793   return 0;
36794 }
36795 _ACEOF
36796 rm -f conftest.$ac_objext conftest$ac_exeext
36797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36798   (eval $ac_link) 2>conftest.er1
36799   ac_status=$?
36800   grep -v '^ *+' conftest.er1 >conftest.err
36801   rm -f conftest.er1
36802   cat conftest.err >&5
36803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804   (exit $ac_status); } &&
36805          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807   (eval $ac_try) 2>&5
36808   ac_status=$?
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); }; } &&
36811          { ac_try='test -s conftest$ac_exeext'
36812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813   (eval $ac_try) 2>&5
36814   ac_status=$?
36815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816   (exit $ac_status); }; }; then
36817   eval "$as_ac_var=yes"
36818 else
36819   echo "$as_me: failed program was:" >&5
36820 sed 's/^/| /' conftest.$ac_ext >&5
36821
36822 eval "$as_ac_var=no"
36823 fi
36824 rm -f conftest.err conftest.$ac_objext \
36825       conftest$ac_exeext conftest.$ac_ext
36826 fi
36827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36829 if test `eval echo '${'$as_ac_var'}'` = yes; then
36830   cat >>confdefs.h <<_ACEOF
36831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36832 _ACEOF
36833  cat >>confdefs.h <<\_ACEOF
36834 #define HAVE_USLEEP 1
36835 _ACEOF
36836
36837 else
36838   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36839 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36840
36841 fi
36842 done
36843
36844
36845
36846 fi
36847
36848
36849
36850 fi
36851 done
36852
36853 fi
36854
36855
36856
36857 for ac_func in uname gethostname
36858 do
36859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36860 echo "$as_me:$LINENO: checking for $ac_func" >&5
36861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36862 if eval "test \"\${$as_ac_var+set}\" = set"; then
36863   echo $ECHO_N "(cached) $ECHO_C" >&6
36864 else
36865   cat >conftest.$ac_ext <<_ACEOF
36866 /* confdefs.h.  */
36867 _ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h.  */
36871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36873 #define $ac_func innocuous_$ac_func
36874
36875 /* System header to define __stub macros and hopefully few prototypes,
36876     which can conflict with char $ac_func (); below.
36877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36878     <limits.h> exists even on freestanding compilers.  */
36879
36880 #ifdef __STDC__
36881 # include <limits.h>
36882 #else
36883 # include <assert.h>
36884 #endif
36885
36886 #undef $ac_func
36887
36888 /* Override any gcc2 internal prototype to avoid an error.  */
36889 #ifdef __cplusplus
36890 extern "C"
36891 {
36892 #endif
36893 /* We use char because int might match the return type of a gcc2
36894    builtin and then its argument prototype would still apply.  */
36895 char $ac_func ();
36896 /* The GNU C library defines this for functions which it implements
36897     to always fail with ENOSYS.  Some functions are actually named
36898     something starting with __ and the normal name is an alias.  */
36899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36900 choke me
36901 #else
36902 char (*f) () = $ac_func;
36903 #endif
36904 #ifdef __cplusplus
36905 }
36906 #endif
36907
36908 int
36909 main ()
36910 {
36911 return f != $ac_func;
36912   ;
36913   return 0;
36914 }
36915 _ACEOF
36916 rm -f conftest.$ac_objext conftest$ac_exeext
36917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36918   (eval $ac_link) 2>conftest.er1
36919   ac_status=$?
36920   grep -v '^ *+' conftest.er1 >conftest.err
36921   rm -f conftest.er1
36922   cat conftest.err >&5
36923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924   (exit $ac_status); } &&
36925          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36927   (eval $ac_try) 2>&5
36928   ac_status=$?
36929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930   (exit $ac_status); }; } &&
36931          { ac_try='test -s conftest$ac_exeext'
36932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36933   (eval $ac_try) 2>&5
36934   ac_status=$?
36935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936   (exit $ac_status); }; }; then
36937   eval "$as_ac_var=yes"
36938 else
36939   echo "$as_me: failed program was:" >&5
36940 sed 's/^/| /' conftest.$ac_ext >&5
36941
36942 eval "$as_ac_var=no"
36943 fi
36944 rm -f conftest.err conftest.$ac_objext \
36945       conftest$ac_exeext conftest.$ac_ext
36946 fi
36947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36949 if test `eval echo '${'$as_ac_var'}'` = yes; then
36950   cat >>confdefs.h <<_ACEOF
36951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36952 _ACEOF
36953  break
36954 fi
36955 done
36956
36957
36958
36959 for ac_func in strtok_r
36960 do
36961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36962 echo "$as_me:$LINENO: checking for $ac_func" >&5
36963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36964 if eval "test \"\${$as_ac_var+set}\" = set"; then
36965   echo $ECHO_N "(cached) $ECHO_C" >&6
36966 else
36967   cat >conftest.$ac_ext <<_ACEOF
36968 /* confdefs.h.  */
36969 _ACEOF
36970 cat confdefs.h >>conftest.$ac_ext
36971 cat >>conftest.$ac_ext <<_ACEOF
36972 /* end confdefs.h.  */
36973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36975 #define $ac_func innocuous_$ac_func
36976
36977 /* System header to define __stub macros and hopefully few prototypes,
36978     which can conflict with char $ac_func (); below.
36979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36980     <limits.h> exists even on freestanding compilers.  */
36981
36982 #ifdef __STDC__
36983 # include <limits.h>
36984 #else
36985 # include <assert.h>
36986 #endif
36987
36988 #undef $ac_func
36989
36990 /* Override any gcc2 internal prototype to avoid an error.  */
36991 #ifdef __cplusplus
36992 extern "C"
36993 {
36994 #endif
36995 /* We use char because int might match the return type of a gcc2
36996    builtin and then its argument prototype would still apply.  */
36997 char $ac_func ();
36998 /* The GNU C library defines this for functions which it implements
36999     to always fail with ENOSYS.  Some functions are actually named
37000     something starting with __ and the normal name is an alias.  */
37001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37002 choke me
37003 #else
37004 char (*f) () = $ac_func;
37005 #endif
37006 #ifdef __cplusplus
37007 }
37008 #endif
37009
37010 int
37011 main ()
37012 {
37013 return f != $ac_func;
37014   ;
37015   return 0;
37016 }
37017 _ACEOF
37018 rm -f conftest.$ac_objext conftest$ac_exeext
37019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37020   (eval $ac_link) 2>conftest.er1
37021   ac_status=$?
37022   grep -v '^ *+' conftest.er1 >conftest.err
37023   rm -f conftest.er1
37024   cat conftest.err >&5
37025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026   (exit $ac_status); } &&
37027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029   (eval $ac_try) 2>&5
37030   ac_status=$?
37031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032   (exit $ac_status); }; } &&
37033          { ac_try='test -s conftest$ac_exeext'
37034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035   (eval $ac_try) 2>&5
37036   ac_status=$?
37037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038   (exit $ac_status); }; }; then
37039   eval "$as_ac_var=yes"
37040 else
37041   echo "$as_me: failed program was:" >&5
37042 sed 's/^/| /' conftest.$ac_ext >&5
37043
37044 eval "$as_ac_var=no"
37045 fi
37046 rm -f conftest.err conftest.$ac_objext \
37047       conftest$ac_exeext conftest.$ac_ext
37048 fi
37049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37051 if test `eval echo '${'$as_ac_var'}'` = yes; then
37052   cat >>confdefs.h <<_ACEOF
37053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37054 _ACEOF
37055
37056 fi
37057 done
37058
37059
37060 INET_LINK=
37061
37062 for ac_func in inet_addr
37063 do
37064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37065 echo "$as_me:$LINENO: checking for $ac_func" >&5
37066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37067 if eval "test \"\${$as_ac_var+set}\" = set"; then
37068   echo $ECHO_N "(cached) $ECHO_C" >&6
37069 else
37070   cat >conftest.$ac_ext <<_ACEOF
37071 /* confdefs.h.  */
37072 _ACEOF
37073 cat confdefs.h >>conftest.$ac_ext
37074 cat >>conftest.$ac_ext <<_ACEOF
37075 /* end confdefs.h.  */
37076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37078 #define $ac_func innocuous_$ac_func
37079
37080 /* System header to define __stub macros and hopefully few prototypes,
37081     which can conflict with char $ac_func (); below.
37082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37083     <limits.h> exists even on freestanding compilers.  */
37084
37085 #ifdef __STDC__
37086 # include <limits.h>
37087 #else
37088 # include <assert.h>
37089 #endif
37090
37091 #undef $ac_func
37092
37093 /* Override any gcc2 internal prototype to avoid an error.  */
37094 #ifdef __cplusplus
37095 extern "C"
37096 {
37097 #endif
37098 /* We use char because int might match the return type of a gcc2
37099    builtin and then its argument prototype would still apply.  */
37100 char $ac_func ();
37101 /* The GNU C library defines this for functions which it implements
37102     to always fail with ENOSYS.  Some functions are actually named
37103     something starting with __ and the normal name is an alias.  */
37104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37105 choke me
37106 #else
37107 char (*f) () = $ac_func;
37108 #endif
37109 #ifdef __cplusplus
37110 }
37111 #endif
37112
37113 int
37114 main ()
37115 {
37116 return f != $ac_func;
37117   ;
37118   return 0;
37119 }
37120 _ACEOF
37121 rm -f conftest.$ac_objext conftest$ac_exeext
37122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37123   (eval $ac_link) 2>conftest.er1
37124   ac_status=$?
37125   grep -v '^ *+' conftest.er1 >conftest.err
37126   rm -f conftest.er1
37127   cat conftest.err >&5
37128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129   (exit $ac_status); } &&
37130          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132   (eval $ac_try) 2>&5
37133   ac_status=$?
37134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135   (exit $ac_status); }; } &&
37136          { ac_try='test -s conftest$ac_exeext'
37137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138   (eval $ac_try) 2>&5
37139   ac_status=$?
37140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141   (exit $ac_status); }; }; then
37142   eval "$as_ac_var=yes"
37143 else
37144   echo "$as_me: failed program was:" >&5
37145 sed 's/^/| /' conftest.$ac_ext >&5
37146
37147 eval "$as_ac_var=no"
37148 fi
37149 rm -f conftest.err conftest.$ac_objext \
37150       conftest$ac_exeext conftest.$ac_ext
37151 fi
37152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37154 if test `eval echo '${'$as_ac_var'}'` = yes; then
37155   cat >>confdefs.h <<_ACEOF
37156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37157 _ACEOF
37158  cat >>confdefs.h <<\_ACEOF
37159 #define HAVE_INET_ADDR 1
37160 _ACEOF
37161
37162 else
37163
37164         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37165 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37166 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37167   echo $ECHO_N "(cached) $ECHO_C" >&6
37168 else
37169   ac_check_lib_save_LIBS=$LIBS
37170 LIBS="-lnsl  $LIBS"
37171 cat >conftest.$ac_ext <<_ACEOF
37172 /* confdefs.h.  */
37173 _ACEOF
37174 cat confdefs.h >>conftest.$ac_ext
37175 cat >>conftest.$ac_ext <<_ACEOF
37176 /* end confdefs.h.  */
37177
37178 /* Override any gcc2 internal prototype to avoid an error.  */
37179 #ifdef __cplusplus
37180 extern "C"
37181 #endif
37182 /* We use char because int might match the return type of a gcc2
37183    builtin and then its argument prototype would still apply.  */
37184 char inet_addr ();
37185 int
37186 main ()
37187 {
37188 inet_addr ();
37189   ;
37190   return 0;
37191 }
37192 _ACEOF
37193 rm -f conftest.$ac_objext conftest$ac_exeext
37194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37195   (eval $ac_link) 2>conftest.er1
37196   ac_status=$?
37197   grep -v '^ *+' conftest.er1 >conftest.err
37198   rm -f conftest.er1
37199   cat conftest.err >&5
37200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37201   (exit $ac_status); } &&
37202          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204   (eval $ac_try) 2>&5
37205   ac_status=$?
37206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207   (exit $ac_status); }; } &&
37208          { ac_try='test -s conftest$ac_exeext'
37209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210   (eval $ac_try) 2>&5
37211   ac_status=$?
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); }; }; then
37214   ac_cv_lib_nsl_inet_addr=yes
37215 else
37216   echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37218
37219 ac_cv_lib_nsl_inet_addr=no
37220 fi
37221 rm -f conftest.err conftest.$ac_objext \
37222       conftest$ac_exeext conftest.$ac_ext
37223 LIBS=$ac_check_lib_save_LIBS
37224 fi
37225 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37226 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37227 if test $ac_cv_lib_nsl_inet_addr = yes; then
37228   INET_LINK="nsl"
37229 else
37230
37231                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37232 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37233 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37234   echo $ECHO_N "(cached) $ECHO_C" >&6
37235 else
37236   ac_check_lib_save_LIBS=$LIBS
37237 LIBS="-lresolv  $LIBS"
37238 cat >conftest.$ac_ext <<_ACEOF
37239 /* confdefs.h.  */
37240 _ACEOF
37241 cat confdefs.h >>conftest.$ac_ext
37242 cat >>conftest.$ac_ext <<_ACEOF
37243 /* end confdefs.h.  */
37244
37245 /* Override any gcc2 internal prototype to avoid an error.  */
37246 #ifdef __cplusplus
37247 extern "C"
37248 #endif
37249 /* We use char because int might match the return type of a gcc2
37250    builtin and then its argument prototype would still apply.  */
37251 char inet_addr ();
37252 int
37253 main ()
37254 {
37255 inet_addr ();
37256   ;
37257   return 0;
37258 }
37259 _ACEOF
37260 rm -f conftest.$ac_objext conftest$ac_exeext
37261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37262   (eval $ac_link) 2>conftest.er1
37263   ac_status=$?
37264   grep -v '^ *+' conftest.er1 >conftest.err
37265   rm -f conftest.er1
37266   cat conftest.err >&5
37267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268   (exit $ac_status); } &&
37269          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271   (eval $ac_try) 2>&5
37272   ac_status=$?
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); }; } &&
37275          { ac_try='test -s conftest$ac_exeext'
37276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277   (eval $ac_try) 2>&5
37278   ac_status=$?
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); }; }; then
37281   ac_cv_lib_resolv_inet_addr=yes
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286 ac_cv_lib_resolv_inet_addr=no
37287 fi
37288 rm -f conftest.err conftest.$ac_objext \
37289       conftest$ac_exeext conftest.$ac_ext
37290 LIBS=$ac_check_lib_save_LIBS
37291 fi
37292 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37293 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37294 if test $ac_cv_lib_resolv_inet_addr = yes; then
37295   INET_LINK="resolv"
37296 else
37297
37298                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37299 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37300 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37301   echo $ECHO_N "(cached) $ECHO_C" >&6
37302 else
37303   ac_check_lib_save_LIBS=$LIBS
37304 LIBS="-lsocket  $LIBS"
37305 cat >conftest.$ac_ext <<_ACEOF
37306 /* confdefs.h.  */
37307 _ACEOF
37308 cat confdefs.h >>conftest.$ac_ext
37309 cat >>conftest.$ac_ext <<_ACEOF
37310 /* end confdefs.h.  */
37311
37312 /* Override any gcc2 internal prototype to avoid an error.  */
37313 #ifdef __cplusplus
37314 extern "C"
37315 #endif
37316 /* We use char because int might match the return type of a gcc2
37317    builtin and then its argument prototype would still apply.  */
37318 char inet_addr ();
37319 int
37320 main ()
37321 {
37322 inet_addr ();
37323   ;
37324   return 0;
37325 }
37326 _ACEOF
37327 rm -f conftest.$ac_objext conftest$ac_exeext
37328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37329   (eval $ac_link) 2>conftest.er1
37330   ac_status=$?
37331   grep -v '^ *+' conftest.er1 >conftest.err
37332   rm -f conftest.er1
37333   cat conftest.err >&5
37334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335   (exit $ac_status); } &&
37336          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37338   (eval $ac_try) 2>&5
37339   ac_status=$?
37340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341   (exit $ac_status); }; } &&
37342          { ac_try='test -s conftest$ac_exeext'
37343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344   (eval $ac_try) 2>&5
37345   ac_status=$?
37346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347   (exit $ac_status); }; }; then
37348   ac_cv_lib_socket_inet_addr=yes
37349 else
37350   echo "$as_me: failed program was:" >&5
37351 sed 's/^/| /' conftest.$ac_ext >&5
37352
37353 ac_cv_lib_socket_inet_addr=no
37354 fi
37355 rm -f conftest.err conftest.$ac_objext \
37356       conftest$ac_exeext conftest.$ac_ext
37357 LIBS=$ac_check_lib_save_LIBS
37358 fi
37359 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37360 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37361 if test $ac_cv_lib_socket_inet_addr = yes; then
37362   INET_LINK="socket"
37363
37364 fi
37365
37366
37367
37368 fi
37369
37370
37371
37372 fi
37373
37374
37375
37376 fi
37377 done
37378
37379
37380
37381 for ac_func in inet_aton
37382 do
37383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37384 echo "$as_me:$LINENO: checking for $ac_func" >&5
37385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37386 if eval "test \"\${$as_ac_var+set}\" = set"; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389   cat >conftest.$ac_ext <<_ACEOF
37390 /* confdefs.h.  */
37391 _ACEOF
37392 cat confdefs.h >>conftest.$ac_ext
37393 cat >>conftest.$ac_ext <<_ACEOF
37394 /* end confdefs.h.  */
37395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37397 #define $ac_func innocuous_$ac_func
37398
37399 /* System header to define __stub macros and hopefully few prototypes,
37400     which can conflict with char $ac_func (); below.
37401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37402     <limits.h> exists even on freestanding compilers.  */
37403
37404 #ifdef __STDC__
37405 # include <limits.h>
37406 #else
37407 # include <assert.h>
37408 #endif
37409
37410 #undef $ac_func
37411
37412 /* Override any gcc2 internal prototype to avoid an error.  */
37413 #ifdef __cplusplus
37414 extern "C"
37415 {
37416 #endif
37417 /* We use char because int might match the return type of a gcc2
37418    builtin and then its argument prototype would still apply.  */
37419 char $ac_func ();
37420 /* The GNU C library defines this for functions which it implements
37421     to always fail with ENOSYS.  Some functions are actually named
37422     something starting with __ and the normal name is an alias.  */
37423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37424 choke me
37425 #else
37426 char (*f) () = $ac_func;
37427 #endif
37428 #ifdef __cplusplus
37429 }
37430 #endif
37431
37432 int
37433 main ()
37434 {
37435 return f != $ac_func;
37436   ;
37437   return 0;
37438 }
37439 _ACEOF
37440 rm -f conftest.$ac_objext conftest$ac_exeext
37441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37442   (eval $ac_link) 2>conftest.er1
37443   ac_status=$?
37444   grep -v '^ *+' conftest.er1 >conftest.err
37445   rm -f conftest.er1
37446   cat conftest.err >&5
37447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448   (exit $ac_status); } &&
37449          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451   (eval $ac_try) 2>&5
37452   ac_status=$?
37453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454   (exit $ac_status); }; } &&
37455          { ac_try='test -s conftest$ac_exeext'
37456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457   (eval $ac_try) 2>&5
37458   ac_status=$?
37459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460   (exit $ac_status); }; }; then
37461   eval "$as_ac_var=yes"
37462 else
37463   echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466 eval "$as_ac_var=no"
37467 fi
37468 rm -f conftest.err conftest.$ac_objext \
37469       conftest$ac_exeext conftest.$ac_ext
37470 fi
37471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37473 if test `eval echo '${'$as_ac_var'}'` = yes; then
37474   cat >>confdefs.h <<_ACEOF
37475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37476 _ACEOF
37477  cat >>confdefs.h <<\_ACEOF
37478 #define HAVE_INET_ATON 1
37479 _ACEOF
37480
37481 else
37482
37483                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37484 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37485 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37486 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37487   echo $ECHO_N "(cached) $ECHO_C" >&6
37488 else
37489   ac_check_lib_save_LIBS=$LIBS
37490 LIBS="-l$INET_LINK  $LIBS"
37491 cat >conftest.$ac_ext <<_ACEOF
37492 /* confdefs.h.  */
37493 _ACEOF
37494 cat confdefs.h >>conftest.$ac_ext
37495 cat >>conftest.$ac_ext <<_ACEOF
37496 /* end confdefs.h.  */
37497
37498 /* Override any gcc2 internal prototype to avoid an error.  */
37499 #ifdef __cplusplus
37500 extern "C"
37501 #endif
37502 /* We use char because int might match the return type of a gcc2
37503    builtin and then its argument prototype would still apply.  */
37504 char inet_aton ();
37505 int
37506 main ()
37507 {
37508 inet_aton ();
37509   ;
37510   return 0;
37511 }
37512 _ACEOF
37513 rm -f conftest.$ac_objext conftest$ac_exeext
37514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37515   (eval $ac_link) 2>conftest.er1
37516   ac_status=$?
37517   grep -v '^ *+' conftest.er1 >conftest.err
37518   rm -f conftest.er1
37519   cat conftest.err >&5
37520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521   (exit $ac_status); } &&
37522          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37524   (eval $ac_try) 2>&5
37525   ac_status=$?
37526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527   (exit $ac_status); }; } &&
37528          { ac_try='test -s conftest$ac_exeext'
37529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530   (eval $ac_try) 2>&5
37531   ac_status=$?
37532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533   (exit $ac_status); }; }; then
37534   eval "$as_ac_Lib=yes"
37535 else
37536   echo "$as_me: failed program was:" >&5
37537 sed 's/^/| /' conftest.$ac_ext >&5
37538
37539 eval "$as_ac_Lib=no"
37540 fi
37541 rm -f conftest.err conftest.$ac_objext \
37542       conftest$ac_exeext conftest.$ac_ext
37543 LIBS=$ac_check_lib_save_LIBS
37544 fi
37545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37546 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37547 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37548   cat >>confdefs.h <<\_ACEOF
37549 #define HAVE_INET_ATON 1
37550 _ACEOF
37551
37552 fi
37553
37554
37555 fi
37556 done
37557
37558
37559 if test "x$INET_LINK" != "x"; then
37560     cat >>confdefs.h <<\_ACEOF
37561 #define HAVE_INET_ADDR 1
37562 _ACEOF
37563
37564     INET_LINK=" -l$INET_LINK"
37565 fi
37566
37567 fi
37568
37569
37570
37571 EXTRALIBS_ESD=
37572 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37573 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37574 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37575   echo $ECHO_N "(cached) $ECHO_C" >&6
37576 else
37577   ac_check_lib_save_LIBS=$LIBS
37578 LIBS="-lesd  $LIBS"
37579 cat >conftest.$ac_ext <<_ACEOF
37580 /* confdefs.h.  */
37581 _ACEOF
37582 cat confdefs.h >>conftest.$ac_ext
37583 cat >>conftest.$ac_ext <<_ACEOF
37584 /* end confdefs.h.  */
37585
37586 /* Override any gcc2 internal prototype to avoid an error.  */
37587 #ifdef __cplusplus
37588 extern "C"
37589 #endif
37590 /* We use char because int might match the return type of a gcc2
37591    builtin and then its argument prototype would still apply.  */
37592 char esd_close ();
37593 int
37594 main ()
37595 {
37596 esd_close ();
37597   ;
37598   return 0;
37599 }
37600 _ACEOF
37601 rm -f conftest.$ac_objext conftest$ac_exeext
37602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37603   (eval $ac_link) 2>conftest.er1
37604   ac_status=$?
37605   grep -v '^ *+' conftest.er1 >conftest.err
37606   rm -f conftest.er1
37607   cat conftest.err >&5
37608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609   (exit $ac_status); } &&
37610          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37612   (eval $ac_try) 2>&5
37613   ac_status=$?
37614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615   (exit $ac_status); }; } &&
37616          { ac_try='test -s conftest$ac_exeext'
37617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37618   (eval $ac_try) 2>&5
37619   ac_status=$?
37620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621   (exit $ac_status); }; }; then
37622   ac_cv_lib_esd_esd_close=yes
37623 else
37624   echo "$as_me: failed program was:" >&5
37625 sed 's/^/| /' conftest.$ac_ext >&5
37626
37627 ac_cv_lib_esd_esd_close=no
37628 fi
37629 rm -f conftest.err conftest.$ac_objext \
37630       conftest$ac_exeext conftest.$ac_ext
37631 LIBS=$ac_check_lib_save_LIBS
37632 fi
37633 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37634 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37635 if test $ac_cv_lib_esd_esd_close = yes; then
37636
37637
37638 for ac_header in esd.h
37639 do
37640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37642   echo "$as_me:$LINENO: checking for $ac_header" >&5
37643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37645   echo $ECHO_N "(cached) $ECHO_C" >&6
37646 fi
37647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37649 else
37650   # Is the header compilable?
37651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37653 cat >conftest.$ac_ext <<_ACEOF
37654 /* confdefs.h.  */
37655 _ACEOF
37656 cat confdefs.h >>conftest.$ac_ext
37657 cat >>conftest.$ac_ext <<_ACEOF
37658 /* end confdefs.h.  */
37659 $ac_includes_default
37660 #include <$ac_header>
37661 _ACEOF
37662 rm -f conftest.$ac_objext
37663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37664   (eval $ac_compile) 2>conftest.er1
37665   ac_status=$?
37666   grep -v '^ *+' conftest.er1 >conftest.err
37667   rm -f conftest.er1
37668   cat conftest.err >&5
37669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37670   (exit $ac_status); } &&
37671          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37673   (eval $ac_try) 2>&5
37674   ac_status=$?
37675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676   (exit $ac_status); }; } &&
37677          { ac_try='test -s conftest.$ac_objext'
37678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37679   (eval $ac_try) 2>&5
37680   ac_status=$?
37681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682   (exit $ac_status); }; }; then
37683   ac_header_compiler=yes
37684 else
37685   echo "$as_me: failed program was:" >&5
37686 sed 's/^/| /' conftest.$ac_ext >&5
37687
37688 ac_header_compiler=no
37689 fi
37690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37692 echo "${ECHO_T}$ac_header_compiler" >&6
37693
37694 # Is the header present?
37695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37697 cat >conftest.$ac_ext <<_ACEOF
37698 /* confdefs.h.  */
37699 _ACEOF
37700 cat confdefs.h >>conftest.$ac_ext
37701 cat >>conftest.$ac_ext <<_ACEOF
37702 /* end confdefs.h.  */
37703 #include <$ac_header>
37704 _ACEOF
37705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37707   ac_status=$?
37708   grep -v '^ *+' conftest.er1 >conftest.err
37709   rm -f conftest.er1
37710   cat conftest.err >&5
37711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712   (exit $ac_status); } >/dev/null; then
37713   if test -s conftest.err; then
37714     ac_cpp_err=$ac_cxx_preproc_warn_flag
37715     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37716   else
37717     ac_cpp_err=
37718   fi
37719 else
37720   ac_cpp_err=yes
37721 fi
37722 if test -z "$ac_cpp_err"; then
37723   ac_header_preproc=yes
37724 else
37725   echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37727
37728   ac_header_preproc=no
37729 fi
37730 rm -f conftest.err conftest.$ac_ext
37731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37732 echo "${ECHO_T}$ac_header_preproc" >&6
37733
37734 # So?  What about this header?
37735 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37736   yes:no: )
37737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37741     ac_header_preproc=yes
37742     ;;
37743   no:yes:* )
37744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37756     (
37757       cat <<\_ASBOX
37758 ## ----------------------------------------- ##
37759 ## Report this to wx-dev@lists.wxwidgets.org ##
37760 ## ----------------------------------------- ##
37761 _ASBOX
37762     ) |
37763       sed "s/^/$as_me: WARNING:     /" >&2
37764     ;;
37765 esac
37766 echo "$as_me:$LINENO: checking for $ac_header" >&5
37767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37769   echo $ECHO_N "(cached) $ECHO_C" >&6
37770 else
37771   eval "$as_ac_Header=\$ac_header_preproc"
37772 fi
37773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37775
37776 fi
37777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37778   cat >>confdefs.h <<_ACEOF
37779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37780 _ACEOF
37781
37782     EXTRALIBS_ESD="-lesd"
37783
37784 fi
37785
37786 done
37787
37788
37789 fi
37790
37791
37792
37793 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37794 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37795 cat >conftest.$ac_ext <<_ACEOF
37796 /* confdefs.h.  */
37797 _ACEOF
37798 cat confdefs.h >>conftest.$ac_ext
37799 cat >>conftest.$ac_ext <<_ACEOF
37800 /* end confdefs.h.  */
37801 #ifdef __linux__
37802                 #include <linux/cdrom.h>
37803                 #else
37804                 /* For Solaris */
37805                 #include <sys/cdio.h>
37806                 #endif
37807
37808 int
37809 main ()
37810 {
37811 struct cdrom_tocentry entry, old_entry;
37812   ;
37813   return 0;
37814 }
37815 _ACEOF
37816 rm -f conftest.$ac_objext
37817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37818   (eval $ac_compile) 2>conftest.er1
37819   ac_status=$?
37820   grep -v '^ *+' conftest.er1 >conftest.err
37821   rm -f conftest.er1
37822   cat conftest.err >&5
37823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824   (exit $ac_status); } &&
37825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37827   (eval $ac_try) 2>&5
37828   ac_status=$?
37829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830   (exit $ac_status); }; } &&
37831          { ac_try='test -s conftest.$ac_objext'
37832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833   (eval $ac_try) 2>&5
37834   ac_status=$?
37835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836   (exit $ac_status); }; }; then
37837   echo "$as_me:$LINENO: result: yes" >&5
37838 echo "${ECHO_T}yes" >&6
37839                 cat >>confdefs.h <<\_ACEOF
37840 #define HAVE_KNOWN_CDROM_INTERFACE 1
37841 _ACEOF
37842
37843 else
37844   echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37846
37847 echo "$as_me:$LINENO: result: no" >&5
37848 echo "${ECHO_T}no" >&6
37849 fi
37850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37851
37852
37853 cat >confcache <<\_ACEOF
37854 # This file is a shell script that caches the results of configure
37855 # tests run on this system so they can be shared between configure
37856 # scripts and configure runs, see configure's option --config-cache.
37857 # It is not useful on other systems.  If it contains results you don't
37858 # want to keep, you may remove or edit it.
37859 #
37860 # config.status only pays attention to the cache file if you give it
37861 # the --recheck option to rerun configure.
37862 #
37863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37865 # following values.
37866
37867 _ACEOF
37868
37869 # The following way of writing the cache mishandles newlines in values,
37870 # but we know of no workaround that is simple, portable, and efficient.
37871 # So, don't put newlines in cache variables' values.
37872 # Ultrix sh set writes to stderr and can't be redirected directly,
37873 # and sets the high bit in the cache file unless we assign to the vars.
37874 {
37875   (set) 2>&1 |
37876     case `(ac_space=' '; set | grep ac_space) 2>&1` in
37877     *ac_space=\ *)
37878       # `set' does not quote correctly, so add quotes (double-quote
37879       # substitution turns \\\\ into \\, and sed turns \\ into \).
37880       sed -n \
37881         "s/'/'\\\\''/g;
37882           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37883       ;;
37884     *)
37885       # `set' quotes correctly as required by POSIX, so do not add quotes.
37886       sed -n \
37887         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37888       ;;
37889     esac;
37890 } |
37891   sed '
37892      t clear
37893      : clear
37894      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37895      t end
37896      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37897      : end' >>confcache
37898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37899   if test -w $cache_file; then
37900     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37901     cat confcache >$cache_file
37902   else
37903     echo "not updating unwritable cache $cache_file"
37904   fi
37905 fi
37906 rm -f confcache
37907
37908
37909 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37910
37911
37912     THREADS_LINK=
37913     THREADS_CXXFLAGS=
37914
37915     if test "$wxUSE_THREADS" = "yes" ; then
37916         if test "$USE_BEOS" = 1; then
37917             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37918 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37919             wxUSE_THREADS="no"
37920         fi
37921     fi
37922
37923     if test "$wxUSE_THREADS" = "yes" ; then
37924
37925
37926                                 THREAD_OPTS="-pthread"
37927         case "${host}" in
37928           *-*-solaris2* | *-*-sunos4* )
37929                 if test "x$GCC" = "xyes"; then
37930                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
37931                 else
37932                     THREAD_OPTS="-mt $THREAD_OPTS"
37933                 fi
37934                 ;;
37935           *-*-freebsd*)
37936                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37937                 ;;
37938           *-*-darwin* | *-*-cygwin* )
37939                                                 THREAD_OPTS=""
37940                 ;;
37941           *-*-aix*)
37942                                 THREAD_OPTS="pthreads"
37943                 ;;
37944           *-hp-hpux* )
37945                 if test "x$GCC" = "xyes"; then
37946                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37947                         THREAD_OPTS=""
37948                 else
37949                                                             THREAD_OPTS="-mt"
37950                 fi
37951                 ;;
37952
37953           *-*-irix* )
37954                                                                 if test "x$GCC" = "xyes"; then
37955                     THREAD_OPTS=""
37956                 fi
37957                 ;;
37958
37959           *-*-*UnixWare*)
37960                                 if test "x$GCC" != "xyes"; then
37961                     THREAD_OPTS="-Ethread"
37962                 fi
37963                 ;;
37964         esac
37965
37966                                 THREAD_OPTS="$THREAD_OPTS pthread none"
37967
37968                 THREADS_OK=no
37969         for flag in $THREAD_OPTS; do
37970             case $flag in
37971                 none)
37972                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37973 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37974                     ;;
37975
37976                 -*)
37977                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37978 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
37979                     THREADS_CXXFLAGS="$flag"
37980                     ;;
37981
37982                 *)
37983                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37984 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37985                     THREADS_LINK="-l$flag"
37986                     ;;
37987               esac
37988
37989               save_LIBS="$LIBS"
37990               save_CXXFLAGS="$CXXFLAGS"
37991               LIBS="$THREADS_LINK $LIBS"
37992               CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
37993
37994               cat >conftest.$ac_ext <<_ACEOF
37995 /* confdefs.h.  */
37996 _ACEOF
37997 cat confdefs.h >>conftest.$ac_ext
37998 cat >>conftest.$ac_ext <<_ACEOF
37999 /* end confdefs.h.  */
38000 #include <pthread.h>
38001 int
38002 main ()
38003 {
38004 pthread_create(0,0,0,0);
38005   ;
38006   return 0;
38007 }
38008 _ACEOF
38009 rm -f conftest.$ac_objext conftest$ac_exeext
38010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38011   (eval $ac_link) 2>conftest.er1
38012   ac_status=$?
38013   grep -v '^ *+' conftest.er1 >conftest.err
38014   rm -f conftest.er1
38015   cat conftest.err >&5
38016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017   (exit $ac_status); } &&
38018          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020   (eval $ac_try) 2>&5
38021   ac_status=$?
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); }; } &&
38024          { ac_try='test -s conftest$ac_exeext'
38025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38026   (eval $ac_try) 2>&5
38027   ac_status=$?
38028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029   (exit $ac_status); }; }; then
38030   THREADS_OK=yes
38031 else
38032   echo "$as_me: failed program was:" >&5
38033 sed 's/^/| /' conftest.$ac_ext >&5
38034
38035 fi
38036 rm -f conftest.err conftest.$ac_objext \
38037       conftest$ac_exeext conftest.$ac_ext
38038
38039               LIBS="$save_LIBS"
38040               CXXFLAGS="$save_CXXFLAGS"
38041
38042               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38043 echo "${ECHO_T}$THREADS_OK" >&6
38044               if test "x$THREADS_OK" = "xyes"; then
38045                       break;
38046               fi
38047
38048               THREADS_LINK=""
38049               THREADS_CXXFLAGS=""
38050       done
38051
38052       if test "x$THREADS_OK" != "xyes"; then
38053           wxUSE_THREADS=no
38054           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38055 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38056       else
38057                               LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
38058           LIBS="$THREADS_LINK $LIBS"
38059
38060           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38061 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38062           flag=no
38063           case "${host}" in
38064             *-aix*)
38065                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38066                 flag="-D_THREAD_SAFE"
38067                 ;;
38068             *-freebsd*)
38069                 flag="-D_THREAD_SAFE"
38070                 ;;
38071             *-hp-hpux* )
38072                 flag="-D_REENTRANT"
38073                 if test "x$GCC" != "xyes"; then
38074                                         flag="$flag -D_RWSTD_MULTI_THREAD"
38075                 fi
38076                 ;;
38077             *solaris* | alpha*-osf*)
38078                 flag="-D_REENTRANT"
38079                 ;;
38080           esac
38081           echo "$as_me:$LINENO: result: ${flag}" >&5
38082 echo "${ECHO_T}${flag}" >&6
38083           if test "x$flag" != xno; then
38084               THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
38085           fi
38086
38087                     WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
38088       fi
38089     fi
38090
38091         if test "$wxUSE_THREADS" = "yes" ; then
38092
38093 for ac_func in thr_setconcurrency
38094 do
38095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38096 echo "$as_me:$LINENO: checking for $ac_func" >&5
38097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38098 if eval "test \"\${$as_ac_var+set}\" = set"; then
38099   echo $ECHO_N "(cached) $ECHO_C" >&6
38100 else
38101   cat >conftest.$ac_ext <<_ACEOF
38102 /* confdefs.h.  */
38103 _ACEOF
38104 cat confdefs.h >>conftest.$ac_ext
38105 cat >>conftest.$ac_ext <<_ACEOF
38106 /* end confdefs.h.  */
38107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38109 #define $ac_func innocuous_$ac_func
38110
38111 /* System header to define __stub macros and hopefully few prototypes,
38112     which can conflict with char $ac_func (); below.
38113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38114     <limits.h> exists even on freestanding compilers.  */
38115
38116 #ifdef __STDC__
38117 # include <limits.h>
38118 #else
38119 # include <assert.h>
38120 #endif
38121
38122 #undef $ac_func
38123
38124 /* Override any gcc2 internal prototype to avoid an error.  */
38125 #ifdef __cplusplus
38126 extern "C"
38127 {
38128 #endif
38129 /* We use char because int might match the return type of a gcc2
38130    builtin and then its argument prototype would still apply.  */
38131 char $ac_func ();
38132 /* The GNU C library defines this for functions which it implements
38133     to always fail with ENOSYS.  Some functions are actually named
38134     something starting with __ and the normal name is an alias.  */
38135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38136 choke me
38137 #else
38138 char (*f) () = $ac_func;
38139 #endif
38140 #ifdef __cplusplus
38141 }
38142 #endif
38143
38144 int
38145 main ()
38146 {
38147 return f != $ac_func;
38148   ;
38149   return 0;
38150 }
38151 _ACEOF
38152 rm -f conftest.$ac_objext conftest$ac_exeext
38153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38154   (eval $ac_link) 2>conftest.er1
38155   ac_status=$?
38156   grep -v '^ *+' conftest.er1 >conftest.err
38157   rm -f conftest.er1
38158   cat conftest.err >&5
38159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160   (exit $ac_status); } &&
38161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38163   (eval $ac_try) 2>&5
38164   ac_status=$?
38165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166   (exit $ac_status); }; } &&
38167          { ac_try='test -s conftest$ac_exeext'
38168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38169   (eval $ac_try) 2>&5
38170   ac_status=$?
38171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172   (exit $ac_status); }; }; then
38173   eval "$as_ac_var=yes"
38174 else
38175   echo "$as_me: failed program was:" >&5
38176 sed 's/^/| /' conftest.$ac_ext >&5
38177
38178 eval "$as_ac_var=no"
38179 fi
38180 rm -f conftest.err conftest.$ac_objext \
38181       conftest$ac_exeext conftest.$ac_ext
38182 fi
38183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38185 if test `eval echo '${'$as_ac_var'}'` = yes; then
38186   cat >>confdefs.h <<_ACEOF
38187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38188 _ACEOF
38189
38190 fi
38191 done
38192
38193
38194                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38195 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38196 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38197   echo $ECHO_N "(cached) $ECHO_C" >&6
38198 else
38199
38200         cat >conftest.$ac_ext <<_ACEOF
38201 /* confdefs.h.  */
38202 _ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h.  */
38206 #include <pthread.h>
38207                void ThreadCleanupFunc(void *p);
38208
38209 int
38210 main ()
38211 {
38212
38213                 void *p;
38214                 pthread_cleanup_push(ThreadCleanupFunc, p);
38215                 pthread_cleanup_pop(0);
38216
38217   ;
38218   return 0;
38219 }
38220 _ACEOF
38221 rm -f conftest.$ac_objext
38222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38223   (eval $ac_compile) 2>conftest.er1
38224   ac_status=$?
38225   grep -v '^ *+' conftest.er1 >conftest.err
38226   rm -f conftest.er1
38227   cat conftest.err >&5
38228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229   (exit $ac_status); } &&
38230          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38232   (eval $ac_try) 2>&5
38233   ac_status=$?
38234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235   (exit $ac_status); }; } &&
38236          { ac_try='test -s conftest.$ac_objext'
38237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38238   (eval $ac_try) 2>&5
38239   ac_status=$?
38240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241   (exit $ac_status); }; }; then
38242
38243                wx_cv_func_pthread_cleanup=yes
38244
38245 else
38246   echo "$as_me: failed program was:" >&5
38247 sed 's/^/| /' conftest.$ac_ext >&5
38248
38249
38250                wx_cv_func_pthread_cleanup=no
38251
38252
38253 fi
38254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38255
38256 fi
38257 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38258 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38259       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38260         cat >>confdefs.h <<\_ACEOF
38261 #define wxHAVE_PTHREAD_CLEANUP 1
38262 _ACEOF
38263
38264       fi
38265
38266
38267 for ac_header in sched.h
38268 do
38269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38271   echo "$as_me:$LINENO: checking for $ac_header" >&5
38272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38274   echo $ECHO_N "(cached) $ECHO_C" >&6
38275 fi
38276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38278 else
38279   # Is the header compilable?
38280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38282 cat >conftest.$ac_ext <<_ACEOF
38283 /* confdefs.h.  */
38284 _ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h.  */
38288 $ac_includes_default
38289 #include <$ac_header>
38290 _ACEOF
38291 rm -f conftest.$ac_objext
38292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38293   (eval $ac_compile) 2>conftest.er1
38294   ac_status=$?
38295   grep -v '^ *+' conftest.er1 >conftest.err
38296   rm -f conftest.er1
38297   cat conftest.err >&5
38298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299   (exit $ac_status); } &&
38300          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302   (eval $ac_try) 2>&5
38303   ac_status=$?
38304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305   (exit $ac_status); }; } &&
38306          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
38312   ac_header_compiler=yes
38313 else
38314   echo "$as_me: failed program was:" >&5
38315 sed 's/^/| /' conftest.$ac_ext >&5
38316
38317 ac_header_compiler=no
38318 fi
38319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38321 echo "${ECHO_T}$ac_header_compiler" >&6
38322
38323 # Is the header present?
38324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38326 cat >conftest.$ac_ext <<_ACEOF
38327 /* confdefs.h.  */
38328 _ACEOF
38329 cat confdefs.h >>conftest.$ac_ext
38330 cat >>conftest.$ac_ext <<_ACEOF
38331 /* end confdefs.h.  */
38332 #include <$ac_header>
38333 _ACEOF
38334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38336   ac_status=$?
38337   grep -v '^ *+' conftest.er1 >conftest.err
38338   rm -f conftest.er1
38339   cat conftest.err >&5
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); } >/dev/null; then
38342   if test -s conftest.err; then
38343     ac_cpp_err=$ac_cxx_preproc_warn_flag
38344     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38345   else
38346     ac_cpp_err=
38347   fi
38348 else
38349   ac_cpp_err=yes
38350 fi
38351 if test -z "$ac_cpp_err"; then
38352   ac_header_preproc=yes
38353 else
38354   echo "$as_me: failed program was:" >&5
38355 sed 's/^/| /' conftest.$ac_ext >&5
38356
38357   ac_header_preproc=no
38358 fi
38359 rm -f conftest.err conftest.$ac_ext
38360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38361 echo "${ECHO_T}$ac_header_preproc" >&6
38362
38363 # So?  What about this header?
38364 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38365   yes:no: )
38366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38370     ac_header_preproc=yes
38371     ;;
38372   no:yes:* )
38373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38385     (
38386       cat <<\_ASBOX
38387 ## ----------------------------------------- ##
38388 ## Report this to wx-dev@lists.wxwidgets.org ##
38389 ## ----------------------------------------- ##
38390 _ASBOX
38391     ) |
38392       sed "s/^/$as_me: WARNING:     /" >&2
38393     ;;
38394 esac
38395 echo "$as_me:$LINENO: checking for $ac_header" >&5
38396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38398   echo $ECHO_N "(cached) $ECHO_C" >&6
38399 else
38400   eval "$as_ac_Header=\$ac_header_preproc"
38401 fi
38402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38404
38405 fi
38406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38407   cat >>confdefs.h <<_ACEOF
38408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38409 _ACEOF
38410
38411 fi
38412
38413 done
38414
38415       if test "$ac_cv_header_sched_h" = "yes"; then
38416           echo "$as_me:$LINENO: checking for sched_yield" >&5
38417 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38418 if test "${ac_cv_func_sched_yield+set}" = set; then
38419   echo $ECHO_N "(cached) $ECHO_C" >&6
38420 else
38421   cat >conftest.$ac_ext <<_ACEOF
38422 /* confdefs.h.  */
38423 _ACEOF
38424 cat confdefs.h >>conftest.$ac_ext
38425 cat >>conftest.$ac_ext <<_ACEOF
38426 /* end confdefs.h.  */
38427 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38429 #define sched_yield innocuous_sched_yield
38430
38431 /* System header to define __stub macros and hopefully few prototypes,
38432     which can conflict with char sched_yield (); below.
38433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38434     <limits.h> exists even on freestanding compilers.  */
38435
38436 #ifdef __STDC__
38437 # include <limits.h>
38438 #else
38439 # include <assert.h>
38440 #endif
38441
38442 #undef sched_yield
38443
38444 /* Override any gcc2 internal prototype to avoid an error.  */
38445 #ifdef __cplusplus
38446 extern "C"
38447 {
38448 #endif
38449 /* We use char because int might match the return type of a gcc2
38450    builtin and then its argument prototype would still apply.  */
38451 char sched_yield ();
38452 /* The GNU C library defines this for functions which it implements
38453     to always fail with ENOSYS.  Some functions are actually named
38454     something starting with __ and the normal name is an alias.  */
38455 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38456 choke me
38457 #else
38458 char (*f) () = sched_yield;
38459 #endif
38460 #ifdef __cplusplus
38461 }
38462 #endif
38463
38464 int
38465 main ()
38466 {
38467 return f != sched_yield;
38468   ;
38469   return 0;
38470 }
38471 _ACEOF
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38474   (eval $ac_link) 2>conftest.er1
38475   ac_status=$?
38476   grep -v '^ *+' conftest.er1 >conftest.err
38477   rm -f conftest.er1
38478   cat conftest.err >&5
38479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); } &&
38481          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483   (eval $ac_try) 2>&5
38484   ac_status=$?
38485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486   (exit $ac_status); }; } &&
38487          { ac_try='test -s conftest$ac_exeext'
38488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489   (eval $ac_try) 2>&5
38490   ac_status=$?
38491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492   (exit $ac_status); }; }; then
38493   ac_cv_func_sched_yield=yes
38494 else
38495   echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38497
38498 ac_cv_func_sched_yield=no
38499 fi
38500 rm -f conftest.err conftest.$ac_objext \
38501       conftest$ac_exeext conftest.$ac_ext
38502 fi
38503 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38504 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38505 if test $ac_cv_func_sched_yield = yes; then
38506   cat >>confdefs.h <<\_ACEOF
38507 #define HAVE_SCHED_YIELD 1
38508 _ACEOF
38509
38510 else
38511
38512                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38513 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38514 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38515   echo $ECHO_N "(cached) $ECHO_C" >&6
38516 else
38517   ac_check_lib_save_LIBS=$LIBS
38518 LIBS="-lposix4  $LIBS"
38519 cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h.  */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h.  */
38525
38526 /* Override any gcc2 internal prototype to avoid an error.  */
38527 #ifdef __cplusplus
38528 extern "C"
38529 #endif
38530 /* We use char because int might match the return type of a gcc2
38531    builtin and then its argument prototype would still apply.  */
38532 char sched_yield ();
38533 int
38534 main ()
38535 {
38536 sched_yield ();
38537   ;
38538   return 0;
38539 }
38540 _ACEOF
38541 rm -f conftest.$ac_objext conftest$ac_exeext
38542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38543   (eval $ac_link) 2>conftest.er1
38544   ac_status=$?
38545   grep -v '^ *+' conftest.er1 >conftest.err
38546   rm -f conftest.er1
38547   cat conftest.err >&5
38548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549   (exit $ac_status); } &&
38550          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38552   (eval $ac_try) 2>&5
38553   ac_status=$?
38554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555   (exit $ac_status); }; } &&
38556          { ac_try='test -s conftest$ac_exeext'
38557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558   (eval $ac_try) 2>&5
38559   ac_status=$?
38560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561   (exit $ac_status); }; }; then
38562   ac_cv_lib_posix4_sched_yield=yes
38563 else
38564   echo "$as_me: failed program was:" >&5
38565 sed 's/^/| /' conftest.$ac_ext >&5
38566
38567 ac_cv_lib_posix4_sched_yield=no
38568 fi
38569 rm -f conftest.err conftest.$ac_objext \
38570       conftest$ac_exeext conftest.$ac_ext
38571 LIBS=$ac_check_lib_save_LIBS
38572 fi
38573 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38574 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38575 if test $ac_cv_lib_posix4_sched_yield = yes; then
38576   cat >>confdefs.h <<\_ACEOF
38577 #define HAVE_SCHED_YIELD 1
38578 _ACEOF
38579  POSIX4_LINK=" -lposix4"
38580 else
38581   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38582 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38583
38584 fi
38585
38586
38587
38588 fi
38589
38590       fi
38591
38592                                           HAVE_PRIOR_FUNCS=0
38593       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38594 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38595 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38596   echo $ECHO_N "(cached) $ECHO_C" >&6
38597 else
38598   cat >conftest.$ac_ext <<_ACEOF
38599 /* confdefs.h.  */
38600 _ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h.  */
38604 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38606 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38607
38608 /* System header to define __stub macros and hopefully few prototypes,
38609     which can conflict with char pthread_attr_getschedpolicy (); below.
38610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38611     <limits.h> exists even on freestanding compilers.  */
38612
38613 #ifdef __STDC__
38614 # include <limits.h>
38615 #else
38616 # include <assert.h>
38617 #endif
38618
38619 #undef pthread_attr_getschedpolicy
38620
38621 /* Override any gcc2 internal prototype to avoid an error.  */
38622 #ifdef __cplusplus
38623 extern "C"
38624 {
38625 #endif
38626 /* We use char because int might match the return type of a gcc2
38627    builtin and then its argument prototype would still apply.  */
38628 char pthread_attr_getschedpolicy ();
38629 /* The GNU C library defines this for functions which it implements
38630     to always fail with ENOSYS.  Some functions are actually named
38631     something starting with __ and the normal name is an alias.  */
38632 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38633 choke me
38634 #else
38635 char (*f) () = pthread_attr_getschedpolicy;
38636 #endif
38637 #ifdef __cplusplus
38638 }
38639 #endif
38640
38641 int
38642 main ()
38643 {
38644 return f != pthread_attr_getschedpolicy;
38645   ;
38646   return 0;
38647 }
38648 _ACEOF
38649 rm -f conftest.$ac_objext conftest$ac_exeext
38650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38651   (eval $ac_link) 2>conftest.er1
38652   ac_status=$?
38653   grep -v '^ *+' conftest.er1 >conftest.err
38654   rm -f conftest.er1
38655   cat conftest.err >&5
38656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657   (exit $ac_status); } &&
38658          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660   (eval $ac_try) 2>&5
38661   ac_status=$?
38662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663   (exit $ac_status); }; } &&
38664          { ac_try='test -s conftest$ac_exeext'
38665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666   (eval $ac_try) 2>&5
38667   ac_status=$?
38668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669   (exit $ac_status); }; }; then
38670   ac_cv_func_pthread_attr_getschedpolicy=yes
38671 else
38672   echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38674
38675 ac_cv_func_pthread_attr_getschedpolicy=no
38676 fi
38677 rm -f conftest.err conftest.$ac_objext \
38678       conftest$ac_exeext conftest.$ac_ext
38679 fi
38680 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38681 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38682 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38683   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38684 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38685 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38686   echo $ECHO_N "(cached) $ECHO_C" >&6
38687 else
38688   cat >conftest.$ac_ext <<_ACEOF
38689 /* confdefs.h.  */
38690 _ACEOF
38691 cat confdefs.h >>conftest.$ac_ext
38692 cat >>conftest.$ac_ext <<_ACEOF
38693 /* end confdefs.h.  */
38694 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38696 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38697
38698 /* System header to define __stub macros and hopefully few prototypes,
38699     which can conflict with char pthread_attr_setschedparam (); below.
38700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38701     <limits.h> exists even on freestanding compilers.  */
38702
38703 #ifdef __STDC__
38704 # include <limits.h>
38705 #else
38706 # include <assert.h>
38707 #endif
38708
38709 #undef pthread_attr_setschedparam
38710
38711 /* Override any gcc2 internal prototype to avoid an error.  */
38712 #ifdef __cplusplus
38713 extern "C"
38714 {
38715 #endif
38716 /* We use char because int might match the return type of a gcc2
38717    builtin and then its argument prototype would still apply.  */
38718 char pthread_attr_setschedparam ();
38719 /* The GNU C library defines this for functions which it implements
38720     to always fail with ENOSYS.  Some functions are actually named
38721     something starting with __ and the normal name is an alias.  */
38722 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38723 choke me
38724 #else
38725 char (*f) () = pthread_attr_setschedparam;
38726 #endif
38727 #ifdef __cplusplus
38728 }
38729 #endif
38730
38731 int
38732 main ()
38733 {
38734 return f != pthread_attr_setschedparam;
38735   ;
38736   return 0;
38737 }
38738 _ACEOF
38739 rm -f conftest.$ac_objext conftest$ac_exeext
38740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38741   (eval $ac_link) 2>conftest.er1
38742   ac_status=$?
38743   grep -v '^ *+' conftest.er1 >conftest.err
38744   rm -f conftest.er1
38745   cat conftest.err >&5
38746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747   (exit $ac_status); } &&
38748          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38750   (eval $ac_try) 2>&5
38751   ac_status=$?
38752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753   (exit $ac_status); }; } &&
38754          { ac_try='test -s conftest$ac_exeext'
38755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38756   (eval $ac_try) 2>&5
38757   ac_status=$?
38758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759   (exit $ac_status); }; }; then
38760   ac_cv_func_pthread_attr_setschedparam=yes
38761 else
38762   echo "$as_me: failed program was:" >&5
38763 sed 's/^/| /' conftest.$ac_ext >&5
38764
38765 ac_cv_func_pthread_attr_setschedparam=no
38766 fi
38767 rm -f conftest.err conftest.$ac_objext \
38768       conftest$ac_exeext conftest.$ac_ext
38769 fi
38770 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38771 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38772 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38773   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38774 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38775 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38776   echo $ECHO_N "(cached) $ECHO_C" >&6
38777 else
38778   cat >conftest.$ac_ext <<_ACEOF
38779 /* confdefs.h.  */
38780 _ACEOF
38781 cat confdefs.h >>conftest.$ac_ext
38782 cat >>conftest.$ac_ext <<_ACEOF
38783 /* end confdefs.h.  */
38784 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38786 #define sched_get_priority_max innocuous_sched_get_priority_max
38787
38788 /* System header to define __stub macros and hopefully few prototypes,
38789     which can conflict with char sched_get_priority_max (); below.
38790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38791     <limits.h> exists even on freestanding compilers.  */
38792
38793 #ifdef __STDC__
38794 # include <limits.h>
38795 #else
38796 # include <assert.h>
38797 #endif
38798
38799 #undef sched_get_priority_max
38800
38801 /* Override any gcc2 internal prototype to avoid an error.  */
38802 #ifdef __cplusplus
38803 extern "C"
38804 {
38805 #endif
38806 /* We use char because int might match the return type of a gcc2
38807    builtin and then its argument prototype would still apply.  */
38808 char sched_get_priority_max ();
38809 /* The GNU C library defines this for functions which it implements
38810     to always fail with ENOSYS.  Some functions are actually named
38811     something starting with __ and the normal name is an alias.  */
38812 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38813 choke me
38814 #else
38815 char (*f) () = sched_get_priority_max;
38816 #endif
38817 #ifdef __cplusplus
38818 }
38819 #endif
38820
38821 int
38822 main ()
38823 {
38824 return f != sched_get_priority_max;
38825   ;
38826   return 0;
38827 }
38828 _ACEOF
38829 rm -f conftest.$ac_objext conftest$ac_exeext
38830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38831   (eval $ac_link) 2>conftest.er1
38832   ac_status=$?
38833   grep -v '^ *+' conftest.er1 >conftest.err
38834   rm -f conftest.er1
38835   cat conftest.err >&5
38836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837   (exit $ac_status); } &&
38838          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38840   (eval $ac_try) 2>&5
38841   ac_status=$?
38842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843   (exit $ac_status); }; } &&
38844          { ac_try='test -s conftest$ac_exeext'
38845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846   (eval $ac_try) 2>&5
38847   ac_status=$?
38848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849   (exit $ac_status); }; }; then
38850   ac_cv_func_sched_get_priority_max=yes
38851 else
38852   echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38854
38855 ac_cv_func_sched_get_priority_max=no
38856 fi
38857 rm -f conftest.err conftest.$ac_objext \
38858       conftest$ac_exeext conftest.$ac_ext
38859 fi
38860 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38861 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38862 if test $ac_cv_func_sched_get_priority_max = yes; then
38863   HAVE_PRIOR_FUNCS=1
38864 else
38865   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38866 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38867 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38868   echo $ECHO_N "(cached) $ECHO_C" >&6
38869 else
38870   ac_check_lib_save_LIBS=$LIBS
38871 LIBS="-lposix4  $LIBS"
38872 cat >conftest.$ac_ext <<_ACEOF
38873 /* confdefs.h.  */
38874 _ACEOF
38875 cat confdefs.h >>conftest.$ac_ext
38876 cat >>conftest.$ac_ext <<_ACEOF
38877 /* end confdefs.h.  */
38878
38879 /* Override any gcc2 internal prototype to avoid an error.  */
38880 #ifdef __cplusplus
38881 extern "C"
38882 #endif
38883 /* We use char because int might match the return type of a gcc2
38884    builtin and then its argument prototype would still apply.  */
38885 char sched_get_priority_max ();
38886 int
38887 main ()
38888 {
38889 sched_get_priority_max ();
38890   ;
38891   return 0;
38892 }
38893 _ACEOF
38894 rm -f conftest.$ac_objext conftest$ac_exeext
38895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38896   (eval $ac_link) 2>conftest.er1
38897   ac_status=$?
38898   grep -v '^ *+' conftest.er1 >conftest.err
38899   rm -f conftest.er1
38900   cat conftest.err >&5
38901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902   (exit $ac_status); } &&
38903          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38905   (eval $ac_try) 2>&5
38906   ac_status=$?
38907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908   (exit $ac_status); }; } &&
38909          { ac_try='test -s conftest$ac_exeext'
38910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911   (eval $ac_try) 2>&5
38912   ac_status=$?
38913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914   (exit $ac_status); }; }; then
38915   ac_cv_lib_posix4_sched_get_priority_max=yes
38916 else
38917   echo "$as_me: failed program was:" >&5
38918 sed 's/^/| /' conftest.$ac_ext >&5
38919
38920 ac_cv_lib_posix4_sched_get_priority_max=no
38921 fi
38922 rm -f conftest.err conftest.$ac_objext \
38923       conftest$ac_exeext conftest.$ac_ext
38924 LIBS=$ac_check_lib_save_LIBS
38925 fi
38926 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38927 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38928 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38929
38930                                 HAVE_PRIOR_FUNCS=1
38931                                 POSIX4_LINK=" -lposix4"
38932
38933 fi
38934
38935
38936 fi
38937
38938
38939 fi
38940
38941
38942 fi
38943
38944
38945       if test "$HAVE_PRIOR_FUNCS" = 1; then
38946         cat >>confdefs.h <<\_ACEOF
38947 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38948 _ACEOF
38949
38950       else
38951         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38952 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38953       fi
38954
38955       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38956 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38957 if test "${ac_cv_func_pthread_cancel+set}" = set; then
38958   echo $ECHO_N "(cached) $ECHO_C" >&6
38959 else
38960   cat >conftest.$ac_ext <<_ACEOF
38961 /* confdefs.h.  */
38962 _ACEOF
38963 cat confdefs.h >>conftest.$ac_ext
38964 cat >>conftest.$ac_ext <<_ACEOF
38965 /* end confdefs.h.  */
38966 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38968 #define pthread_cancel innocuous_pthread_cancel
38969
38970 /* System header to define __stub macros and hopefully few prototypes,
38971     which can conflict with char pthread_cancel (); below.
38972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38973     <limits.h> exists even on freestanding compilers.  */
38974
38975 #ifdef __STDC__
38976 # include <limits.h>
38977 #else
38978 # include <assert.h>
38979 #endif
38980
38981 #undef pthread_cancel
38982
38983 /* Override any gcc2 internal prototype to avoid an error.  */
38984 #ifdef __cplusplus
38985 extern "C"
38986 {
38987 #endif
38988 /* We use char because int might match the return type of a gcc2
38989    builtin and then its argument prototype would still apply.  */
38990 char pthread_cancel ();
38991 /* The GNU C library defines this for functions which it implements
38992     to always fail with ENOSYS.  Some functions are actually named
38993     something starting with __ and the normal name is an alias.  */
38994 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38995 choke me
38996 #else
38997 char (*f) () = pthread_cancel;
38998 #endif
38999 #ifdef __cplusplus
39000 }
39001 #endif
39002
39003 int
39004 main ()
39005 {
39006 return f != pthread_cancel;
39007   ;
39008   return 0;
39009 }
39010 _ACEOF
39011 rm -f conftest.$ac_objext conftest$ac_exeext
39012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39013   (eval $ac_link) 2>conftest.er1
39014   ac_status=$?
39015   grep -v '^ *+' conftest.er1 >conftest.err
39016   rm -f conftest.er1
39017   cat conftest.err >&5
39018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019   (exit $ac_status); } &&
39020          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022   (eval $ac_try) 2>&5
39023   ac_status=$?
39024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025   (exit $ac_status); }; } &&
39026          { ac_try='test -s conftest$ac_exeext'
39027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39028   (eval $ac_try) 2>&5
39029   ac_status=$?
39030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031   (exit $ac_status); }; }; then
39032   ac_cv_func_pthread_cancel=yes
39033 else
39034   echo "$as_me: failed program was:" >&5
39035 sed 's/^/| /' conftest.$ac_ext >&5
39036
39037 ac_cv_func_pthread_cancel=no
39038 fi
39039 rm -f conftest.err conftest.$ac_objext \
39040       conftest$ac_exeext conftest.$ac_ext
39041 fi
39042 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39043 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39044 if test $ac_cv_func_pthread_cancel = yes; then
39045   cat >>confdefs.h <<\_ACEOF
39046 #define HAVE_PTHREAD_CANCEL 1
39047 _ACEOF
39048
39049 else
39050   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39051 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39052 fi
39053
39054
39055       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39056 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39057 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39058   echo $ECHO_N "(cached) $ECHO_C" >&6
39059 else
39060   cat >conftest.$ac_ext <<_ACEOF
39061 /* confdefs.h.  */
39062 _ACEOF
39063 cat confdefs.h >>conftest.$ac_ext
39064 cat >>conftest.$ac_ext <<_ACEOF
39065 /* end confdefs.h.  */
39066 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39068 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39069
39070 /* System header to define __stub macros and hopefully few prototypes,
39071     which can conflict with char pthread_attr_setstacksize (); below.
39072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39073     <limits.h> exists even on freestanding compilers.  */
39074
39075 #ifdef __STDC__
39076 # include <limits.h>
39077 #else
39078 # include <assert.h>
39079 #endif
39080
39081 #undef pthread_attr_setstacksize
39082
39083 /* Override any gcc2 internal prototype to avoid an error.  */
39084 #ifdef __cplusplus
39085 extern "C"
39086 {
39087 #endif
39088 /* We use char because int might match the return type of a gcc2
39089    builtin and then its argument prototype would still apply.  */
39090 char pthread_attr_setstacksize ();
39091 /* The GNU C library defines this for functions which it implements
39092     to always fail with ENOSYS.  Some functions are actually named
39093     something starting with __ and the normal name is an alias.  */
39094 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39095 choke me
39096 #else
39097 char (*f) () = pthread_attr_setstacksize;
39098 #endif
39099 #ifdef __cplusplus
39100 }
39101 #endif
39102
39103 int
39104 main ()
39105 {
39106 return f != pthread_attr_setstacksize;
39107   ;
39108   return 0;
39109 }
39110 _ACEOF
39111 rm -f conftest.$ac_objext conftest$ac_exeext
39112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39113   (eval $ac_link) 2>conftest.er1
39114   ac_status=$?
39115   grep -v '^ *+' conftest.er1 >conftest.err
39116   rm -f conftest.er1
39117   cat conftest.err >&5
39118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119   (exit $ac_status); } &&
39120          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122   (eval $ac_try) 2>&5
39123   ac_status=$?
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); }; } &&
39126          { ac_try='test -s conftest$ac_exeext'
39127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128   (eval $ac_try) 2>&5
39129   ac_status=$?
39130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131   (exit $ac_status); }; }; then
39132   ac_cv_func_pthread_attr_setstacksize=yes
39133 else
39134   echo "$as_me: failed program was:" >&5
39135 sed 's/^/| /' conftest.$ac_ext >&5
39136
39137 ac_cv_func_pthread_attr_setstacksize=no
39138 fi
39139 rm -f conftest.err conftest.$ac_objext \
39140       conftest$ac_exeext conftest.$ac_ext
39141 fi
39142 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39143 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39144 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39145   cat >>confdefs.h <<\_ACEOF
39146 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39147 _ACEOF
39148
39149 fi
39150
39151
39152
39153       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39154 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39155 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39156   echo $ECHO_N "(cached) $ECHO_C" >&6
39157 else
39158
39159         cat >conftest.$ac_ext <<_ACEOF
39160 /* confdefs.h.  */
39161 _ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h.  */
39165 #include <pthread.h>
39166 int
39167 main ()
39168 {
39169
39170                pthread_mutexattr_t attr;
39171                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39172
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext
39178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39179   (eval $ac_compile) 2>conftest.er1
39180   ac_status=$?
39181   grep -v '^ *+' conftest.er1 >conftest.err
39182   rm -f conftest.er1
39183   cat conftest.err >&5
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); } &&
39186          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188   (eval $ac_try) 2>&5
39189   ac_status=$?
39190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191   (exit $ac_status); }; } &&
39192          { ac_try='test -s conftest.$ac_objext'
39193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39194   (eval $ac_try) 2>&5
39195   ac_status=$?
39196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39197   (exit $ac_status); }; }; then
39198   wx_cv_type_pthread_mutexattr_t=yes
39199 else
39200   echo "$as_me: failed program was:" >&5
39201 sed 's/^/| /' conftest.$ac_ext >&5
39202
39203 wx_cv_type_pthread_mutexattr_t=no
39204
39205 fi
39206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39207
39208 fi
39209 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39210 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39211
39212       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39213         cat >>confdefs.h <<\_ACEOF
39214 #define HAVE_PTHREAD_MUTEXATTR_T 1
39215 _ACEOF
39216
39217
39218                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39219 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39220 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39221   echo $ECHO_N "(cached) $ECHO_C" >&6
39222 else
39223
39224                        cat >conftest.$ac_ext <<_ACEOF
39225 /* confdefs.h.  */
39226 _ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h.  */
39230 #include <pthread.h>
39231 int
39232 main ()
39233 {
39234
39235                                pthread_mutexattr_t attr;
39236                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39237
39238   ;
39239   return 0;
39240 }
39241 _ACEOF
39242 rm -f conftest.$ac_objext
39243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39244   (eval $ac_compile) 2>conftest.er1
39245   ac_status=$?
39246   grep -v '^ *+' conftest.er1 >conftest.err
39247   rm -f conftest.er1
39248   cat conftest.err >&5
39249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250   (exit $ac_status); } &&
39251          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253   (eval $ac_try) 2>&5
39254   ac_status=$?
39255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256   (exit $ac_status); }; } &&
39257          { ac_try='test -s conftest.$ac_objext'
39258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39259   (eval $ac_try) 2>&5
39260   ac_status=$?
39261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262   (exit $ac_status); }; }; then
39263   wx_cv_func_pthread_mutexattr_settype_decl=yes
39264 else
39265   echo "$as_me: failed program was:" >&5
39266 sed 's/^/| /' conftest.$ac_ext >&5
39267
39268 wx_cv_func_pthread_mutexattr_settype_decl=no
39269
39270 fi
39271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39272
39273 fi
39274 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39275 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39276         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39277             cat >>confdefs.h <<\_ACEOF
39278 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39279 _ACEOF
39280
39281         fi
39282       else
39283                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39284 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39285 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39286   echo $ECHO_N "(cached) $ECHO_C" >&6
39287 else
39288
39289             cat >conftest.$ac_ext <<_ACEOF
39290 /* confdefs.h.  */
39291 _ACEOF
39292 cat confdefs.h >>conftest.$ac_ext
39293 cat >>conftest.$ac_ext <<_ACEOF
39294 /* end confdefs.h.  */
39295 #include <pthread.h>
39296 int
39297 main ()
39298 {
39299
39300                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39301
39302   ;
39303   return 0;
39304 }
39305 _ACEOF
39306 rm -f conftest.$ac_objext
39307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39308   (eval $ac_compile) 2>conftest.er1
39309   ac_status=$?
39310   grep -v '^ *+' conftest.er1 >conftest.err
39311   rm -f conftest.er1
39312   cat conftest.err >&5
39313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39314   (exit $ac_status); } &&
39315          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39317   (eval $ac_try) 2>&5
39318   ac_status=$?
39319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320   (exit $ac_status); }; } &&
39321          { ac_try='test -s conftest.$ac_objext'
39322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323   (eval $ac_try) 2>&5
39324   ac_status=$?
39325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326   (exit $ac_status); }; }; then
39327
39328                     wx_cv_type_pthread_rec_mutex_init=yes
39329
39330 else
39331   echo "$as_me: failed program was:" >&5
39332 sed 's/^/| /' conftest.$ac_ext >&5
39333
39334
39335                     wx_cv_type_pthread_rec_mutex_init=no
39336
39337
39338 fi
39339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39340
39341 fi
39342 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39343 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39344         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39345           cat >>confdefs.h <<\_ACEOF
39346 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39347 _ACEOF
39348
39349         else
39350                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39351 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39352         fi
39353       fi
39354     fi
39355
39356 else
39357     if test "$wxUSE_THREADS" = "yes" ; then
39358       case "${host}" in
39359         *-*-mingw32* )
39360                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39361 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39362 if test "${wx_cv_cflags_mthread+set}" = set; then
39363   echo $ECHO_N "(cached) $ECHO_C" >&6
39364 else
39365
39366                     CXXFLAGS_OLD="$CXXFLAGS"
39367                     CXXFLAGS="-mthreads $CXXFLAGS"
39368                     cat >conftest.$ac_ext <<_ACEOF
39369 /* confdefs.h.  */
39370 _ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h.  */
39374
39375 int
39376 main ()
39377 {
39378
39379   ;
39380   return 0;
39381 }
39382 _ACEOF
39383 rm -f conftest.$ac_objext
39384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39385   (eval $ac_compile) 2>conftest.er1
39386   ac_status=$?
39387   grep -v '^ *+' conftest.er1 >conftest.err
39388   rm -f conftest.er1
39389   cat conftest.err >&5
39390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391   (exit $ac_status); } &&
39392          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394   (eval $ac_try) 2>&5
39395   ac_status=$?
39396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397   (exit $ac_status); }; } &&
39398          { ac_try='test -s conftest.$ac_objext'
39399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39400   (eval $ac_try) 2>&5
39401   ac_status=$?
39402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403   (exit $ac_status); }; }; then
39404   wx_cv_cflags_mthread=yes
39405 else
39406   echo "$as_me: failed program was:" >&5
39407 sed 's/^/| /' conftest.$ac_ext >&5
39408
39409 wx_cv_cflags_mthread=no
39410
39411 fi
39412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39413
39414
39415 fi
39416 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39417 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39418
39419             if test "$wx_cv_cflags_mthread" = "yes"; then
39420                                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
39421                 LDFLAGS="$LDFLAGS -mthreads"
39422             else
39423                                 CXXFLAGS="$CXXFLAGS_OLD"
39424             fi
39425         ;;
39426         *-pc-os2*emx )
39427             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39428             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
39429             LDFLAGS="$LDFLAGS -Zmt"
39430         ;;
39431       esac
39432     fi
39433 fi
39434
39435 echo "$as_me:$LINENO: checking for localtime_r" >&5
39436 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39437 if test "${ac_cv_func_localtime_r+set}" = set; then
39438   echo $ECHO_N "(cached) $ECHO_C" >&6
39439 else
39440   cat >conftest.$ac_ext <<_ACEOF
39441 /* confdefs.h.  */
39442 _ACEOF
39443 cat confdefs.h >>conftest.$ac_ext
39444 cat >>conftest.$ac_ext <<_ACEOF
39445 /* end confdefs.h.  */
39446 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
39447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39448 #define localtime_r innocuous_localtime_r
39449
39450 /* System header to define __stub macros and hopefully few prototypes,
39451     which can conflict with char localtime_r (); below.
39452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39453     <limits.h> exists even on freestanding compilers.  */
39454
39455 #ifdef __STDC__
39456 # include <limits.h>
39457 #else
39458 # include <assert.h>
39459 #endif
39460
39461 #undef localtime_r
39462
39463 /* Override any gcc2 internal prototype to avoid an error.  */
39464 #ifdef __cplusplus
39465 extern "C"
39466 {
39467 #endif
39468 /* We use char because int might match the return type of a gcc2
39469    builtin and then its argument prototype would still apply.  */
39470 char localtime_r ();
39471 /* The GNU C library defines this for functions which it implements
39472     to always fail with ENOSYS.  Some functions are actually named
39473     something starting with __ and the normal name is an alias.  */
39474 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
39475 choke me
39476 #else
39477 char (*f) () = localtime_r;
39478 #endif
39479 #ifdef __cplusplus
39480 }
39481 #endif
39482
39483 int
39484 main ()
39485 {
39486 return f != localtime_r;
39487   ;
39488   return 0;
39489 }
39490 _ACEOF
39491 rm -f conftest.$ac_objext conftest$ac_exeext
39492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39493   (eval $ac_link) 2>conftest.er1
39494   ac_status=$?
39495   grep -v '^ *+' conftest.er1 >conftest.err
39496   rm -f conftest.er1
39497   cat conftest.err >&5
39498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499   (exit $ac_status); } &&
39500          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39502   (eval $ac_try) 2>&5
39503   ac_status=$?
39504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505   (exit $ac_status); }; } &&
39506          { ac_try='test -s conftest$ac_exeext'
39507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39508   (eval $ac_try) 2>&5
39509   ac_status=$?
39510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511   (exit $ac_status); }; }; then
39512   ac_cv_func_localtime_r=yes
39513 else
39514   echo "$as_me: failed program was:" >&5
39515 sed 's/^/| /' conftest.$ac_ext >&5
39516
39517 ac_cv_func_localtime_r=no
39518 fi
39519 rm -f conftest.err conftest.$ac_objext \
39520       conftest$ac_exeext conftest.$ac_ext
39521 fi
39522 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39523 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39524 if test $ac_cv_func_localtime_r = yes; then
39525    cat >>confdefs.h <<\_ACEOF
39526 #define HAVE_LOCALTIME_R 1
39527 _ACEOF
39528
39529 fi
39530
39531 echo "$as_me:$LINENO: checking for gmtime_r" >&5
39532 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39533 if test "${ac_cv_func_gmtime_r+set}" = set; then
39534   echo $ECHO_N "(cached) $ECHO_C" >&6
39535 else
39536   cat >conftest.$ac_ext <<_ACEOF
39537 /* confdefs.h.  */
39538 _ACEOF
39539 cat confdefs.h >>conftest.$ac_ext
39540 cat >>conftest.$ac_ext <<_ACEOF
39541 /* end confdefs.h.  */
39542 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39544 #define gmtime_r innocuous_gmtime_r
39545
39546 /* System header to define __stub macros and hopefully few prototypes,
39547     which can conflict with char gmtime_r (); below.
39548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39549     <limits.h> exists even on freestanding compilers.  */
39550
39551 #ifdef __STDC__
39552 # include <limits.h>
39553 #else
39554 # include <assert.h>
39555 #endif
39556
39557 #undef gmtime_r
39558
39559 /* Override any gcc2 internal prototype to avoid an error.  */
39560 #ifdef __cplusplus
39561 extern "C"
39562 {
39563 #endif
39564 /* We use char because int might match the return type of a gcc2
39565    builtin and then its argument prototype would still apply.  */
39566 char gmtime_r ();
39567 /* The GNU C library defines this for functions which it implements
39568     to always fail with ENOSYS.  Some functions are actually named
39569     something starting with __ and the normal name is an alias.  */
39570 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39571 choke me
39572 #else
39573 char (*f) () = gmtime_r;
39574 #endif
39575 #ifdef __cplusplus
39576 }
39577 #endif
39578
39579 int
39580 main ()
39581 {
39582 return f != gmtime_r;
39583   ;
39584   return 0;
39585 }
39586 _ACEOF
39587 rm -f conftest.$ac_objext conftest$ac_exeext
39588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39589   (eval $ac_link) 2>conftest.er1
39590   ac_status=$?
39591   grep -v '^ *+' conftest.er1 >conftest.err
39592   rm -f conftest.er1
39593   cat conftest.err >&5
39594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595   (exit $ac_status); } &&
39596          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39598   (eval $ac_try) 2>&5
39599   ac_status=$?
39600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601   (exit $ac_status); }; } &&
39602          { ac_try='test -s conftest$ac_exeext'
39603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604   (eval $ac_try) 2>&5
39605   ac_status=$?
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); }; }; then
39608   ac_cv_func_gmtime_r=yes
39609 else
39610   echo "$as_me: failed program was:" >&5
39611 sed 's/^/| /' conftest.$ac_ext >&5
39612
39613 ac_cv_func_gmtime_r=no
39614 fi
39615 rm -f conftest.err conftest.$ac_objext \
39616       conftest$ac_exeext conftest.$ac_ext
39617 fi
39618 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39619 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39620 if test $ac_cv_func_gmtime_r = yes; then
39621    cat >>confdefs.h <<\_ACEOF
39622 #define HAVE_GMTIME_R 1
39623 _ACEOF
39624
39625 fi
39626
39627 echo "$as_me:$LINENO: checking for readdir_r" >&5
39628 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39629 if test "${ac_cv_func_readdir_r+set}" = set; then
39630   echo $ECHO_N "(cached) $ECHO_C" >&6
39631 else
39632   cat >conftest.$ac_ext <<_ACEOF
39633 /* confdefs.h.  */
39634 _ACEOF
39635 cat confdefs.h >>conftest.$ac_ext
39636 cat >>conftest.$ac_ext <<_ACEOF
39637 /* end confdefs.h.  */
39638 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39640 #define readdir_r innocuous_readdir_r
39641
39642 /* System header to define __stub macros and hopefully few prototypes,
39643     which can conflict with char readdir_r (); below.
39644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39645     <limits.h> exists even on freestanding compilers.  */
39646
39647 #ifdef __STDC__
39648 # include <limits.h>
39649 #else
39650 # include <assert.h>
39651 #endif
39652
39653 #undef readdir_r
39654
39655 /* Override any gcc2 internal prototype to avoid an error.  */
39656 #ifdef __cplusplus
39657 extern "C"
39658 {
39659 #endif
39660 /* We use char because int might match the return type of a gcc2
39661    builtin and then its argument prototype would still apply.  */
39662 char readdir_r ();
39663 /* The GNU C library defines this for functions which it implements
39664     to always fail with ENOSYS.  Some functions are actually named
39665     something starting with __ and the normal name is an alias.  */
39666 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39667 choke me
39668 #else
39669 char (*f) () = readdir_r;
39670 #endif
39671 #ifdef __cplusplus
39672 }
39673 #endif
39674
39675 int
39676 main ()
39677 {
39678 return f != readdir_r;
39679   ;
39680   return 0;
39681 }
39682 _ACEOF
39683 rm -f conftest.$ac_objext conftest$ac_exeext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39685   (eval $ac_link) 2>conftest.er1
39686   ac_status=$?
39687   grep -v '^ *+' conftest.er1 >conftest.err
39688   rm -f conftest.er1
39689   cat conftest.err >&5
39690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691   (exit $ac_status); } &&
39692          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
39693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39694   (eval $ac_try) 2>&5
39695   ac_status=$?
39696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697   (exit $ac_status); }; } &&
39698          { ac_try='test -s conftest$ac_exeext'
39699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700   (eval $ac_try) 2>&5
39701   ac_status=$?
39702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703   (exit $ac_status); }; }; then
39704   ac_cv_func_readdir_r=yes
39705 else
39706   echo "$as_me: failed program was:" >&5
39707 sed 's/^/| /' conftest.$ac_ext >&5
39708
39709 ac_cv_func_readdir_r=no
39710 fi
39711 rm -f conftest.err conftest.$ac_objext \
39712       conftest$ac_exeext conftest.$ac_ext
39713 fi
39714 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39715 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39716 if test $ac_cv_func_readdir_r = yes; then
39717    cat >>confdefs.h <<\_ACEOF
39718 #define HAVE_READDIR_R 1
39719 _ACEOF
39720
39721 fi
39722
39723
39724
39725
39726     ac_ext=c
39727 ac_cpp='$CPP $CPPFLAGS'
39728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39731
39732     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39733 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39734
39735     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39736   echo $ECHO_N "(cached) $ECHO_C" >&6
39737 else
39738
39739
39740 ################################################################
39741
39742 ac_cv_func_which_gethostbyname_r=unknown
39743
39744 #
39745 # ONE ARGUMENT (sanity check)
39746 #
39747
39748 # This should fail, as there is no variant of gethostbyname_r() that takes
39749 # a single argument. If it actually compiles, then we can assume that
39750 # netdb.h is not declaring the function, and the compiler is thereby
39751 # assuming an implicit prototype. In which case, we're out of luck.
39752 #
39753 cat >conftest.$ac_ext <<_ACEOF
39754 /* confdefs.h.  */
39755 _ACEOF
39756 cat confdefs.h >>conftest.$ac_ext
39757 cat >>conftest.$ac_ext <<_ACEOF
39758 /* end confdefs.h.  */
39759 #include <netdb.h>
39760 int
39761 main ()
39762 {
39763
39764             char *name = "www.gnu.org";
39765             (void)gethostbyname_r(name) /* ; */
39766
39767   ;
39768   return 0;
39769 }
39770 _ACEOF
39771 rm -f conftest.$ac_objext
39772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39773   (eval $ac_compile) 2>conftest.er1
39774   ac_status=$?
39775   grep -v '^ *+' conftest.er1 >conftest.err
39776   rm -f conftest.er1
39777   cat conftest.err >&5
39778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); } &&
39780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39782   (eval $ac_try) 2>&5
39783   ac_status=$?
39784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785   (exit $ac_status); }; } &&
39786          { ac_try='test -s conftest.$ac_objext'
39787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39788   (eval $ac_try) 2>&5
39789   ac_status=$?
39790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791   (exit $ac_status); }; }; then
39792   ac_cv_func_which_gethostbyname_r=no
39793 else
39794   echo "$as_me: failed program was:" >&5
39795 sed 's/^/| /' conftest.$ac_ext >&5
39796
39797 fi
39798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39799
39800 #
39801 # SIX ARGUMENTS
39802 # (e.g. Linux)
39803 #
39804
39805 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39806
39807 cat >conftest.$ac_ext <<_ACEOF
39808 /* confdefs.h.  */
39809 _ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h.  */
39813 #include <netdb.h>
39814 int
39815 main ()
39816 {
39817
39818             char *name = "www.gnu.org";
39819             struct hostent ret, *retp;
39820             char buf[1024];
39821             int buflen = 1024;
39822             int my_h_errno;
39823             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39824
39825   ;
39826   return 0;
39827 }
39828 _ACEOF
39829 rm -f conftest.$ac_objext
39830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39831   (eval $ac_compile) 2>conftest.er1
39832   ac_status=$?
39833   grep -v '^ *+' conftest.er1 >conftest.err
39834   rm -f conftest.er1
39835   cat conftest.err >&5
39836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837   (exit $ac_status); } &&
39838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39840   (eval $ac_try) 2>&5
39841   ac_status=$?
39842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843   (exit $ac_status); }; } &&
39844          { ac_try='test -s conftest.$ac_objext'
39845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39846   (eval $ac_try) 2>&5
39847   ac_status=$?
39848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849   (exit $ac_status); }; }; then
39850   ac_cv_func_which_gethostbyname_r=six
39851 else
39852   echo "$as_me: failed program was:" >&5
39853 sed 's/^/| /' conftest.$ac_ext >&5
39854
39855 fi
39856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39857
39858 fi
39859
39860 #
39861 # FIVE ARGUMENTS
39862 # (e.g. Solaris)
39863 #
39864
39865 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39866
39867 cat >conftest.$ac_ext <<_ACEOF
39868 /* confdefs.h.  */
39869 _ACEOF
39870 cat confdefs.h >>conftest.$ac_ext
39871 cat >>conftest.$ac_ext <<_ACEOF
39872 /* end confdefs.h.  */
39873 #include <netdb.h>
39874 int
39875 main ()
39876 {
39877
39878             char *name = "www.gnu.org";
39879             struct hostent ret;
39880             char buf[1024];
39881             int buflen = 1024;
39882             int my_h_errno;
39883             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39884
39885   ;
39886   return 0;
39887 }
39888 _ACEOF
39889 rm -f conftest.$ac_objext
39890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39891   (eval $ac_compile) 2>conftest.er1
39892   ac_status=$?
39893   grep -v '^ *+' conftest.er1 >conftest.err
39894   rm -f conftest.er1
39895   cat conftest.err >&5
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); } &&
39898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900   (eval $ac_try) 2>&5
39901   ac_status=$?
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); }; } &&
39904          { ac_try='test -s conftest.$ac_objext'
39905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39906   (eval $ac_try) 2>&5
39907   ac_status=$?
39908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909   (exit $ac_status); }; }; then
39910   ac_cv_func_which_gethostbyname_r=five
39911 else
39912   echo "$as_me: failed program was:" >&5
39913 sed 's/^/| /' conftest.$ac_ext >&5
39914
39915 fi
39916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39917
39918 fi
39919
39920 #
39921 # THREE ARGUMENTS
39922 # (e.g. AIX, HP-UX, Tru64)
39923 #
39924
39925 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39926
39927 cat >conftest.$ac_ext <<_ACEOF
39928 /* confdefs.h.  */
39929 _ACEOF
39930 cat confdefs.h >>conftest.$ac_ext
39931 cat >>conftest.$ac_ext <<_ACEOF
39932 /* end confdefs.h.  */
39933 #include <netdb.h>
39934 int
39935 main ()
39936 {
39937
39938             char *name = "www.gnu.org";
39939             struct hostent ret;
39940             struct hostent_data data;
39941             (void)gethostbyname_r(name, &ret, &data) /* ; */
39942
39943   ;
39944   return 0;
39945 }
39946 _ACEOF
39947 rm -f conftest.$ac_objext
39948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39949   (eval $ac_compile) 2>conftest.er1
39950   ac_status=$?
39951   grep -v '^ *+' conftest.er1 >conftest.err
39952   rm -f conftest.er1
39953   cat conftest.err >&5
39954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955   (exit $ac_status); } &&
39956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958   (eval $ac_try) 2>&5
39959   ac_status=$?
39960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961   (exit $ac_status); }; } &&
39962          { ac_try='test -s conftest.$ac_objext'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; }; then
39968   ac_cv_func_which_gethostbyname_r=three
39969 else
39970   echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39972
39973 fi
39974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39975
39976 fi
39977
39978 ################################################################
39979
39980
39981 fi
39982
39983 case "$ac_cv_func_which_gethostbyname_r" in
39984     three)
39985     echo "$as_me:$LINENO: result: three" >&5
39986 echo "${ECHO_T}three" >&6
39987     cat >>confdefs.h <<\_ACEOF
39988 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39989 _ACEOF
39990
39991     ;;
39992
39993     five)
39994     echo "$as_me:$LINENO: result: five" >&5
39995 echo "${ECHO_T}five" >&6
39996     cat >>confdefs.h <<\_ACEOF
39997 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39998 _ACEOF
39999
40000     ;;
40001
40002     six)
40003     echo "$as_me:$LINENO: result: six" >&5
40004 echo "${ECHO_T}six" >&6
40005     cat >>confdefs.h <<\_ACEOF
40006 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40007 _ACEOF
40008
40009     ;;
40010
40011     no)
40012     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40013 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40014     ;;
40015
40016     unknown)
40017     echo "$as_me:$LINENO: result: can't tell" >&5
40018 echo "${ECHO_T}can't tell" >&6
40019     ;;
40020
40021     *)
40022     { { echo "$as_me:$LINENO: error: internal error" >&5
40023 echo "$as_me: error: internal error" >&2;}
40024    { (exit 1); exit 1; }; }
40025     ;;
40026 esac
40027
40028 ac_ext=cc
40029 ac_cpp='$CXXCPP $CPPFLAGS'
40030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40033
40034
40035
40036       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40037               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40038           echo "$as_me:$LINENO: checking for gethostbyname" >&5
40039 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40040 if test "${ac_cv_func_gethostbyname+set}" = set; then
40041   echo $ECHO_N "(cached) $ECHO_C" >&6
40042 else
40043   cat >conftest.$ac_ext <<_ACEOF
40044 /* confdefs.h.  */
40045 _ACEOF
40046 cat confdefs.h >>conftest.$ac_ext
40047 cat >>conftest.$ac_ext <<_ACEOF
40048 /* end confdefs.h.  */
40049 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40051 #define gethostbyname innocuous_gethostbyname
40052
40053 /* System header to define __stub macros and hopefully few prototypes,
40054     which can conflict with char gethostbyname (); below.
40055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40056     <limits.h> exists even on freestanding compilers.  */
40057
40058 #ifdef __STDC__
40059 # include <limits.h>
40060 #else
40061 # include <assert.h>
40062 #endif
40063
40064 #undef gethostbyname
40065
40066 /* Override any gcc2 internal prototype to avoid an error.  */
40067 #ifdef __cplusplus
40068 extern "C"
40069 {
40070 #endif
40071 /* We use char because int might match the return type of a gcc2
40072    builtin and then its argument prototype would still apply.  */
40073 char gethostbyname ();
40074 /* The GNU C library defines this for functions which it implements
40075     to always fail with ENOSYS.  Some functions are actually named
40076     something starting with __ and the normal name is an alias.  */
40077 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40078 choke me
40079 #else
40080 char (*f) () = gethostbyname;
40081 #endif
40082 #ifdef __cplusplus
40083 }
40084 #endif
40085
40086 int
40087 main ()
40088 {
40089 return f != gethostbyname;
40090   ;
40091   return 0;
40092 }
40093 _ACEOF
40094 rm -f conftest.$ac_objext conftest$ac_exeext
40095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40096   (eval $ac_link) 2>conftest.er1
40097   ac_status=$?
40098   grep -v '^ *+' conftest.er1 >conftest.err
40099   rm -f conftest.er1
40100   cat conftest.err >&5
40101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102   (exit $ac_status); } &&
40103          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40105   (eval $ac_try) 2>&5
40106   ac_status=$?
40107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108   (exit $ac_status); }; } &&
40109          { ac_try='test -s conftest$ac_exeext'
40110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40111   (eval $ac_try) 2>&5
40112   ac_status=$?
40113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114   (exit $ac_status); }; }; then
40115   ac_cv_func_gethostbyname=yes
40116 else
40117   echo "$as_me: failed program was:" >&5
40118 sed 's/^/| /' conftest.$ac_ext >&5
40119
40120 ac_cv_func_gethostbyname=no
40121 fi
40122 rm -f conftest.err conftest.$ac_objext \
40123       conftest$ac_exeext conftest.$ac_ext
40124 fi
40125 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40126 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40127 if test $ac_cv_func_gethostbyname = yes; then
40128    cat >>confdefs.h <<\_ACEOF
40129 #define HAVE_GETHOSTBYNAME 1
40130 _ACEOF
40131
40132 fi
40133
40134       fi
40135                               echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40136 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
40137 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40138   echo $ECHO_N "(cached) $ECHO_C" >&6
40139 else
40140
40141 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40142 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
40143 if test "${ac_cv_func_getservbyname_r+set}" = set; then
40144   echo $ECHO_N "(cached) $ECHO_C" >&6
40145 else
40146   cat >conftest.$ac_ext <<_ACEOF
40147 /* confdefs.h.  */
40148 _ACEOF
40149 cat confdefs.h >>conftest.$ac_ext
40150 cat >>conftest.$ac_ext <<_ACEOF
40151 /* end confdefs.h.  */
40152 /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40154 #define getservbyname_r innocuous_getservbyname_r
40155
40156 /* System header to define __stub macros and hopefully few prototypes,
40157     which can conflict with char getservbyname_r (); below.
40158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40159     <limits.h> exists even on freestanding compilers.  */
40160
40161 #ifdef __STDC__
40162 # include <limits.h>
40163 #else
40164 # include <assert.h>
40165 #endif
40166
40167 #undef getservbyname_r
40168
40169 /* Override any gcc2 internal prototype to avoid an error.  */
40170 #ifdef __cplusplus
40171 extern "C"
40172 {
40173 #endif
40174 /* We use char because int might match the return type of a gcc2
40175    builtin and then its argument prototype would still apply.  */
40176 char getservbyname_r ();
40177 /* The GNU C library defines this for functions which it implements
40178     to always fail with ENOSYS.  Some functions are actually named
40179     something starting with __ and the normal name is an alias.  */
40180 #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40181 choke me
40182 #else
40183 char (*f) () = getservbyname_r;
40184 #endif
40185 #ifdef __cplusplus
40186 }
40187 #endif
40188
40189 int
40190 main ()
40191 {
40192 return f != getservbyname_r;
40193   ;
40194   return 0;
40195 }
40196 _ACEOF
40197 rm -f conftest.$ac_objext conftest$ac_exeext
40198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40199   (eval $ac_link) 2>conftest.er1
40200   ac_status=$?
40201   grep -v '^ *+' conftest.er1 >conftest.err
40202   rm -f conftest.er1
40203   cat conftest.err >&5
40204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205   (exit $ac_status); } &&
40206          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40208   (eval $ac_try) 2>&5
40209   ac_status=$?
40210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211   (exit $ac_status); }; } &&
40212          { ac_try='test -s conftest$ac_exeext'
40213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40214   (eval $ac_try) 2>&5
40215   ac_status=$?
40216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40217   (exit $ac_status); }; }; then
40218   ac_cv_func_getservbyname_r=yes
40219 else
40220   echo "$as_me: failed program was:" >&5
40221 sed 's/^/| /' conftest.$ac_ext >&5
40222
40223 ac_cv_func_getservbyname_r=no
40224 fi
40225 rm -f conftest.err conftest.$ac_objext \
40226       conftest$ac_exeext conftest.$ac_ext
40227 fi
40228 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40229 echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40230 if test $ac_cv_func_getservbyname_r = yes; then
40231
40232         cat >conftest.$ac_ext <<_ACEOF
40233 /* confdefs.h.  */
40234 _ACEOF
40235 cat confdefs.h >>conftest.$ac_ext
40236 cat >>conftest.$ac_ext <<_ACEOF
40237 /* end confdefs.h.  */
40238
40239 #               include <netdb.h>
40240
40241 int
40242 main ()
40243 {
40244
40245
40246         char *name;
40247         char *proto;
40248         struct servent *se;
40249         struct servent_data data;
40250         (void) getservbyname_r(name, proto, se, &data);
40251
40252
40253   ;
40254   return 0;
40255 }
40256 _ACEOF
40257 rm -f conftest.$ac_objext
40258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40259   (eval $ac_compile) 2>conftest.er1
40260   ac_status=$?
40261   grep -v '^ *+' conftest.er1 >conftest.err
40262   rm -f conftest.er1
40263   cat conftest.err >&5
40264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265   (exit $ac_status); } &&
40266          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40268   (eval $ac_try) 2>&5
40269   ac_status=$?
40270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40271   (exit $ac_status); }; } &&
40272          { ac_try='test -s conftest.$ac_objext'
40273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40274   (eval $ac_try) 2>&5
40275   ac_status=$?
40276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40277   (exit $ac_status); }; }; then
40278   ac_cv_func_which_getservbyname_r=four
40279 else
40280   echo "$as_me: failed program was:" >&5
40281 sed 's/^/| /' conftest.$ac_ext >&5
40282
40283
40284   cat >conftest.$ac_ext <<_ACEOF
40285 /* confdefs.h.  */
40286 _ACEOF
40287 cat confdefs.h >>conftest.$ac_ext
40288 cat >>conftest.$ac_ext <<_ACEOF
40289 /* end confdefs.h.  */
40290
40291 #   include <netdb.h>
40292
40293 int
40294 main ()
40295 {
40296
40297         char *name;
40298         char *proto;
40299         struct servent *se, *res;
40300         char buffer[2048];
40301         int buflen = 2048;
40302         (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
40303
40304   ;
40305   return 0;
40306 }
40307 _ACEOF
40308 rm -f conftest.$ac_objext
40309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40310   (eval $ac_compile) 2>conftest.er1
40311   ac_status=$?
40312   grep -v '^ *+' conftest.er1 >conftest.err
40313   rm -f conftest.er1
40314   cat conftest.err >&5
40315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316   (exit $ac_status); } &&
40317          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319   (eval $ac_try) 2>&5
40320   ac_status=$?
40321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322   (exit $ac_status); }; } &&
40323          { ac_try='test -s conftest.$ac_objext'
40324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40325   (eval $ac_try) 2>&5
40326   ac_status=$?
40327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328   (exit $ac_status); }; }; then
40329   ac_cv_func_which_getservbyname_r=six
40330 else
40331   echo "$as_me: failed program was:" >&5
40332 sed 's/^/| /' conftest.$ac_ext >&5
40333
40334
40335   cat >conftest.$ac_ext <<_ACEOF
40336 /* confdefs.h.  */
40337 _ACEOF
40338 cat confdefs.h >>conftest.$ac_ext
40339 cat >>conftest.$ac_ext <<_ACEOF
40340 /* end confdefs.h.  */
40341
40342 #   include <netdb.h>
40343
40344 int
40345 main ()
40346 {
40347
40348         char *name;
40349         char *proto;
40350         struct servent *se;
40351         char buffer[2048];
40352         int buflen = 2048;
40353         (void) getservbyname_r(name, proto, se, buffer, buflen)
40354
40355   ;
40356   return 0;
40357 }
40358 _ACEOF
40359 rm -f conftest.$ac_objext
40360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40361   (eval $ac_compile) 2>conftest.er1
40362   ac_status=$?
40363   grep -v '^ *+' conftest.er1 >conftest.err
40364   rm -f conftest.er1
40365   cat conftest.err >&5
40366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367   (exit $ac_status); } &&
40368          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40370   (eval $ac_try) 2>&5
40371   ac_status=$?
40372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373   (exit $ac_status); }; } &&
40374          { ac_try='test -s conftest.$ac_objext'
40375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40376   (eval $ac_try) 2>&5
40377   ac_status=$?
40378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379   (exit $ac_status); }; }; then
40380   ac_cv_func_which_getservbyname_r=five
40381 else
40382   echo "$as_me: failed program was:" >&5
40383 sed 's/^/| /' conftest.$ac_ext >&5
40384
40385 ac_cv_func_which_getservbyname_r=no
40386 fi
40387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40388
40389
40390
40391
40392 fi
40393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40394
40395
40396 fi
40397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40398
40399 else
40400   ac_cv_func_which_getservbyname_r=no
40401 fi
40402
40403 fi
40404 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40405 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
40406
40407 if test $ac_cv_func_which_getservbyname_r = six; then
40408   cat >>confdefs.h <<\_ACEOF
40409 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
40410 _ACEOF
40411
40412 elif test $ac_cv_func_which_getservbyname_r = five; then
40413   cat >>confdefs.h <<\_ACEOF
40414 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
40415 _ACEOF
40416
40417 elif test $ac_cv_func_which_getservbyname_r = four; then
40418   cat >>confdefs.h <<\_ACEOF
40419 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
40420 _ACEOF
40421
40422
40423 fi
40424
40425
40426       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40427               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40428
40429 for ac_func in getservbyname
40430 do
40431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40432 echo "$as_me:$LINENO: checking for $ac_func" >&5
40433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40434 if eval "test \"\${$as_ac_var+set}\" = set"; then
40435   echo $ECHO_N "(cached) $ECHO_C" >&6
40436 else
40437   cat >conftest.$ac_ext <<_ACEOF
40438 /* confdefs.h.  */
40439 _ACEOF
40440 cat confdefs.h >>conftest.$ac_ext
40441 cat >>conftest.$ac_ext <<_ACEOF
40442 /* end confdefs.h.  */
40443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40445 #define $ac_func innocuous_$ac_func
40446
40447 /* System header to define __stub macros and hopefully few prototypes,
40448     which can conflict with char $ac_func (); below.
40449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40450     <limits.h> exists even on freestanding compilers.  */
40451
40452 #ifdef __STDC__
40453 # include <limits.h>
40454 #else
40455 # include <assert.h>
40456 #endif
40457
40458 #undef $ac_func
40459
40460 /* Override any gcc2 internal prototype to avoid an error.  */
40461 #ifdef __cplusplus
40462 extern "C"
40463 {
40464 #endif
40465 /* We use char because int might match the return type of a gcc2
40466    builtin and then its argument prototype would still apply.  */
40467 char $ac_func ();
40468 /* The GNU C library defines this for functions which it implements
40469     to always fail with ENOSYS.  Some functions are actually named
40470     something starting with __ and the normal name is an alias.  */
40471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40472 choke me
40473 #else
40474 char (*f) () = $ac_func;
40475 #endif
40476 #ifdef __cplusplus
40477 }
40478 #endif
40479
40480 int
40481 main ()
40482 {
40483 return f != $ac_func;
40484   ;
40485   return 0;
40486 }
40487 _ACEOF
40488 rm -f conftest.$ac_objext conftest$ac_exeext
40489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40490   (eval $ac_link) 2>conftest.er1
40491   ac_status=$?
40492   grep -v '^ *+' conftest.er1 >conftest.err
40493   rm -f conftest.er1
40494   cat conftest.err >&5
40495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496   (exit $ac_status); } &&
40497          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40499   (eval $ac_try) 2>&5
40500   ac_status=$?
40501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502   (exit $ac_status); }; } &&
40503          { ac_try='test -s conftest$ac_exeext'
40504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40505   (eval $ac_try) 2>&5
40506   ac_status=$?
40507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508   (exit $ac_status); }; }; then
40509   eval "$as_ac_var=yes"
40510 else
40511   echo "$as_me: failed program was:" >&5
40512 sed 's/^/| /' conftest.$ac_ext >&5
40513
40514 eval "$as_ac_var=no"
40515 fi
40516 rm -f conftest.err conftest.$ac_objext \
40517       conftest$ac_exeext conftest.$ac_ext
40518 fi
40519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40521 if test `eval echo '${'$as_ac_var'}'` = yes; then
40522   cat >>confdefs.h <<_ACEOF
40523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40524 _ACEOF
40525   cat >>confdefs.h <<\_ACEOF
40526 #define HAVE_GETSERVBYNAME 1
40527 _ACEOF
40528
40529 fi
40530 done
40531
40532       fi
40533
40534 if test "$wxUSE_THREADS" = "yes"; then
40535   cat >>confdefs.h <<\_ACEOF
40536 #define wxUSE_THREADS 1
40537 _ACEOF
40538
40539
40540   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40541 else
40542       if test "$ac_cv_func_strtok_r" = "yes"; then
40543     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40544 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40545     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40546         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40547         echo "$as_me:$LINENO: result: yes" >&5
40548 echo "${ECHO_T}yes" >&6
40549     else
40550         echo "$as_me:$LINENO: result: no" >&5
40551 echo "${ECHO_T}no" >&6
40552     fi
40553   fi
40554 fi
40555
40556 if test "$WXGTK20" = 1 ; then
40557   cat >>confdefs.h <<_ACEOF
40558 #define __WXGTK20__ $WXGTK20
40559 _ACEOF
40560
40561   WXGTK12=1
40562 fi
40563
40564 if test "$WXGTK12" = 1 ; then
40565   cat >>confdefs.h <<_ACEOF
40566 #define __WXGTK12__ $WXGTK12
40567 _ACEOF
40568
40569 fi
40570
40571 if test "$WXGTK127" = 1 ; then
40572   cat >>confdefs.h <<_ACEOF
40573 #define __WXGTK127__ $WXGTK127
40574 _ACEOF
40575
40576 fi
40577
40578 if test "$WXGPE" = 1 ; then
40579   cat >>confdefs.h <<_ACEOF
40580 #define __WXGPE__ $WXGPE
40581 _ACEOF
40582
40583 fi
40584
40585 DEBUG_CFLAGS=
40586 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40587     DEBUG_CFLAGS="-g"
40588     wxUSE_OPTIMISE=no
40589 fi
40590
40591 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40592     wxUSE_DEBUG_INFO=yes
40593     if test "$GCC" = yes; then
40594         DEBUG_CFLAGS="-ggdb"
40595     fi
40596 fi
40597
40598 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40599     cat >>confdefs.h <<\_ACEOF
40600 #define WXDEBUG 1
40601 _ACEOF
40602
40603     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40604 else
40605     if test "$wxUSE_GTK" = 1 ; then
40606         if test "x$wxGTK_VERSION" = "x1" ; then
40607             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40608         fi
40609     fi
40610 fi
40611
40612 if test "$wxUSE_MEM_TRACING" = "yes" ; then
40613     cat >>confdefs.h <<\_ACEOF
40614 #define wxUSE_MEMORY_TRACING 1
40615 _ACEOF
40616
40617     cat >>confdefs.h <<\_ACEOF
40618 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40619 _ACEOF
40620
40621     cat >>confdefs.h <<\_ACEOF
40622 #define wxUSE_DEBUG_NEW_ALWAYS 1
40623 _ACEOF
40624
40625     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40626 fi
40627
40628 if test "$wxUSE_DMALLOC" = "yes" ; then
40629     DMALLOC_LIBS="-ldmallocthcxx"
40630 fi
40631
40632 PROFILE_FLAGS=
40633 if test "$wxUSE_PROFILE" = "yes" ; then
40634     PROFILE_FLAGS=" -pg"
40635 fi
40636
40637 if test "$GCC" = "yes" ; then
40638     if test "$wxUSE_NO_RTTI" = "yes" ; then
40639         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40640     fi
40641     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40642         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40643     fi
40644     if test "$wxUSE_PERMISSIVE" = "yes" ; then
40645         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40646     fi
40647
40648                                                 case "${host}" in
40649       powerpc*-*-aix* )
40650         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40651         ;;
40652       *-hppa* )
40653         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40654         ;;
40655     esac
40656 fi
40657
40658 OPTIMISE_CFLAGS=
40659 if test "$wxUSE_OPTIMISE" = "no" ; then
40660     if test "$GCC" = yes ; then
40661                         OPTIMISE_CFLAGS="-O0"
40662     fi
40663 else
40664     if test "$GCC" = yes ; then
40665         case "${host}" in
40666             *-pc-os2_emx | *-pc-os2-emx )
40667                                                 OPTIMISE_CFLAGS="-O2"
40668             ;;
40669             *)
40670                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40671             ;;
40672         esac
40673     else
40674         OPTIMISE_CFLAGS="-O"
40675     fi
40676 fi
40677
40678
40679 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40680     cat >>confdefs.h <<\_ACEOF
40681 #define WXWIN_COMPATIBILITY_2_4 1
40682 _ACEOF
40683
40684
40685     WXWIN_COMPATIBILITY_2_6="yes"
40686 fi
40687
40688 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40689     cat >>confdefs.h <<\_ACEOF
40690 #define WXWIN_COMPATIBILITY_2_6 1
40691 _ACEOF
40692
40693 fi
40694
40695
40696 if test "$wxUSE_GUI" = "yes"; then
40697     cat >>confdefs.h <<\_ACEOF
40698 #define wxUSE_GUI 1
40699 _ACEOF
40700
40701
40702                                             fi
40703
40704
40705 if test "$wxUSE_UNIX" = "yes"; then
40706   cat >>confdefs.h <<\_ACEOF
40707 #define wxUSE_UNIX 1
40708 _ACEOF
40709
40710 fi
40711
40712
40713 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40714
40715     HAVE_DL_FUNCS=0
40716     HAVE_SHL_FUNCS=0
40717     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40718         if test "$USE_DARWIN" = 1; then
40719                         HAVE_DL_FUNCS=1
40720         elif test "$USE_DOS" = 1; then
40721             HAVE_DL_FUNCS=0
40722         else
40723
40724 for ac_func in dlopen
40725 do
40726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40727 echo "$as_me:$LINENO: checking for $ac_func" >&5
40728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40729 if eval "test \"\${$as_ac_var+set}\" = set"; then
40730   echo $ECHO_N "(cached) $ECHO_C" >&6
40731 else
40732   cat >conftest.$ac_ext <<_ACEOF
40733 /* confdefs.h.  */
40734 _ACEOF
40735 cat confdefs.h >>conftest.$ac_ext
40736 cat >>conftest.$ac_ext <<_ACEOF
40737 /* end confdefs.h.  */
40738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40740 #define $ac_func innocuous_$ac_func
40741
40742 /* System header to define __stub macros and hopefully few prototypes,
40743     which can conflict with char $ac_func (); below.
40744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40745     <limits.h> exists even on freestanding compilers.  */
40746
40747 #ifdef __STDC__
40748 # include <limits.h>
40749 #else
40750 # include <assert.h>
40751 #endif
40752
40753 #undef $ac_func
40754
40755 /* Override any gcc2 internal prototype to avoid an error.  */
40756 #ifdef __cplusplus
40757 extern "C"
40758 {
40759 #endif
40760 /* We use char because int might match the return type of a gcc2
40761    builtin and then its argument prototype would still apply.  */
40762 char $ac_func ();
40763 /* The GNU C library defines this for functions which it implements
40764     to always fail with ENOSYS.  Some functions are actually named
40765     something starting with __ and the normal name is an alias.  */
40766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40767 choke me
40768 #else
40769 char (*f) () = $ac_func;
40770 #endif
40771 #ifdef __cplusplus
40772 }
40773 #endif
40774
40775 int
40776 main ()
40777 {
40778 return f != $ac_func;
40779   ;
40780   return 0;
40781 }
40782 _ACEOF
40783 rm -f conftest.$ac_objext conftest$ac_exeext
40784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40785   (eval $ac_link) 2>conftest.er1
40786   ac_status=$?
40787   grep -v '^ *+' conftest.er1 >conftest.err
40788   rm -f conftest.er1
40789   cat conftest.err >&5
40790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791   (exit $ac_status); } &&
40792          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40794   (eval $ac_try) 2>&5
40795   ac_status=$?
40796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797   (exit $ac_status); }; } &&
40798          { ac_try='test -s conftest$ac_exeext'
40799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800   (eval $ac_try) 2>&5
40801   ac_status=$?
40802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803   (exit $ac_status); }; }; then
40804   eval "$as_ac_var=yes"
40805 else
40806   echo "$as_me: failed program was:" >&5
40807 sed 's/^/| /' conftest.$ac_ext >&5
40808
40809 eval "$as_ac_var=no"
40810 fi
40811 rm -f conftest.err conftest.$ac_objext \
40812       conftest$ac_exeext conftest.$ac_ext
40813 fi
40814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40816 if test `eval echo '${'$as_ac_var'}'` = yes; then
40817   cat >>confdefs.h <<_ACEOF
40818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40819 _ACEOF
40820
40821                 cat >>confdefs.h <<\_ACEOF
40822 #define HAVE_DLOPEN 1
40823 _ACEOF
40824
40825                 HAVE_DL_FUNCS=1
40826
40827 else
40828
40829                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40830 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40832   echo $ECHO_N "(cached) $ECHO_C" >&6
40833 else
40834   ac_check_lib_save_LIBS=$LIBS
40835 LIBS="-ldl  $LIBS"
40836 cat >conftest.$ac_ext <<_ACEOF
40837 /* confdefs.h.  */
40838 _ACEOF
40839 cat confdefs.h >>conftest.$ac_ext
40840 cat >>conftest.$ac_ext <<_ACEOF
40841 /* end confdefs.h.  */
40842
40843 /* Override any gcc2 internal prototype to avoid an error.  */
40844 #ifdef __cplusplus
40845 extern "C"
40846 #endif
40847 /* We use char because int might match the return type of a gcc2
40848    builtin and then its argument prototype would still apply.  */
40849 char dlopen ();
40850 int
40851 main ()
40852 {
40853 dlopen ();
40854   ;
40855   return 0;
40856 }
40857 _ACEOF
40858 rm -f conftest.$ac_objext conftest$ac_exeext
40859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40860   (eval $ac_link) 2>conftest.er1
40861   ac_status=$?
40862   grep -v '^ *+' conftest.er1 >conftest.err
40863   rm -f conftest.er1
40864   cat conftest.err >&5
40865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40866   (exit $ac_status); } &&
40867          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40869   (eval $ac_try) 2>&5
40870   ac_status=$?
40871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872   (exit $ac_status); }; } &&
40873          { ac_try='test -s conftest$ac_exeext'
40874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875   (eval $ac_try) 2>&5
40876   ac_status=$?
40877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878   (exit $ac_status); }; }; then
40879   ac_cv_lib_dl_dlopen=yes
40880 else
40881   echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40883
40884 ac_cv_lib_dl_dlopen=no
40885 fi
40886 rm -f conftest.err conftest.$ac_objext \
40887       conftest$ac_exeext conftest.$ac_ext
40888 LIBS=$ac_check_lib_save_LIBS
40889 fi
40890 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40891 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40892 if test $ac_cv_lib_dl_dlopen = yes; then
40893
40894                                 cat >>confdefs.h <<\_ACEOF
40895 #define HAVE_DLOPEN 1
40896 _ACEOF
40897
40898                                 HAVE_DL_FUNCS=1
40899                                 DL_LINK=" -ldl$DL_LINK"
40900
40901 else
40902
40903
40904 for ac_func in shl_load
40905 do
40906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40907 echo "$as_me:$LINENO: checking for $ac_func" >&5
40908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40909 if eval "test \"\${$as_ac_var+set}\" = set"; then
40910   echo $ECHO_N "(cached) $ECHO_C" >&6
40911 else
40912   cat >conftest.$ac_ext <<_ACEOF
40913 /* confdefs.h.  */
40914 _ACEOF
40915 cat confdefs.h >>conftest.$ac_ext
40916 cat >>conftest.$ac_ext <<_ACEOF
40917 /* end confdefs.h.  */
40918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40920 #define $ac_func innocuous_$ac_func
40921
40922 /* System header to define __stub macros and hopefully few prototypes,
40923     which can conflict with char $ac_func (); below.
40924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40925     <limits.h> exists even on freestanding compilers.  */
40926
40927 #ifdef __STDC__
40928 # include <limits.h>
40929 #else
40930 # include <assert.h>
40931 #endif
40932
40933 #undef $ac_func
40934
40935 /* Override any gcc2 internal prototype to avoid an error.  */
40936 #ifdef __cplusplus
40937 extern "C"
40938 {
40939 #endif
40940 /* We use char because int might match the return type of a gcc2
40941    builtin and then its argument prototype would still apply.  */
40942 char $ac_func ();
40943 /* The GNU C library defines this for functions which it implements
40944     to always fail with ENOSYS.  Some functions are actually named
40945     something starting with __ and the normal name is an alias.  */
40946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40947 choke me
40948 #else
40949 char (*f) () = $ac_func;
40950 #endif
40951 #ifdef __cplusplus
40952 }
40953 #endif
40954
40955 int
40956 main ()
40957 {
40958 return f != $ac_func;
40959   ;
40960   return 0;
40961 }
40962 _ACEOF
40963 rm -f conftest.$ac_objext conftest$ac_exeext
40964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40965   (eval $ac_link) 2>conftest.er1
40966   ac_status=$?
40967   grep -v '^ *+' conftest.er1 >conftest.err
40968   rm -f conftest.er1
40969   cat conftest.err >&5
40970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971   (exit $ac_status); } &&
40972          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
40978          { ac_try='test -s conftest$ac_exeext'
40979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980   (eval $ac_try) 2>&5
40981   ac_status=$?
40982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983   (exit $ac_status); }; }; then
40984   eval "$as_ac_var=yes"
40985 else
40986   echo "$as_me: failed program was:" >&5
40987 sed 's/^/| /' conftest.$ac_ext >&5
40988
40989 eval "$as_ac_var=no"
40990 fi
40991 rm -f conftest.err conftest.$ac_objext \
40992       conftest$ac_exeext conftest.$ac_ext
40993 fi
40994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40996 if test `eval echo '${'$as_ac_var'}'` = yes; then
40997   cat >>confdefs.h <<_ACEOF
40998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40999 _ACEOF
41000
41001                                                 cat >>confdefs.h <<\_ACEOF
41002 #define HAVE_SHL_LOAD 1
41003 _ACEOF
41004
41005                                                 HAVE_SHL_FUNCS=1
41006
41007 else
41008
41009                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41010 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41011 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41012   echo $ECHO_N "(cached) $ECHO_C" >&6
41013 else
41014   ac_check_lib_save_LIBS=$LIBS
41015 LIBS="-lshl_load  $LIBS"
41016 cat >conftest.$ac_ext <<_ACEOF
41017 /* confdefs.h.  */
41018 _ACEOF
41019 cat confdefs.h >>conftest.$ac_ext
41020 cat >>conftest.$ac_ext <<_ACEOF
41021 /* end confdefs.h.  */
41022
41023 /* Override any gcc2 internal prototype to avoid an error.  */
41024 #ifdef __cplusplus
41025 extern "C"
41026 #endif
41027 /* We use char because int might match the return type of a gcc2
41028    builtin and then its argument prototype would still apply.  */
41029 char dld ();
41030 int
41031 main ()
41032 {
41033 dld ();
41034   ;
41035   return 0;
41036 }
41037 _ACEOF
41038 rm -f conftest.$ac_objext conftest$ac_exeext
41039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41040   (eval $ac_link) 2>conftest.er1
41041   ac_status=$?
41042   grep -v '^ *+' conftest.er1 >conftest.err
41043   rm -f conftest.er1
41044   cat conftest.err >&5
41045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046   (exit $ac_status); } &&
41047          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41049   (eval $ac_try) 2>&5
41050   ac_status=$?
41051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052   (exit $ac_status); }; } &&
41053          { ac_try='test -s conftest$ac_exeext'
41054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41055   (eval $ac_try) 2>&5
41056   ac_status=$?
41057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058   (exit $ac_status); }; }; then
41059   ac_cv_lib_shl_load_dld=yes
41060 else
41061   echo "$as_me: failed program was:" >&5
41062 sed 's/^/| /' conftest.$ac_ext >&5
41063
41064 ac_cv_lib_shl_load_dld=no
41065 fi
41066 rm -f conftest.err conftest.$ac_objext \
41067       conftest$ac_exeext conftest.$ac_ext
41068 LIBS=$ac_check_lib_save_LIBS
41069 fi
41070 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41071 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41072 if test $ac_cv_lib_shl_load_dld = yes; then
41073
41074                                                                 HAVE_SHL_FUNCS=1
41075                                                                 DL_LINK=" -ldld$DL_LINK"
41076
41077 fi
41078
41079
41080 fi
41081 done
41082
41083
41084 fi
41085
41086
41087 fi
41088 done
41089
41090
41091                 if test "$HAVE_DL_FUNCS" = 1; then
41092
41093 for ac_func in dlerror
41094 do
41095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41096 echo "$as_me:$LINENO: checking for $ac_func" >&5
41097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41098 if eval "test \"\${$as_ac_var+set}\" = set"; then
41099   echo $ECHO_N "(cached) $ECHO_C" >&6
41100 else
41101   cat >conftest.$ac_ext <<_ACEOF
41102 /* confdefs.h.  */
41103 _ACEOF
41104 cat confdefs.h >>conftest.$ac_ext
41105 cat >>conftest.$ac_ext <<_ACEOF
41106 /* end confdefs.h.  */
41107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41109 #define $ac_func innocuous_$ac_func
41110
41111 /* System header to define __stub macros and hopefully few prototypes,
41112     which can conflict with char $ac_func (); below.
41113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41114     <limits.h> exists even on freestanding compilers.  */
41115
41116 #ifdef __STDC__
41117 # include <limits.h>
41118 #else
41119 # include <assert.h>
41120 #endif
41121
41122 #undef $ac_func
41123
41124 /* Override any gcc2 internal prototype to avoid an error.  */
41125 #ifdef __cplusplus
41126 extern "C"
41127 {
41128 #endif
41129 /* We use char because int might match the return type of a gcc2
41130    builtin and then its argument prototype would still apply.  */
41131 char $ac_func ();
41132 /* The GNU C library defines this for functions which it implements
41133     to always fail with ENOSYS.  Some functions are actually named
41134     something starting with __ and the normal name is an alias.  */
41135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41136 choke me
41137 #else
41138 char (*f) () = $ac_func;
41139 #endif
41140 #ifdef __cplusplus
41141 }
41142 #endif
41143
41144 int
41145 main ()
41146 {
41147 return f != $ac_func;
41148   ;
41149   return 0;
41150 }
41151 _ACEOF
41152 rm -f conftest.$ac_objext conftest$ac_exeext
41153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41154   (eval $ac_link) 2>conftest.er1
41155   ac_status=$?
41156   grep -v '^ *+' conftest.er1 >conftest.err
41157   rm -f conftest.er1
41158   cat conftest.err >&5
41159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41160   (exit $ac_status); } &&
41161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41163   (eval $ac_try) 2>&5
41164   ac_status=$?
41165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41166   (exit $ac_status); }; } &&
41167          { ac_try='test -s conftest$ac_exeext'
41168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41169   (eval $ac_try) 2>&5
41170   ac_status=$?
41171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172   (exit $ac_status); }; }; then
41173   eval "$as_ac_var=yes"
41174 else
41175   echo "$as_me: failed program was:" >&5
41176 sed 's/^/| /' conftest.$ac_ext >&5
41177
41178 eval "$as_ac_var=no"
41179 fi
41180 rm -f conftest.err conftest.$ac_objext \
41181       conftest$ac_exeext conftest.$ac_ext
41182 fi
41183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41185 if test `eval echo '${'$as_ac_var'}'` = yes; then
41186   cat >>confdefs.h <<_ACEOF
41187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41188 _ACEOF
41189  cat >>confdefs.h <<\_ACEOF
41190 #define HAVE_DLERROR 1
41191 _ACEOF
41192
41193 else
41194
41195                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41196 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41197 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41198   echo $ECHO_N "(cached) $ECHO_C" >&6
41199 else
41200   ac_check_lib_save_LIBS=$LIBS
41201 LIBS="-ldl  $LIBS"
41202 cat >conftest.$ac_ext <<_ACEOF
41203 /* confdefs.h.  */
41204 _ACEOF
41205 cat confdefs.h >>conftest.$ac_ext
41206 cat >>conftest.$ac_ext <<_ACEOF
41207 /* end confdefs.h.  */
41208
41209 /* Override any gcc2 internal prototype to avoid an error.  */
41210 #ifdef __cplusplus
41211 extern "C"
41212 #endif
41213 /* We use char because int might match the return type of a gcc2
41214    builtin and then its argument prototype would still apply.  */
41215 char dlerror ();
41216 int
41217 main ()
41218 {
41219 dlerror ();
41220   ;
41221   return 0;
41222 }
41223 _ACEOF
41224 rm -f conftest.$ac_objext conftest$ac_exeext
41225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41226   (eval $ac_link) 2>conftest.er1
41227   ac_status=$?
41228   grep -v '^ *+' conftest.er1 >conftest.err
41229   rm -f conftest.er1
41230   cat conftest.err >&5
41231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232   (exit $ac_status); } &&
41233          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41235   (eval $ac_try) 2>&5
41236   ac_status=$?
41237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238   (exit $ac_status); }; } &&
41239          { ac_try='test -s conftest$ac_exeext'
41240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41241   (eval $ac_try) 2>&5
41242   ac_status=$?
41243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244   (exit $ac_status); }; }; then
41245   ac_cv_lib_dl_dlerror=yes
41246 else
41247   echo "$as_me: failed program was:" >&5
41248 sed 's/^/| /' conftest.$ac_ext >&5
41249
41250 ac_cv_lib_dl_dlerror=no
41251 fi
41252 rm -f conftest.err conftest.$ac_objext \
41253       conftest$ac_exeext conftest.$ac_ext
41254 LIBS=$ac_check_lib_save_LIBS
41255 fi
41256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41257 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41258 if test $ac_cv_lib_dl_dlerror = yes; then
41259   cat >>confdefs.h <<\_ACEOF
41260 #define HAVE_DLERROR 1
41261 _ACEOF
41262
41263 fi
41264
41265
41266
41267 fi
41268 done
41269
41270         fi
41271         fi
41272
41273         if test "$HAVE_DL_FUNCS" = 0; then
41274             if test "$HAVE_SHL_FUNCS" = 0; then
41275               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
41276                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41277 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41278                   wxUSE_DYNAMIC_LOADER=no
41279                   wxUSE_DYNLIB_CLASS=no
41280               else
41281                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41282 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41283               fi
41284             fi
41285         fi
41286     fi
41287 fi
41288
41289 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41290     cat >>confdefs.h <<\_ACEOF
41291 #define wxUSE_DYNAMIC_LOADER 1
41292 _ACEOF
41293
41294 fi
41295 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41296     cat >>confdefs.h <<\_ACEOF
41297 #define wxUSE_DYNLIB_CLASS 1
41298 _ACEOF
41299
41300 fi
41301
41302
41303
41304 if test "$wxUSE_PLUGINS" = "yes" ; then
41305     if test "$wxUSE_SHARED" = "no" ; then
41306         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41307 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41308         wxUSE_PLUGINS=no
41309     fi
41310     if test "$wxUSE_MONOLITHIC" = "yes" ; then
41311         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41312 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41313         wxUSE_PLUGINS=no
41314     fi
41315     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41316         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41317 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41318         wxUSE_PLUGINS=no
41319     fi
41320     if test "$wxUSE_PLUGINS" = "yes" ; then
41321         cat >>confdefs.h <<\_ACEOF
41322 #define wxUSE_PLUGINS 1
41323 _ACEOF
41324
41325     fi
41326 fi
41327
41328
41329 if test "$wxUSE_STL" = "yes"; then
41330   cat >>confdefs.h <<\_ACEOF
41331 #define wxUSE_STL 1
41332 _ACEOF
41333
41334 fi
41335
41336 if test "$wxUSE_APPLE_IEEE" = "yes"; then
41337   cat >>confdefs.h <<\_ACEOF
41338 #define wxUSE_APPLE_IEEE 1
41339 _ACEOF
41340
41341 fi
41342
41343 if test "$wxUSE_TIMER" = "yes"; then
41344   cat >>confdefs.h <<\_ACEOF
41345 #define wxUSE_TIMER 1
41346 _ACEOF
41347
41348 fi
41349
41350 if test "$USE_UNIX" = "1" ; then
41351                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41352 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
41353 if test "${ac_cv_header_sys_soundcard+set}" = set; then
41354   echo $ECHO_N "(cached) $ECHO_C" >&6
41355 else
41356
41357         cat >conftest.$ac_ext <<_ACEOF
41358 /* confdefs.h.  */
41359 _ACEOF
41360 cat confdefs.h >>conftest.$ac_ext
41361 cat >>conftest.$ac_ext <<_ACEOF
41362 /* end confdefs.h.  */
41363
41364                 #include <sys/ioctl.h>
41365                 #include <sys/soundcard.h>
41366
41367 int
41368 main ()
41369 {
41370
41371                 ioctl(0, SNDCTL_DSP_SPEED, 0);
41372
41373   ;
41374   return 0;
41375 }
41376 _ACEOF
41377 rm -f conftest.$ac_objext conftest$ac_exeext
41378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41379   (eval $ac_link) 2>conftest.er1
41380   ac_status=$?
41381   grep -v '^ *+' conftest.er1 >conftest.err
41382   rm -f conftest.er1
41383   cat conftest.err >&5
41384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385   (exit $ac_status); } &&
41386          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41388   (eval $ac_try) 2>&5
41389   ac_status=$?
41390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41391   (exit $ac_status); }; } &&
41392          { ac_try='test -s conftest$ac_exeext'
41393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41394   (eval $ac_try) 2>&5
41395   ac_status=$?
41396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41397   (exit $ac_status); }; }; then
41398   ac_cv_header_sys_soundcard=yes
41399 else
41400   echo "$as_me: failed program was:" >&5
41401 sed 's/^/| /' conftest.$ac_ext >&5
41402
41403
41404                 saveLibs="$LIBS"
41405                 LIBS="$saveLibs -lossaudio"
41406                 cat >conftest.$ac_ext <<_ACEOF
41407 /* confdefs.h.  */
41408 _ACEOF
41409 cat confdefs.h >>conftest.$ac_ext
41410 cat >>conftest.$ac_ext <<_ACEOF
41411 /* end confdefs.h.  */
41412
41413                         #include <sys/ioctl.h>
41414                         #include <sys/soundcard.h>
41415
41416 int
41417 main ()
41418 {
41419
41420                         ioctl(0, SNDCTL_DSP_SPEED, 0);
41421
41422   ;
41423   return 0;
41424 }
41425 _ACEOF
41426 rm -f conftest.$ac_objext conftest$ac_exeext
41427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41428   (eval $ac_link) 2>conftest.er1
41429   ac_status=$?
41430   grep -v '^ *+' conftest.er1 >conftest.err
41431   rm -f conftest.er1
41432   cat conftest.err >&5
41433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41434   (exit $ac_status); } &&
41435          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437   (eval $ac_try) 2>&5
41438   ac_status=$?
41439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440   (exit $ac_status); }; } &&
41441          { ac_try='test -s conftest$ac_exeext'
41442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443   (eval $ac_try) 2>&5
41444   ac_status=$?
41445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446   (exit $ac_status); }; }; then
41447   ac_cv_header_sys_soundcard=yes
41448 else
41449   echo "$as_me: failed program was:" >&5
41450 sed 's/^/| /' conftest.$ac_ext >&5
41451
41452
41453                         LIBS="$saveLibs"
41454                         ac_cv_header_sys_soundcard=no
41455
41456
41457 fi
41458 rm -f conftest.err conftest.$ac_objext \
41459       conftest$ac_exeext conftest.$ac_ext
41460
41461
41462 fi
41463 rm -f conftest.err conftest.$ac_objext \
41464       conftest$ac_exeext conftest.$ac_ext
41465
41466 fi
41467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41468 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
41469
41470     if test "$ac_cv_header_sys_soundcard" = "yes"; then
41471         cat >>confdefs.h <<\_ACEOF
41472 #define HAVE_SYS_SOUNDCARD_H 1
41473 _ACEOF
41474
41475     else
41476         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41477     fi
41478 fi
41479 WITH_PLUGIN_SDL=0
41480 if test "$wxUSE_SOUND" = "yes"; then
41481   if test "$USE_UNIX" = "1" ; then
41482     if test "$wxUSE_LIBSDL" != "no"; then
41483
41484 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41485 if test "${with_sdl_prefix+set}" = set; then
41486   withval="$with_sdl_prefix"
41487   sdl_prefix="$withval"
41488 else
41489   sdl_prefix=""
41490 fi;
41491
41492 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41493 if test "${with_sdl_exec_prefix+set}" = set; then
41494   withval="$with_sdl_exec_prefix"
41495   sdl_exec_prefix="$withval"
41496 else
41497   sdl_exec_prefix=""
41498 fi;
41499 # Check whether --enable-sdltest or --disable-sdltest was given.
41500 if test "${enable_sdltest+set}" = set; then
41501   enableval="$enable_sdltest"
41502
41503 else
41504   enable_sdltest=yes
41505 fi;
41506
41507   if test x$sdl_exec_prefix != x ; then
41508     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41509     if test x${SDL_CONFIG+set} != xset ; then
41510       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41511     fi
41512   fi
41513   if test x$sdl_prefix != x ; then
41514     sdl_args="$sdl_args --prefix=$sdl_prefix"
41515     if test x${SDL_CONFIG+set} != xset ; then
41516       SDL_CONFIG=$sdl_prefix/bin/sdl-config
41517     fi
41518   fi
41519
41520   if test "x$prefix" != xNONE; then
41521     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41522   fi
41523   # Extract the first word of "sdl-config", so it can be a program name with args.
41524 set dummy sdl-config; ac_word=$2
41525 echo "$as_me:$LINENO: checking for $ac_word" >&5
41526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41527 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41528   echo $ECHO_N "(cached) $ECHO_C" >&6
41529 else
41530   case $SDL_CONFIG in
41531   [\\/]* | ?:[\\/]*)
41532   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41533   ;;
41534   *)
41535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41536 for as_dir in $PATH
41537 do
41538   IFS=$as_save_IFS
41539   test -z "$as_dir" && as_dir=.
41540   for ac_exec_ext in '' $ac_executable_extensions; do
41541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41542     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41544     break 2
41545   fi
41546 done
41547 done
41548
41549   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41550   ;;
41551 esac
41552 fi
41553 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41554
41555 if test -n "$SDL_CONFIG"; then
41556   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41557 echo "${ECHO_T}$SDL_CONFIG" >&6
41558 else
41559   echo "$as_me:$LINENO: result: no" >&5
41560 echo "${ECHO_T}no" >&6
41561 fi
41562
41563   min_sdl_version=1.2.0
41564   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41565 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41566   no_sdl=""
41567   if test "$SDL_CONFIG" = "no" ; then
41568     no_sdl=yes
41569   else
41570     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41571     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41572
41573     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41574            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41575     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41576            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41577     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41578            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41579     if test "x$enable_sdltest" = "xyes" ; then
41580       ac_save_CFLAGS="$CFLAGS"
41581       ac_save_CXXFLAGS="$CXXFLAGS"
41582       ac_save_LIBS="$LIBS"
41583       CFLAGS="$CFLAGS $SDL_CFLAGS"
41584       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41585       LIBS="$LIBS $SDL_LIBS"
41586       rm -f conf.sdltest
41587       if test "$cross_compiling" = yes; then
41588   echo $ac_n "cross compiling; assumed OK... $ac_c"
41589 else
41590   cat >conftest.$ac_ext <<_ACEOF
41591 /* confdefs.h.  */
41592 _ACEOF
41593 cat confdefs.h >>conftest.$ac_ext
41594 cat >>conftest.$ac_ext <<_ACEOF
41595 /* end confdefs.h.  */
41596
41597 #include <stdio.h>
41598 #include <stdlib.h>
41599 #include <string.h>
41600 #include "SDL.h"
41601
41602 char*
41603 my_strdup (char *str)
41604 {
41605   char *new_str;
41606
41607   if (str)
41608     {
41609       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41610       strcpy (new_str, str);
41611     }
41612   else
41613     new_str = NULL;
41614
41615   return new_str;
41616 }
41617
41618 int main (int argc, char *argv[])
41619 {
41620   int major, minor, micro;
41621   char *tmp_version;
41622
41623   /* This hangs on some systems (?)
41624   system ("touch conf.sdltest");
41625   */
41626   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41627
41628   /* HP/UX 9 (%@#!) writes to sscanf strings */
41629   tmp_version = my_strdup("$min_sdl_version");
41630   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41631      printf("%s, bad version string\n", "$min_sdl_version");
41632      exit(1);
41633    }
41634
41635    if (($sdl_major_version > major) ||
41636       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41637       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41638     {
41639       return 0;
41640     }
41641   else
41642     {
41643       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41644       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41645       printf("*** best to upgrade to the required version.\n");
41646       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41647       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41648       printf("*** config.cache before re-running configure\n");
41649       return 1;
41650     }
41651 }
41652
41653
41654 _ACEOF
41655 rm -f conftest$ac_exeext
41656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41657   (eval $ac_link) 2>&5
41658   ac_status=$?
41659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662   (eval $ac_try) 2>&5
41663   ac_status=$?
41664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665   (exit $ac_status); }; }; then
41666   :
41667 else
41668   echo "$as_me: program exited with status $ac_status" >&5
41669 echo "$as_me: failed program was:" >&5
41670 sed 's/^/| /' conftest.$ac_ext >&5
41671
41672 ( exit $ac_status )
41673 no_sdl=yes
41674 fi
41675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41676 fi
41677        CFLAGS="$ac_save_CFLAGS"
41678        CXXFLAGS="$ac_save_CXXFLAGS"
41679        LIBS="$ac_save_LIBS"
41680      fi
41681   fi
41682   if test "x$no_sdl" = x ; then
41683      echo "$as_me:$LINENO: result: yes" >&5
41684 echo "${ECHO_T}yes" >&6
41685
41686                     EXTRALIBS_SDL="$SDL_LIBS"
41687                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
41688                     cat >>confdefs.h <<\_ACEOF
41689 #define wxUSE_LIBSDL 1
41690 _ACEOF
41691
41692
41693   else
41694      echo "$as_me:$LINENO: result: no" >&5
41695 echo "${ECHO_T}no" >&6
41696      if test "$SDL_CONFIG" = "no" ; then
41697        echo "*** The sdl-config script installed by SDL could not be found"
41698        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41699        echo "*** your path, or set the SDL_CONFIG environment variable to the"
41700        echo "*** full path to sdl-config."
41701      else
41702        if test -f conf.sdltest ; then
41703         :
41704        else
41705           echo "*** Could not run SDL test program, checking why..."
41706           CFLAGS="$CFLAGS $SDL_CFLAGS"
41707           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
41708           LIBS="$LIBS $SDL_LIBS"
41709           cat >conftest.$ac_ext <<_ACEOF
41710 /* confdefs.h.  */
41711 _ACEOF
41712 cat confdefs.h >>conftest.$ac_ext
41713 cat >>conftest.$ac_ext <<_ACEOF
41714 /* end confdefs.h.  */
41715
41716 #include <stdio.h>
41717 #include "SDL.h"
41718
41719 int main(int argc, char *argv[])
41720 { return 0; }
41721 #undef  main
41722 #define main K_and_R_C_main
41723
41724 int
41725 main ()
41726 {
41727  return 0;
41728   ;
41729   return 0;
41730 }
41731 _ACEOF
41732 rm -f conftest.$ac_objext conftest$ac_exeext
41733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41734   (eval $ac_link) 2>conftest.er1
41735   ac_status=$?
41736   grep -v '^ *+' conftest.er1 >conftest.err
41737   rm -f conftest.er1
41738   cat conftest.err >&5
41739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740   (exit $ac_status); } &&
41741          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41743   (eval $ac_try) 2>&5
41744   ac_status=$?
41745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41746   (exit $ac_status); }; } &&
41747          { ac_try='test -s conftest$ac_exeext'
41748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41749   (eval $ac_try) 2>&5
41750   ac_status=$?
41751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752   (exit $ac_status); }; }; then
41753    echo "*** The test program compiled, but did not run. This usually means"
41754           echo "*** that the run-time linker is not finding SDL or finding the wrong"
41755           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41756           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41757           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
41758           echo "*** is required on your system"
41759           echo "***"
41760           echo "*** If you have an old version installed, it is best to remove it, although"
41761           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41762 else
41763   echo "$as_me: failed program was:" >&5
41764 sed 's/^/| /' conftest.$ac_ext >&5
41765
41766  echo "*** The test program failed to compile or link. See the file config.log for the"
41767           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41768           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41769           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41770 fi
41771 rm -f conftest.err conftest.$ac_objext \
41772       conftest$ac_exeext conftest.$ac_ext
41773           CFLAGS="$ac_save_CFLAGS"
41774           CXXFLAGS="$ac_save_CXXFLAGS"
41775           LIBS="$ac_save_LIBS"
41776        fi
41777      fi
41778      SDL_CFLAGS=""
41779      SDL_LIBS=""
41780      wxUSE_LIBSDL="no"
41781   fi
41782
41783
41784   rm -f conf.sdltest
41785
41786       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41787         WITH_PLUGIN_SDL=1
41788       fi
41789     fi
41790   fi
41791
41792   cat >>confdefs.h <<\_ACEOF
41793 #define wxUSE_SOUND 1
41794 _ACEOF
41795
41796   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41797 fi
41798
41799 if test "$WXGTK20" = 1; then
41800     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41801         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41802
41803
41804 pkg_failed=no
41805 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41806 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
41807
41808 if test -n "$PKG_CONFIG"; then
41809     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41810         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41811     else
41812         if test -n "$PKG_CONFIG" && \
41813     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41814   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41815   ac_status=$?
41816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41817   (exit $ac_status); }; then
41818   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
41819 else
41820   pkg_failed=yes
41821 fi
41822     fi
41823 else
41824         pkg_failed=untried
41825 fi
41826 if test -n "$PKG_CONFIG"; then
41827     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41828         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41829     else
41830         if test -n "$PKG_CONFIG" && \
41831     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41832   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41833   ac_status=$?
41834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835   (exit $ac_status); }; then
41836   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
41837 else
41838   pkg_failed=yes
41839 fi
41840     fi
41841 else
41842         pkg_failed=untried
41843 fi
41844
41845
41846
41847 if test $pkg_failed = yes; then
41848
41849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41850         _pkg_short_errors_supported=yes
41851 else
41852         _pkg_short_errors_supported=no
41853 fi
41854         if test $_pkg_short_errors_supported = yes; then
41855                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41856         else
41857                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41858         fi
41859         # Put the nasty error message in config.log where it belongs
41860         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
41861
41862
41863                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41864 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41865                         wxUSE_LIBGNOMEPRINT="no"
41866
41867
41868 elif test $pkg_failed = untried; then
41869
41870                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41871 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41872                         wxUSE_LIBGNOMEPRINT="no"
41873
41874
41875 else
41876         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41877         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41878         echo "$as_me:$LINENO: result: yes" >&5
41879 echo "${ECHO_T}yes" >&6
41880
41881                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41882                         cat >>confdefs.h <<\_ACEOF
41883 #define wxUSE_LIBGNOMEPRINT 1
41884 _ACEOF
41885
41886
41887 fi
41888         fi
41889     fi
41890 fi
41891
41892 if test "$WXGTK20" = 1; then
41893     if test "$wxUSE_MIMETYPE" = "yes" ; then
41894         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41895
41896
41897 pkg_failed=no
41898 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41899 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
41900
41901 if test -n "$PKG_CONFIG"; then
41902     if test -n "$GNOMEVFS_CFLAGS"; then
41903         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41904     else
41905         if test -n "$PKG_CONFIG" && \
41906     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41907   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41908   ac_status=$?
41909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910   (exit $ac_status); }; then
41911   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
41912 else
41913   pkg_failed=yes
41914 fi
41915     fi
41916 else
41917         pkg_failed=untried
41918 fi
41919 if test -n "$PKG_CONFIG"; then
41920     if test -n "$GNOMEVFS_LIBS"; then
41921         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41922     else
41923         if test -n "$PKG_CONFIG" && \
41924     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41925   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41926   ac_status=$?
41927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41928   (exit $ac_status); }; then
41929   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
41930 else
41931   pkg_failed=yes
41932 fi
41933     fi
41934 else
41935         pkg_failed=untried
41936 fi
41937
41938
41939
41940 if test $pkg_failed = yes; then
41941
41942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41943         _pkg_short_errors_supported=yes
41944 else
41945         _pkg_short_errors_supported=no
41946 fi
41947         if test $_pkg_short_errors_supported = yes; then
41948                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41949         else
41950                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41951         fi
41952         # Put the nasty error message in config.log where it belongs
41953         echo "$GNOMEVFS_PKG_ERRORS" >&5
41954
41955
41956                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41957 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41958                         wxUSE_LIBGNOMEVFS="no"
41959
41960
41961 elif test $pkg_failed = untried; then
41962
41963                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41964 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41965                         wxUSE_LIBGNOMEVFS="no"
41966
41967
41968 else
41969         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
41970         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
41971         echo "$as_me:$LINENO: result: yes" >&5
41972 echo "${ECHO_T}yes" >&6
41973
41974                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41975                         cat >>confdefs.h <<\_ACEOF
41976 #define wxUSE_LIBGNOMEVFS 1
41977 _ACEOF
41978
41979
41980 fi
41981         fi
41982     fi
41983 fi
41984
41985 if test "$WXGTK20" = 1; then
41986     if test "$wxUSE_LIBHILDON" = "yes" ; then
41987
41988 pkg_failed=no
41989 echo "$as_me:$LINENO: checking for HILDON" >&5
41990 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
41991
41992 if test -n "$PKG_CONFIG"; then
41993     if test -n "$HILDON_CFLAGS"; then
41994         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
41995     else
41996         if test -n "$PKG_CONFIG" && \
41997     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41998   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41999   ac_status=$?
42000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001   (exit $ac_status); }; then
42002   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
42003 else
42004   pkg_failed=yes
42005 fi
42006     fi
42007 else
42008         pkg_failed=untried
42009 fi
42010 if test -n "$PKG_CONFIG"; then
42011     if test -n "$HILDON_LIBS"; then
42012         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42013     else
42014         if test -n "$PKG_CONFIG" && \
42015     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42016   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42017   ac_status=$?
42018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019   (exit $ac_status); }; then
42020   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
42021 else
42022   pkg_failed=yes
42023 fi
42024     fi
42025 else
42026         pkg_failed=untried
42027 fi
42028
42029
42030
42031 if test $pkg_failed = yes; then
42032
42033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42034         _pkg_short_errors_supported=yes
42035 else
42036         _pkg_short_errors_supported=no
42037 fi
42038         if test $_pkg_short_errors_supported = yes; then
42039                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42040         else
42041                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42042         fi
42043         # Put the nasty error message in config.log where it belongs
42044         echo "$HILDON_PKG_ERRORS" >&5
42045
42046
42047                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42048 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42049                         wxUSE_LIBHILDON="no"
42050
42051
42052 elif test $pkg_failed = untried; then
42053
42054                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42055 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42056                         wxUSE_LIBHILDON="no"
42057
42058
42059 else
42060         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42061         HILDON_LIBS=$pkg_cv_HILDON_LIBS
42062         echo "$as_me:$LINENO: result: yes" >&5
42063 echo "${ECHO_T}yes" >&6
42064
42065                 EXTRALIBS_HILDON="$HILDON_LIBS"
42066                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42067                 cat >>confdefs.h <<\_ACEOF
42068 #define wxUSE_LIBHILDON 1
42069 _ACEOF
42070
42071
42072 fi
42073     fi
42074 fi
42075
42076 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42077   cat >>confdefs.h <<\_ACEOF
42078 #define wxUSE_CMDLINE_PARSER 1
42079 _ACEOF
42080
42081 fi
42082
42083 if test "$wxUSE_STOPWATCH" = "yes"; then
42084   cat >>confdefs.h <<\_ACEOF
42085 #define wxUSE_STOPWATCH 1
42086 _ACEOF
42087
42088 fi
42089
42090 if test "$wxUSE_DATETIME" = "yes"; then
42091   cat >>confdefs.h <<\_ACEOF
42092 #define wxUSE_DATETIME 1
42093 _ACEOF
42094
42095 fi
42096
42097 if test "$wxUSE_FILE" = "yes"; then
42098   cat >>confdefs.h <<\_ACEOF
42099 #define wxUSE_FILE 1
42100 _ACEOF
42101
42102 fi
42103
42104 if test "$wxUSE_FFILE" = "yes"; then
42105   cat >>confdefs.h <<\_ACEOF
42106 #define wxUSE_FFILE 1
42107 _ACEOF
42108
42109 fi
42110
42111 if test "$wxUSE_FILESYSTEM" = "yes"; then
42112   cat >>confdefs.h <<\_ACEOF
42113 #define wxUSE_FILESYSTEM 1
42114 _ACEOF
42115
42116 fi
42117
42118 if test "$wxUSE_FS_ZIP" = "yes"; then
42119   cat >>confdefs.h <<\_ACEOF
42120 #define wxUSE_FS_ZIP 1
42121 _ACEOF
42122
42123 fi
42124
42125 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
42126   cat >>confdefs.h <<\_ACEOF
42127 #define wxUSE_ARCHIVE_STREAMS 1
42128 _ACEOF
42129
42130 fi
42131
42132 if test "$wxUSE_ZIPSTREAM" = "yes"; then
42133   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
42134     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42135 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42136   elif test "$wxUSE_ZLIB" = "no"; then
42137     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42138 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42139   else
42140     cat >>confdefs.h <<\_ACEOF
42141 #define wxUSE_ZIPSTREAM 1
42142 _ACEOF
42143
42144   fi
42145 fi
42146
42147 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42148   if test "$USE_UNIX" != 1; then
42149     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42150 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42151     wxUSE_ON_FATAL_EXCEPTION=no
42152   else
42153     cat >>confdefs.h <<\_ACEOF
42154 #define wxUSE_ON_FATAL_EXCEPTION 1
42155 _ACEOF
42156
42157   fi
42158 fi
42159
42160 if test "$wxUSE_STACKWALKER" = "yes"; then
42161     cat >>confdefs.h <<\_ACEOF
42162 #define wxUSE_STACKWALKER 1
42163 _ACEOF
42164
42165 fi
42166
42167 if test "$wxUSE_DEBUGREPORT" = "yes"; then
42168     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42169         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42170 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
42171         wxUSE_DEBUGREPORT=no
42172     else
42173         cat >>confdefs.h <<\_ACEOF
42174 #define wxUSE_DEBUGREPORT 1
42175 _ACEOF
42176
42177         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42178             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42179         fi
42180     fi
42181 fi
42182
42183 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42184   cat >>confdefs.h <<\_ACEOF
42185 #define wxUSE_SNGLINST_CHECKER 1
42186 _ACEOF
42187
42188 fi
42189
42190 if test "$wxUSE_BUSYINFO" = "yes"; then
42191   cat >>confdefs.h <<\_ACEOF
42192 #define wxUSE_BUSYINFO 1
42193 _ACEOF
42194
42195 fi
42196
42197 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42198   cat >>confdefs.h <<\_ACEOF
42199 #define wxUSE_STD_IOSTREAM 1
42200 _ACEOF
42201
42202 fi
42203
42204 if test "$wxUSE_STD_STRING" = "yes"; then
42205   cat >>confdefs.h <<\_ACEOF
42206 #define wxUSE_STD_STRING 1
42207 _ACEOF
42208
42209 fi
42210
42211 if test "$wxUSE_STDPATHS" = "yes"; then
42212   cat >>confdefs.h <<\_ACEOF
42213 #define wxUSE_STDPATHS 1
42214 _ACEOF
42215
42216 fi
42217
42218 if test "$wxUSE_TEXTBUFFER" = "yes"; then
42219     cat >>confdefs.h <<\_ACEOF
42220 #define wxUSE_TEXTBUFFER 1
42221 _ACEOF
42222
42223 fi
42224
42225 if test "$wxUSE_TEXTFILE" = "yes"; then
42226   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42227     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42228 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42229   else
42230     cat >>confdefs.h <<\_ACEOF
42231 #define wxUSE_TEXTFILE 1
42232 _ACEOF
42233
42234   fi
42235 fi
42236
42237 if test "$wxUSE_CONFIG" = "yes" ; then
42238   if test "$wxUSE_TEXTFILE" != "yes"; then
42239     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42240 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42241   else
42242     cat >>confdefs.h <<\_ACEOF
42243 #define wxUSE_CONFIG 1
42244 _ACEOF
42245
42246     cat >>confdefs.h <<\_ACEOF
42247 #define wxUSE_CONFIG_NATIVE 1
42248 _ACEOF
42249
42250     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42251   fi
42252 fi
42253
42254 if test "$wxUSE_INTL" = "yes" ; then
42255   if test "$wxUSE_FILE" != "yes"; then
42256     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42257 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42258   else
42259     cat >>confdefs.h <<\_ACEOF
42260 #define wxUSE_INTL 1
42261 _ACEOF
42262
42263     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42264     GUIDIST="$GUIDIST INTL_DIST"
42265   fi
42266 fi
42267
42268 if test "$wxUSE_LOG" = "yes"; then
42269   cat >>confdefs.h <<\_ACEOF
42270 #define wxUSE_LOG 1
42271 _ACEOF
42272
42273
42274     if test "$wxUSE_LOGGUI" = "yes"; then
42275       cat >>confdefs.h <<\_ACEOF
42276 #define wxUSE_LOGGUI 1
42277 _ACEOF
42278
42279     fi
42280
42281     if test "$wxUSE_LOGWINDOW" = "yes"; then
42282       cat >>confdefs.h <<\_ACEOF
42283 #define wxUSE_LOGWINDOW 1
42284 _ACEOF
42285
42286     fi
42287
42288     if test "$wxUSE_LOGDIALOG" = "yes"; then
42289       cat >>confdefs.h <<\_ACEOF
42290 #define wxUSE_LOG_DIALOG 1
42291 _ACEOF
42292
42293     fi
42294
42295         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
42296 fi
42297
42298 if test "$wxUSE_LONGLONG" = "yes"; then
42299   cat >>confdefs.h <<\_ACEOF
42300 #define wxUSE_LONGLONG 1
42301 _ACEOF
42302
42303 fi
42304
42305 if test "$wxUSE_GEOMETRY" = "yes"; then
42306   cat >>confdefs.h <<\_ACEOF
42307 #define wxUSE_GEOMETRY 1
42308 _ACEOF
42309
42310 fi
42311
42312 if test "$wxUSE_STREAMS" = "yes" ; then
42313   cat >>confdefs.h <<\_ACEOF
42314 #define wxUSE_STREAMS 1
42315 _ACEOF
42316
42317 fi
42318
42319 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42320   cat >>confdefs.h <<\_ACEOF
42321 #define wxUSE_PRINTF_POS_PARAMS 1
42322 _ACEOF
42323
42324 fi
42325
42326
42327
42328 if test "$wxUSE_DATETIME" = "yes"; then
42329
42330 for ac_func in strptime
42331 do
42332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42333 echo "$as_me:$LINENO: checking for $ac_func" >&5
42334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42335 if eval "test \"\${$as_ac_var+set}\" = set"; then
42336   echo $ECHO_N "(cached) $ECHO_C" >&6
42337 else
42338   cat >conftest.$ac_ext <<_ACEOF
42339 /* confdefs.h.  */
42340 _ACEOF
42341 cat confdefs.h >>conftest.$ac_ext
42342 cat >>conftest.$ac_ext <<_ACEOF
42343 /* end confdefs.h.  */
42344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42346 #define $ac_func innocuous_$ac_func
42347
42348 /* System header to define __stub macros and hopefully few prototypes,
42349     which can conflict with char $ac_func (); below.
42350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42351     <limits.h> exists even on freestanding compilers.  */
42352
42353 #ifdef __STDC__
42354 # include <limits.h>
42355 #else
42356 # include <assert.h>
42357 #endif
42358
42359 #undef $ac_func
42360
42361 /* Override any gcc2 internal prototype to avoid an error.  */
42362 #ifdef __cplusplus
42363 extern "C"
42364 {
42365 #endif
42366 /* We use char because int might match the return type of a gcc2
42367    builtin and then its argument prototype would still apply.  */
42368 char $ac_func ();
42369 /* The GNU C library defines this for functions which it implements
42370     to always fail with ENOSYS.  Some functions are actually named
42371     something starting with __ and the normal name is an alias.  */
42372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42373 choke me
42374 #else
42375 char (*f) () = $ac_func;
42376 #endif
42377 #ifdef __cplusplus
42378 }
42379 #endif
42380
42381 int
42382 main ()
42383 {
42384 return f != $ac_func;
42385   ;
42386   return 0;
42387 }
42388 _ACEOF
42389 rm -f conftest.$ac_objext conftest$ac_exeext
42390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42391   (eval $ac_link) 2>conftest.er1
42392   ac_status=$?
42393   grep -v '^ *+' conftest.er1 >conftest.err
42394   rm -f conftest.er1
42395   cat conftest.err >&5
42396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397   (exit $ac_status); } &&
42398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42400   (eval $ac_try) 2>&5
42401   ac_status=$?
42402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403   (exit $ac_status); }; } &&
42404          { ac_try='test -s conftest$ac_exeext'
42405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42406   (eval $ac_try) 2>&5
42407   ac_status=$?
42408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409   (exit $ac_status); }; }; then
42410   eval "$as_ac_var=yes"
42411 else
42412   echo "$as_me: failed program was:" >&5
42413 sed 's/^/| /' conftest.$ac_ext >&5
42414
42415 eval "$as_ac_var=no"
42416 fi
42417 rm -f conftest.err conftest.$ac_objext \
42418       conftest$ac_exeext conftest.$ac_ext
42419 fi
42420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42422 if test `eval echo '${'$as_ac_var'}'` = yes; then
42423   cat >>confdefs.h <<_ACEOF
42424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42425 _ACEOF
42426
42427 fi
42428 done
42429
42430     if test "$ac_cv_func_strptime" = "yes"; then
42431         echo "$as_me:$LINENO: checking for strptime declaration" >&5
42432 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42433 if test "${wx_cv_func_strptime_decl+set}" = set; then
42434   echo $ECHO_N "(cached) $ECHO_C" >&6
42435 else
42436
42437                 cat >conftest.$ac_ext <<_ACEOF
42438 /* confdefs.h.  */
42439 _ACEOF
42440 cat confdefs.h >>conftest.$ac_ext
42441 cat >>conftest.$ac_ext <<_ACEOF
42442 /* end confdefs.h.  */
42443
42444                         #include <time.h>
42445
42446 int
42447 main ()
42448 {
42449
42450                         struct tm t;
42451                         strptime("foo", "bar", &t);
42452
42453   ;
42454   return 0;
42455 }
42456 _ACEOF
42457 rm -f conftest.$ac_objext
42458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42459   (eval $ac_compile) 2>conftest.er1
42460   ac_status=$?
42461   grep -v '^ *+' conftest.er1 >conftest.err
42462   rm -f conftest.er1
42463   cat conftest.err >&5
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); } &&
42466          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468   (eval $ac_try) 2>&5
42469   ac_status=$?
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); }; } &&
42472          { ac_try='test -s conftest.$ac_objext'
42473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474   (eval $ac_try) 2>&5
42475   ac_status=$?
42476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477   (exit $ac_status); }; }; then
42478   wx_cv_func_strptime_decl=yes
42479 else
42480   echo "$as_me: failed program was:" >&5
42481 sed 's/^/| /' conftest.$ac_ext >&5
42482
42483 wx_cv_func_strptime_decl=no
42484
42485 fi
42486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42487
42488
42489 fi
42490 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42491 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42492     fi
42493     if test "$wx_cv_func_strptime_decl" = "yes"; then
42494         cat >>confdefs.h <<\_ACEOF
42495 #define HAVE_STRPTIME_DECL 1
42496 _ACEOF
42497
42498     fi
42499
42500             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42501 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42502 if test "${wx_cv_var_timezone+set}" = set; then
42503   echo $ECHO_N "(cached) $ECHO_C" >&6
42504 else
42505
42506                         cat >conftest.$ac_ext <<_ACEOF
42507 /* confdefs.h.  */
42508 _ACEOF
42509 cat confdefs.h >>conftest.$ac_ext
42510 cat >>conftest.$ac_ext <<_ACEOF
42511 /* end confdefs.h.  */
42512
42513                                 #include <time.h>
42514
42515 int
42516 main ()
42517 {
42518
42519                                 int tz;
42520                                 tz = timezone;
42521
42522   ;
42523   return 0;
42524 }
42525 _ACEOF
42526 rm -f conftest.$ac_objext
42527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42528   (eval $ac_compile) 2>conftest.er1
42529   ac_status=$?
42530   grep -v '^ *+' conftest.er1 >conftest.err
42531   rm -f conftest.er1
42532   cat conftest.err >&5
42533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42534   (exit $ac_status); } &&
42535          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42537   (eval $ac_try) 2>&5
42538   ac_status=$?
42539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42540   (exit $ac_status); }; } &&
42541          { ac_try='test -s conftest.$ac_objext'
42542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42543   (eval $ac_try) 2>&5
42544   ac_status=$?
42545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42546   (exit $ac_status); }; }; then
42547
42548                                 wx_cv_var_timezone=timezone
42549
42550 else
42551   echo "$as_me: failed program was:" >&5
42552 sed 's/^/| /' conftest.$ac_ext >&5
42553
42554
42555                                 cat >conftest.$ac_ext <<_ACEOF
42556 /* confdefs.h.  */
42557 _ACEOF
42558 cat confdefs.h >>conftest.$ac_ext
42559 cat >>conftest.$ac_ext <<_ACEOF
42560 /* end confdefs.h.  */
42561
42562                                         #include <time.h>
42563
42564 int
42565 main ()
42566 {
42567
42568                                         int tz;
42569                                         tz = _timezone;
42570
42571   ;
42572   return 0;
42573 }
42574 _ACEOF
42575 rm -f conftest.$ac_objext
42576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42577   (eval $ac_compile) 2>conftest.er1
42578   ac_status=$?
42579   grep -v '^ *+' conftest.er1 >conftest.err
42580   rm -f conftest.er1
42581   cat conftest.err >&5
42582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583   (exit $ac_status); } &&
42584          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586   (eval $ac_try) 2>&5
42587   ac_status=$?
42588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589   (exit $ac_status); }; } &&
42590          { ac_try='test -s conftest.$ac_objext'
42591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42592   (eval $ac_try) 2>&5
42593   ac_status=$?
42594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595   (exit $ac_status); }; }; then
42596
42597                                         wx_cv_var_timezone=_timezone
42598
42599 else
42600   echo "$as_me: failed program was:" >&5
42601 sed 's/^/| /' conftest.$ac_ext >&5
42602
42603
42604                                         cat >conftest.$ac_ext <<_ACEOF
42605 /* confdefs.h.  */
42606 _ACEOF
42607 cat confdefs.h >>conftest.$ac_ext
42608 cat >>conftest.$ac_ext <<_ACEOF
42609 /* end confdefs.h.  */
42610
42611                                                 #include <time.h>
42612
42613 int
42614 main ()
42615 {
42616
42617                                                 int tz;
42618                                                 tz = __timezone;
42619
42620   ;
42621   return 0;
42622 }
42623 _ACEOF
42624 rm -f conftest.$ac_objext
42625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42626   (eval $ac_compile) 2>conftest.er1
42627   ac_status=$?
42628   grep -v '^ *+' conftest.er1 >conftest.err
42629   rm -f conftest.er1
42630   cat conftest.err >&5
42631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42632   (exit $ac_status); } &&
42633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42635   (eval $ac_try) 2>&5
42636   ac_status=$?
42637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638   (exit $ac_status); }; } &&
42639          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
42645
42646                                                 wx_cv_var_timezone=__timezone
42647
42648 else
42649   echo "$as_me: failed program was:" >&5
42650 sed 's/^/| /' conftest.$ac_ext >&5
42651
42652
42653                                                 if test "$USE_DOS" = 0 ; then
42654                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42655 echo "$as_me: WARNING: no timezone variable" >&2;}
42656                                                 fi
42657
42658
42659 fi
42660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42661
42662
42663 fi
42664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42665
42666
42667 fi
42668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42669
42670
42671 fi
42672 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42673 echo "${ECHO_T}$wx_cv_var_timezone" >&6
42674
42675         if test "x$wx_cv_var_timezone" != x ; then
42676         cat >>confdefs.h <<_ACEOF
42677 #define WX_TIMEZONE $wx_cv_var_timezone
42678 _ACEOF
42679
42680     fi
42681
42682
42683 for ac_func in localtime
42684 do
42685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42686 echo "$as_me:$LINENO: checking for $ac_func" >&5
42687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42688 if eval "test \"\${$as_ac_var+set}\" = set"; then
42689   echo $ECHO_N "(cached) $ECHO_C" >&6
42690 else
42691   cat >conftest.$ac_ext <<_ACEOF
42692 /* confdefs.h.  */
42693 _ACEOF
42694 cat confdefs.h >>conftest.$ac_ext
42695 cat >>conftest.$ac_ext <<_ACEOF
42696 /* end confdefs.h.  */
42697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42699 #define $ac_func innocuous_$ac_func
42700
42701 /* System header to define __stub macros and hopefully few prototypes,
42702     which can conflict with char $ac_func (); below.
42703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42704     <limits.h> exists even on freestanding compilers.  */
42705
42706 #ifdef __STDC__
42707 # include <limits.h>
42708 #else
42709 # include <assert.h>
42710 #endif
42711
42712 #undef $ac_func
42713
42714 /* Override any gcc2 internal prototype to avoid an error.  */
42715 #ifdef __cplusplus
42716 extern "C"
42717 {
42718 #endif
42719 /* We use char because int might match the return type of a gcc2
42720    builtin and then its argument prototype would still apply.  */
42721 char $ac_func ();
42722 /* The GNU C library defines this for functions which it implements
42723     to always fail with ENOSYS.  Some functions are actually named
42724     something starting with __ and the normal name is an alias.  */
42725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42726 choke me
42727 #else
42728 char (*f) () = $ac_func;
42729 #endif
42730 #ifdef __cplusplus
42731 }
42732 #endif
42733
42734 int
42735 main ()
42736 {
42737 return f != $ac_func;
42738   ;
42739   return 0;
42740 }
42741 _ACEOF
42742 rm -f conftest.$ac_objext conftest$ac_exeext
42743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42744   (eval $ac_link) 2>conftest.er1
42745   ac_status=$?
42746   grep -v '^ *+' conftest.er1 >conftest.err
42747   rm -f conftest.er1
42748   cat conftest.err >&5
42749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750   (exit $ac_status); } &&
42751          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42753   (eval $ac_try) 2>&5
42754   ac_status=$?
42755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756   (exit $ac_status); }; } &&
42757          { ac_try='test -s conftest$ac_exeext'
42758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42759   (eval $ac_try) 2>&5
42760   ac_status=$?
42761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42762   (exit $ac_status); }; }; then
42763   eval "$as_ac_var=yes"
42764 else
42765   echo "$as_me: failed program was:" >&5
42766 sed 's/^/| /' conftest.$ac_ext >&5
42767
42768 eval "$as_ac_var=no"
42769 fi
42770 rm -f conftest.err conftest.$ac_objext \
42771       conftest$ac_exeext conftest.$ac_ext
42772 fi
42773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42775 if test `eval echo '${'$as_ac_var'}'` = yes; then
42776   cat >>confdefs.h <<_ACEOF
42777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42778 _ACEOF
42779
42780 fi
42781 done
42782
42783
42784     if test "$ac_cv_func_localtime" = "yes"; then
42785         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42786 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42787 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42788   echo $ECHO_N "(cached) $ECHO_C" >&6
42789 else
42790
42791             cat >conftest.$ac_ext <<_ACEOF
42792 /* confdefs.h.  */
42793 _ACEOF
42794 cat confdefs.h >>conftest.$ac_ext
42795 cat >>conftest.$ac_ext <<_ACEOF
42796 /* end confdefs.h.  */
42797
42798                     #include <time.h>
42799
42800 int
42801 main ()
42802 {
42803
42804                     struct tm tm;
42805                     tm.tm_gmtoff++;
42806
42807   ;
42808   return 0;
42809 }
42810 _ACEOF
42811 rm -f conftest.$ac_objext
42812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42813   (eval $ac_compile) 2>conftest.er1
42814   ac_status=$?
42815   grep -v '^ *+' conftest.er1 >conftest.err
42816   rm -f conftest.er1
42817   cat conftest.err >&5
42818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819   (exit $ac_status); } &&
42820          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42822   (eval $ac_try) 2>&5
42823   ac_status=$?
42824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42825   (exit $ac_status); }; } &&
42826          { ac_try='test -s conftest.$ac_objext'
42827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42828   (eval $ac_try) 2>&5
42829   ac_status=$?
42830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831   (exit $ac_status); }; }; then
42832
42833                     wx_cv_struct_tm_has_gmtoff=yes
42834
42835 else
42836   echo "$as_me: failed program was:" >&5
42837 sed 's/^/| /' conftest.$ac_ext >&5
42838
42839 wx_cv_struct_tm_has_gmtoff=no
42840
42841 fi
42842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42843
42844 fi
42845 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42846 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42847     fi
42848
42849     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42850         cat >>confdefs.h <<\_ACEOF
42851 #define WX_GMTOFF_IN_TM 1
42852 _ACEOF
42853
42854     fi
42855
42856
42857
42858 for ac_func in gettimeofday ftime
42859 do
42860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42861 echo "$as_me:$LINENO: checking for $ac_func" >&5
42862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42863 if eval "test \"\${$as_ac_var+set}\" = set"; then
42864   echo $ECHO_N "(cached) $ECHO_C" >&6
42865 else
42866   cat >conftest.$ac_ext <<_ACEOF
42867 /* confdefs.h.  */
42868 _ACEOF
42869 cat confdefs.h >>conftest.$ac_ext
42870 cat >>conftest.$ac_ext <<_ACEOF
42871 /* end confdefs.h.  */
42872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42874 #define $ac_func innocuous_$ac_func
42875
42876 /* System header to define __stub macros and hopefully few prototypes,
42877     which can conflict with char $ac_func (); below.
42878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42879     <limits.h> exists even on freestanding compilers.  */
42880
42881 #ifdef __STDC__
42882 # include <limits.h>
42883 #else
42884 # include <assert.h>
42885 #endif
42886
42887 #undef $ac_func
42888
42889 /* Override any gcc2 internal prototype to avoid an error.  */
42890 #ifdef __cplusplus
42891 extern "C"
42892 {
42893 #endif
42894 /* We use char because int might match the return type of a gcc2
42895    builtin and then its argument prototype would still apply.  */
42896 char $ac_func ();
42897 /* The GNU C library defines this for functions which it implements
42898     to always fail with ENOSYS.  Some functions are actually named
42899     something starting with __ and the normal name is an alias.  */
42900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42901 choke me
42902 #else
42903 char (*f) () = $ac_func;
42904 #endif
42905 #ifdef __cplusplus
42906 }
42907 #endif
42908
42909 int
42910 main ()
42911 {
42912 return f != $ac_func;
42913   ;
42914   return 0;
42915 }
42916 _ACEOF
42917 rm -f conftest.$ac_objext conftest$ac_exeext
42918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42919   (eval $ac_link) 2>conftest.er1
42920   ac_status=$?
42921   grep -v '^ *+' conftest.er1 >conftest.err
42922   rm -f conftest.er1
42923   cat conftest.err >&5
42924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925   (exit $ac_status); } &&
42926          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42928   (eval $ac_try) 2>&5
42929   ac_status=$?
42930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42931   (exit $ac_status); }; } &&
42932          { ac_try='test -s conftest$ac_exeext'
42933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42934   (eval $ac_try) 2>&5
42935   ac_status=$?
42936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42937   (exit $ac_status); }; }; then
42938   eval "$as_ac_var=yes"
42939 else
42940   echo "$as_me: failed program was:" >&5
42941 sed 's/^/| /' conftest.$ac_ext >&5
42942
42943 eval "$as_ac_var=no"
42944 fi
42945 rm -f conftest.err conftest.$ac_objext \
42946       conftest$ac_exeext conftest.$ac_ext
42947 fi
42948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42950 if test `eval echo '${'$as_ac_var'}'` = yes; then
42951   cat >>confdefs.h <<_ACEOF
42952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42953 _ACEOF
42954  break
42955 fi
42956 done
42957
42958
42959     if test "$ac_cv_func_gettimeofday" = "yes"; then
42960         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42961 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42962 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42963   echo $ECHO_N "(cached) $ECHO_C" >&6
42964 else
42965
42966                         cat >conftest.$ac_ext <<_ACEOF
42967 /* confdefs.h.  */
42968 _ACEOF
42969 cat confdefs.h >>conftest.$ac_ext
42970 cat >>conftest.$ac_ext <<_ACEOF
42971 /* end confdefs.h.  */
42972
42973                     #include <sys/time.h>
42974                     #include <unistd.h>
42975
42976 int
42977 main ()
42978 {
42979
42980                     struct timeval tv;
42981                     gettimeofday(&tv, NULL);
42982
42983   ;
42984   return 0;
42985 }
42986 _ACEOF
42987 rm -f conftest.$ac_objext
42988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42989   (eval $ac_compile) 2>conftest.er1
42990   ac_status=$?
42991   grep -v '^ *+' conftest.er1 >conftest.err
42992   rm -f conftest.er1
42993   cat conftest.err >&5
42994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42995   (exit $ac_status); } &&
42996          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42998   (eval $ac_try) 2>&5
42999   ac_status=$?
43000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43001   (exit $ac_status); }; } &&
43002          { ac_try='test -s conftest.$ac_objext'
43003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43004   (eval $ac_try) 2>&5
43005   ac_status=$?
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); }; }; then
43008   wx_cv_func_gettimeofday_has_2_args=yes
43009 else
43010   echo "$as_me: failed program was:" >&5
43011 sed 's/^/| /' conftest.$ac_ext >&5
43012
43013 cat >conftest.$ac_ext <<_ACEOF
43014 /* confdefs.h.  */
43015 _ACEOF
43016 cat confdefs.h >>conftest.$ac_ext
43017 cat >>conftest.$ac_ext <<_ACEOF
43018 /* end confdefs.h.  */
43019
43020                         #include <sys/time.h>
43021                         #include <unistd.h>
43022
43023 int
43024 main ()
43025 {
43026
43027                         struct timeval tv;
43028                         gettimeofday(&tv);
43029
43030   ;
43031   return 0;
43032 }
43033 _ACEOF
43034 rm -f conftest.$ac_objext
43035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43036   (eval $ac_compile) 2>conftest.er1
43037   ac_status=$?
43038   grep -v '^ *+' conftest.er1 >conftest.err
43039   rm -f conftest.er1
43040   cat conftest.err >&5
43041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43042   (exit $ac_status); } &&
43043          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43045   (eval $ac_try) 2>&5
43046   ac_status=$?
43047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048   (exit $ac_status); }; } &&
43049          { ac_try='test -s conftest.$ac_objext'
43050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43051   (eval $ac_try) 2>&5
43052   ac_status=$?
43053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054   (exit $ac_status); }; }; then
43055   wx_cv_func_gettimeofday_has_2_args=no
43056 else
43057   echo "$as_me: failed program was:" >&5
43058 sed 's/^/| /' conftest.$ac_ext >&5
43059
43060
43061                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43062 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43063                         wx_cv_func_gettimeofday_has_2_args=unknown
43064
43065
43066 fi
43067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43068
43069 fi
43070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43071
43072 fi
43073 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43074 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43075
43076         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43077             cat >>confdefs.h <<\_ACEOF
43078 #define WX_GETTIMEOFDAY_NO_TZ 1
43079 _ACEOF
43080
43081         fi
43082     fi
43083
43084     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43085 fi
43086
43087
43088 if test "$wxUSE_SOCKETS" = "yes"; then
43089     if test "$wxUSE_MGL" = "1"; then
43090         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43091 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43092         wxUSE_SOCKETS="no"
43093     fi
43094 fi
43095
43096 if test "$wxUSE_SOCKETS" = "yes"; then
43097         if test "$TOOLKIT" != "MSW"; then
43098                 echo "$as_me:$LINENO: checking for socket" >&5
43099 echo $ECHO_N "checking for socket... $ECHO_C" >&6
43100 if test "${ac_cv_func_socket+set}" = set; then
43101   echo $ECHO_N "(cached) $ECHO_C" >&6
43102 else
43103   cat >conftest.$ac_ext <<_ACEOF
43104 /* confdefs.h.  */
43105 _ACEOF
43106 cat confdefs.h >>conftest.$ac_ext
43107 cat >>conftest.$ac_ext <<_ACEOF
43108 /* end confdefs.h.  */
43109 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
43110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43111 #define socket innocuous_socket
43112
43113 /* System header to define __stub macros and hopefully few prototypes,
43114     which can conflict with char socket (); below.
43115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43116     <limits.h> exists even on freestanding compilers.  */
43117
43118 #ifdef __STDC__
43119 # include <limits.h>
43120 #else
43121 # include <assert.h>
43122 #endif
43123
43124 #undef socket
43125
43126 /* Override any gcc2 internal prototype to avoid an error.  */
43127 #ifdef __cplusplus
43128 extern "C"
43129 {
43130 #endif
43131 /* We use char because int might match the return type of a gcc2
43132    builtin and then its argument prototype would still apply.  */
43133 char socket ();
43134 /* The GNU C library defines this for functions which it implements
43135     to always fail with ENOSYS.  Some functions are actually named
43136     something starting with __ and the normal name is an alias.  */
43137 #if defined (__stub_socket) || defined (__stub___socket)
43138 choke me
43139 #else
43140 char (*f) () = socket;
43141 #endif
43142 #ifdef __cplusplus
43143 }
43144 #endif
43145
43146 int
43147 main ()
43148 {
43149 return f != socket;
43150   ;
43151   return 0;
43152 }
43153 _ACEOF
43154 rm -f conftest.$ac_objext conftest$ac_exeext
43155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43156   (eval $ac_link) 2>conftest.er1
43157   ac_status=$?
43158   grep -v '^ *+' conftest.er1 >conftest.err
43159   rm -f conftest.er1
43160   cat conftest.err >&5
43161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43162   (exit $ac_status); } &&
43163          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43165   (eval $ac_try) 2>&5
43166   ac_status=$?
43167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168   (exit $ac_status); }; } &&
43169          { ac_try='test -s conftest$ac_exeext'
43170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43171   (eval $ac_try) 2>&5
43172   ac_status=$?
43173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174   (exit $ac_status); }; }; then
43175   ac_cv_func_socket=yes
43176 else
43177   echo "$as_me: failed program was:" >&5
43178 sed 's/^/| /' conftest.$ac_ext >&5
43179
43180 ac_cv_func_socket=no
43181 fi
43182 rm -f conftest.err conftest.$ac_objext \
43183       conftest$ac_exeext conftest.$ac_ext
43184 fi
43185 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43186 echo "${ECHO_T}$ac_cv_func_socket" >&6
43187 if test $ac_cv_func_socket = yes; then
43188   :
43189 else
43190
43191                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43192 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43193 if test "${ac_cv_lib_socket_socket+set}" = set; then
43194   echo $ECHO_N "(cached) $ECHO_C" >&6
43195 else
43196   ac_check_lib_save_LIBS=$LIBS
43197 LIBS="-lsocket  $LIBS"
43198 cat >conftest.$ac_ext <<_ACEOF
43199 /* confdefs.h.  */
43200 _ACEOF
43201 cat confdefs.h >>conftest.$ac_ext
43202 cat >>conftest.$ac_ext <<_ACEOF
43203 /* end confdefs.h.  */
43204
43205 /* Override any gcc2 internal prototype to avoid an error.  */
43206 #ifdef __cplusplus
43207 extern "C"
43208 #endif
43209 /* We use char because int might match the return type of a gcc2
43210    builtin and then its argument prototype would still apply.  */
43211 char socket ();
43212 int
43213 main ()
43214 {
43215 socket ();
43216   ;
43217   return 0;
43218 }
43219 _ACEOF
43220 rm -f conftest.$ac_objext conftest$ac_exeext
43221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43222   (eval $ac_link) 2>conftest.er1
43223   ac_status=$?
43224   grep -v '^ *+' conftest.er1 >conftest.err
43225   rm -f conftest.er1
43226   cat conftest.err >&5
43227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43228   (exit $ac_status); } &&
43229          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43231   (eval $ac_try) 2>&5
43232   ac_status=$?
43233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234   (exit $ac_status); }; } &&
43235          { ac_try='test -s conftest$ac_exeext'
43236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43237   (eval $ac_try) 2>&5
43238   ac_status=$?
43239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240   (exit $ac_status); }; }; then
43241   ac_cv_lib_socket_socket=yes
43242 else
43243   echo "$as_me: failed program was:" >&5
43244 sed 's/^/| /' conftest.$ac_ext >&5
43245
43246 ac_cv_lib_socket_socket=no
43247 fi
43248 rm -f conftest.err conftest.$ac_objext \
43249       conftest$ac_exeext conftest.$ac_ext
43250 LIBS=$ac_check_lib_save_LIBS
43251 fi
43252 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43253 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43254 if test $ac_cv_lib_socket_socket = yes; then
43255   if test "$INET_LINK" != " -lsocket"; then
43256                         INET_LINK="$INET_LINK -lsocket"
43257                     fi
43258 else
43259
43260                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43261 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43262                         wxUSE_SOCKETS=no
43263
43264
43265 fi
43266
43267
43268
43269 fi
43270
43271     fi
43272 fi
43273
43274 if test "$wxUSE_SOCKETS" = "yes" ; then
43275                 if test "$TOOLKIT" != "MSW"; then
43276                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
43277 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43278 if test "${wx_cv_type_getsockname3+set}" = set; then
43279   echo $ECHO_N "(cached) $ECHO_C" >&6
43280 else
43281
43282                 cat >conftest.$ac_ext <<_ACEOF
43283 /* confdefs.h.  */
43284 _ACEOF
43285 cat confdefs.h >>conftest.$ac_ext
43286 cat >>conftest.$ac_ext <<_ACEOF
43287 /* end confdefs.h.  */
43288
43289                         #include <sys/types.h>
43290                         #include <sys/socket.h>
43291
43292 int
43293 main ()
43294 {
43295
43296                         socklen_t len;
43297                         getsockname(0, 0, &len);
43298
43299   ;
43300   return 0;
43301 }
43302 _ACEOF
43303 rm -f conftest.$ac_objext
43304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43305   (eval $ac_compile) 2>conftest.er1
43306   ac_status=$?
43307   grep -v '^ *+' conftest.er1 >conftest.err
43308   rm -f conftest.er1
43309   cat conftest.err >&5
43310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43311   (exit $ac_status); } &&
43312          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43314   (eval $ac_try) 2>&5
43315   ac_status=$?
43316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43317   (exit $ac_status); }; } &&
43318          { ac_try='test -s conftest.$ac_objext'
43319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43320   (eval $ac_try) 2>&5
43321   ac_status=$?
43322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323   (exit $ac_status); }; }; then
43324   wx_cv_type_getsockname3=socklen_t
43325 else
43326   echo "$as_me: failed program was:" >&5
43327 sed 's/^/| /' conftest.$ac_ext >&5
43328
43329
43330                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43331                         if test "$GCC" = yes ; then
43332                             CXXFLAGS="-Werror $CXXFLAGS"
43333                         fi
43334
43335                         cat >conftest.$ac_ext <<_ACEOF
43336 /* confdefs.h.  */
43337 _ACEOF
43338 cat confdefs.h >>conftest.$ac_ext
43339 cat >>conftest.$ac_ext <<_ACEOF
43340 /* end confdefs.h.  */
43341
43342                                 #include <sys/types.h>
43343                                 #include <sys/socket.h>
43344
43345 int
43346 main ()
43347 {
43348
43349                                 size_t len;
43350                                 getsockname(0, 0, &len);
43351
43352   ;
43353   return 0;
43354 }
43355 _ACEOF
43356 rm -f conftest.$ac_objext
43357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43358   (eval $ac_compile) 2>conftest.er1
43359   ac_status=$?
43360   grep -v '^ *+' conftest.er1 >conftest.err
43361   rm -f conftest.er1
43362   cat conftest.err >&5
43363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43364   (exit $ac_status); } &&
43365          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43367   (eval $ac_try) 2>&5
43368   ac_status=$?
43369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370   (exit $ac_status); }; } &&
43371          { ac_try='test -s conftest.$ac_objext'
43372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43373   (eval $ac_try) 2>&5
43374   ac_status=$?
43375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376   (exit $ac_status); }; }; then
43377   wx_cv_type_getsockname3=size_t
43378 else
43379   echo "$as_me: failed program was:" >&5
43380 sed 's/^/| /' conftest.$ac_ext >&5
43381
43382 cat >conftest.$ac_ext <<_ACEOF
43383 /* confdefs.h.  */
43384 _ACEOF
43385 cat confdefs.h >>conftest.$ac_ext
43386 cat >>conftest.$ac_ext <<_ACEOF
43387 /* end confdefs.h.  */
43388
43389                                     #include <sys/types.h>
43390                                     #include <sys/socket.h>
43391
43392 int
43393 main ()
43394 {
43395
43396                                     int len;
43397                                     getsockname(0, 0, &len);
43398
43399   ;
43400   return 0;
43401 }
43402 _ACEOF
43403 rm -f conftest.$ac_objext
43404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43405   (eval $ac_compile) 2>conftest.er1
43406   ac_status=$?
43407   grep -v '^ *+' conftest.er1 >conftest.err
43408   rm -f conftest.er1
43409   cat conftest.err >&5
43410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411   (exit $ac_status); } &&
43412          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414   (eval $ac_try) 2>&5
43415   ac_status=$?
43416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417   (exit $ac_status); }; } &&
43418          { ac_try='test -s conftest.$ac_objext'
43419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43420   (eval $ac_try) 2>&5
43421   ac_status=$?
43422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423   (exit $ac_status); }; }; then
43424   wx_cv_type_getsockname3=int
43425 else
43426   echo "$as_me: failed program was:" >&5
43427 sed 's/^/| /' conftest.$ac_ext >&5
43428
43429 wx_cv_type_getsockname3=unknown
43430
43431 fi
43432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43433
43434 fi
43435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43436
43437                         CXXFLAGS="$CXXFLAGS_OLD"
43438
43439
43440 fi
43441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43442
43443 fi
43444 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43445 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43446
43447         if test "$wx_cv_type_getsockname3" = "unknown"; then
43448             wxUSE_SOCKETS=no
43449             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43450 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43451         else
43452             cat >>confdefs.h <<_ACEOF
43453 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
43454 _ACEOF
43455
43456         fi
43457                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43458 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43459 if test "${wx_cv_type_getsockopt5+set}" = set; then
43460   echo $ECHO_N "(cached) $ECHO_C" >&6
43461 else
43462
43463                 cat >conftest.$ac_ext <<_ACEOF
43464 /* confdefs.h.  */
43465 _ACEOF
43466 cat confdefs.h >>conftest.$ac_ext
43467 cat >>conftest.$ac_ext <<_ACEOF
43468 /* end confdefs.h.  */
43469
43470                         #include <sys/types.h>
43471                         #include <sys/socket.h>
43472
43473 int
43474 main ()
43475 {
43476
43477                         socklen_t len;
43478                         getsockopt(0, 0, 0, 0, &len);
43479
43480   ;
43481   return 0;
43482 }
43483 _ACEOF
43484 rm -f conftest.$ac_objext
43485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43486   (eval $ac_compile) 2>conftest.er1
43487   ac_status=$?
43488   grep -v '^ *+' conftest.er1 >conftest.err
43489   rm -f conftest.er1
43490   cat conftest.err >&5
43491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43492   (exit $ac_status); } &&
43493          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43495   (eval $ac_try) 2>&5
43496   ac_status=$?
43497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43498   (exit $ac_status); }; } &&
43499          { ac_try='test -s conftest.$ac_objext'
43500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43501   (eval $ac_try) 2>&5
43502   ac_status=$?
43503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504   (exit $ac_status); }; }; then
43505   wx_cv_type_getsockopt5=socklen_t
43506 else
43507   echo "$as_me: failed program was:" >&5
43508 sed 's/^/| /' conftest.$ac_ext >&5
43509
43510
43511                                                                                                                                                                         CXXFLAGS_OLD="$CXXFLAGS"
43512                         if test "$GCC" = yes ; then
43513                             CXXFLAGS="-Werror $CXXFLAGS"
43514                         fi
43515
43516                         cat >conftest.$ac_ext <<_ACEOF
43517 /* confdefs.h.  */
43518 _ACEOF
43519 cat confdefs.h >>conftest.$ac_ext
43520 cat >>conftest.$ac_ext <<_ACEOF
43521 /* end confdefs.h.  */
43522
43523                                 #include <sys/types.h>
43524                                 #include <sys/socket.h>
43525
43526 int
43527 main ()
43528 {
43529
43530                                 size_t len;
43531                                 getsockopt(0, 0, 0, 0, &len);
43532
43533   ;
43534   return 0;
43535 }
43536 _ACEOF
43537 rm -f conftest.$ac_objext
43538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43539   (eval $ac_compile) 2>conftest.er1
43540   ac_status=$?
43541   grep -v '^ *+' conftest.er1 >conftest.err
43542   rm -f conftest.er1
43543   cat conftest.err >&5
43544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545   (exit $ac_status); } &&
43546          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548   (eval $ac_try) 2>&5
43549   ac_status=$?
43550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551   (exit $ac_status); }; } &&
43552          { ac_try='test -s conftest.$ac_objext'
43553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554   (eval $ac_try) 2>&5
43555   ac_status=$?
43556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557   (exit $ac_status); }; }; then
43558   wx_cv_type_getsockopt5=size_t
43559 else
43560   echo "$as_me: failed program was:" >&5
43561 sed 's/^/| /' conftest.$ac_ext >&5
43562
43563 cat >conftest.$ac_ext <<_ACEOF
43564 /* confdefs.h.  */
43565 _ACEOF
43566 cat confdefs.h >>conftest.$ac_ext
43567 cat >>conftest.$ac_ext <<_ACEOF
43568 /* end confdefs.h.  */
43569
43570                                     #include <sys/types.h>
43571                                     #include <sys/socket.h>
43572
43573 int
43574 main ()
43575 {
43576
43577                                     int len;
43578                                     getsockopt(0, 0, 0, 0, &len);
43579
43580   ;
43581   return 0;
43582 }
43583 _ACEOF
43584 rm -f conftest.$ac_objext
43585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43586   (eval $ac_compile) 2>conftest.er1
43587   ac_status=$?
43588   grep -v '^ *+' conftest.er1 >conftest.err
43589   rm -f conftest.er1
43590   cat conftest.err >&5
43591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43592   (exit $ac_status); } &&
43593          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43595   (eval $ac_try) 2>&5
43596   ac_status=$?
43597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598   (exit $ac_status); }; } &&
43599          { ac_try='test -s conftest.$ac_objext'
43600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43601   (eval $ac_try) 2>&5
43602   ac_status=$?
43603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43604   (exit $ac_status); }; }; then
43605   wx_cv_type_getsockopt5=int
43606 else
43607   echo "$as_me: failed program was:" >&5
43608 sed 's/^/| /' conftest.$ac_ext >&5
43609
43610 wx_cv_type_getsockopt5=unknown
43611
43612 fi
43613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43614
43615 fi
43616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43617
43618                         CXXFLAGS="$CXXFLAGS_OLD"
43619
43620
43621 fi
43622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43623
43624 fi
43625 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43626 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43627
43628         if test "$wx_cv_type_getsockopt5" = "unknown"; then
43629             wxUSE_SOCKETS=no
43630             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43631 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43632         else
43633             cat >>confdefs.h <<_ACEOF
43634 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
43635 _ACEOF
43636
43637         fi
43638     fi
43639 fi
43640
43641 if test "$wxUSE_SOCKETS" = "yes" ; then
43642     cat >>confdefs.h <<\_ACEOF
43643 #define wxUSE_SOCKETS 1
43644 _ACEOF
43645
43646     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43647 fi
43648
43649 if test "$wxUSE_PROTOCOL" = "yes"; then
43650     if test "$wxUSE_SOCKETS" != "yes"; then
43651         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43652 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43653         wxUSE_PROTOCOL=no
43654     fi
43655 fi
43656
43657 if test "$wxUSE_PROTOCOL" = "yes"; then
43658     cat >>confdefs.h <<\_ACEOF
43659 #define wxUSE_PROTOCOL 1
43660 _ACEOF
43661
43662
43663     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43664         cat >>confdefs.h <<\_ACEOF
43665 #define wxUSE_PROTOCOL_HTTP 1
43666 _ACEOF
43667
43668     fi
43669     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43670         cat >>confdefs.h <<\_ACEOF
43671 #define wxUSE_PROTOCOL_FTP 1
43672 _ACEOF
43673
43674     fi
43675     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43676         cat >>confdefs.h <<\_ACEOF
43677 #define wxUSE_PROTOCOL_FILE 1
43678 _ACEOF
43679
43680     fi
43681 else
43682     if test "$wxUSE_FS_INET" = "yes"; then
43683         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43684 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43685         wxUSE_FS_INET="no"
43686     fi
43687 fi
43688
43689 if test "$wxUSE_URL" = "yes"; then
43690     if test "$wxUSE_PROTOCOL" != "yes"; then
43691         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43692 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43693         wxUSE_URL=no
43694     fi
43695     if test "$wxUSE_URL" = "yes"; then
43696         cat >>confdefs.h <<\_ACEOF
43697 #define wxUSE_URL 1
43698 _ACEOF
43699
43700     fi
43701 fi
43702
43703 if test "$wxUSE_FS_INET" = "yes"; then
43704   cat >>confdefs.h <<\_ACEOF
43705 #define wxUSE_FS_INET 1
43706 _ACEOF
43707
43708 fi
43709
43710
43711 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43712     wxUSE_JOYSTICK=no
43713
43714         if test "$TOOLKIT" = "MSW"; then
43715         wxUSE_JOYSTICK=yes
43716
43717         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43718         if test "$USE_DARWIN" = 1; then
43719                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43720 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
43721             cat >conftest.$ac_ext <<_ACEOF
43722 /* confdefs.h.  */
43723 _ACEOF
43724 cat confdefs.h >>conftest.$ac_ext
43725 cat >>conftest.$ac_ext <<_ACEOF
43726 /* end confdefs.h.  */
43727  #include <IOKit/hid/IOHIDLib.h>
43728 int
43729 main ()
43730 {
43731  IOHIDQueueInterface *qi = NULL;
43732                               IOHIDCallbackFunction cb = NULL;
43733                               qi->setEventCallout(NULL, cb, NULL, NULL);
43734   ;
43735   return 0;
43736 }
43737 _ACEOF
43738 rm -f conftest.$ac_objext
43739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43740   (eval $ac_compile) 2>conftest.er1
43741   ac_status=$?
43742   grep -v '^ *+' conftest.er1 >conftest.err
43743   rm -f conftest.er1
43744   cat conftest.err >&5
43745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43746   (exit $ac_status); } &&
43747          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43749   (eval $ac_try) 2>&5
43750   ac_status=$?
43751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43752   (exit $ac_status); }; } &&
43753          { ac_try='test -s conftest.$ac_objext'
43754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43755   (eval $ac_try) 2>&5
43756   ac_status=$?
43757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758   (exit $ac_status); }; }; then
43759    wxUSE_JOYSTICK=yes
43760
43761 else
43762   echo "$as_me: failed program was:" >&5
43763 sed 's/^/| /' conftest.$ac_ext >&5
43764
43765 fi
43766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43767             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43768 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43769         fi
43770
43771         else
43772
43773 for ac_header in linux/joystick.h
43774 do
43775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43777   echo "$as_me:$LINENO: checking for $ac_header" >&5
43778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43780   echo $ECHO_N "(cached) $ECHO_C" >&6
43781 fi
43782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43784 else
43785   # Is the header compilable?
43786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43788 cat >conftest.$ac_ext <<_ACEOF
43789 /* confdefs.h.  */
43790 _ACEOF
43791 cat confdefs.h >>conftest.$ac_ext
43792 cat >>conftest.$ac_ext <<_ACEOF
43793 /* end confdefs.h.  */
43794 $ac_includes_default
43795 #include <$ac_header>
43796 _ACEOF
43797 rm -f conftest.$ac_objext
43798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43799   (eval $ac_compile) 2>conftest.er1
43800   ac_status=$?
43801   grep -v '^ *+' conftest.er1 >conftest.err
43802   rm -f conftest.er1
43803   cat conftest.err >&5
43804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43805   (exit $ac_status); } &&
43806          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43808   (eval $ac_try) 2>&5
43809   ac_status=$?
43810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43811   (exit $ac_status); }; } &&
43812          { ac_try='test -s conftest.$ac_objext'
43813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43814   (eval $ac_try) 2>&5
43815   ac_status=$?
43816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43817   (exit $ac_status); }; }; then
43818   ac_header_compiler=yes
43819 else
43820   echo "$as_me: failed program was:" >&5
43821 sed 's/^/| /' conftest.$ac_ext >&5
43822
43823 ac_header_compiler=no
43824 fi
43825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43827 echo "${ECHO_T}$ac_header_compiler" >&6
43828
43829 # Is the header present?
43830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43832 cat >conftest.$ac_ext <<_ACEOF
43833 /* confdefs.h.  */
43834 _ACEOF
43835 cat confdefs.h >>conftest.$ac_ext
43836 cat >>conftest.$ac_ext <<_ACEOF
43837 /* end confdefs.h.  */
43838 #include <$ac_header>
43839 _ACEOF
43840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43842   ac_status=$?
43843   grep -v '^ *+' conftest.er1 >conftest.err
43844   rm -f conftest.er1
43845   cat conftest.err >&5
43846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847   (exit $ac_status); } >/dev/null; then
43848   if test -s conftest.err; then
43849     ac_cpp_err=$ac_cxx_preproc_warn_flag
43850     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43851   else
43852     ac_cpp_err=
43853   fi
43854 else
43855   ac_cpp_err=yes
43856 fi
43857 if test -z "$ac_cpp_err"; then
43858   ac_header_preproc=yes
43859 else
43860   echo "$as_me: failed program was:" >&5
43861 sed 's/^/| /' conftest.$ac_ext >&5
43862
43863   ac_header_preproc=no
43864 fi
43865 rm -f conftest.err conftest.$ac_ext
43866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43867 echo "${ECHO_T}$ac_header_preproc" >&6
43868
43869 # So?  What about this header?
43870 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43871   yes:no: )
43872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43876     ac_header_preproc=yes
43877     ;;
43878   no:yes:* )
43879     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43881     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43882 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43883     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43885     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43886 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43889     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43891     (
43892       cat <<\_ASBOX
43893 ## ----------------------------------------- ##
43894 ## Report this to wx-dev@lists.wxwidgets.org ##
43895 ## ----------------------------------------- ##
43896 _ASBOX
43897     ) |
43898       sed "s/^/$as_me: WARNING:     /" >&2
43899     ;;
43900 esac
43901 echo "$as_me:$LINENO: checking for $ac_header" >&5
43902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43904   echo $ECHO_N "(cached) $ECHO_C" >&6
43905 else
43906   eval "$as_ac_Header=\$ac_header_preproc"
43907 fi
43908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43910
43911 fi
43912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43913   cat >>confdefs.h <<_ACEOF
43914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43915 _ACEOF
43916  wxUSE_JOYSTICK=yes
43917 fi
43918
43919 done
43920
43921     fi
43922
43923     if test "$wxUSE_JOYSTICK" = "yes"; then
43924         cat >>confdefs.h <<\_ACEOF
43925 #define wxUSE_JOYSTICK 1
43926 _ACEOF
43927
43928         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43929     else
43930         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43931 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
43932     fi
43933 fi
43934
43935
43936
43937 if test "$wxUSE_FONTMAP" = "yes" ; then
43938   cat >>confdefs.h <<\_ACEOF
43939 #define wxUSE_FONTMAP 1
43940 _ACEOF
43941
43942 fi
43943
43944 if test "$wxUSE_UNICODE" = "yes" ; then
43945   cat >>confdefs.h <<\_ACEOF
43946 #define wxUSE_UNICODE 1
43947 _ACEOF
43948
43949
43950   if test "$USE_WIN32" != 1; then
43951       wxUSE_UNICODE_MSLU=no
43952   fi
43953
43954   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43955         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43956 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43957 if test "${ac_cv_lib_unicows_main+set}" = set; then
43958   echo $ECHO_N "(cached) $ECHO_C" >&6
43959 else
43960   ac_check_lib_save_LIBS=$LIBS
43961 LIBS="-lunicows  $LIBS"
43962 cat >conftest.$ac_ext <<_ACEOF
43963 /* confdefs.h.  */
43964 _ACEOF
43965 cat confdefs.h >>conftest.$ac_ext
43966 cat >>conftest.$ac_ext <<_ACEOF
43967 /* end confdefs.h.  */
43968
43969
43970 int
43971 main ()
43972 {
43973 main ();
43974   ;
43975   return 0;
43976 }
43977 _ACEOF
43978 rm -f conftest.$ac_objext conftest$ac_exeext
43979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43980   (eval $ac_link) 2>conftest.er1
43981   ac_status=$?
43982   grep -v '^ *+' conftest.er1 >conftest.err
43983   rm -f conftest.er1
43984   cat conftest.err >&5
43985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43986   (exit $ac_status); } &&
43987          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43989   (eval $ac_try) 2>&5
43990   ac_status=$?
43991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992   (exit $ac_status); }; } &&
43993          { ac_try='test -s conftest$ac_exeext'
43994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43995   (eval $ac_try) 2>&5
43996   ac_status=$?
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); }; }; then
43999   ac_cv_lib_unicows_main=yes
44000 else
44001   echo "$as_me: failed program was:" >&5
44002 sed 's/^/| /' conftest.$ac_ext >&5
44003
44004 ac_cv_lib_unicows_main=no
44005 fi
44006 rm -f conftest.err conftest.$ac_objext \
44007       conftest$ac_exeext conftest.$ac_ext
44008 LIBS=$ac_check_lib_save_LIBS
44009 fi
44010 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44011 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44012 if test $ac_cv_lib_unicows_main = yes; then
44013
44014                 cat >>confdefs.h <<\_ACEOF
44015 #define wxUSE_UNICODE_MSLU 1
44016 _ACEOF
44017
44018
44019 else
44020
44021                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44022                              Applications will only run on Windows NT/2000/XP!" >&5
44023 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44024                              Applications will only run on Windows NT/2000/XP!" >&2;}
44025                 wxUSE_UNICODE_MSLU=no
44026
44027 fi
44028
44029     fi
44030 fi
44031
44032 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44033   cat >>confdefs.h <<\_ACEOF
44034 #define wxUSE_EXPERIMENTAL_PRINTF 1
44035 _ACEOF
44036
44037 fi
44038
44039
44040 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44041   cat >>confdefs.h <<\_ACEOF
44042 #define wxUSE_POSTSCRIPT 1
44043 _ACEOF
44044
44045 fi
44046
44047 cat >>confdefs.h <<\_ACEOF
44048 #define wxUSE_AFM_FOR_POSTSCRIPT 1
44049 _ACEOF
44050
44051
44052 cat >>confdefs.h <<\_ACEOF
44053 #define wxUSE_NORMALIZED_PS_FONTS 1
44054 _ACEOF
44055
44056
44057
44058 if test "$wxUSE_CONSTRAINTS" = "yes"; then
44059     cat >>confdefs.h <<\_ACEOF
44060 #define wxUSE_CONSTRAINTS 1
44061 _ACEOF
44062
44063     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44064 fi
44065
44066 if test "$wxUSE_MDI" = "yes"; then
44067     cat >>confdefs.h <<\_ACEOF
44068 #define wxUSE_MDI 1
44069 _ACEOF
44070
44071
44072     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44073         cat >>confdefs.h <<\_ACEOF
44074 #define wxUSE_MDI_ARCHITECTURE 1
44075 _ACEOF
44076
44077         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44078     fi
44079 fi
44080
44081 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44082     cat >>confdefs.h <<\_ACEOF
44083 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
44084 _ACEOF
44085
44086     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44087     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44088         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44089     fi
44090 fi
44091
44092 if test "$wxUSE_HELP" = "yes"; then
44093     cat >>confdefs.h <<\_ACEOF
44094 #define wxUSE_HELP 1
44095 _ACEOF
44096
44097     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44098
44099     if test "$wxUSE_MSW" = 1; then
44100       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44101         cat >>confdefs.h <<\_ACEOF
44102 #define wxUSE_MS_HTML_HELP 1
44103 _ACEOF
44104
44105       fi
44106     fi
44107
44108     if test "$wxUSE_WXHTML_HELP" = "yes"; then
44109       if test "$wxUSE_HTML" = "yes"; then
44110         cat >>confdefs.h <<\_ACEOF
44111 #define wxUSE_WXHTML_HELP 1
44112 _ACEOF
44113
44114       else
44115         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44116 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44117         wxUSE_WXHTML_HELP=no
44118       fi
44119     fi
44120 fi
44121
44122 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44123     if test "$wxUSE_CONSTRAINTS" != "yes"; then
44124         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44125 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44126     else
44127         cat >>confdefs.h <<\_ACEOF
44128 #define wxUSE_PRINTING_ARCHITECTURE 1
44129 _ACEOF
44130
44131     fi
44132     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44133 fi
44134
44135 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
44136     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44137 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44138    { (exit 1); exit 1; }; }
44139 fi
44140
44141
44142 if test "$wxUSE_METAFILE" = "yes"; then
44143     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44144         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44145 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44146         wxUSE_METAFILE=no
44147     fi
44148 fi
44149
44150
44151 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
44152                           -o "$wxUSE_CLIPBOARD"     = "yes" \
44153                           -o "$wxUSE_OLE"     = "yes" \
44154                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44155
44156 for ac_header in ole2.h
44157 do
44158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44160   echo "$as_me:$LINENO: checking for $ac_header" >&5
44161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44163   echo $ECHO_N "(cached) $ECHO_C" >&6
44164 fi
44165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44167 else
44168   # Is the header compilable?
44169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44171 cat >conftest.$ac_ext <<_ACEOF
44172 /* confdefs.h.  */
44173 _ACEOF
44174 cat confdefs.h >>conftest.$ac_ext
44175 cat >>conftest.$ac_ext <<_ACEOF
44176 /* end confdefs.h.  */
44177 $ac_includes_default
44178 #include <$ac_header>
44179 _ACEOF
44180 rm -f conftest.$ac_objext
44181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44182   (eval $ac_compile) 2>conftest.er1
44183   ac_status=$?
44184   grep -v '^ *+' conftest.er1 >conftest.err
44185   rm -f conftest.er1
44186   cat conftest.err >&5
44187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188   (exit $ac_status); } &&
44189          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44191   (eval $ac_try) 2>&5
44192   ac_status=$?
44193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44194   (exit $ac_status); }; } &&
44195          { ac_try='test -s conftest.$ac_objext'
44196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44197   (eval $ac_try) 2>&5
44198   ac_status=$?
44199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44200   (exit $ac_status); }; }; then
44201   ac_header_compiler=yes
44202 else
44203   echo "$as_me: failed program was:" >&5
44204 sed 's/^/| /' conftest.$ac_ext >&5
44205
44206 ac_header_compiler=no
44207 fi
44208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44210 echo "${ECHO_T}$ac_header_compiler" >&6
44211
44212 # Is the header present?
44213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44215 cat >conftest.$ac_ext <<_ACEOF
44216 /* confdefs.h.  */
44217 _ACEOF
44218 cat confdefs.h >>conftest.$ac_ext
44219 cat >>conftest.$ac_ext <<_ACEOF
44220 /* end confdefs.h.  */
44221 #include <$ac_header>
44222 _ACEOF
44223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44225   ac_status=$?
44226   grep -v '^ *+' conftest.er1 >conftest.err
44227   rm -f conftest.er1
44228   cat conftest.err >&5
44229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230   (exit $ac_status); } >/dev/null; then
44231   if test -s conftest.err; then
44232     ac_cpp_err=$ac_cxx_preproc_warn_flag
44233     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
44234   else
44235     ac_cpp_err=
44236   fi
44237 else
44238   ac_cpp_err=yes
44239 fi
44240 if test -z "$ac_cpp_err"; then
44241   ac_header_preproc=yes
44242 else
44243   echo "$as_me: failed program was:" >&5
44244 sed 's/^/| /' conftest.$ac_ext >&5
44245
44246   ac_header_preproc=no
44247 fi
44248 rm -f conftest.err conftest.$ac_ext
44249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44250 echo "${ECHO_T}$ac_header_preproc" >&6
44251
44252 # So?  What about this header?
44253 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
44254   yes:no: )
44255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44259     ac_header_preproc=yes
44260     ;;
44261   no:yes:* )
44262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44274     (
44275       cat <<\_ASBOX
44276 ## ----------------------------------------- ##
44277 ## Report this to wx-dev@lists.wxwidgets.org ##
44278 ## ----------------------------------------- ##
44279 _ASBOX
44280     ) |
44281       sed "s/^/$as_me: WARNING:     /" >&2
44282     ;;
44283 esac
44284 echo "$as_me:$LINENO: checking for $ac_header" >&5
44285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44287   echo $ECHO_N "(cached) $ECHO_C" >&6
44288 else
44289   eval "$as_ac_Header=\$ac_header_preproc"
44290 fi
44291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44293
44294 fi
44295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44296   cat >>confdefs.h <<_ACEOF
44297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44298 _ACEOF
44299
44300 fi
44301
44302 done
44303
44304
44305     if test "$ac_cv_header_ole2_h" = "yes" ; then
44306         if test "$GCC" = yes ; then
44307             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44308 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44309             cat >conftest.$ac_ext <<_ACEOF
44310 /* confdefs.h.  */
44311 _ACEOF
44312 cat confdefs.h >>conftest.$ac_ext
44313 cat >>conftest.$ac_ext <<_ACEOF
44314 /* end confdefs.h.  */
44315 #include <windows.h>
44316                             #include <ole2.h>
44317 int
44318 main ()
44319 {
44320
44321   ;
44322   return 0;
44323 }
44324 _ACEOF
44325 rm -f conftest.$ac_objext
44326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44327   (eval $ac_compile) 2>conftest.er1
44328   ac_status=$?
44329   grep -v '^ *+' conftest.er1 >conftest.err
44330   rm -f conftest.er1
44331   cat conftest.err >&5
44332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333   (exit $ac_status); } &&
44334          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44336   (eval $ac_try) 2>&5
44337   ac_status=$?
44338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44339   (exit $ac_status); }; } &&
44340          { ac_try='test -s conftest.$ac_objext'
44341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44342   (eval $ac_try) 2>&5
44343   ac_status=$?
44344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345   (exit $ac_status); }; }; then
44346   echo "$as_me:$LINENO: result: no" >&5
44347 echo "${ECHO_T}no" >&6
44348 else
44349   echo "$as_me: failed program was:" >&5
44350 sed 's/^/| /' conftest.$ac_ext >&5
44351
44352 echo "$as_me:$LINENO: result: yes" >&5
44353 echo "${ECHO_T}yes" >&6
44354                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
44355 fi
44356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44357             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44358             if test "$wxUSE_OLE" = "yes" ; then
44359                 cat >>confdefs.h <<\_ACEOF
44360 #define wxUSE_OLE 1
44361 _ACEOF
44362
44363                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
44364             fi
44365         fi
44366
44367                 if test "$wxUSE_DATAOBJ" = "yes" ; then
44368             cat >>confdefs.h <<\_ACEOF
44369 #define wxUSE_DATAOBJ 1
44370 _ACEOF
44371
44372         fi
44373     else
44374         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44375 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44376
44377         wxUSE_CLIPBOARD=no
44378         wxUSE_DRAG_AND_DROP=no
44379         wxUSE_DATAOBJ=no
44380         wxUSE_OLE=no
44381     fi
44382
44383     if test "$wxUSE_METAFILE" = "yes"; then
44384         cat >>confdefs.h <<\_ACEOF
44385 #define wxUSE_METAFILE 1
44386 _ACEOF
44387
44388
44389                 cat >>confdefs.h <<\_ACEOF
44390 #define wxUSE_ENH_METAFILE 1
44391 _ACEOF
44392
44393     fi
44394 fi
44395
44396 if test "$wxUSE_IPC" = "yes"; then
44397     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
44398         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44399 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
44400         wxUSE_IPC=no
44401     fi
44402
44403     if test "$wxUSE_IPC" = "yes"; then
44404         cat >>confdefs.h <<\_ACEOF
44405 #define wxUSE_IPC 1
44406 _ACEOF
44407
44408         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44409     fi
44410 fi
44411
44412 if test "$wxUSE_DATAOBJ" = "yes"; then
44413     if test "$wxUSE_MGL" = 1; then
44414         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44415 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44416         wxUSE_DATAOBJ=no
44417     else
44418         cat >>confdefs.h <<\_ACEOF
44419 #define wxUSE_DATAOBJ 1
44420 _ACEOF
44421
44422     fi
44423 else
44424     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44425 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44426     wxUSE_CLIPBOARD=no
44427     wxUSE_DRAG_AND_DROP=no
44428 fi
44429
44430 if test "$wxUSE_CLIPBOARD" = "yes"; then
44431     if test "$wxUSE_MGL" = 1; then
44432         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44433 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44434         wxUSE_CLIPBOARD=no
44435     fi
44436
44437     if test "$wxUSE_CLIPBOARD" = "yes"; then
44438         cat >>confdefs.h <<\_ACEOF
44439 #define wxUSE_CLIPBOARD 1
44440 _ACEOF
44441
44442     fi
44443 fi
44444
44445 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44446     if test "$wxUSE_GTK" = 1; then
44447         if test "$WXGTK12" != 1; then
44448             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44449 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44450             wxUSE_DRAG_AND_DROP=no
44451         fi
44452     fi
44453
44454     if test "$wxUSE_MOTIF" = 1; then
44455         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44456 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44457         wxUSE_DRAG_AND_DROP=no
44458     fi
44459
44460     if test "$wxUSE_X11" = 1; then
44461         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44462 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44463         wxUSE_DRAG_AND_DROP=no
44464     fi
44465
44466     if test "$wxUSE_MGL" = 1; then
44467         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44468 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44469         wxUSE_DRAG_AND_DROP=no
44470     fi
44471
44472     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44473         cat >>confdefs.h <<\_ACEOF
44474 #define wxUSE_DRAG_AND_DROP 1
44475 _ACEOF
44476
44477     fi
44478
44479 fi
44480
44481 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44482     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44483 fi
44484
44485 if test "$wxUSE_SPLINES" = "yes" ; then
44486   cat >>confdefs.h <<\_ACEOF
44487 #define wxUSE_SPLINES 1
44488 _ACEOF
44489
44490 fi
44491
44492 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44493   cat >>confdefs.h <<\_ACEOF
44494 #define wxUSE_MOUSEWHEEL 1
44495 _ACEOF
44496
44497 fi
44498
44499
44500 USES_CONTROLS=0
44501 if test "$wxUSE_CONTROLS" = "yes"; then
44502   USES_CONTROLS=1
44503 fi
44504
44505 if test "$wxUSE_ACCEL" = "yes"; then
44506   cat >>confdefs.h <<\_ACEOF
44507 #define wxUSE_ACCEL 1
44508 _ACEOF
44509
44510   USES_CONTROLS=1
44511 fi
44512
44513 if test "$wxUSE_BUTTON" = "yes"; then
44514   cat >>confdefs.h <<\_ACEOF
44515 #define wxUSE_BUTTON 1
44516 _ACEOF
44517
44518   USES_CONTROLS=1
44519 fi
44520
44521 if test "$wxUSE_BMPBUTTON" = "yes"; then
44522   cat >>confdefs.h <<\_ACEOF
44523 #define wxUSE_BMPBUTTON 1
44524 _ACEOF
44525
44526   USES_CONTROLS=1
44527 fi
44528
44529 if test "$wxUSE_CALCTRL" = "yes"; then
44530   cat >>confdefs.h <<\_ACEOF
44531 #define wxUSE_CALENDARCTRL 1
44532 _ACEOF
44533
44534   USES_CONTROLS=1
44535   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44536 fi
44537
44538 if test "$wxUSE_CARET" = "yes"; then
44539   cat >>confdefs.h <<\_ACEOF
44540 #define wxUSE_CARET 1
44541 _ACEOF
44542
44543   USES_CONTROLS=1
44544   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44545 fi
44546
44547 if test "$wxUSE_COMBOBOX" = "yes"; then
44548   cat >>confdefs.h <<\_ACEOF
44549 #define wxUSE_COMBOBOX 1
44550 _ACEOF
44551
44552   USES_CONTROLS=1
44553 fi
44554
44555 if test "$wxUSE_COMBOCTRL" = "yes"; then
44556   cat >>confdefs.h <<\_ACEOF
44557 #define wxUSE_COMBOCTRL 1
44558 _ACEOF
44559
44560   USES_CONTROLS=1
44561 fi
44562
44563 if test "$wxUSE_CHOICE" = "yes"; then
44564   cat >>confdefs.h <<\_ACEOF
44565 #define wxUSE_CHOICE 1
44566 _ACEOF
44567
44568   USES_CONTROLS=1
44569 fi
44570
44571 if test "$wxUSE_CHOICEBOOK" = "yes"; then
44572     cat >>confdefs.h <<\_ACEOF
44573 #define wxUSE_CHOICEBOOK 1
44574 _ACEOF
44575
44576     USES_CONTROLS=1
44577 fi
44578
44579 if test "$wxUSE_CHECKBOX" = "yes"; then
44580   cat >>confdefs.h <<\_ACEOF
44581 #define wxUSE_CHECKBOX 1
44582 _ACEOF
44583
44584   USES_CONTROLS=1
44585 fi
44586
44587 if test "$wxUSE_CHECKLST" = "yes"; then
44588   cat >>confdefs.h <<\_ACEOF
44589 #define wxUSE_CHECKLISTBOX 1
44590 _ACEOF
44591
44592   USES_CONTROLS=1
44593   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44594 fi
44595
44596 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44597   cat >>confdefs.h <<\_ACEOF
44598 #define wxUSE_COLOURPICKERCTRL 1
44599 _ACEOF
44600
44601   USES_CONTROLS=1
44602 fi
44603
44604 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44605   cat >>confdefs.h <<\_ACEOF
44606 #define wxUSE_DATEPICKCTRL 1
44607 _ACEOF
44608
44609   USES_CONTROLS=1
44610 fi
44611
44612 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44613   cat >>confdefs.h <<\_ACEOF
44614 #define wxUSE_DIRPICKERCTRL 1
44615 _ACEOF
44616
44617   USES_CONTROLS=1
44618 fi
44619
44620 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44621   cat >>confdefs.h <<\_ACEOF
44622 #define wxUSE_FILEPICKERCTRL 1
44623 _ACEOF
44624
44625   USES_CONTROLS=1
44626 fi
44627
44628 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44629   cat >>confdefs.h <<\_ACEOF
44630 #define wxUSE_FONTPICKERCTRL 1
44631 _ACEOF
44632
44633   USES_CONTROLS=1
44634 fi
44635
44636 if test "$wxUSE_DISPLAY" = "yes"; then
44637     cat >>confdefs.h <<\_ACEOF
44638 #define wxUSE_DISPLAY 1
44639 _ACEOF
44640
44641     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
44642 fi
44643
44644 if test "$wxUSE_GAUGE" = "yes"; then
44645   cat >>confdefs.h <<\_ACEOF
44646 #define wxUSE_GAUGE 1
44647 _ACEOF
44648
44649   USES_CONTROLS=1
44650 fi
44651
44652 if test "$wxUSE_GRID" = "yes"; then
44653   cat >>confdefs.h <<\_ACEOF
44654 #define wxUSE_GRID 1
44655 _ACEOF
44656
44657   USES_CONTROLS=1
44658   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44659 fi
44660
44661 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44662   cat >>confdefs.h <<\_ACEOF
44663 #define wxUSE_HYPERLINKCTRL 1
44664 _ACEOF
44665
44666   USES_CONTROLS=1
44667 fi
44668
44669 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44670   cat >>confdefs.h <<\_ACEOF
44671 #define wxUSE_DATAVIEWCTRL 1
44672 _ACEOF
44673
44674   USES_CONTROLS=1
44675   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44676 fi
44677
44678 if test "$wxUSE_IMAGLIST" = "yes"; then
44679     cat >>confdefs.h <<\_ACEOF
44680 #define wxUSE_IMAGLIST 1
44681 _ACEOF
44682
44683 fi
44684
44685 if test "$wxUSE_LISTBOOK" = "yes"; then
44686     cat >>confdefs.h <<\_ACEOF
44687 #define wxUSE_LISTBOOK 1
44688 _ACEOF
44689
44690     USES_CONTROLS=1
44691 fi
44692
44693 if test "$wxUSE_LISTBOX" = "yes"; then
44694     cat >>confdefs.h <<\_ACEOF
44695 #define wxUSE_LISTBOX 1
44696 _ACEOF
44697
44698     USES_CONTROLS=1
44699     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
44700 fi
44701
44702 if test "$wxUSE_LISTCTRL" = "yes"; then
44703     if test "$wxUSE_IMAGLIST" = "yes"; then
44704         cat >>confdefs.h <<\_ACEOF
44705 #define wxUSE_LISTCTRL 1
44706 _ACEOF
44707
44708         USES_CONTROLS=1
44709         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44710     else
44711         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44712 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44713     fi
44714 fi
44715
44716 if test "$wxUSE_NOTEBOOK" = "yes"; then
44717     cat >>confdefs.h <<\_ACEOF
44718 #define wxUSE_NOTEBOOK 1
44719 _ACEOF
44720
44721     USES_CONTROLS=1
44722     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44723 fi
44724
44725 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
44726   cat >>confdefs.h <<\_ACEOF
44727 #define wxUSE_ODCOMBOBOX 1
44728 _ACEOF
44729
44730   USES_CONTROLS=1
44731   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44732 fi
44733
44734
44735 if test "$wxUSE_RADIOBOX" = "yes"; then
44736     cat >>confdefs.h <<\_ACEOF
44737 #define wxUSE_RADIOBOX 1
44738 _ACEOF
44739
44740     USES_CONTROLS=1
44741 fi
44742
44743 if test "$wxUSE_RADIOBTN" = "yes"; then
44744     cat >>confdefs.h <<\_ACEOF
44745 #define wxUSE_RADIOBTN 1
44746 _ACEOF
44747
44748     USES_CONTROLS=1
44749 fi
44750
44751 if test "$wxUSE_SASH" = "yes"; then
44752     cat >>confdefs.h <<\_ACEOF
44753 #define wxUSE_SASH 1
44754 _ACEOF
44755
44756     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44757 fi
44758
44759 if test "$wxUSE_SCROLLBAR" = "yes"; then
44760     cat >>confdefs.h <<\_ACEOF
44761 #define wxUSE_SCROLLBAR 1
44762 _ACEOF
44763
44764     USES_CONTROLS=1
44765     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44766 fi
44767
44768 if test "$wxUSE_SLIDER" = "yes"; then
44769     cat >>confdefs.h <<\_ACEOF
44770 #define wxUSE_SLIDER 1
44771 _ACEOF
44772
44773     USES_CONTROLS=1
44774 fi
44775
44776 if test "$wxUSE_SPINBTN" = "yes"; then
44777     cat >>confdefs.h <<\_ACEOF
44778 #define wxUSE_SPINBTN 1
44779 _ACEOF
44780
44781     USES_CONTROLS=1
44782 fi
44783
44784 if test "$wxUSE_SPINCTRL" = "yes"; then
44785     cat >>confdefs.h <<\_ACEOF
44786 #define wxUSE_SPINCTRL 1
44787 _ACEOF
44788
44789     USES_CONTROLS=1
44790 fi
44791
44792 if test "$wxUSE_SPLITTER" = "yes"; then
44793     cat >>confdefs.h <<\_ACEOF
44794 #define wxUSE_SPLITTER 1
44795 _ACEOF
44796
44797     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44798 fi
44799
44800 if test "$wxUSE_STATBMP" = "yes"; then
44801     cat >>confdefs.h <<\_ACEOF
44802 #define wxUSE_STATBMP 1
44803 _ACEOF
44804
44805     USES_CONTROLS=1
44806 fi
44807
44808 if test "$wxUSE_STATBOX" = "yes"; then
44809     cat >>confdefs.h <<\_ACEOF
44810 #define wxUSE_STATBOX 1
44811 _ACEOF
44812
44813     USES_CONTROLS=1
44814 fi
44815
44816 if test "$wxUSE_STATTEXT" = "yes"; then
44817     cat >>confdefs.h <<\_ACEOF
44818 #define wxUSE_STATTEXT 1
44819 _ACEOF
44820
44821     USES_CONTROLS=1
44822 fi
44823
44824 if test "$wxUSE_STATLINE" = "yes"; then
44825     cat >>confdefs.h <<\_ACEOF
44826 #define wxUSE_STATLINE 1
44827 _ACEOF
44828
44829     USES_CONTROLS=1
44830 fi
44831
44832 if test "$wxUSE_STATUSBAR" = "yes"; then
44833         cat >>confdefs.h <<\_ACEOF
44834 #define wxUSE_NATIVE_STATUSBAR 1
44835 _ACEOF
44836
44837     cat >>confdefs.h <<\_ACEOF
44838 #define wxUSE_STATUSBAR 1
44839 _ACEOF
44840
44841     USES_CONTROLS=1
44842
44843     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44844 fi
44845
44846 if test "$wxUSE_TAB_DIALOG" = "yes"; then
44847     cat >>confdefs.h <<\_ACEOF
44848 #define wxUSE_TAB_DIALOG 1
44849 _ACEOF
44850
44851 fi
44852
44853 if test "$wxUSE_TEXTCTRL" = "yes"; then
44854     cat >>confdefs.h <<\_ACEOF
44855 #define wxUSE_TEXTCTRL 1
44856 _ACEOF
44857
44858     USES_CONTROLS=1
44859     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44860 fi
44861
44862 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44863     if test "$wxUSE_COCOA" = 1 ; then
44864         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44865 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44866         wxUSE_TOGGLEBTN=no
44867     fi
44868
44869     if test "$wxUSE_TOGGLEBTN" = "yes"; then
44870         cat >>confdefs.h <<\_ACEOF
44871 #define wxUSE_TOGGLEBTN 1
44872 _ACEOF
44873
44874         USES_CONTROLS=1
44875     fi
44876 fi
44877
44878 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44879     cat >>confdefs.h <<\_ACEOF
44880 #define wxUSE_TOOLBAR_SIMPLE 1
44881 _ACEOF
44882
44883     wxUSE_TOOLBAR="yes"
44884     USES_CONTROLS=1
44885 fi
44886
44887 if test "$wxUSE_TOOLBAR" = "yes"; then
44888     cat >>confdefs.h <<\_ACEOF
44889 #define wxUSE_TOOLBAR 1
44890 _ACEOF
44891
44892     USES_CONTROLS=1
44893
44894         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44895         wxUSE_TOOLBAR_NATIVE="yes"
44896     fi
44897
44898     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44899         cat >>confdefs.h <<\_ACEOF
44900 #define wxUSE_TOOLBAR_NATIVE 1
44901 _ACEOF
44902
44903         USES_CONTROLS=1
44904     fi
44905
44906     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44907 fi
44908
44909 if test "$wxUSE_TOOLTIPS" = "yes"; then
44910     if test "$wxUSE_MOTIF" = 1; then
44911         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44912 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44913     else
44914         if test "$wxUSE_UNIVERSAL" = "yes"; then
44915             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44916 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44917         else
44918             cat >>confdefs.h <<\_ACEOF
44919 #define wxUSE_TOOLTIPS 1
44920 _ACEOF
44921
44922         fi
44923     fi
44924 fi
44925
44926 if test "$wxUSE_TREEBOOK" = "yes"; then
44927     cat >>confdefs.h <<\_ACEOF
44928 #define wxUSE_TREEBOOK 1
44929 _ACEOF
44930
44931     USES_CONTROLS=1
44932 fi
44933
44934 if test "$wxUSE_TOOLBOOK" = "yes"; then
44935     cat >>confdefs.h <<\_ACEOF
44936 #define wxUSE_TOOLBOOK 1
44937 _ACEOF
44938
44939     USES_CONTROLS=1
44940 fi
44941
44942 if test "$wxUSE_TREECTRL" = "yes"; then
44943     if test "$wxUSE_IMAGLIST" = "yes"; then
44944         cat >>confdefs.h <<\_ACEOF
44945 #define wxUSE_TREECTRL 1
44946 _ACEOF
44947
44948         USES_CONTROLS=1
44949         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44950     else
44951         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44952 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44953     fi
44954 fi
44955
44956 if test "$wxUSE_POPUPWIN" = "yes"; then
44957     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44958         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44959 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44960     else
44961         if test "$wxUSE_PM" = 1; then
44962             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44963 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44964         else
44965             cat >>confdefs.h <<\_ACEOF
44966 #define wxUSE_POPUPWIN 1
44967 _ACEOF
44968
44969             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
44970
44971             USES_CONTROLS=1
44972         fi
44973     fi
44974 fi
44975
44976 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
44977     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44978         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44979 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44980     else
44981         cat >>confdefs.h <<\_ACEOF
44982 #define wxUSE_DIALUP_MANAGER 1
44983 _ACEOF
44984
44985         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44986     fi
44987 fi
44988
44989 if test "$wxUSE_TIPWINDOW" = "yes"; then
44990     if test "$wxUSE_PM" = 1; then
44991         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44992 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44993     else
44994         cat >>confdefs.h <<\_ACEOF
44995 #define wxUSE_TIPWINDOW 1
44996 _ACEOF
44997
44998     fi
44999 fi
45000
45001 if test "$USES_CONTROLS" = 1; then
45002     cat >>confdefs.h <<\_ACEOF
45003 #define wxUSE_CONTROLS 1
45004 _ACEOF
45005
45006 fi
45007
45008
45009 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45010     cat >>confdefs.h <<\_ACEOF
45011 #define wxUSE_ACCESSIBILITY 1
45012 _ACEOF
45013
45014     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45015 fi
45016
45017 if test "$wxUSE_DC_CACHEING" = "yes"; then
45018     cat >>confdefs.h <<\_ACEOF
45019 #define wxUSE_DC_CACHEING 1
45020 _ACEOF
45021
45022 fi
45023
45024 if test "$wxUSE_DRAGIMAGE" = "yes"; then
45025     cat >>confdefs.h <<\_ACEOF
45026 #define wxUSE_DRAGIMAGE 1
45027 _ACEOF
45028
45029     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45030 fi
45031
45032 if test "$wxUSE_EXCEPTIONS" = "yes"; then
45033     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45034         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45035 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45036     else
45037         cat >>confdefs.h <<\_ACEOF
45038 #define wxUSE_EXCEPTIONS 1
45039 _ACEOF
45040
45041         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45042     fi
45043 fi
45044
45045 USE_HTML=0
45046 if test "$wxUSE_HTML" = "yes"; then
45047     cat >>confdefs.h <<\_ACEOF
45048 #define wxUSE_HTML 1
45049 _ACEOF
45050
45051     USE_HTML=1
45052     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
45053     if test "$wxUSE_MAC" = 1; then
45054         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45055     fi
45056 fi
45057 if test "$wxUSE_WEBKIT" = "yes"; then
45058     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
45059         old_CPPFLAGS="$CPPFLAGS"
45060         CPPFLAGS="-x objective-c++ $CPPFLAGS"
45061         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45062 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45063 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45064   echo $ECHO_N "(cached) $ECHO_C" >&6
45065 else
45066   cat >conftest.$ac_ext <<_ACEOF
45067 /* confdefs.h.  */
45068 _ACEOF
45069 cat confdefs.h >>conftest.$ac_ext
45070 cat >>conftest.$ac_ext <<_ACEOF
45071 /* end confdefs.h.  */
45072 #include <Carbon/Carbon.h>
45073
45074 #include <WebKit/HIWebView.h>
45075 _ACEOF
45076 rm -f conftest.$ac_objext
45077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45078   (eval $ac_compile) 2>conftest.er1
45079   ac_status=$?
45080   grep -v '^ *+' conftest.er1 >conftest.err
45081   rm -f conftest.er1
45082   cat conftest.err >&5
45083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45084   (exit $ac_status); } &&
45085          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45087   (eval $ac_try) 2>&5
45088   ac_status=$?
45089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45090   (exit $ac_status); }; } &&
45091          { ac_try='test -s conftest.$ac_objext'
45092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45093   (eval $ac_try) 2>&5
45094   ac_status=$?
45095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45096   (exit $ac_status); }; }; then
45097   ac_cv_header_WebKit_HIWebView_h=yes
45098 else
45099   echo "$as_me: failed program was:" >&5
45100 sed 's/^/| /' conftest.$ac_ext >&5
45101
45102 ac_cv_header_WebKit_HIWebView_h=no
45103 fi
45104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45105 fi
45106 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45107 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45108 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45109
45110                            cat >>confdefs.h <<\_ACEOF
45111 #define wxUSE_WEBKIT 1
45112 _ACEOF
45113
45114                            WEBKIT_LINK="-framework WebKit"
45115
45116 else
45117
45118                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45119 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45120                            wxUSE_WEBKIT=no
45121
45122 fi
45123
45124
45125         CPPFLAGS="$old_CPPFLAGS"
45126     elif test "$wxUSE_COCOA" = 1; then
45127         cat >>confdefs.h <<\_ACEOF
45128 #define wxUSE_WEBKIT 1
45129 _ACEOF
45130
45131     else
45132         wxUSE_WEBKIT=no
45133     fi
45134 fi
45135
45136 USE_XRC=0
45137 if test "$wxUSE_XRC" = "yes"; then
45138     if test "$wxUSE_XML" != "yes"; then
45139         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45140 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45141         wxUSE_XRC=no
45142     else
45143         cat >>confdefs.h <<\_ACEOF
45144 #define wxUSE_XRC 1
45145 _ACEOF
45146
45147         USE_XRC=1
45148         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45149     fi
45150 fi
45151
45152 USE_AUI=0
45153 if test "$wxUSE_AUI" = "yes"; then
45154    cat >>confdefs.h <<\_ACEOF
45155 #define wxUSE_AUI 1
45156 _ACEOF
45157
45158    USE_AUI=1
45159    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45160 fi
45161
45162 if test "$wxUSE_MENUS" = "yes"; then
45163     cat >>confdefs.h <<\_ACEOF
45164 #define wxUSE_MENUS 1
45165 _ACEOF
45166
45167     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45168 fi
45169
45170 if test "$wxUSE_METAFILE" = "yes"; then
45171     cat >>confdefs.h <<\_ACEOF
45172 #define wxUSE_METAFILE 1
45173 _ACEOF
45174
45175 fi
45176
45177 if test "$wxUSE_MIMETYPE" = "yes"; then
45178     cat >>confdefs.h <<\_ACEOF
45179 #define wxUSE_MIMETYPE 1
45180 _ACEOF
45181
45182 fi
45183
45184 if test "$wxUSE_MINIFRAME" = "yes"; then
45185     cat >>confdefs.h <<\_ACEOF
45186 #define wxUSE_MINIFRAME 1
45187 _ACEOF
45188
45189     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45190 fi
45191
45192 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45193     cat >>confdefs.h <<\_ACEOF
45194 #define wxUSE_SYSTEM_OPTIONS 1
45195 _ACEOF
45196
45197     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
45198         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
45199         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45200     fi
45201 fi
45202
45203
45204 if test "$wxUSE_VALIDATORS" = "yes"; then
45205     cat >>confdefs.h <<\_ACEOF
45206 #define wxUSE_VALIDATORS 1
45207 _ACEOF
45208
45209     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45210 fi
45211
45212 if test "$wxUSE_PALETTE" = "yes" ; then
45213   cat >>confdefs.h <<\_ACEOF
45214 #define wxUSE_PALETTE 1
45215 _ACEOF
45216
45217 fi
45218
45219 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45220     LIBS=" -lunicows $LIBS"
45221 fi
45222
45223 USE_RICHTEXT=0
45224 if test "$wxUSE_RICHTEXT" = "yes"; then
45225     cat >>confdefs.h <<\_ACEOF
45226 #define wxUSE_RICHTEXT 1
45227 _ACEOF
45228
45229     USE_RICHTEXT=1
45230     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45231 fi
45232
45233
45234 if test "$wxUSE_IMAGE" = "yes" ; then
45235     cat >>confdefs.h <<\_ACEOF
45236 #define wxUSE_IMAGE 1
45237 _ACEOF
45238
45239
45240     if test "$wxUSE_GIF" = "yes" ; then
45241       cat >>confdefs.h <<\_ACEOF
45242 #define wxUSE_GIF 1
45243 _ACEOF
45244
45245     fi
45246
45247     if test "$wxUSE_PCX" = "yes" ; then
45248       cat >>confdefs.h <<\_ACEOF
45249 #define wxUSE_PCX 1
45250 _ACEOF
45251
45252     fi
45253
45254     if test "$wxUSE_IFF" = "yes" ; then
45255       cat >>confdefs.h <<\_ACEOF
45256 #define wxUSE_IFF 1
45257 _ACEOF
45258
45259     fi
45260
45261     if test "$wxUSE_PNM" = "yes" ; then
45262       cat >>confdefs.h <<\_ACEOF
45263 #define wxUSE_PNM 1
45264 _ACEOF
45265
45266     fi
45267
45268     if test "$wxUSE_XPM" = "yes" ; then
45269       cat >>confdefs.h <<\_ACEOF
45270 #define wxUSE_XPM 1
45271 _ACEOF
45272
45273     fi
45274
45275     if test "$wxUSE_ICO_CUR" = "yes" ; then
45276       cat >>confdefs.h <<\_ACEOF
45277 #define wxUSE_ICO_CUR 1
45278 _ACEOF
45279
45280     fi
45281 fi
45282
45283
45284 if test "$wxUSE_CHOICEDLG" = "yes"; then
45285     cat >>confdefs.h <<\_ACEOF
45286 #define wxUSE_CHOICEDLG 1
45287 _ACEOF
45288
45289 fi
45290
45291 if test "$wxUSE_COLOURDLG" = "yes"; then
45292     cat >>confdefs.h <<\_ACEOF
45293 #define wxUSE_COLOURDLG 1
45294 _ACEOF
45295
45296 fi
45297
45298 if test "$wxUSE_FILEDLG" = "yes"; then
45299     cat >>confdefs.h <<\_ACEOF
45300 #define wxUSE_FILEDLG 1
45301 _ACEOF
45302
45303 fi
45304
45305 if test "$wxUSE_FINDREPLDLG" = "yes"; then
45306     cat >>confdefs.h <<\_ACEOF
45307 #define wxUSE_FINDREPLDLG 1
45308 _ACEOF
45309
45310 fi
45311
45312 if test "$wxUSE_FONTDLG" = "yes"; then
45313     cat >>confdefs.h <<\_ACEOF
45314 #define wxUSE_FONTDLG 1
45315 _ACEOF
45316
45317 fi
45318
45319 if test "$wxUSE_DIRDLG" = "yes"; then
45320     if test "$wxUSE_TREECTRL" != "yes"; then
45321         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45322 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45323     else
45324         cat >>confdefs.h <<\_ACEOF
45325 #define wxUSE_DIRDLG 1
45326 _ACEOF
45327
45328     fi
45329 fi
45330
45331 if test "$wxUSE_MSGDLG" = "yes"; then
45332     cat >>confdefs.h <<\_ACEOF
45333 #define wxUSE_MSGDLG 1
45334 _ACEOF
45335
45336 fi
45337
45338 if test "$wxUSE_NUMBERDLG" = "yes"; then
45339     cat >>confdefs.h <<\_ACEOF
45340 #define wxUSE_NUMBERDLG 1
45341 _ACEOF
45342
45343 fi
45344
45345 if test "$wxUSE_PROGRESSDLG" = "yes"; then
45346     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45347        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45348 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45349     else
45350         cat >>confdefs.h <<\_ACEOF
45351 #define wxUSE_PROGRESSDLG 1
45352 _ACEOF
45353
45354     fi
45355 fi
45356
45357 if test "$wxUSE_SPLASH" = "yes"; then
45358     cat >>confdefs.h <<\_ACEOF
45359 #define wxUSE_SPLASH 1
45360 _ACEOF
45361
45362     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
45363 fi
45364
45365 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45366     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45367        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45368 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45369     else
45370         cat >>confdefs.h <<\_ACEOF
45371 #define wxUSE_STARTUP_TIPS 1
45372 _ACEOF
45373
45374     fi
45375 fi
45376
45377 if test "$wxUSE_TEXTDLG" = "yes"; then
45378     cat >>confdefs.h <<\_ACEOF
45379 #define wxUSE_TEXTDLG 1
45380 _ACEOF
45381
45382 fi
45383
45384 if test "$wxUSE_WIZARDDLG" = "yes"; then
45385     cat >>confdefs.h <<\_ACEOF
45386 #define wxUSE_WIZARDDLG 1
45387 _ACEOF
45388
45389     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45390 fi
45391
45392
45393 USE_MEDIA=0
45394
45395 if test "$wxUSE_MEDIACTRL" = "yes"; then
45396     USE_MEDIA=1
45397
45398                 if test "$wxUSE_GTK" = 1; then
45399         wxUSE_GSTREAMER="no"
45400
45401                                                                 GST_VERSION_MAJOR=0
45402         GST_VERSION_MINOR=10
45403         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45404
45405         if test "$wxUSE_GSTREAMER8" = "no"; then
45406
45407 pkg_failed=no
45408 echo "$as_me:$LINENO: checking for GST" >&5
45409 echo $ECHO_N "checking for GST... $ECHO_C" >&6
45410
45411 if test -n "$PKG_CONFIG"; then
45412     if test -n "$GST_CFLAGS"; then
45413         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45414     else
45415         if test -n "$PKG_CONFIG" && \
45416     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45417   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45418   ac_status=$?
45419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45420   (exit $ac_status); }; then
45421   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45422 else
45423   pkg_failed=yes
45424 fi
45425     fi
45426 else
45427         pkg_failed=untried
45428 fi
45429 if test -n "$PKG_CONFIG"; then
45430     if test -n "$GST_LIBS"; then
45431         pkg_cv_GST_LIBS="$GST_LIBS"
45432     else
45433         if test -n "$PKG_CONFIG" && \
45434     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45435   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45436   ac_status=$?
45437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45438   (exit $ac_status); }; then
45439   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
45440 else
45441   pkg_failed=yes
45442 fi
45443     fi
45444 else
45445         pkg_failed=untried
45446 fi
45447
45448
45449
45450 if test $pkg_failed = yes; then
45451
45452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45453         _pkg_short_errors_supported=yes
45454 else
45455         _pkg_short_errors_supported=no
45456 fi
45457         if test $_pkg_short_errors_supported = yes; then
45458                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45459         else
45460                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45461         fi
45462         # Put the nasty error message in config.log where it belongs
45463         echo "$GST_PKG_ERRORS" >&5
45464
45465
45466                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45467 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45468                     GST_VERSION_MINOR=8
45469
45470
45471 elif test $pkg_failed = untried; then
45472
45473                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45474 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45475                     GST_VERSION_MINOR=8
45476
45477
45478 else
45479         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45480         GST_LIBS=$pkg_cv_GST_LIBS
45481         echo "$as_me:$LINENO: result: yes" >&5
45482 echo "${ECHO_T}yes" >&6
45483
45484                     wxUSE_GSTREAMER="yes"
45485                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
45486
45487 fi
45488         else
45489                         GST_VERSION_MINOR=8
45490         fi
45491
45492         if test $GST_VERSION_MINOR = "8"; then
45493             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45494
45495 pkg_failed=no
45496 echo "$as_me:$LINENO: checking for GST" >&5
45497 echo $ECHO_N "checking for GST... $ECHO_C" >&6
45498
45499 if test -n "$PKG_CONFIG"; then
45500     if test -n "$GST_CFLAGS"; then
45501         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45502     else
45503         if test -n "$PKG_CONFIG" && \
45504     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45505   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45506   ac_status=$?
45507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45508   (exit $ac_status); }; then
45509   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45510 else
45511   pkg_failed=yes
45512 fi
45513     fi
45514 else
45515         pkg_failed=untried
45516 fi
45517 if test -n "$PKG_CONFIG"; then
45518     if test -n "$GST_LIBS"; then
45519         pkg_cv_GST_LIBS="$GST_LIBS"
45520     else
45521         if test -n "$PKG_CONFIG" && \
45522     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45523   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45524   ac_status=$?
45525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45526   (exit $ac_status); }; then
45527   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
45528 else
45529   pkg_failed=yes
45530 fi
45531     fi
45532 else
45533         pkg_failed=untried
45534 fi
45535
45536
45537
45538 if test $pkg_failed = yes; then
45539
45540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45541         _pkg_short_errors_supported=yes
45542 else
45543         _pkg_short_errors_supported=no
45544 fi
45545         if test $_pkg_short_errors_supported = yes; then
45546                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45547         else
45548                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45549         fi
45550         # Put the nasty error message in config.log where it belongs
45551         echo "$GST_PKG_ERRORS" >&5
45552
45553
45554                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45555 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45556
45557 elif test $pkg_failed = untried; then
45558
45559                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45560 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
45561
45562 else
45563         GST_CFLAGS=$pkg_cv_GST_CFLAGS
45564         GST_LIBS=$pkg_cv_GST_LIBS
45565         echo "$as_me:$LINENO: result: yes" >&5
45566 echo "${ECHO_T}yes" >&6
45567         wxUSE_GSTREAMER="yes"
45568 fi
45569         fi
45570
45571
45572         if test "$wxUSE_GSTREAMER" = "yes"; then
45573                                     case "${host}" in
45574                 *-*-solaris2* )
45575                     if "$GCC" = yes; then
45576                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45577                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45578                     fi
45579             esac
45580
45581             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45582             LIBS="$GST_LIBS $LIBS"
45583
45584             cat >>confdefs.h <<\_ACEOF
45585 #define wxUSE_GSTREAMER 1
45586 _ACEOF
45587
45588         else
45589             USE_MEDIA=0
45590         fi
45591     fi
45592
45593     if test $USE_MEDIA = 1; then
45594         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45595         cat >>confdefs.h <<\_ACEOF
45596 #define wxUSE_MEDIACTRL 1
45597 _ACEOF
45598
45599     fi
45600 fi
45601
45602
45603 if test "$cross_compiling" = "yes"; then
45604         OSINFO="\"$host\""
45605 else
45606         OSINFO=`uname -s -r -m`
45607     OSINFO="\"$OSINFO\""
45608 fi
45609
45610 cat >>confdefs.h <<_ACEOF
45611 #define WXWIN_OS_DESCRIPTION $OSINFO
45612 _ACEOF
45613
45614
45615
45616 if test "x$prefix" != "xNONE"; then
45617     wxPREFIX=$prefix
45618 else
45619     wxPREFIX=$ac_default_prefix
45620 fi
45621
45622 cat >>confdefs.h <<_ACEOF
45623 #define wxINSTALL_PREFIX "$wxPREFIX"
45624 _ACEOF
45625
45626
45627
45628
45629 CORE_BASE_LIBS="net base"
45630 CORE_GUI_LIBS="adv core"
45631
45632 if test "$wxUSE_XML" = "yes" ; then
45633     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45634 fi
45635 if test "$wxUSE_ODBC" != "no" ; then
45636     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45637     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45638 fi
45639 if test "$wxUSE_HTML" = "yes" ; then
45640     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45641 fi
45642 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45643     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45644 fi
45645 if test "$wxUSE_XRC" = "yes" ; then
45646     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45647 fi
45648 if test "$wxUSE_AUI" = "yes" ; then
45649     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45650 fi
45651
45652 if test "$wxUSE_GUI" != "yes"; then
45653     CORE_GUI_LIBS=""
45654 fi
45655
45656
45657
45658
45659
45660 ac_ext=c
45661 ac_cpp='$CPP $CPPFLAGS'
45662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45665
45666
45667
45668 if test "$wxUSE_MAC" = 1 ; then
45669     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
45670         if test "$USE_DARWIN" = 1; then
45671             LDFLAGS="$LDFLAGS -framework QuickTime"
45672         else
45673             LDFLAGS="$LDFLAGS -lQuickTimeLib"
45674         fi
45675     fi
45676     if test "$USE_DARWIN" = 1; then
45677         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45678     else
45679         LDFLAGS="$LDFLAGS -lCarbonLib"
45680     fi
45681 fi
45682 if test "$wxUSE_COCOA" = 1 ; then
45683     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
45684     if test "$wxUSE_MEDIACTRL" = "yes"; then
45685         LDFLAGS="$LDFLAGS -framework QuickTime"
45686     fi
45687 fi
45688 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45689     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45690 fi
45691
45692 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45693
45694 if test "$wxUSE_GUI" = "yes"; then
45695
45696
45697         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45698                      dynamic erase event exec font image minimal mobile \
45699                      mobile/wxedit mobile/styles propsize render \
45700                      rotate shaped vscroll widgets"
45701
45702     if test "$wxUSE_MONOLITHIC" != "yes"; then
45703         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45704     fi
45705     if test "$TOOLKIT" = "MSW"; then
45706         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45707         if test "$wxUSE_UNIVERSAL" != "yes"; then
45708             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45709         fi
45710     fi
45711     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45712         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
45713     fi
45714 else
45715     SAMPLES_SUBDIRS="console"
45716 fi
45717
45718
45719 if test "x$INTELCC" = "xyes" ; then
45720                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45721 elif test "$GCC" = yes ; then
45722     CWARNINGS="-Wall -Wundef"
45723 fi
45724
45725 if test "x$INTELCXX" = "xyes" ; then
45726                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
45727 elif test "$GXX" = yes ; then
45728         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
45729 fi
45730
45731
45732 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45733 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45734
45735
45736 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
45737  -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
45738  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45739  $CPPFLAGS `
45740
45741 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
45742 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
45743 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
45744
45745 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45746
45747
45748 if test "x$MWCC" = "xyes"; then
45749
45750             CC="$CC -cwd source -I-"
45751     CXX="$CXX -cwd source -I-"
45752 fi
45753
45754
45755 LIBS=`echo $LIBS`
45756 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45757 EXTRALIBS_XML="$EXPAT_LINK"
45758 EXTRALIBS_HTML="$MSPACK_LINK"
45759 EXTRALIBS_ODBC="$ODBC_LINK"
45760 if test "$wxUSE_GUI" = "yes"; then
45761     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
45762 fi
45763 if test "$wxUSE_OPENGL" = "yes"; then
45764     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45765 fi
45766
45767 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
45768
45769 WXCONFIG_LIBS="$LIBS"
45770
45771 if test "$wxUSE_REGEX" = "builtin" ; then
45772     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
45773 fi
45774 if test "$wxUSE_EXPAT" = "builtin" ; then
45775     wxconfig_3rdparty="expat $wxconfig_3rdparty"
45776 fi
45777 if test "$wxUSE_ODBC" = "builtin" ; then
45778     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
45779 fi
45780 if test "$wxUSE_LIBTIFF" = "builtin" ; then
45781     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
45782 fi
45783 if test "$wxUSE_LIBJPEG" = "builtin" ; then
45784     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
45785 fi
45786 if test "$wxUSE_LIBPNG" = "builtin" ; then
45787     wxconfig_3rdparty="png $wxconfig_3rdparty"
45788 fi
45789 if test "$wxUSE_ZLIB" = "builtin" ; then
45790     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
45791 fi
45792
45793 for i in $wxconfig_3rdparty ; do
45794     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
45795 done
45796
45797
45798 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45799     WXUNIV=1
45800 else
45801     WXUNIV=0
45802 fi
45803
45804
45805
45806
45807
45808
45809
45810
45811
45812 if test $wxUSE_MONOLITHIC = "yes" ; then
45813     MONOLITHIC=1
45814 else
45815     MONOLITHIC=0
45816 fi
45817
45818 if test $wxUSE_PLUGINS = "yes" ; then
45819     USE_PLUGINS=1
45820 else
45821     USE_PLUGINS=0
45822 fi
45823
45824 if test $wxUSE_ODBC != "no" ; then
45825     USE_ODBC=1
45826 else
45827     USE_ODBC=0
45828 fi
45829
45830 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45831     USE_QA=1
45832 else
45833     USE_QA=0
45834 fi
45835
45836 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45837     OFFICIAL_BUILD=1
45838 else
45839     OFFICIAL_BUILD=0
45840 fi
45841
45842
45843
45844
45845
45846
45847
45848
45849
45850
45851
45852
45853
45854
45855
45856
45857
45858
45859
45860
45861
45862
45863
45864
45865
45866 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45867
45868
45869
45870
45871
45872
45873
45874
45875 case "$TOOLKIT" in
45876     GTK)
45877         TOOLKIT_DESC="GTK+"
45878         if test "$WXGTK20" = 1; then
45879             TOOLKIT_DESC="$TOOLKIT_DESC 2"
45880             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45881                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
45882             fi
45883             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45884                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
45885             fi
45886             if test "$wxUSE_LIBHILDON" = "yes"; then
45887                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
45888             fi
45889
45890             if test "$TOOLKIT_EXTRA" != ""; then
45891                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
45892             fi
45893         fi
45894         ;;
45895
45896     ?*)
45897         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
45898         ;;
45899
45900     *)
45901         TOOLKIT_DESC="base only"
45902         ;;
45903 esac
45904
45905 if test "$wxUSE_WINE" = "yes"; then
45906     BAKEFILE_FORCE_PLATFORM=win32
45907 fi
45908
45909 if test "$wxUSE_MAC" = 1 ; then
45910     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45911                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45912             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45913         else
45914                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45915         fi
45916         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45917         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45918         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45919         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
45920         bk_use_pch=no
45921     fi
45922     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45923     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45924 fi
45925
45926
45927
45928
45929     if test "x$BAKEFILE_HOST" = "x"; then
45930                if test "x${host}" = "x" ; then
45931                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45932 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45933    { (exit 1); exit 1; }; }
45934                fi
45935
45936         BAKEFILE_HOST="${host}"
45937     fi
45938
45939     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45940
45941     if test -n "$ac_tool_prefix"; then
45942   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45944 echo "$as_me:$LINENO: checking for $ac_word" >&5
45945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45946 if test "${ac_cv_prog_RANLIB+set}" = set; then
45947   echo $ECHO_N "(cached) $ECHO_C" >&6
45948 else
45949   if test -n "$RANLIB"; then
45950   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45951 else
45952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45953 for as_dir in $PATH
45954 do
45955   IFS=$as_save_IFS
45956   test -z "$as_dir" && as_dir=.
45957   for ac_exec_ext in '' $ac_executable_extensions; do
45958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45959     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45961     break 2
45962   fi
45963 done
45964 done
45965
45966 fi
45967 fi
45968 RANLIB=$ac_cv_prog_RANLIB
45969 if test -n "$RANLIB"; then
45970   echo "$as_me:$LINENO: result: $RANLIB" >&5
45971 echo "${ECHO_T}$RANLIB" >&6
45972 else
45973   echo "$as_me:$LINENO: result: no" >&5
45974 echo "${ECHO_T}no" >&6
45975 fi
45976
45977 fi
45978 if test -z "$ac_cv_prog_RANLIB"; then
45979   ac_ct_RANLIB=$RANLIB
45980   # Extract the first word of "ranlib", so it can be a program name with args.
45981 set dummy ranlib; ac_word=$2
45982 echo "$as_me:$LINENO: checking for $ac_word" >&5
45983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45985   echo $ECHO_N "(cached) $ECHO_C" >&6
45986 else
45987   if test -n "$ac_ct_RANLIB"; then
45988   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45989 else
45990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45991 for as_dir in $PATH
45992 do
45993   IFS=$as_save_IFS
45994   test -z "$as_dir" && as_dir=.
45995   for ac_exec_ext in '' $ac_executable_extensions; do
45996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45997     ac_cv_prog_ac_ct_RANLIB="ranlib"
45998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45999     break 2
46000   fi
46001 done
46002 done
46003
46004   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46005 fi
46006 fi
46007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46008 if test -n "$ac_ct_RANLIB"; then
46009   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46010 echo "${ECHO_T}$ac_ct_RANLIB" >&6
46011 else
46012   echo "$as_me:$LINENO: result: no" >&5
46013 echo "${ECHO_T}no" >&6
46014 fi
46015
46016   RANLIB=$ac_ct_RANLIB
46017 else
46018   RANLIB="$ac_cv_prog_RANLIB"
46019 fi
46020
46021     # Find a good install program.  We prefer a C program (faster),
46022 # so one script is as good as another.  But avoid the broken or
46023 # incompatible versions:
46024 # SysV /etc/install, /usr/sbin/install
46025 # SunOS /usr/etc/install
46026 # IRIX /sbin/install
46027 # AIX /bin/install
46028 # AmigaOS /C/install, which installs bootblocks on floppy discs
46029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
46031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
46032 # OS/2's system install, which has a completely different semantic
46033 # ./install, which can be erroneously created by make from ./install.sh.
46034 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46035 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46036 if test -z "$INSTALL"; then
46037 if test "${ac_cv_path_install+set}" = set; then
46038   echo $ECHO_N "(cached) $ECHO_C" >&6
46039 else
46040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46041 for as_dir in $PATH
46042 do
46043   IFS=$as_save_IFS
46044   test -z "$as_dir" && as_dir=.
46045   # Account for people who put trailing slashes in PATH elements.
46046 case $as_dir/ in
46047   ./ | .// | /cC/* | \
46048   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
46049   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
46050   /usr/ucb/* ) ;;
46051   *)
46052     # OSF1 and SCO ODT 3.0 have their own names for install.
46053     # Don't use installbsd from OSF since it installs stuff as root
46054     # by default.
46055     for ac_prog in ginstall scoinst install; do
46056       for ac_exec_ext in '' $ac_executable_extensions; do
46057         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46058           if test $ac_prog = install &&
46059             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46060             # AIX install.  It has an incompatible calling convention.
46061             :
46062           elif test $ac_prog = install &&
46063             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46064             # program-specific install script used by HP pwplus--don't use.
46065             :
46066           else
46067             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46068             break 3
46069           fi
46070         fi
46071       done
46072     done
46073     ;;
46074 esac
46075 done
46076
46077
46078 fi
46079   if test "${ac_cv_path_install+set}" = set; then
46080     INSTALL=$ac_cv_path_install
46081   else
46082     # As a last resort, use the slow shell script.  We don't cache a
46083     # path for INSTALL within a source directory, because that will
46084     # break other packages using the cache if that directory is
46085     # removed, or if the path is relative.
46086     INSTALL=$ac_install_sh
46087   fi
46088 fi
46089 echo "$as_me:$LINENO: result: $INSTALL" >&5
46090 echo "${ECHO_T}$INSTALL" >&6
46091
46092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46093 # It thinks the first close brace ends the variable substitution.
46094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46095
46096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46097
46098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46099
46100     echo "$as_me:$LINENO: checking whether ln -s works" >&5
46101 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46102 LN_S=$as_ln_s
46103 if test "$LN_S" = "ln -s"; then
46104   echo "$as_me:$LINENO: result: yes" >&5
46105 echo "${ECHO_T}yes" >&6
46106 else
46107   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46108 echo "${ECHO_T}no, using $LN_S" >&6
46109 fi
46110
46111
46112     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46113 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
46114 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
46115 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46116   echo $ECHO_N "(cached) $ECHO_C" >&6
46117 else
46118   cat >conftest.make <<\_ACEOF
46119 all:
46120         @echo 'ac_maketemp="$(MAKE)"'
46121 _ACEOF
46122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46123 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46124 if test -n "$ac_maketemp"; then
46125   eval ac_cv_prog_make_${ac_make}_set=yes
46126 else
46127   eval ac_cv_prog_make_${ac_make}_set=no
46128 fi
46129 rm -f conftest.make
46130 fi
46131 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46132   echo "$as_me:$LINENO: result: yes" >&5
46133 echo "${ECHO_T}yes" >&6
46134   SET_MAKE=
46135 else
46136   echo "$as_me:$LINENO: result: no" >&5
46137 echo "${ECHO_T}no" >&6
46138   SET_MAKE="MAKE=${MAKE-make}"
46139 fi
46140
46141
46142
46143     if test -n "$ac_tool_prefix"; then
46144   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46145 set dummy ${ac_tool_prefix}ar; ac_word=$2
46146 echo "$as_me:$LINENO: checking for $ac_word" >&5
46147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46148 if test "${ac_cv_prog_AR+set}" = set; then
46149   echo $ECHO_N "(cached) $ECHO_C" >&6
46150 else
46151   if test -n "$AR"; then
46152   ac_cv_prog_AR="$AR" # Let the user override the test.
46153 else
46154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46155 for as_dir in $PATH
46156 do
46157   IFS=$as_save_IFS
46158   test -z "$as_dir" && as_dir=.
46159   for ac_exec_ext in '' $ac_executable_extensions; do
46160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46161     ac_cv_prog_AR="${ac_tool_prefix}ar"
46162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46163     break 2
46164   fi
46165 done
46166 done
46167
46168 fi
46169 fi
46170 AR=$ac_cv_prog_AR
46171 if test -n "$AR"; then
46172   echo "$as_me:$LINENO: result: $AR" >&5
46173 echo "${ECHO_T}$AR" >&6
46174 else
46175   echo "$as_me:$LINENO: result: no" >&5
46176 echo "${ECHO_T}no" >&6
46177 fi
46178
46179 fi
46180 if test -z "$ac_cv_prog_AR"; then
46181   ac_ct_AR=$AR
46182   # Extract the first word of "ar", so it can be a program name with args.
46183 set dummy ar; ac_word=$2
46184 echo "$as_me:$LINENO: checking for $ac_word" >&5
46185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46187   echo $ECHO_N "(cached) $ECHO_C" >&6
46188 else
46189   if test -n "$ac_ct_AR"; then
46190   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46191 else
46192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46193 for as_dir in $PATH
46194 do
46195   IFS=$as_save_IFS
46196   test -z "$as_dir" && as_dir=.
46197   for ac_exec_ext in '' $ac_executable_extensions; do
46198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46199     ac_cv_prog_ac_ct_AR="ar"
46200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46201     break 2
46202   fi
46203 done
46204 done
46205
46206   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46207 fi
46208 fi
46209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
46210 if test -n "$ac_ct_AR"; then
46211   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46212 echo "${ECHO_T}$ac_ct_AR" >&6
46213 else
46214   echo "$as_me:$LINENO: result: no" >&5
46215 echo "${ECHO_T}no" >&6
46216 fi
46217
46218   AR=$ac_ct_AR
46219 else
46220   AR="$ac_cv_prog_AR"
46221 fi
46222
46223     if test -n "$ac_tool_prefix"; then
46224   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46225 set dummy ${ac_tool_prefix}strip; ac_word=$2
46226 echo "$as_me:$LINENO: checking for $ac_word" >&5
46227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46228 if test "${ac_cv_prog_STRIP+set}" = set; then
46229   echo $ECHO_N "(cached) $ECHO_C" >&6
46230 else
46231   if test -n "$STRIP"; then
46232   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46233 else
46234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46235 for as_dir in $PATH
46236 do
46237   IFS=$as_save_IFS
46238   test -z "$as_dir" && as_dir=.
46239   for ac_exec_ext in '' $ac_executable_extensions; do
46240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46241     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46243     break 2
46244   fi
46245 done
46246 done
46247
46248 fi
46249 fi
46250 STRIP=$ac_cv_prog_STRIP
46251 if test -n "$STRIP"; then
46252   echo "$as_me:$LINENO: result: $STRIP" >&5
46253 echo "${ECHO_T}$STRIP" >&6
46254 else
46255   echo "$as_me:$LINENO: result: no" >&5
46256 echo "${ECHO_T}no" >&6
46257 fi
46258
46259 fi
46260 if test -z "$ac_cv_prog_STRIP"; then
46261   ac_ct_STRIP=$STRIP
46262   # Extract the first word of "strip", so it can be a program name with args.
46263 set dummy strip; ac_word=$2
46264 echo "$as_me:$LINENO: checking for $ac_word" >&5
46265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46267   echo $ECHO_N "(cached) $ECHO_C" >&6
46268 else
46269   if test -n "$ac_ct_STRIP"; then
46270   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46271 else
46272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46273 for as_dir in $PATH
46274 do
46275   IFS=$as_save_IFS
46276   test -z "$as_dir" && as_dir=.
46277   for ac_exec_ext in '' $ac_executable_extensions; do
46278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46279     ac_cv_prog_ac_ct_STRIP="strip"
46280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46281     break 2
46282   fi
46283 done
46284 done
46285
46286   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46287 fi
46288 fi
46289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46290 if test -n "$ac_ct_STRIP"; then
46291   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46292 echo "${ECHO_T}$ac_ct_STRIP" >&6
46293 else
46294   echo "$as_me:$LINENO: result: no" >&5
46295 echo "${ECHO_T}no" >&6
46296 fi
46297
46298   STRIP=$ac_ct_STRIP
46299 else
46300   STRIP="$ac_cv_prog_STRIP"
46301 fi
46302
46303     if test -n "$ac_tool_prefix"; then
46304   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46305 set dummy ${ac_tool_prefix}nm; ac_word=$2
46306 echo "$as_me:$LINENO: checking for $ac_word" >&5
46307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46308 if test "${ac_cv_prog_NM+set}" = set; then
46309   echo $ECHO_N "(cached) $ECHO_C" >&6
46310 else
46311   if test -n "$NM"; then
46312   ac_cv_prog_NM="$NM" # Let the user override the test.
46313 else
46314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46315 for as_dir in $PATH
46316 do
46317   IFS=$as_save_IFS
46318   test -z "$as_dir" && as_dir=.
46319   for ac_exec_ext in '' $ac_executable_extensions; do
46320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46321     ac_cv_prog_NM="${ac_tool_prefix}nm"
46322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46323     break 2
46324   fi
46325 done
46326 done
46327
46328 fi
46329 fi
46330 NM=$ac_cv_prog_NM
46331 if test -n "$NM"; then
46332   echo "$as_me:$LINENO: result: $NM" >&5
46333 echo "${ECHO_T}$NM" >&6
46334 else
46335   echo "$as_me:$LINENO: result: no" >&5
46336 echo "${ECHO_T}no" >&6
46337 fi
46338
46339 fi
46340 if test -z "$ac_cv_prog_NM"; then
46341   ac_ct_NM=$NM
46342   # Extract the first word of "nm", so it can be a program name with args.
46343 set dummy nm; ac_word=$2
46344 echo "$as_me:$LINENO: checking for $ac_word" >&5
46345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46346 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46347   echo $ECHO_N "(cached) $ECHO_C" >&6
46348 else
46349   if test -n "$ac_ct_NM"; then
46350   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46351 else
46352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46353 for as_dir in $PATH
46354 do
46355   IFS=$as_save_IFS
46356   test -z "$as_dir" && as_dir=.
46357   for ac_exec_ext in '' $ac_executable_extensions; do
46358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46359     ac_cv_prog_ac_ct_NM="nm"
46360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46361     break 2
46362   fi
46363 done
46364 done
46365
46366   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46367 fi
46368 fi
46369 ac_ct_NM=$ac_cv_prog_ac_ct_NM
46370 if test -n "$ac_ct_NM"; then
46371   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46372 echo "${ECHO_T}$ac_ct_NM" >&6
46373 else
46374   echo "$as_me:$LINENO: result: no" >&5
46375 echo "${ECHO_T}no" >&6
46376 fi
46377
46378   NM=$ac_ct_NM
46379 else
46380   NM="$ac_cv_prog_NM"
46381 fi
46382
46383
46384     case ${BAKEFILE_HOST} in
46385         *-hp-hpux* )
46386                                     INSTALL_DIR="mkdir -p"
46387             ;;
46388         *)  INSTALL_DIR="$INSTALL -d"
46389             ;;
46390     esac
46391
46392
46393     LDFLAGS_GUI=
46394     case ${BAKEFILE_HOST} in
46395         *-*-cygwin* | *-*-mingw32* )
46396         LDFLAGS_GUI="-mwindows"
46397     esac
46398
46399
46400     fi
46401
46402         echo "$as_me:$LINENO: checking if make is GNU make" >&5
46403 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46404 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46405   echo $ECHO_N "(cached) $ECHO_C" >&6
46406 else
46407
46408         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46409                 egrep -s GNU > /dev/null); then
46410             bakefile_cv_prog_makeisgnu="yes"
46411         else
46412             bakefile_cv_prog_makeisgnu="no"
46413         fi
46414
46415 fi
46416 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46417 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46418
46419     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46420         IF_GNU_MAKE=""
46421     else
46422         IF_GNU_MAKE="#"
46423     fi
46424
46425
46426
46427     PLATFORM_UNIX=0
46428     PLATFORM_WIN32=0
46429     PLATFORM_MSDOS=0
46430     PLATFORM_MAC=0
46431     PLATFORM_MACOS=0
46432     PLATFORM_MACOSX=0
46433     PLATFORM_OS2=0
46434     PLATFORM_BEOS=0
46435
46436     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46437         case "${BAKEFILE_HOST}" in
46438             *-*-mingw32* )
46439                 PLATFORM_WIN32=1
46440             ;;
46441             *-pc-msdosdjgpp )
46442                 PLATFORM_MSDOS=1
46443             ;;
46444             *-pc-os2_emx | *-pc-os2-emx )
46445                 PLATFORM_OS2=1
46446             ;;
46447             *-*-darwin* )
46448                 PLATFORM_MAC=1
46449                 PLATFORM_MACOSX=1
46450             ;;
46451             *-*-beos* )
46452                 PLATFORM_BEOS=1
46453             ;;
46454             powerpc-apple-macos* )
46455                 PLATFORM_MAC=1
46456                 PLATFORM_MACOS=1
46457             ;;
46458             * )
46459                 PLATFORM_UNIX=1
46460             ;;
46461         esac
46462     else
46463         case "$BAKEFILE_FORCE_PLATFORM" in
46464             win32 )
46465                 PLATFORM_WIN32=1
46466             ;;
46467             msdos )
46468                 PLATFORM_MSDOS=1
46469             ;;
46470             os2 )
46471                 PLATFORM_OS2=1
46472             ;;
46473             darwin )
46474                 PLATFORM_MAC=1
46475                 PLATFORM_MACOSX=1
46476             ;;
46477             unix )
46478                 PLATFORM_UNIX=1
46479             ;;
46480             beos )
46481                 PLATFORM_BEOS=1
46482             ;;
46483             * )
46484                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46485 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46486    { (exit 1); exit 1; }; }
46487             ;;
46488         esac
46489     fi
46490
46491
46492
46493
46494
46495
46496
46497
46498
46499
46500
46501     # Check whether --enable-omf or --disable-omf was given.
46502 if test "${enable_omf+set}" = set; then
46503   enableval="$enable_omf"
46504   bk_os2_use_omf="$enableval"
46505 fi;
46506
46507     case "${BAKEFILE_HOST}" in
46508       *-*-darwin* )
46509                         if test "x$GCC" = "xyes"; then
46510             CFLAGS="$CFLAGS -fno-common"
46511             CXXFLAGS="$CXXFLAGS -fno-common"
46512         fi
46513         if test "x$XLCC" = "xyes"; then
46514             CFLAGS="$CFLAGS -qnocommon"
46515             CXXFLAGS="$CXXFLAGS -qnocommon"
46516         fi
46517         ;;
46518
46519       *-pc-os2_emx | *-pc-os2-emx )
46520         if test "x$bk_os2_use_omf" = "xyes" ; then
46521             AR=emxomfar
46522             RANLIB=:
46523             LDFLAGS="-Zomf $LDFLAGS"
46524             CFLAGS="-Zomf $CFLAGS"
46525             CXXFLAGS="-Zomf $CXXFLAGS"
46526             OS2_LIBEXT="lib"
46527         else
46528             OS2_LIBEXT="a"
46529         fi
46530         ;;
46531
46532       i*86-*-beos* )
46533         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46534         ;;
46535     esac
46536
46537
46538     SO_SUFFIX="so"
46539     SO_SUFFIX_MODULE="so"
46540     EXEEXT=""
46541     LIBPREFIX="lib"
46542     LIBEXT=".a"
46543     DLLPREFIX="lib"
46544     DLLPREFIX_MODULE=""
46545     DLLIMP_SUFFIX=""
46546     dlldir="$libdir"
46547
46548     case "${BAKEFILE_HOST}" in
46549         *-hp-hpux* )
46550             SO_SUFFIX="sl"
46551             SO_SUFFIX_MODULE="sl"
46552         ;;
46553         *-*-aix* )
46554                                                                         SO_SUFFIX="a"
46555             SO_SUFFIX_MODULE="a"
46556         ;;
46557         *-*-cygwin* )
46558             SO_SUFFIX="dll"
46559             SO_SUFFIX_MODULE="dll"
46560             DLLIMP_SUFFIX="dll.a"
46561             EXEEXT=".exe"
46562             DLLPREFIX="cyg"
46563             dlldir="$bindir"
46564         ;;
46565         *-*-mingw32* )
46566             SO_SUFFIX="dll"
46567             SO_SUFFIX_MODULE="dll"
46568             DLLIMP_SUFFIX="dll.a"
46569             EXEEXT=".exe"
46570             DLLPREFIX=""
46571             dlldir="$bindir"
46572         ;;
46573         *-pc-msdosdjgpp )
46574             EXEEXT=".exe"
46575             DLLPREFIX=""
46576             dlldir="$bindir"
46577         ;;
46578         *-pc-os2_emx | *-pc-os2-emx )
46579             SO_SUFFIX="dll"
46580             SO_SUFFIX_MODULE="dll"
46581             DLLIMP_SUFFIX=$OS2_LIBEXT
46582             EXEEXT=".exe"
46583             DLLPREFIX=""
46584             LIBPREFIX=""
46585             LIBEXT=".$OS2_LIBEXT"
46586             dlldir="$bindir"
46587         ;;
46588         *-*-darwin* )
46589             SO_SUFFIX="dylib"
46590             SO_SUFFIX_MODULE="bundle"
46591         ;;
46592     esac
46593
46594     if test "x$DLLIMP_SUFFIX" = "x" ; then
46595         DLLIMP_SUFFIX="$SO_SUFFIX"
46596     fi
46597
46598
46599
46600
46601
46602
46603
46604
46605
46606
46607
46608
46609         PIC_FLAG=""
46610     if test "x$GCC" = "xyes"; then
46611                 PIC_FLAG="-fPIC"
46612     fi
46613
46614         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46615     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
46616     WINDOWS_IMPLIB=0
46617
46618     case "${BAKEFILE_HOST}" in
46619       *-hp-hpux* )
46620                 if test "x$GCC" != "xyes"; then
46621                         LDFLAGS="$LDFLAGS -L/usr/lib"
46622
46623             SHARED_LD_CC="${CC} -b -o"
46624             SHARED_LD_CXX="${CXX} -b -o"
46625             PIC_FLAG="+Z"
46626         fi
46627       ;;
46628
46629       *-*-linux* )
46630         if test "x$GCC" != "xyes"; then
46631             echo "$as_me:$LINENO: checking for Intel compiler" >&5
46632 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46633 if test "${bakefile_cv_prog_icc+set}" = set; then
46634   echo $ECHO_N "(cached) $ECHO_C" >&6
46635 else
46636
46637                 cat >conftest.$ac_ext <<_ACEOF
46638 /* confdefs.h.  */
46639 _ACEOF
46640 cat confdefs.h >>conftest.$ac_ext
46641 cat >>conftest.$ac_ext <<_ACEOF
46642 /* end confdefs.h.  */
46643
46644 int
46645 main ()
46646 {
46647
46648                         #ifndef __INTEL_COMPILER
46649                         This is not ICC
46650                         #endif
46651
46652   ;
46653   return 0;
46654 }
46655 _ACEOF
46656 rm -f conftest.$ac_objext
46657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46658   (eval $ac_compile) 2>conftest.er1
46659   ac_status=$?
46660   grep -v '^ *+' conftest.er1 >conftest.err
46661   rm -f conftest.er1
46662   cat conftest.err >&5
46663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46664   (exit $ac_status); } &&
46665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46667   (eval $ac_try) 2>&5
46668   ac_status=$?
46669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46670   (exit $ac_status); }; } &&
46671          { ac_try='test -s conftest.$ac_objext'
46672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46673   (eval $ac_try) 2>&5
46674   ac_status=$?
46675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46676   (exit $ac_status); }; }; then
46677   bakefile_cv_prog_icc=yes
46678 else
46679   echo "$as_me: failed program was:" >&5
46680 sed 's/^/| /' conftest.$ac_ext >&5
46681
46682 bakefile_cv_prog_icc=no
46683
46684 fi
46685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46686
46687 fi
46688 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46689 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46690             if test "$bakefile_cv_prog_icc" = "yes"; then
46691                 PIC_FLAG="-KPIC"
46692             fi
46693         fi
46694       ;;
46695
46696       *-*-solaris2* )
46697         if test "x$GCC" != xyes ; then
46698             SHARED_LD_CC="${CC} -G -o"
46699             SHARED_LD_CXX="${CXX} -G -o"
46700             PIC_FLAG="-KPIC"
46701         fi
46702       ;;
46703
46704       *-*-darwin* )
46705
46706 D='$'
46707 cat <<EOF >shared-ld-sh
46708 #!/bin/sh
46709 #-----------------------------------------------------------------------------
46710 #-- Name:        distrib/mac/shared-ld-sh
46711 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
46712 #-- Author:      Gilles Depeyrot
46713 #-- Copyright:   (c) 2002 Gilles Depeyrot
46714 #-- Licence:     any use permitted
46715 #-----------------------------------------------------------------------------
46716
46717 verbose=0
46718 args=""
46719 objects=""
46720 linking_flag="-dynamiclib"
46721 ldargs="-r -keep_private_externs -nostdlib"
46722
46723 while test ${D}# -gt 0; do
46724     case ${D}1 in
46725
46726        -v)
46727         verbose=1
46728         ;;
46729
46730        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46731         # collect these options and values
46732         args="${D}{args} ${D}1 ${D}2"
46733         shift
46734         ;;
46735
46736        -s|-Wl,*)
46737         # collect these load args
46738         ldargs="${D}{ldargs} ${D}1"
46739         ;;
46740
46741        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
46742         # collect these options
46743         args="${D}{args} ${D}1"
46744         ;;
46745
46746        -dynamiclib|-bundle)
46747         linking_flag="${D}1"
46748         ;;
46749
46750        -*)
46751         echo "shared-ld: unhandled option '${D}1'"
46752         exit 1
46753         ;;
46754
46755         *.o | *.a | *.dylib)
46756         # collect object files
46757         objects="${D}{objects} ${D}1"
46758         ;;
46759
46760         *)
46761         echo "shared-ld: unhandled argument '${D}1'"
46762         exit 1
46763         ;;
46764
46765     esac
46766     shift
46767 done
46768
46769 status=0
46770
46771 #
46772 # Link one module containing all the others
46773 #
46774 if test ${D}{verbose} = 1; then
46775     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
46776 fi
46777 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
46778 status=${D}?
46779
46780 #
46781 # Link the shared library from the single module created, but only if the
46782 # previous command didn't fail:
46783 #
46784 if test ${D}{status} = 0; then
46785     if test ${D}{verbose} = 1; then
46786         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46787     fi
46788     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46789     status=${D}?
46790 fi
46791
46792 #
46793 # Remove intermediate module
46794 #
46795 rm -f master.${D}${D}.o
46796
46797 exit ${D}status
46798 EOF
46799
46800         chmod +x shared-ld-sh
46801
46802         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46803         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46804
46805
46806                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46807 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46808 if test "${bakefile_cv_gcc31+set}" = set; then
46809   echo $ECHO_N "(cached) $ECHO_C" >&6
46810 else
46811
46812            cat >conftest.$ac_ext <<_ACEOF
46813 /* confdefs.h.  */
46814 _ACEOF
46815 cat confdefs.h >>conftest.$ac_ext
46816 cat >>conftest.$ac_ext <<_ACEOF
46817 /* end confdefs.h.  */
46818
46819 int
46820 main ()
46821 {
46822
46823                    #if (__GNUC__ < 3) || \
46824                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46825                        This is old gcc
46826                    #endif
46827
46828   ;
46829   return 0;
46830 }
46831 _ACEOF
46832 rm -f conftest.$ac_objext
46833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46834   (eval $ac_compile) 2>conftest.er1
46835   ac_status=$?
46836   grep -v '^ *+' conftest.er1 >conftest.err
46837   rm -f conftest.er1
46838   cat conftest.err >&5
46839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46840   (exit $ac_status); } &&
46841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46843   (eval $ac_try) 2>&5
46844   ac_status=$?
46845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46846   (exit $ac_status); }; } &&
46847          { ac_try='test -s conftest.$ac_objext'
46848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46849   (eval $ac_try) 2>&5
46850   ac_status=$?
46851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852   (exit $ac_status); }; }; then
46853
46854                    bakefile_cv_gcc31=yes
46855
46856 else
46857   echo "$as_me: failed program was:" >&5
46858 sed 's/^/| /' conftest.$ac_ext >&5
46859
46860
46861                    bakefile_cv_gcc31=no
46862
46863
46864 fi
46865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46866
46867 fi
46868 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46869 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46870         if test "$bakefile_cv_gcc31" = "no"; then
46871                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
46872             SHARED_LD_CXX="$SHARED_LD_CC"
46873         else
46874                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
46875             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
46876         fi
46877
46878         if test "x$GCC" == "xyes"; then
46879             PIC_FLAG="-dynamic -fPIC"
46880         fi
46881         if test "x$XLCC" = "xyes"; then
46882             PIC_FLAG="-dynamic -DPIC"
46883         fi
46884       ;;
46885
46886       *-*-aix* )
46887         if test "x$GCC" = "xyes"; then
46888                                                             PIC_FLAG=""
46889
46890                                                                                     case "${BAKEFILE_HOST}" in
46891                 *-*-aix5* )
46892                     LD_EXPFULL="-Wl,-bexpfull"
46893                     ;;
46894             esac
46895
46896             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46897             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46898         else
46899                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
46900 set dummy makeC++SharedLib; ac_word=$2
46901 echo "$as_me:$LINENO: checking for $ac_word" >&5
46902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46903 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46904   echo $ECHO_N "(cached) $ECHO_C" >&6
46905 else
46906   if test -n "$AIX_CXX_LD"; then
46907   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46908 else
46909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46910 for as_dir in $PATH
46911 do
46912   IFS=$as_save_IFS
46913   test -z "$as_dir" && as_dir=.
46914   for ac_exec_ext in '' $ac_executable_extensions; do
46915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46916     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46918     break 2
46919   fi
46920 done
46921 done
46922
46923   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46924 fi
46925 fi
46926 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46927 if test -n "$AIX_CXX_LD"; then
46928   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46929 echo "${ECHO_T}$AIX_CXX_LD" >&6
46930 else
46931   echo "$as_me:$LINENO: result: no" >&5
46932 echo "${ECHO_T}no" >&6
46933 fi
46934
46935             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
46936             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46937         fi
46938       ;;
46939
46940       *-*-beos* )
46941                         SHARED_LD_CC="${LD} -nostart -o"
46942         SHARED_LD_CXX="${LD} -nostart -o"
46943       ;;
46944
46945       *-*-irix* )
46946                 if test "x$GCC" != "xyes"; then
46947             PIC_FLAG="-KPIC"
46948         fi
46949       ;;
46950
46951       *-*-cygwin* | *-*-mingw32* )
46952         PIC_FLAG=""
46953         SHARED_LD_CC="\$(CC) -shared -o"
46954         SHARED_LD_CXX="\$(CXX) -shared -o"
46955         WINDOWS_IMPLIB=1
46956       ;;
46957
46958       *-pc-os2_emx | *-pc-os2-emx )
46959         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46960         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46961         PIC_FLAG=""
46962
46963 D='$'
46964 cat <<EOF >dllar.sh
46965 #!/bin/sh
46966 #
46967 # dllar - a tool to build both a .dll and an .a file
46968 # from a set of object (.o) files for EMX/OS2.
46969 #
46970 #  Written by Andrew Zabolotny, bit@freya.etu.ru
46971 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46972 #
46973 #  This script will accept a set of files on the command line.
46974 #  All the public symbols from the .o files will be exported into
46975 #  a .DEF file, then linker will be run (through gcc) against them to
46976 #  build a shared library consisting of all given .o files. All libraries
46977 #  (.a) will be first decompressed into component .o files then act as
46978 #  described above. You can optionally give a description (-d "description")
46979 #  which will be put into .DLL. To see the list of accepted options (as well
46980 #  as command-line format) simply run this program without options. The .DLL
46981 #  is built to be imported by name (there is no guarantee that new versions
46982 #  of the library you build will have same ordinals for same symbols).
46983 #
46984 #  dllar is free software; you can redistribute it and/or modify
46985 #  it under the terms of the GNU General Public License as published by
46986 #  the Free Software Foundation; either version 2, or (at your option)
46987 #  any later version.
46988 #
46989 #  dllar is distributed in the hope that it will be useful,
46990 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
46991 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46992 #  GNU General Public License for more details.
46993 #
46994 #  You should have received a copy of the GNU General Public License
46995 #  along with dllar; see the file COPYING.  If not, write to the Free
46996 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46997 #  02111-1307, USA.
46998
46999 # To successfuly run this program you will need:
47000 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
47001 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47002 #  - gcc
47003 #    (used to build the .dll)
47004 #  - emxexp
47005 #    (used to create .def file from .o files)
47006 #  - emximp
47007 #    (used to create .a file from .def file)
47008 #  - GNU text utilites (cat, sort, uniq)
47009 #    used to process emxexp output
47010 #  - GNU file utilities (mv, rm)
47011 #  - GNU sed
47012 #  - lxlite (optional, see flag below)
47013 #    (used for general .dll cleanup)
47014 #
47015
47016 flag_USE_LXLITE=1;
47017
47018 #
47019 # helper functions
47020 # basnam, variant of basename, which does _not_ remove the path, _iff_
47021 #                              second argument (suffix to remove) is given
47022 basnam(){
47023     case ${D}# in
47024     1)
47025         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
47026         ;;
47027     2)
47028         echo ${D}1 | sed 's/'${D}2'${D}//'
47029         ;;
47030     *)
47031         echo "error in basnam ${D}*"
47032         exit 8
47033         ;;
47034     esac
47035 }
47036
47037 # Cleanup temporary files and output
47038 CleanUp() {
47039     cd ${D}curDir
47040     for i in ${D}inputFiles ; do
47041         case ${D}i in
47042         *!)
47043             rm -rf \`basnam ${D}i !\`
47044             ;;
47045         *)
47046             ;;
47047         esac
47048     done
47049
47050     # Kill result in case of failure as there is just to many stupid make/nmake
47051     # things out there which doesn't do this.
47052     if [ ${D}# -eq 0 ]; then
47053         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47054     fi
47055 }
47056
47057 # Print usage and exit script with rc=1.
47058 PrintHelp() {
47059  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47060  echo '       [-name-mangler-script script.sh]'
47061  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47062  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
47063  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
47064  echo '       [*.o] [*.a]'
47065  echo '*> "output_file" should have no extension.'
47066  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
47067  echo '   The import library name is derived from this and is set to "name".a,'
47068  echo '   unless overridden by -import'
47069  echo '*> "importlib_name" should have no extension.'
47070  echo '   If it has the .o, or .a extension, it is automatically removed.'
47071  echo '   This name is used as the import library name and may be longer and'
47072  echo '   more descriptive than the DLL name which has to follow the old '
47073  echo '   8.3 convention of FAT.'
47074  echo '*> "script.sh may be given to override the output_file name by a'
47075  echo '   different name. It is mainly useful if the regular make process'
47076  echo '   of some package does not take into account OS/2 restriction of'
47077  echo '   DLL name lengths. It takes the importlib name as input and is'
47078  echo '   supposed to procude a shorter name as output. The script should'
47079  echo '   expect to get importlib_name without extension and should produce'
47080  echo '   a (max.) 8 letter name without extension.'
47081  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
47082  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47083  echo '   These flags will be put at the start of GCC command line.'
47084  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47085  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
47086  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47087  echo '   If the last character of a symbol is "*", all symbols beginning'
47088  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
47089  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
47090  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
47091  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
47092  echo '   C runtime DLLs.'
47093  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
47094  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47095  echo '   unchanged to GCC at the end of command line.'
47096  echo '*> If you create a DLL from a library and you do not specify -o,'
47097  echo '   the basename for DLL and import library will be set to library name,'
47098  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
47099  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47100  echo '   library will be renamed into gcc_s.a.'
47101  echo '--------'
47102  echo 'Example:'
47103  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47104  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47105  CleanUp
47106  exit 1
47107 }
47108
47109 # Execute a command.
47110 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47111 # @Uses    Whatever CleanUp() uses.
47112 doCommand() {
47113     echo "${D}*"
47114     eval ${D}*
47115     rcCmd=${D}?
47116
47117     if [ ${D}rcCmd -ne 0 ]; then
47118         echo "command failed, exit code="${D}rcCmd
47119         CleanUp
47120         exit ${D}rcCmd
47121     fi
47122 }
47123
47124 # main routine
47125 # setup globals
47126 cmdLine=${D}*
47127 outFile=""
47128 outimpFile=""
47129 inputFiles=""
47130 renameScript=""
47131 description=""
47132 CC=gcc.exe
47133 CFLAGS="-s -Zcrtdll"
47134 EXTRA_CFLAGS=""
47135 EXPORT_BY_ORDINALS=0
47136 exclude_symbols=""
47137 library_flags=""
47138 curDir=\`pwd\`
47139 curDirS=curDir
47140 case ${D}curDirS in
47141 */)
47142   ;;
47143 *)
47144   curDirS=${D}{curDirS}"/"
47145   ;;
47146 esac
47147 # Parse commandline
47148 libsToLink=0
47149 omfLinking=0
47150 while [ ${D}1 ]; do
47151     case ${D}1 in
47152     -ord*)
47153         EXPORT_BY_ORDINALS=1;
47154         ;;
47155     -o*)
47156         shift
47157         outFile=${D}1
47158         ;;
47159     -i*)
47160         shift
47161         outimpFile=${D}1
47162         ;;
47163     -name-mangler-script)
47164         shift
47165         renameScript=${D}1
47166         ;;
47167     -d*)
47168         shift
47169         description=${D}1
47170         ;;
47171     -f*)
47172         shift
47173         CFLAGS=${D}1
47174         ;;
47175     -c*)
47176         shift
47177         CC=${D}1
47178         ;;
47179     -h*)
47180         PrintHelp
47181         ;;
47182     -ex*)
47183         shift
47184         exclude_symbols=${D}{exclude_symbols}${D}1" "
47185         ;;
47186     -libf*)
47187         shift
47188         library_flags=${D}{library_flags}${D}1" "
47189         ;;
47190     -nocrt*)
47191         CFLAGS="-s"
47192         ;;
47193     -nolxl*)
47194         flag_USE_LXLITE=0
47195         ;;
47196     -* | /*)
47197         case ${D}1 in
47198         -L* | -l*)
47199             libsToLink=1
47200             ;;
47201         -Zomf)
47202             omfLinking=1
47203             ;;
47204         *)
47205             ;;
47206         esac
47207         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47208         ;;
47209     *.dll)
47210         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47211         if [ ${D}omfLinking -eq 1 ]; then
47212             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47213         else
47214             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47215         fi
47216         ;;
47217     *)
47218         found=0;
47219         if [ ${D}libsToLink -ne 0 ]; then
47220             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47221         else
47222             for file in ${D}1 ; do
47223                 if [ -f ${D}file ]; then
47224                     inputFiles="${D}{inputFiles} ${D}file"
47225                     found=1
47226                 fi
47227             done
47228             if [ ${D}found -eq 0 ]; then
47229                 echo "ERROR: No file(s) found: "${D}1
47230                 exit 8
47231             fi
47232         fi
47233       ;;
47234     esac
47235     shift
47236 done # iterate cmdline words
47237
47238 #
47239 if [ -z "${D}inputFiles" ]; then
47240     echo "dllar: no input files"
47241     PrintHelp
47242 fi
47243
47244 # Now extract all .o files from .a files
47245 newInputFiles=""
47246 for file in ${D}inputFiles ; do
47247     case ${D}file in
47248     *.a | *.lib)
47249         case ${D}file in
47250         *.a)
47251             suffix=".a"
47252             AR="ar"
47253             ;;
47254         *.lib)
47255             suffix=".lib"
47256             AR="emxomfar"
47257             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47258             ;;
47259         *)
47260             ;;
47261         esac
47262         dirname=\`basnam ${D}file ${D}suffix\`"_%"
47263         mkdir ${D}dirname
47264         if [ ${D}? -ne 0 ]; then
47265             echo "Failed to create subdirectory ./${D}dirname"
47266             CleanUp
47267             exit 8;
47268         fi
47269         # Append '!' to indicate archive
47270         newInputFiles="${D}newInputFiles ${D}{dirname}!"
47271         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47272         cd ${D}curDir
47273         found=0;
47274         for subfile in ${D}dirname/*.o* ; do
47275             if [ -f ${D}subfile ]; then
47276                 found=1
47277                 if [ -s ${D}subfile ]; then
47278                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47279                     newInputFiles="${D}newInputFiles ${D}subfile"
47280                 fi
47281             fi
47282         done
47283         if [ ${D}found -eq 0 ]; then
47284             echo "WARNING: there are no files in archive \\'${D}file\\'"
47285         fi
47286         ;;
47287     *)
47288         newInputFiles="${D}{newInputFiles} ${D}file"
47289         ;;
47290     esac
47291 done
47292 inputFiles="${D}newInputFiles"
47293
47294 # Output filename(s).
47295 do_backup=0;
47296 if [ -z ${D}outFile ]; then
47297     do_backup=1;
47298     set outFile ${D}inputFiles; outFile=${D}2
47299 fi
47300
47301 # If it is an archive, remove the '!' and the '_%' suffixes
47302 case ${D}outFile in
47303 *_%!)
47304     outFile=\`basnam ${D}outFile _%!\`
47305     ;;
47306 *)
47307     ;;
47308 esac
47309 case ${D}outFile in
47310 *.dll)
47311     outFile=\`basnam ${D}outFile .dll\`
47312     ;;
47313 *.DLL)
47314     outFile=\`basnam ${D}outFile .DLL\`
47315     ;;
47316 *.o)
47317     outFile=\`basnam ${D}outFile .o\`
47318     ;;
47319 *.obj)
47320     outFile=\`basnam ${D}outFile .obj\`
47321     ;;
47322 *.a)
47323     outFile=\`basnam ${D}outFile .a\`
47324     ;;
47325 *.lib)
47326     outFile=\`basnam ${D}outFile .lib\`
47327     ;;
47328 *)
47329     ;;
47330 esac
47331 case ${D}outimpFile in
47332 *.a)
47333     outimpFile=\`basnam ${D}outimpFile .a\`
47334     ;;
47335 *.lib)
47336     outimpFile=\`basnam ${D}outimpFile .lib\`
47337     ;;
47338 *)
47339     ;;
47340 esac
47341 if [ -z ${D}outimpFile ]; then
47342     outimpFile=${D}outFile
47343 fi
47344 defFile="${D}{outFile}.def"
47345 arcFile="${D}{outimpFile}.a"
47346 arcFile2="${D}{outimpFile}.lib"
47347
47348 #create ${D}dllFile as something matching 8.3 restrictions,
47349 if [ -z ${D}renameScript ] ; then
47350     dllFile="${D}outFile"
47351 else
47352     dllFile=\`${D}renameScript ${D}outimpFile\`
47353 fi
47354
47355 if [ ${D}do_backup -ne 0 ] ; then
47356     if [ -f ${D}arcFile ] ; then
47357         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47358     fi
47359     if [ -f ${D}arcFile2 ] ; then
47360         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47361     fi
47362 fi
47363
47364 # Extract public symbols from all the object files.
47365 tmpdefFile=${D}{defFile}_%
47366 rm -f ${D}tmpdefFile
47367 for file in ${D}inputFiles ; do
47368     case ${D}file in
47369     *!)
47370         ;;
47371     *)
47372         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47373         ;;
47374     esac
47375 done
47376
47377 # Create the def file.
47378 rm -f ${D}defFile
47379 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
47380 dllFile="${D}{dllFile}.dll"
47381 if [ ! -z ${D}description ]; then
47382     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
47383 fi
47384 echo "EXPORTS" >> ${D}defFile
47385
47386 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47387 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47388
47389 # Checks if the export is ok or not.
47390 for word in ${D}exclude_symbols; do
47391     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47392     mv ${D}{tmpdefFile}% ${D}tmpdefFile
47393 done
47394
47395
47396 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47397     sed "=" < ${D}tmpdefFile | \\
47398     sed '
47399       N
47400       : loop
47401       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
47402       t loop
47403     ' > ${D}{tmpdefFile}%
47404     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47405 else
47406     rm -f ${D}{tmpdefFile}%
47407 fi
47408 cat ${D}tmpdefFile >> ${D}defFile
47409 rm -f ${D}tmpdefFile
47410
47411 # Do linking, create implib, and apply lxlite.
47412 gccCmdl="";
47413 for file in ${D}inputFiles ; do
47414     case ${D}file in
47415     *!)
47416         ;;
47417     *)
47418         gccCmdl="${D}gccCmdl ${D}file"
47419         ;;
47420     esac
47421 done
47422 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47423 touch "${D}{outFile}.dll"
47424
47425 doCommand "emximp -o ${D}arcFile ${D}defFile"
47426 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
47427     add_flags="";
47428     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47429         add_flags="-ynd"
47430     fi
47431     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47432 fi
47433 doCommand "emxomf -s -l ${D}arcFile"
47434
47435 # Successful exit.
47436 CleanUp 1
47437 exit 0
47438 EOF
47439
47440         chmod +x dllar.sh
47441       ;;
47442
47443       powerpc-apple-macos* | \
47444       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
47445       *-*-sunos4* | \
47446       *-*-osf* | \
47447       *-*-dgux5* | \
47448       *-*-sysv5* | \
47449       *-pc-msdosdjgpp )
47450               ;;
47451
47452       *)
47453                     esac
47454
47455     if test "x$PIC_FLAG" != "x" ; then
47456         PIC_FLAG="$PIC_FLAG -DPIC"
47457     fi
47458
47459     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47460         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47461     fi
47462     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47463         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47464     fi
47465
47466
47467
47468
47469
47470
47471
47472
47473
47474     USE_SOVERSION=0
47475     USE_SOVERLINUX=0
47476     USE_SOVERSOLARIS=0
47477     USE_SOVERCYGWIN=0
47478     USE_SOSYMLINKS=0
47479     USE_MACVERSION=0
47480     SONAME_FLAG=
47481
47482     case "${BAKEFILE_HOST}" in
47483       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
47484         SONAME_FLAG="-Wl,-soname,"
47485         USE_SOVERSION=1
47486         USE_SOVERLINUX=1
47487         USE_SOSYMLINKS=1
47488       ;;
47489
47490       *-*-solaris2* )
47491         SONAME_FLAG="-h "
47492         USE_SOVERSION=1
47493         USE_SOVERSOLARIS=1
47494         USE_SOSYMLINKS=1
47495       ;;
47496
47497       *-*-darwin* )
47498         USE_MACVERSION=1
47499         USE_SOVERSION=1
47500         USE_SOSYMLINKS=1
47501       ;;
47502
47503       *-*-cygwin* )
47504         USE_SOVERSION=1
47505         USE_SOVERCYGWIN=1
47506       ;;
47507     esac
47508
47509
47510
47511
47512
47513
47514
47515
47516
47517
47518     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47519 if test "${enable_dependency_tracking+set}" = set; then
47520   enableval="$enable_dependency_tracking"
47521   bk_use_trackdeps="$enableval"
47522 fi;
47523
47524     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47525 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
47526
47527     if test "x$bk_use_trackdeps" = "xno" ; then
47528         DEPS_TRACKING=0
47529         echo "$as_me:$LINENO: result: disabled" >&5
47530 echo "${ECHO_T}disabled" >&6
47531     else
47532         DEPS_TRACKING=1
47533
47534         if test "x$GCC" = "xyes"; then
47535             DEPSMODE=gcc
47536             case "${BAKEFILE_HOST}" in
47537                 *-*-darwin* )
47538                                                             DEPSFLAG="-no-cpp-precomp -MMD"
47539                 ;;
47540                 * )
47541                     DEPSFLAG="-MMD"
47542                 ;;
47543             esac
47544             echo "$as_me:$LINENO: result: gcc" >&5
47545 echo "${ECHO_T}gcc" >&6
47546         elif test "x$MWCC" = "xyes"; then
47547             DEPSMODE=mwcc
47548             DEPSFLAG="-MM"
47549             echo "$as_me:$LINENO: result: mwcc" >&5
47550 echo "${ECHO_T}mwcc" >&6
47551         elif test "x$SUNCC" = "xyes"; then
47552             DEPSMODE=unixcc
47553             DEPSFLAG="-xM1"
47554             echo "$as_me:$LINENO: result: Sun cc" >&5
47555 echo "${ECHO_T}Sun cc" >&6
47556         elif test "x$SGICC" = "xyes"; then
47557             DEPSMODE=unixcc
47558             DEPSFLAG="-M"
47559             echo "$as_me:$LINENO: result: SGI cc" >&5
47560 echo "${ECHO_T}SGI cc" >&6
47561         elif test "x$HPCC" = "xyes"; then
47562             DEPSMODE=unixcc
47563             DEPSFLAG="+make"
47564             echo "$as_me:$LINENO: result: HP cc" >&5
47565 echo "${ECHO_T}HP cc" >&6
47566         elif test "x$COMPAQCC" = "xyes"; then
47567             DEPSMODE=gcc
47568             DEPSFLAG="-MD"
47569             echo "$as_me:$LINENO: result: Compaq cc" >&5
47570 echo "${ECHO_T}Compaq cc" >&6
47571         else
47572             DEPS_TRACKING=0
47573             echo "$as_me:$LINENO: result: none" >&5
47574 echo "${ECHO_T}none" >&6
47575         fi
47576
47577         if test $DEPS_TRACKING = 1 ; then
47578
47579 D='$'
47580 cat <<EOF >bk-deps
47581 #!/bin/sh
47582
47583 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47584 # script. It is used to track C/C++ files dependencies in portable way.
47585 #
47586 # Permission is given to use this file in any way.
47587
47588 DEPSMODE=${DEPSMODE}
47589 DEPSDIR=.deps
47590 DEPSFLAG="${DEPSFLAG}"
47591
47592 mkdir -p ${D}DEPSDIR
47593
47594 if test ${D}DEPSMODE = gcc ; then
47595     ${D}* ${D}{DEPSFLAG}
47596     status=${D}?
47597     if test ${D}{status} != 0 ; then
47598         exit ${D}{status}
47599     fi
47600     # move created file to the location we want it in:
47601     while test ${D}# -gt 0; do
47602         case "${D}1" in
47603             -o )
47604                 shift
47605                 objfile=${D}1
47606             ;;
47607             -* )
47608             ;;
47609             * )
47610                 srcfile=${D}1
47611             ;;
47612         esac
47613         shift
47614     done
47615     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47616     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
47617     if test -f ${D}depfile ; then
47618         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47619         rm -f ${D}depfile
47620     else
47621         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
47622         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
47623         if test ! -f ${D}depfile ; then
47624             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47625             depfile="${D}objfile.d"
47626         fi
47627         if test -f ${D}depfile ; then
47628             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47629             rm -f ${D}depfile
47630         fi
47631     fi
47632     exit 0
47633 elif test ${D}DEPSMODE = mwcc ; then
47634     ${D}* || exit ${D}?
47635     # Run mwcc again with -MM and redirect into the dep file we want
47636     # NOTE: We can't use shift here because we need ${D}* to be valid
47637     prevarg=
47638     for arg in ${D}* ; do
47639         if test "${D}prevarg" = "-o"; then
47640             objfile=${D}arg
47641         else
47642             case "${D}arg" in
47643                 -* )
47644                 ;;
47645                 * )
47646                     srcfile=${D}arg
47647                 ;;
47648             esac
47649         fi
47650         prevarg="${D}arg"
47651     done
47652     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
47653     exit 0
47654 elif test ${D}DEPSMODE = unixcc; then
47655     ${D}* || exit ${D}?
47656     # Run compiler again with deps flag and redirect into the dep file.
47657     # It doesn't work if the '-o FILE' option is used, but without it the
47658     # dependency file will contain the wrong name for the object. So it is
47659     # removed from the command line, and the dep file is fixed with sed.
47660     cmd=""
47661     while test ${D}# -gt 0; do
47662         case "${D}1" in
47663             -o )
47664                 shift
47665                 objfile=${D}1
47666             ;;
47667             * )
47668                 eval arg${D}#=\\${D}1
47669                 cmd="${D}cmd \\${D}arg${D}#"
47670             ;;
47671         esac
47672         shift
47673     done
47674     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
47675     exit 0
47676 else
47677     ${D}*
47678     exit ${D}?
47679 fi
47680 EOF
47681
47682             chmod +x bk-deps
47683         fi
47684     fi
47685
47686
47687
47688
47689     case ${BAKEFILE_HOST} in
47690         *-*-cygwin* | *-*-mingw32* )
47691                         if test -n "$ac_tool_prefix"; then
47692   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47693 set dummy ${ac_tool_prefix}windres; ac_word=$2
47694 echo "$as_me:$LINENO: checking for $ac_word" >&5
47695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47696 if test "${ac_cv_prog_WINDRES+set}" = set; then
47697   echo $ECHO_N "(cached) $ECHO_C" >&6
47698 else
47699   if test -n "$WINDRES"; then
47700   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47701 else
47702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47703 for as_dir in $PATH
47704 do
47705   IFS=$as_save_IFS
47706   test -z "$as_dir" && as_dir=.
47707   for ac_exec_ext in '' $ac_executable_extensions; do
47708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47709     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47711     break 2
47712   fi
47713 done
47714 done
47715
47716 fi
47717 fi
47718 WINDRES=$ac_cv_prog_WINDRES
47719 if test -n "$WINDRES"; then
47720   echo "$as_me:$LINENO: result: $WINDRES" >&5
47721 echo "${ECHO_T}$WINDRES" >&6
47722 else
47723   echo "$as_me:$LINENO: result: no" >&5
47724 echo "${ECHO_T}no" >&6
47725 fi
47726
47727 fi
47728 if test -z "$ac_cv_prog_WINDRES"; then
47729   ac_ct_WINDRES=$WINDRES
47730   # Extract the first word of "windres", so it can be a program name with args.
47731 set dummy windres; ac_word=$2
47732 echo "$as_me:$LINENO: checking for $ac_word" >&5
47733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47734 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
47735   echo $ECHO_N "(cached) $ECHO_C" >&6
47736 else
47737   if test -n "$ac_ct_WINDRES"; then
47738   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
47739 else
47740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47741 for as_dir in $PATH
47742 do
47743   IFS=$as_save_IFS
47744   test -z "$as_dir" && as_dir=.
47745   for ac_exec_ext in '' $ac_executable_extensions; do
47746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47747     ac_cv_prog_ac_ct_WINDRES="windres"
47748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47749     break 2
47750   fi
47751 done
47752 done
47753
47754 fi
47755 fi
47756 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47757 if test -n "$ac_ct_WINDRES"; then
47758   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47759 echo "${ECHO_T}$ac_ct_WINDRES" >&6
47760 else
47761   echo "$as_me:$LINENO: result: no" >&5
47762 echo "${ECHO_T}no" >&6
47763 fi
47764
47765   WINDRES=$ac_ct_WINDRES
47766 else
47767   WINDRES="$ac_cv_prog_WINDRES"
47768 fi
47769
47770          ;;
47771
47772       *-*-darwin* | powerpc-apple-macos* )
47773             # Extract the first word of "Rez", so it can be a program name with args.
47774 set dummy Rez; ac_word=$2
47775 echo "$as_me:$LINENO: checking for $ac_word" >&5
47776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47777 if test "${ac_cv_prog_REZ+set}" = set; then
47778   echo $ECHO_N "(cached) $ECHO_C" >&6
47779 else
47780   if test -n "$REZ"; then
47781   ac_cv_prog_REZ="$REZ" # Let the user override the test.
47782 else
47783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47784 for as_dir in $PATH
47785 do
47786   IFS=$as_save_IFS
47787   test -z "$as_dir" && as_dir=.
47788   for ac_exec_ext in '' $ac_executable_extensions; do
47789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47790     ac_cv_prog_REZ="Rez"
47791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47792     break 2
47793   fi
47794 done
47795 done
47796
47797   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
47798 fi
47799 fi
47800 REZ=$ac_cv_prog_REZ
47801 if test -n "$REZ"; then
47802   echo "$as_me:$LINENO: result: $REZ" >&5
47803 echo "${ECHO_T}$REZ" >&6
47804 else
47805   echo "$as_me:$LINENO: result: no" >&5
47806 echo "${ECHO_T}no" >&6
47807 fi
47808
47809             # Extract the first word of "SetFile", so it can be a program name with args.
47810 set dummy SetFile; ac_word=$2
47811 echo "$as_me:$LINENO: checking for $ac_word" >&5
47812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47813 if test "${ac_cv_prog_SETFILE+set}" = set; then
47814   echo $ECHO_N "(cached) $ECHO_C" >&6
47815 else
47816   if test -n "$SETFILE"; then
47817   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47818 else
47819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47820 for as_dir in $PATH
47821 do
47822   IFS=$as_save_IFS
47823   test -z "$as_dir" && as_dir=.
47824   for ac_exec_ext in '' $ac_executable_extensions; do
47825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47826     ac_cv_prog_SETFILE="SetFile"
47827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47828     break 2
47829   fi
47830 done
47831 done
47832
47833   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47834 fi
47835 fi
47836 SETFILE=$ac_cv_prog_SETFILE
47837 if test -n "$SETFILE"; then
47838   echo "$as_me:$LINENO: result: $SETFILE" >&5
47839 echo "${ECHO_T}$SETFILE" >&6
47840 else
47841   echo "$as_me:$LINENO: result: no" >&5
47842 echo "${ECHO_T}no" >&6
47843 fi
47844
47845         ;;
47846     esac
47847
47848
47849
47850
47851
47852
47853     BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
47854
47855
47856 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
47857
47858
47859
47860     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47861 if test "${enable_precomp_headers+set}" = set; then
47862   enableval="$enable_precomp_headers"
47863   bk_use_pch="$enableval"
47864 fi;
47865
47866     GCC_PCH=0
47867     ICC_PCH=0
47868     USE_PCH=0
47869
47870     case ${BAKEFILE_HOST} in
47871         *-*-cygwin* )
47872                                                 bk_use_pch="no"
47873             ;;
47874     esac
47875
47876     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47877         if test "x$GCC" = "xyes"; then
47878                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47879 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47880             cat >conftest.$ac_ext <<_ACEOF
47881 /* confdefs.h.  */
47882 _ACEOF
47883 cat confdefs.h >>conftest.$ac_ext
47884 cat >>conftest.$ac_ext <<_ACEOF
47885 /* end confdefs.h.  */
47886
47887 int
47888 main ()
47889 {
47890
47891                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47892                         There is no PCH support
47893                     #endif
47894                     #if (__GNUC__ < 3)
47895                         There is no PCH support
47896                     #endif
47897                     #if (__GNUC__ == 3) && \
47898                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47899                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47900                        ( defined(__INTEL_COMPILER) )
47901                         There is no PCH support
47902                     #endif
47903
47904   ;
47905   return 0;
47906 }
47907 _ACEOF
47908 rm -f conftest.$ac_objext
47909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47910   (eval $ac_compile) 2>conftest.er1
47911   ac_status=$?
47912   grep -v '^ *+' conftest.er1 >conftest.err
47913   rm -f conftest.er1
47914   cat conftest.err >&5
47915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47916   (exit $ac_status); } &&
47917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47919   (eval $ac_try) 2>&5
47920   ac_status=$?
47921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47922   (exit $ac_status); }; } &&
47923          { ac_try='test -s conftest.$ac_objext'
47924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47925   (eval $ac_try) 2>&5
47926   ac_status=$?
47927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928   (exit $ac_status); }; }; then
47929
47930                     echo "$as_me:$LINENO: result: yes" >&5
47931 echo "${ECHO_T}yes" >&6
47932                     GCC_PCH=1
47933
47934 else
47935   echo "$as_me: failed program was:" >&5
47936 sed 's/^/| /' conftest.$ac_ext >&5
47937
47938
47939                     cat >conftest.$ac_ext <<_ACEOF
47940 /* confdefs.h.  */
47941 _ACEOF
47942 cat confdefs.h >>conftest.$ac_ext
47943 cat >>conftest.$ac_ext <<_ACEOF
47944 /* end confdefs.h.  */
47945
47946 int
47947 main ()
47948 {
47949
47950                             #if !defined(__INTEL_COMPILER) || \
47951                                 (__INTEL_COMPILER < 800)
47952                                 There is no PCH support
47953                             #endif
47954
47955   ;
47956   return 0;
47957 }
47958 _ACEOF
47959 rm -f conftest.$ac_objext
47960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47961   (eval $ac_compile) 2>conftest.er1
47962   ac_status=$?
47963   grep -v '^ *+' conftest.er1 >conftest.err
47964   rm -f conftest.er1
47965   cat conftest.err >&5
47966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47967   (exit $ac_status); } &&
47968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47970   (eval $ac_try) 2>&5
47971   ac_status=$?
47972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47973   (exit $ac_status); }; } &&
47974          { ac_try='test -s conftest.$ac_objext'
47975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47976   (eval $ac_try) 2>&5
47977   ac_status=$?
47978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47979   (exit $ac_status); }; }; then
47980
47981                             echo "$as_me:$LINENO: result: yes" >&5
47982 echo "${ECHO_T}yes" >&6
47983                             ICC_PCH=1
47984
47985 else
47986   echo "$as_me: failed program was:" >&5
47987 sed 's/^/| /' conftest.$ac_ext >&5
47988
47989
47990                             echo "$as_me:$LINENO: result: no" >&5
47991 echo "${ECHO_T}no" >&6
47992
47993 fi
47994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47995
47996 fi
47997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47998             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47999                 USE_PCH=1
48000
48001 D='$'
48002 cat <<EOF >bk-make-pch
48003 #!/bin/sh
48004
48005 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48006 # script. It is used to generated precompiled headers.
48007 #
48008 # Permission is given to use this file in any way.
48009
48010 outfile="${D}{1}"
48011 header="${D}{2}"
48012 shift
48013 shift
48014
48015 compiler=""
48016 headerfile=""
48017
48018 while test ${D}{#} -gt 0; do
48019     add_to_cmdline=1
48020     case "${D}{1}" in
48021         -I* )
48022             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48023             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48024                 headerfile="${D}{incdir}/${D}{header}"
48025             fi
48026         ;;
48027         -use-pch|-use_pch )
48028             shift
48029             add_to_cmdline=0
48030         ;;
48031     esac
48032     if test ${D}add_to_cmdline = 1 ; then
48033         compiler="${D}{compiler} ${D}{1}"
48034     fi
48035     shift
48036 done
48037
48038 if test "x${D}{headerfile}" = "x" ; then
48039     echo "error: can't find header ${D}{header} in include paths" >&2
48040 else
48041     if test -f ${D}{outfile} ; then
48042         rm -f ${D}{outfile}
48043     else
48044         mkdir -p \`dirname ${D}{outfile}\`
48045     fi
48046     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
48047     mkdir -p .deps
48048     if test "x${GCC_PCH}" = "x1" ; then
48049         # can do this because gcc is >= 3.4:
48050         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48051     elif test "x${ICC_PCH}" = "x1" ; then
48052         filename=pch_gen-${D}${D}
48053         file=${D}{filename}.c
48054         dfile=${D}{filename}.d
48055         cat > ${D}file <<EOT
48056 #include "${D}header"
48057 EOT
48058         # using -MF icc complains about differing command lines in creation/use
48059         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48060           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48061           rm -f ${D}file ${D}dfile ${D}{filename}.o
48062     fi
48063     exit ${D}{?}
48064 fi
48065 EOF
48066
48067                 chmod +x bk-make-pch
48068             fi
48069         fi
48070     fi
48071
48072
48073
48074
48075     COND_BUILD_DEBUG="#"
48076     if test "x$BUILD" = "xdebug" ; then
48077         COND_BUILD_DEBUG=""
48078     fi
48079
48080     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48081     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48082         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48083     fi
48084
48085     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48086     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48087         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48088     fi
48089
48090     COND_BUILD_DEBUG_UNICODE_0="#"
48091     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48092         COND_BUILD_DEBUG_UNICODE_0=""
48093     fi
48094
48095     COND_BUILD_DEBUG_UNICODE_1="#"
48096     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48097         COND_BUILD_DEBUG_UNICODE_1=""
48098     fi
48099
48100     COND_BUILD_RELEASE="#"
48101     if test "x$BUILD" = "xrelease" ; then
48102         COND_BUILD_RELEASE=""
48103     fi
48104
48105     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48106     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48107         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48108     fi
48109
48110     COND_BUILD_RELEASE_UNICODE_0="#"
48111     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48112         COND_BUILD_RELEASE_UNICODE_0=""
48113     fi
48114
48115     COND_BUILD_RELEASE_UNICODE_1="#"
48116     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48117         COND_BUILD_RELEASE_UNICODE_1=""
48118     fi
48119
48120     COND_DEBUG_FLAG_1="#"
48121     if test "x$DEBUG_FLAG" = "x1" ; then
48122         COND_DEBUG_FLAG_1=""
48123     fi
48124
48125     COND_DEBUG_INFO_0="#"
48126     if test "x$DEBUG_INFO" = "x0" ; then
48127         COND_DEBUG_INFO_0=""
48128     fi
48129
48130     COND_DEBUG_INFO_1="#"
48131     if test "x$DEBUG_INFO" = "x1" ; then
48132         COND_DEBUG_INFO_1=""
48133     fi
48134
48135     COND_DEPS_TRACKING_0="#"
48136     if test "x$DEPS_TRACKING" = "x0" ; then
48137         COND_DEPS_TRACKING_0=""
48138     fi
48139
48140     COND_DEPS_TRACKING_1="#"
48141     if test "x$DEPS_TRACKING" = "x1" ; then
48142         COND_DEPS_TRACKING_1=""
48143     fi
48144
48145     COND_GCC_PCH_1="#"
48146     if test "x$GCC_PCH" = "x1" ; then
48147         COND_GCC_PCH_1=""
48148     fi
48149
48150     COND_ICC_PCH_1="#"
48151     if test "x$ICC_PCH" = "x1" ; then
48152         COND_ICC_PCH_1=""
48153     fi
48154
48155     COND_MONOLITHIC_0="#"
48156     if test "x$MONOLITHIC" = "x0" ; then
48157         COND_MONOLITHIC_0=""
48158     fi
48159
48160     COND_MONOLITHIC_0_SHARED_0="#"
48161     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48162         COND_MONOLITHIC_0_SHARED_0=""
48163     fi
48164
48165     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48166     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48167         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48168     fi
48169
48170     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48171     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48172         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48173     fi
48174
48175     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48176     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48177         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48178     fi
48179
48180     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48181     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48182         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48183     fi
48184
48185     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48186     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48187         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48188     fi
48189
48190     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48191     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48192         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48193     fi
48194
48195     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48196     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48197         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48198     fi
48199
48200     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48201     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48202         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48203     fi
48204
48205     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48206     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48207         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48208     fi
48209
48210     COND_MONOLITHIC_0_SHARED_1="#"
48211     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48212         COND_MONOLITHIC_0_SHARED_1=""
48213     fi
48214
48215     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48216     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48217         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48218     fi
48219
48220     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48221     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48222         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48223     fi
48224
48225     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48226     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48227         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48228     fi
48229
48230     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48231     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48232         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48233     fi
48234
48235     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48236     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48237         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48238     fi
48239
48240     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48241     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48242         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48243     fi
48244
48245     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48246     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48247         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48248     fi
48249
48250     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48251     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48252         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48253     fi
48254
48255     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48256     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48257         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48258     fi
48259
48260     COND_MONOLITHIC_0_USE_MEDIA_1="#"
48261     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48262         COND_MONOLITHIC_0_USE_MEDIA_1=""
48263     fi
48264
48265     COND_MONOLITHIC_0_USE_ODBC_1="#"
48266     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48267         COND_MONOLITHIC_0_USE_ODBC_1=""
48268     fi
48269
48270     COND_MONOLITHIC_1="#"
48271     if test "x$MONOLITHIC" = "x1" ; then
48272         COND_MONOLITHIC_1=""
48273     fi
48274
48275     COND_MONOLITHIC_1_SHARED_0="#"
48276     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48277         COND_MONOLITHIC_1_SHARED_0=""
48278     fi
48279
48280     COND_MONOLITHIC_1_SHARED_1="#"
48281     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48282         COND_MONOLITHIC_1_SHARED_1=""
48283     fi
48284
48285     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48286     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48287         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48288     fi
48289
48290     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48291     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48292         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48293     fi
48294
48295     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48296     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48297         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48298     fi
48299
48300     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48301     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48302         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48303     fi
48304
48305     COND_PLATFORM_MACOSX_1="#"
48306     if test "x$PLATFORM_MACOSX" = "x1" ; then
48307         COND_PLATFORM_MACOSX_1=""
48308     fi
48309
48310     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48311     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48312         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48313     fi
48314
48315     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48316     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48317         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48318     fi
48319
48320     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48321     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48322         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48323     fi
48324
48325     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48326     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48327         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48328     fi
48329
48330     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48331     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48332         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48333     fi
48334
48335     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48336     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48337         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48338     fi
48339
48340     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48341     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48342         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48343     fi
48344
48345     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48346     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48347         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48348     fi
48349
48350     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48351     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48352         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48353     fi
48354
48355     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48356     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48357         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48358     fi
48359
48360     COND_PLATFORM_MACOS_1="#"
48361     if test "x$PLATFORM_MACOS" = "x1" ; then
48362         COND_PLATFORM_MACOS_1=""
48363     fi
48364
48365     COND_PLATFORM_MAC_1="#"
48366     if test "x$PLATFORM_MAC" = "x1" ; then
48367         COND_PLATFORM_MAC_1=""
48368     fi
48369
48370     COND_PLATFORM_MSDOS_0="#"
48371     if test "x$PLATFORM_MSDOS" = "x0" ; then
48372         COND_PLATFORM_MSDOS_0=""
48373     fi
48374
48375     COND_PLATFORM_MSDOS_1="#"
48376     if test "x$PLATFORM_MSDOS" = "x1" ; then
48377         COND_PLATFORM_MSDOS_1=""
48378     fi
48379
48380     COND_PLATFORM_OS2_1="#"
48381     if test "x$PLATFORM_OS2" = "x1" ; then
48382         COND_PLATFORM_OS2_1=""
48383     fi
48384
48385     COND_PLATFORM_UNIX_0="#"
48386     if test "x$PLATFORM_UNIX" = "x0" ; then
48387         COND_PLATFORM_UNIX_0=""
48388     fi
48389
48390     COND_PLATFORM_UNIX_1="#"
48391     if test "x$PLATFORM_UNIX" = "x1" ; then
48392         COND_PLATFORM_UNIX_1=""
48393     fi
48394
48395     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48396     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48397         COND_PLATFORM_UNIX_1_USE_GUI_1=""
48398     fi
48399
48400     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48401     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48402         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48403     fi
48404
48405     COND_PLATFORM_WIN32_0="#"
48406     if test "x$PLATFORM_WIN32" = "x0" ; then
48407         COND_PLATFORM_WIN32_0=""
48408     fi
48409
48410     COND_PLATFORM_WIN32_1="#"
48411     if test "x$PLATFORM_WIN32" = "x1" ; then
48412         COND_PLATFORM_WIN32_1=""
48413     fi
48414
48415     COND_SHARED_0="#"
48416     if test "x$SHARED" = "x0" ; then
48417         COND_SHARED_0=""
48418     fi
48419
48420     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48421     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48422         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48423     fi
48424
48425     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48426     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48427         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48428     fi
48429
48430     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48431     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48432         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48433     fi
48434
48435     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48436     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48437         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48438     fi
48439
48440     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48441     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48442         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48443     fi
48444
48445     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48446     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48447         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48448     fi
48449
48450     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48451     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48452         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48453     fi
48454
48455     COND_SHARED_0_USE_XRC_1="#"
48456     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48457         COND_SHARED_0_USE_XRC_1=""
48458     fi
48459
48460     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48461     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48462         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48463     fi
48464
48465     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48466     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48467         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48468     fi
48469
48470     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48471     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48472         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48473     fi
48474
48475     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48476     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48477         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48478     fi
48479
48480     COND_SHARED_1="#"
48481     if test "x$SHARED" = "x1" ; then
48482         COND_SHARED_1=""
48483     fi
48484
48485     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48486     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48487         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48488     fi
48489
48490     COND_SHARED_1_USE_XRC_1="#"
48491     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48492         COND_SHARED_1_USE_XRC_1=""
48493     fi
48494
48495     COND_TOOLKIT_="#"
48496     if test "x$TOOLKIT" = "x" ; then
48497         COND_TOOLKIT_=""
48498     fi
48499
48500     COND_TOOLKIT_COCOA="#"
48501     if test "x$TOOLKIT" = "xCOCOA" ; then
48502         COND_TOOLKIT_COCOA=""
48503     fi
48504
48505     COND_TOOLKIT_COCOA_USE_GUI_1="#"
48506     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48507         COND_TOOLKIT_COCOA_USE_GUI_1=""
48508     fi
48509
48510     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48511     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48512         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48513     fi
48514
48515     COND_TOOLKIT_GTK="#"
48516     if test "x$TOOLKIT" = "xGTK" ; then
48517         COND_TOOLKIT_GTK=""
48518     fi
48519
48520     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48521     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48522         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48523     fi
48524
48525     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48526     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48527         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48528     fi
48529
48530     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48531     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48532         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48533     fi
48534
48535     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48536     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48537         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48538     fi
48539
48540     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48541     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48542         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48543     fi
48544
48545     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48546     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48547         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48548     fi
48549
48550     COND_TOOLKIT_GTK_USE_GUI_1="#"
48551     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48552         COND_TOOLKIT_GTK_USE_GUI_1=""
48553     fi
48554
48555     COND_TOOLKIT_MAC="#"
48556     if test "x$TOOLKIT" = "xMAC" ; then
48557         COND_TOOLKIT_MAC=""
48558     fi
48559
48560     COND_TOOLKIT_MAC_USE_GUI_1="#"
48561     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48562         COND_TOOLKIT_MAC_USE_GUI_1=""
48563     fi
48564
48565     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48566     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48567         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48568     fi
48569
48570     COND_TOOLKIT_MGL="#"
48571     if test "x$TOOLKIT" = "xMGL" ; then
48572         COND_TOOLKIT_MGL=""
48573     fi
48574
48575     COND_TOOLKIT_MGL_USE_GUI_1="#"
48576     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48577         COND_TOOLKIT_MGL_USE_GUI_1=""
48578     fi
48579
48580     COND_TOOLKIT_MOTIF="#"
48581     if test "x$TOOLKIT" = "xMOTIF" ; then
48582         COND_TOOLKIT_MOTIF=""
48583     fi
48584
48585     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48586     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48587         COND_TOOLKIT_MOTIF_USE_GUI_1=""
48588     fi
48589
48590     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48591     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48592         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48593     fi
48594
48595     COND_TOOLKIT_MSW="#"
48596     if test "x$TOOLKIT" = "xMSW" ; then
48597         COND_TOOLKIT_MSW=""
48598     fi
48599
48600     COND_TOOLKIT_MSW_USE_GUI_1="#"
48601     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48602         COND_TOOLKIT_MSW_USE_GUI_1=""
48603     fi
48604
48605     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48606     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48607         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48608     fi
48609
48610     COND_TOOLKIT_MSW_WXUNIV_0="#"
48611     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48612         COND_TOOLKIT_MSW_WXUNIV_0=""
48613     fi
48614
48615     COND_TOOLKIT_PM="#"
48616     if test "x$TOOLKIT" = "xPM" ; then
48617         COND_TOOLKIT_PM=""
48618     fi
48619
48620     COND_TOOLKIT_PM_USE_GUI_1="#"
48621     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48622         COND_TOOLKIT_PM_USE_GUI_1=""
48623     fi
48624
48625     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48626     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48627         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48628     fi
48629
48630     COND_TOOLKIT_WINCE="#"
48631     if test "x$TOOLKIT" = "xWINCE" ; then
48632         COND_TOOLKIT_WINCE=""
48633     fi
48634
48635     COND_TOOLKIT_WINCE_USE_GUI_1="#"
48636     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48637         COND_TOOLKIT_WINCE_USE_GUI_1=""
48638     fi
48639
48640     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48641     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48642         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48643     fi
48644
48645     COND_TOOLKIT_WINCE_WXUNIV_0="#"
48646     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48647         COND_TOOLKIT_WINCE_WXUNIV_0=""
48648     fi
48649
48650     COND_TOOLKIT_X11="#"
48651     if test "x$TOOLKIT" = "xX11" ; then
48652         COND_TOOLKIT_X11=""
48653     fi
48654
48655     COND_TOOLKIT_X11_USE_GUI_1="#"
48656     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48657         COND_TOOLKIT_X11_USE_GUI_1=""
48658     fi
48659
48660     COND_UNICODE_1="#"
48661     if test "x$UNICODE" = "x1" ; then
48662         COND_UNICODE_1=""
48663     fi
48664
48665     COND_USE_EXCEPTIONS_0="#"
48666     if test "x$USE_EXCEPTIONS" = "x0" ; then
48667         COND_USE_EXCEPTIONS_0=""
48668     fi
48669
48670     COND_USE_EXCEPTIONS_1="#"
48671     if test "x$USE_EXCEPTIONS" = "x1" ; then
48672         COND_USE_EXCEPTIONS_1=""
48673     fi
48674
48675     COND_USE_GUI_0="#"
48676     if test "x$USE_GUI" = "x0" ; then
48677         COND_USE_GUI_0=""
48678     fi
48679
48680     COND_USE_GUI_1="#"
48681     if test "x$USE_GUI" = "x1" ; then
48682         COND_USE_GUI_1=""
48683     fi
48684
48685     COND_USE_GUI_1_WXUNIV_0="#"
48686     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48687         COND_USE_GUI_1_WXUNIV_0=""
48688     fi
48689
48690     COND_USE_GUI_1_WXUNIV_1="#"
48691     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48692         COND_USE_GUI_1_WXUNIV_1=""
48693     fi
48694
48695     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48696     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48697         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48698     fi
48699
48700     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48701     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48702         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48703     fi
48704
48705     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48706     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48707         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48708     fi
48709
48710     COND_USE_ODBC_1="#"
48711     if test "x$USE_ODBC" = "x1" ; then
48712         COND_USE_ODBC_1=""
48713     fi
48714
48715     COND_USE_OPENGL_1="#"
48716     if test "x$USE_OPENGL" = "x1" ; then
48717         COND_USE_OPENGL_1=""
48718     fi
48719
48720     COND_USE_PCH_1="#"
48721     if test "x$USE_PCH" = "x1" ; then
48722         COND_USE_PCH_1=""
48723     fi
48724
48725     COND_USE_PLUGINS_0="#"
48726     if test "x$USE_PLUGINS" = "x0" ; then
48727         COND_USE_PLUGINS_0=""
48728     fi
48729
48730     COND_USE_RTTI_0="#"
48731     if test "x$USE_RTTI" = "x0" ; then
48732         COND_USE_RTTI_0=""
48733     fi
48734
48735     COND_USE_RTTI_1="#"
48736     if test "x$USE_RTTI" = "x1" ; then
48737         COND_USE_RTTI_1=""
48738     fi
48739
48740     COND_USE_SOSYMLINKS_1="#"
48741     if test "x$USE_SOSYMLINKS" = "x1" ; then
48742         COND_USE_SOSYMLINKS_1=""
48743     fi
48744
48745     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48746     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48747         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48748     fi
48749
48750     COND_USE_SOVERLINUX_1="#"
48751     if test "x$USE_SOVERLINUX" = "x1" ; then
48752         COND_USE_SOVERLINUX_1=""
48753     fi
48754
48755     COND_USE_SOVERSION_0="#"
48756     if test "x$USE_SOVERSION" = "x0" ; then
48757         COND_USE_SOVERSION_0=""
48758     fi
48759
48760     COND_USE_SOVERSOLARIS_1="#"
48761     if test "x$USE_SOVERSOLARIS" = "x1" ; then
48762         COND_USE_SOVERSOLARIS_1=""
48763     fi
48764
48765     COND_USE_THREADS_0="#"
48766     if test "x$USE_THREADS" = "x0" ; then
48767         COND_USE_THREADS_0=""
48768     fi
48769
48770     COND_USE_THREADS_1="#"
48771     if test "x$USE_THREADS" = "x1" ; then
48772         COND_USE_THREADS_1=""
48773     fi
48774
48775     COND_USE_XRC_1="#"
48776     if test "x$USE_XRC" = "x1" ; then
48777         COND_USE_XRC_1=""
48778     fi
48779
48780     COND_WINDOWS_IMPLIB_1="#"
48781     if test "x$WINDOWS_IMPLIB" = "x1" ; then
48782         COND_WINDOWS_IMPLIB_1=""
48783     fi
48784
48785     COND_WITH_PLUGIN_SDL_1="#"
48786     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48787         COND_WITH_PLUGIN_SDL_1=""
48788     fi
48789
48790     COND_WXUNIV_0="#"
48791     if test "x$WXUNIV" = "x0" ; then
48792         COND_WXUNIV_0=""
48793     fi
48794
48795     COND_WXUNIV_1="#"
48796     if test "x$WXUNIV" = "x1" ; then
48797         COND_WXUNIV_1=""
48798     fi
48799
48800     COND_WXUSE_EXPAT_BUILTIN="#"
48801     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48802         COND_WXUSE_EXPAT_BUILTIN=""
48803     fi
48804
48805     COND_WXUSE_LIBJPEG_BUILTIN="#"
48806     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48807         COND_WXUSE_LIBJPEG_BUILTIN=""
48808     fi
48809
48810     COND_WXUSE_LIBPNG_BUILTIN="#"
48811     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48812         COND_WXUSE_LIBPNG_BUILTIN=""
48813     fi
48814
48815     COND_WXUSE_LIBTIFF_BUILTIN="#"
48816     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48817         COND_WXUSE_LIBTIFF_BUILTIN=""
48818     fi
48819
48820     COND_WXUSE_ODBC_BUILTIN="#"
48821     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48822         COND_WXUSE_ODBC_BUILTIN=""
48823     fi
48824
48825     COND_WXUSE_REGEX_BUILTIN="#"
48826     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48827         COND_WXUSE_REGEX_BUILTIN=""
48828     fi
48829
48830     COND_WXUSE_ZLIB_BUILTIN="#"
48831     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48832         COND_WXUSE_ZLIB_BUILTIN=""
48833     fi
48834
48835
48836
48837     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48838         { { 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
48839 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;}
48840    { (exit 1); exit 1; }; }
48841     fi
48842
48843     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48844         { { 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
48845 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;}
48846    { (exit 1); exit 1; }; }
48847     fi
48848
48849
48850
48851 if test "$wxUSE_MAC" = 1 ; then
48852     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
48853         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48854         mv temp bk-deps
48855         chmod +x bk-deps
48856     fi
48857 fi
48858
48859 if test "$wxUSE_SHARED" = "yes"; then
48860
48861                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48862     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48863
48864                 case "${host}" in
48865       *-pc-os2_emx | *-pc-os2-emx )
48866         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48867         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48868         cp -p ${srcdir}/src/os2/dllnames.sh .
48869         cp -p ${srcdir}/src/os2/dllar.sh .
48870       ;;
48871     esac
48872 else
48873
48874         EXE_LINKER="$CXX -o"
48875
48876 fi
48877 if test "$wxUSE_OMF" = "yes"; then
48878     case "${host}" in
48879       *-pc-os2_emx | *-pc-os2-emx )
48880         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48881         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48882         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48883       ;;
48884     esac
48885 fi
48886
48887 if test $GCC_PCH = 1 ; then
48888     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
48889 fi
48890
48891 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
48892
48893 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48894
48895
48896
48897
48898
48899
48900
48901
48902
48903
48904
48905
48906
48907
48908
48909
48910
48911
48912
48913
48914
48915
48916
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
48928
48929
48930
48931
48932
48933
48934
48935
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945
48946
48947
48948
48949
48950
48951
48952
48953
48954
48955 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48956 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
48957 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
48958 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48959   echo $ECHO_N "(cached) $ECHO_C" >&6
48960 else
48961   cat >conftest.make <<\_ACEOF
48962 all:
48963         @echo 'ac_maketemp="$(MAKE)"'
48964 _ACEOF
48965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48966 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48967 if test -n "$ac_maketemp"; then
48968   eval ac_cv_prog_make_${ac_make}_set=yes
48969 else
48970   eval ac_cv_prog_make_${ac_make}_set=no
48971 fi
48972 rm -f conftest.make
48973 fi
48974 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48975   echo "$as_me:$LINENO: result: yes" >&5
48976 echo "${ECHO_T}yes" >&6
48977   SET_MAKE=
48978 else
48979   echo "$as_me:$LINENO: result: no" >&5
48980 echo "${ECHO_T}no" >&6
48981   SET_MAKE="MAKE=${MAKE-make}"
48982 fi
48983
48984
48985
48986           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48987
48988
48989 if test "$USE_WIN32" = 1; then
48990               ac_config_commands="$ac_config_commands
48991             rcdefs.h
48992         "
48993
48994 fi
48995
48996           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
48997
48998
48999           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
49000
49001
49002                     ac_config_files="$ac_config_files version-script Makefile"
49003
49004
49005           ac_config_commands="$ac_config_commands wx-config"
49006
49007
49008
49009 if test "$wxWITH_SUBDIRS" != "no"; then
49010 if test "$wxUSE_GUI" = "yes"; then
49011     SUBDIRS="samples demos utils contrib"
49012 else         SUBDIRS="samples utils"
49013 fi
49014
49015
49016
49017 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49018 if test "${with_cppunit_prefix+set}" = set; then
49019   withval="$with_cppunit_prefix"
49020   cppunit_config_prefix="$withval"
49021 else
49022   cppunit_config_prefix=""
49023 fi;
49024
49025 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49026 if test "${with_cppunit_exec_prefix+set}" = set; then
49027   withval="$with_cppunit_exec_prefix"
49028   cppunit_config_exec_prefix="$withval"
49029 else
49030   cppunit_config_exec_prefix=""
49031 fi;
49032
49033   if test x$cppunit_config_exec_prefix != x ; then
49034      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49035      if test x${CPPUNIT_CONFIG+set} != xset ; then
49036         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49037      fi
49038   fi
49039   if test x$cppunit_config_prefix != x ; then
49040      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49041      if test x${CPPUNIT_CONFIG+set} != xset ; then
49042         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49043      fi
49044   fi
49045
49046   # Extract the first word of "cppunit-config", so it can be a program name with args.
49047 set dummy cppunit-config; ac_word=$2
49048 echo "$as_me:$LINENO: checking for $ac_word" >&5
49049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49050 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49051   echo $ECHO_N "(cached) $ECHO_C" >&6
49052 else
49053   case $CPPUNIT_CONFIG in
49054   [\\/]* | ?:[\\/]*)
49055   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49056   ;;
49057   *)
49058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49059 for as_dir in $PATH
49060 do
49061   IFS=$as_save_IFS
49062   test -z "$as_dir" && as_dir=.
49063   for ac_exec_ext in '' $ac_executable_extensions; do
49064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49065     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49067     break 2
49068   fi
49069 done
49070 done
49071
49072   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49073   ;;
49074 esac
49075 fi
49076 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49077
49078 if test -n "$CPPUNIT_CONFIG"; then
49079   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49080 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49081 else
49082   echo "$as_me:$LINENO: result: no" >&5
49083 echo "${ECHO_T}no" >&6
49084 fi
49085
49086   cppunit_version_min=1.8.0
49087
49088   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49089 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49090   no_cppunit=""
49091   if test "$CPPUNIT_CONFIG" = "no" ; then
49092     echo "$as_me:$LINENO: result: no" >&5
49093 echo "${ECHO_T}no" >&6
49094     no_cppunit=yes
49095   else
49096     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49097     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49098     cppunit_version=`$CPPUNIT_CONFIG --version`
49099
49100     cppunit_major_version=`echo $cppunit_version | \
49101            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49102     cppunit_minor_version=`echo $cppunit_version | \
49103            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49104     cppunit_micro_version=`echo $cppunit_version | \
49105            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49106
49107     cppunit_major_min=`echo $cppunit_version_min | \
49108            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49109     cppunit_minor_min=`echo $cppunit_version_min | \
49110            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49111     cppunit_micro_min=`echo $cppunit_version_min | \
49112            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49113
49114     cppunit_version_proper=`expr \
49115         $cppunit_major_version \> $cppunit_major_min \| \
49116         $cppunit_major_version \= $cppunit_major_min \& \
49117         $cppunit_minor_version \> $cppunit_minor_min \| \
49118         $cppunit_major_version \= $cppunit_major_min \& \
49119         $cppunit_minor_version \= $cppunit_minor_min \& \
49120         $cppunit_micro_version \>= $cppunit_micro_min `
49121
49122     if test "$cppunit_version_proper" = "1" ; then
49123       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49124 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49125     else
49126       echo "$as_me:$LINENO: result: no" >&5
49127 echo "${ECHO_T}no" >&6
49128       no_cppunit=yes
49129     fi
49130   fi
49131
49132   if test "x$no_cppunit" = x ; then
49133      SUBDIRS="$SUBDIRS tests"
49134   else
49135      CPPUNIT_CFLAGS=""
49136      CPPUNIT_LIBS=""
49137      :
49138   fi
49139
49140
49141
49142
49143
49144 for subdir in `echo $SUBDIRS`; do
49145     if test -d ${srcdir}/${subdir} ; then
49146         if test "$wxUSE_GUI" = "yes"; then
49147             if test ${subdir} = "samples"; then
49148                                                 makefiles="samples/Makefile.in $makefiles"
49149                 for sample in `echo $SAMPLES_SUBDIRS`; do
49150                     if test -d $srcdir/samples/$sample; then
49151                         makefiles="samples/$sample/Makefile.in $makefiles"
49152                     fi
49153                 done
49154             else
49155                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49156                 eval "disabled=\$$disabled_var"
49157                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49158                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
49159             fi
49160         else                                     if test ${subdir} = "samples"; then
49161                 makefiles="samples/Makefile.in samples/console/Makefile.in"
49162             elif test ${subdir} = "utils"; then
49163                 makefiles=""
49164                 for util in HelpGen tex2rtf ; do
49165                     if test -d $srcdir/utils/$util ; then
49166                         makefiles="utils/$util/Makefile.in \
49167                                    utils/$util/src/Makefile.in \
49168                                    $makefiles"
49169                     fi
49170                 done
49171             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49172             fi
49173         fi
49174
49175         for mkin in $makefiles ; do
49176             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49177                       ac_config_files="$ac_config_files $mk"
49178
49179         done
49180     fi
49181 done
49182 fi
49183 cat >confcache <<\_ACEOF
49184 # This file is a shell script that caches the results of configure
49185 # tests run on this system so they can be shared between configure
49186 # scripts and configure runs, see configure's option --config-cache.
49187 # It is not useful on other systems.  If it contains results you don't
49188 # want to keep, you may remove or edit it.
49189 #
49190 # config.status only pays attention to the cache file if you give it
49191 # the --recheck option to rerun configure.
49192 #
49193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49195 # following values.
49196
49197 _ACEOF
49198
49199 # The following way of writing the cache mishandles newlines in values,
49200 # but we know of no workaround that is simple, portable, and efficient.
49201 # So, don't put newlines in cache variables' values.
49202 # Ultrix sh set writes to stderr and can't be redirected directly,
49203 # and sets the high bit in the cache file unless we assign to the vars.
49204 {
49205   (set) 2>&1 |
49206     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49207     *ac_space=\ *)
49208       # `set' does not quote correctly, so add quotes (double-quote
49209       # substitution turns \\\\ into \\, and sed turns \\ into \).
49210       sed -n \
49211         "s/'/'\\\\''/g;
49212           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49213       ;;
49214     *)
49215       # `set' quotes correctly as required by POSIX, so do not add quotes.
49216       sed -n \
49217         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49218       ;;
49219     esac;
49220 } |
49221   sed '
49222      t clear
49223      : clear
49224      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49225      t end
49226      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49227      : end' >>confcache
49228 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49229   if test -w $cache_file; then
49230     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49231     cat confcache >$cache_file
49232   else
49233     echo "not updating unwritable cache $cache_file"
49234   fi
49235 fi
49236 rm -f confcache
49237
49238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49239 # Let make expand exec_prefix.
49240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49241
49242 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49243 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49244 # trailing colons and then remove the whole line if VPATH becomes empty
49245 # (actually we leave an empty line to preserve line numbers).
49246 if test "x$srcdir" = x.; then
49247   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49248 s/:*\$(srcdir):*/:/;
49249 s/:*\${srcdir}:*/:/;
49250 s/:*@srcdir@:*/:/;
49251 s/^\([^=]*=[     ]*\):*/\1/;
49252 s/:*$//;
49253 s/^[^=]*=[       ]*$//;
49254 }'
49255 fi
49256
49257 DEFS=-DHAVE_CONFIG_H
49258
49259 ac_libobjs=
49260 ac_ltlibobjs=
49261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49262   # 1. Remove the extension, and $U if already installed.
49263   ac_i=`echo "$ac_i" |
49264          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49265   # 2. Add them.
49266   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49267   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49268 done
49269 LIBOBJS=$ac_libobjs
49270
49271 LTLIBOBJS=$ac_ltlibobjs
49272
49273
49274
49275 : ${CONFIG_STATUS=./config.status}
49276 ac_clean_files_save=$ac_clean_files
49277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49278 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49279 echo "$as_me: creating $CONFIG_STATUS" >&6;}
49280 cat >$CONFIG_STATUS <<_ACEOF
49281 #! $SHELL
49282 # Generated by $as_me.
49283 # Run this file to recreate the current configuration.
49284 # Compiler output produced by configure, useful for debugging
49285 # configure, is in config.log if it exists.
49286
49287 debug=false
49288 ac_cs_recheck=false
49289 ac_cs_silent=false
49290 SHELL=\${CONFIG_SHELL-$SHELL}
49291 _ACEOF
49292
49293 cat >>$CONFIG_STATUS <<\_ACEOF
49294 ## --------------------- ##
49295 ## M4sh Initialization.  ##
49296 ## --------------------- ##
49297
49298 # Be Bourne compatible
49299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49300   emulate sh
49301   NULLCMD=:
49302   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49303   # is contrary to our usage.  Disable this feature.
49304   alias -g '${1+"$@"}'='"$@"'
49305 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49306   set -o posix
49307 fi
49308 DUALCASE=1; export DUALCASE # for MKS sh
49309
49310 # Support unset when possible.
49311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49312   as_unset=unset
49313 else
49314   as_unset=false
49315 fi
49316
49317
49318 # Work around bugs in pre-3.0 UWIN ksh.
49319 $as_unset ENV MAIL MAILPATH
49320 PS1='$ '
49321 PS2='> '
49322 PS4='+ '
49323
49324 # NLS nuisances.
49325 for as_var in \
49326   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49327   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49328   LC_TELEPHONE LC_TIME
49329 do
49330   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49331     eval $as_var=C; export $as_var
49332   else
49333     $as_unset $as_var
49334   fi
49335 done
49336
49337 # Required to use basename.
49338 if expr a : '\(a\)' >/dev/null 2>&1; then
49339   as_expr=expr
49340 else
49341   as_expr=false
49342 fi
49343
49344 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49345   as_basename=basename
49346 else
49347   as_basename=false
49348 fi
49349
49350
49351 # Name of the executable.
49352 as_me=`$as_basename "$0" ||
49353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49354          X"$0" : 'X\(//\)$' \| \
49355          X"$0" : 'X\(/\)$' \| \
49356          .     : '\(.\)' 2>/dev/null ||
49357 echo X/"$0" |
49358     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49359           /^X\/\(\/\/\)$/{ s//\1/; q; }
49360           /^X\/\(\/\).*/{ s//\1/; q; }
49361           s/.*/./; q'`
49362
49363
49364 # PATH needs CR, and LINENO needs CR and PATH.
49365 # Avoid depending upon Character Ranges.
49366 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49369 as_cr_digits='0123456789'
49370 as_cr_alnum=$as_cr_Letters$as_cr_digits
49371
49372 # The user is always right.
49373 if test "${PATH_SEPARATOR+set}" != set; then
49374   echo "#! /bin/sh" >conf$$.sh
49375   echo  "exit 0"   >>conf$$.sh
49376   chmod +x conf$$.sh
49377   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49378     PATH_SEPARATOR=';'
49379   else
49380     PATH_SEPARATOR=:
49381   fi
49382   rm -f conf$$.sh
49383 fi
49384
49385
49386   as_lineno_1=$LINENO
49387   as_lineno_2=$LINENO
49388   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49389   test "x$as_lineno_1" != "x$as_lineno_2" &&
49390   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
49391   # Find who we are.  Look in the path if we contain no path at all
49392   # relative or not.
49393   case $0 in
49394     *[\\/]* ) as_myself=$0 ;;
49395     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49396 for as_dir in $PATH
49397 do
49398   IFS=$as_save_IFS
49399   test -z "$as_dir" && as_dir=.
49400   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49401 done
49402
49403        ;;
49404   esac
49405   # We did not find ourselves, most probably we were run as `sh COMMAND'
49406   # in which case we are not to be found in the path.
49407   if test "x$as_myself" = x; then
49408     as_myself=$0
49409   fi
49410   if test ! -f "$as_myself"; then
49411     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49412 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49413    { (exit 1); exit 1; }; }
49414   fi
49415   case $CONFIG_SHELL in
49416   '')
49417     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49418 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49419 do
49420   IFS=$as_save_IFS
49421   test -z "$as_dir" && as_dir=.
49422   for as_base in sh bash ksh sh5; do
49423          case $as_dir in
49424          /*)
49425            if ("$as_dir/$as_base" -c '
49426   as_lineno_1=$LINENO
49427   as_lineno_2=$LINENO
49428   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49429   test "x$as_lineno_1" != "x$as_lineno_2" &&
49430   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
49431              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49432              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49433              CONFIG_SHELL=$as_dir/$as_base
49434              export CONFIG_SHELL
49435              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49436            fi;;
49437          esac
49438        done
49439 done
49440 ;;
49441   esac
49442
49443   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49444   # uniformly replaced by the line number.  The first 'sed' inserts a
49445   # line-number line before each line; the second 'sed' does the real
49446   # work.  The second script uses 'N' to pair each line-number line
49447   # with the numbered line, and appends trailing '-' during
49448   # substitution so that $LINENO is not a special case at line end.
49449   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49450   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
49451   sed '=' <$as_myself |
49452     sed '
49453       N
49454       s,$,-,
49455       : loop
49456       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49457       t loop
49458       s,-$,,
49459       s,^['$as_cr_digits']*\n,,
49460     ' >$as_me.lineno &&
49461   chmod +x $as_me.lineno ||
49462     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49463 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49464    { (exit 1); exit 1; }; }
49465
49466   # Don't try to exec as it changes $[0], causing all sort of problems
49467   # (the dirname of $[0] is not the place where we might find the
49468   # original and so on.  Autoconf is especially sensible to this).
49469   . ./$as_me.lineno
49470   # Exit status is that of the last command.
49471   exit
49472 }
49473
49474
49475 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49476   *c*,-n*) ECHO_N= ECHO_C='
49477 ' ECHO_T='      ' ;;
49478   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49479   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
49480 esac
49481
49482 if expr a : '\(a\)' >/dev/null 2>&1; then
49483   as_expr=expr
49484 else
49485   as_expr=false
49486 fi
49487
49488 rm -f conf$$ conf$$.exe conf$$.file
49489 echo >conf$$.file
49490 if ln -s conf$$.file conf$$ 2>/dev/null; then
49491   # We could just check for DJGPP; but this test a) works b) is more generic
49492   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49493   if test -f conf$$.exe; then
49494     # Don't use ln at all; we don't have any links
49495     as_ln_s='cp -p'
49496   else
49497     as_ln_s='ln -s'
49498   fi
49499 elif ln conf$$.file conf$$ 2>/dev/null; then
49500   as_ln_s=ln
49501 else
49502   as_ln_s='cp -p'
49503 fi
49504 rm -f conf$$ conf$$.exe conf$$.file
49505
49506 if mkdir -p . 2>/dev/null; then
49507   as_mkdir_p=:
49508 else
49509   test -d ./-p && rmdir ./-p
49510   as_mkdir_p=false
49511 fi
49512
49513 as_executable_p="test -f"
49514
49515 # Sed expression to map a string onto a valid CPP name.
49516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49517
49518 # Sed expression to map a string onto a valid variable name.
49519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49520
49521
49522 # IFS
49523 # We need space, tab and new line, in precisely that order.
49524 as_nl='
49525 '
49526 IFS="   $as_nl"
49527
49528 # CDPATH.
49529 $as_unset CDPATH
49530
49531 exec 6>&1
49532
49533 # Open the log real soon, to keep \$[0] and so on meaningful, and to
49534 # report actual input values of CONFIG_FILES etc. instead of their
49535 # values after options handling.  Logging --version etc. is OK.
49536 exec 5>>config.log
49537 {
49538   echo
49539   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49540 ## Running $as_me. ##
49541 _ASBOX
49542 } >&5
49543 cat >&5 <<_CSEOF
49544
49545 This file was extended by wxWidgets $as_me 2.7.0, which was
49546 generated by GNU Autoconf 2.59.  Invocation command line was
49547
49548   CONFIG_FILES    = $CONFIG_FILES
49549   CONFIG_HEADERS  = $CONFIG_HEADERS
49550   CONFIG_LINKS    = $CONFIG_LINKS
49551   CONFIG_COMMANDS = $CONFIG_COMMANDS
49552   $ $0 $@
49553
49554 _CSEOF
49555 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49556 echo >&5
49557 _ACEOF
49558
49559 # Files that config.status was made for.
49560 if test -n "$ac_config_files"; then
49561   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49562 fi
49563
49564 if test -n "$ac_config_headers"; then
49565   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49566 fi
49567
49568 if test -n "$ac_config_links"; then
49569   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49570 fi
49571
49572 if test -n "$ac_config_commands"; then
49573   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49574 fi
49575
49576 cat >>$CONFIG_STATUS <<\_ACEOF
49577
49578 ac_cs_usage="\
49579 \`$as_me' instantiates files from templates according to the
49580 current configuration.
49581
49582 Usage: $0 [OPTIONS] [FILE]...
49583
49584   -h, --help       print this help, then exit
49585   -V, --version    print version number, then exit
49586   -q, --quiet      do not print progress messages
49587   -d, --debug      don't remove temporary files
49588       --recheck    update $as_me by reconfiguring in the same conditions
49589   --file=FILE[:TEMPLATE]
49590                    instantiate the configuration file FILE
49591   --header=FILE[:TEMPLATE]
49592                    instantiate the configuration header FILE
49593
49594 Configuration files:
49595 $config_files
49596
49597 Configuration headers:
49598 $config_headers
49599
49600 Configuration commands:
49601 $config_commands
49602
49603 Report bugs to <bug-autoconf@gnu.org>."
49604 _ACEOF
49605
49606 cat >>$CONFIG_STATUS <<_ACEOF
49607 ac_cs_version="\\
49608 wxWidgets config.status 2.7.0
49609 configured by $0, generated by GNU Autoconf 2.59,
49610   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49611
49612 Copyright (C) 2003 Free Software Foundation, Inc.
49613 This config.status script is free software; the Free Software Foundation
49614 gives unlimited permission to copy, distribute and modify it."
49615 srcdir=$srcdir
49616 INSTALL="$INSTALL"
49617 _ACEOF
49618
49619 cat >>$CONFIG_STATUS <<\_ACEOF
49620 # If no file are specified by the user, then we need to provide default
49621 # value.  By we need to know if files were specified by the user.
49622 ac_need_defaults=:
49623 while test $# != 0
49624 do
49625   case $1 in
49626   --*=*)
49627     ac_option=`expr "x$1" : 'x\([^=]*\)='`
49628     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49629     ac_shift=:
49630     ;;
49631   -*)
49632     ac_option=$1
49633     ac_optarg=$2
49634     ac_shift=shift
49635     ;;
49636   *) # This is not an option, so the user has probably given explicit
49637      # arguments.
49638      ac_option=$1
49639      ac_need_defaults=false;;
49640   esac
49641
49642   case $ac_option in
49643   # Handling of the options.
49644 _ACEOF
49645 cat >>$CONFIG_STATUS <<\_ACEOF
49646   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49647     ac_cs_recheck=: ;;
49648   --version | --vers* | -V )
49649     echo "$ac_cs_version"; exit 0 ;;
49650   --he | --h)
49651     # Conflict between --help and --header
49652     { { echo "$as_me:$LINENO: error: ambiguous option: $1
49653 Try \`$0 --help' for more information." >&5
49654 echo "$as_me: error: ambiguous option: $1
49655 Try \`$0 --help' for more information." >&2;}
49656    { (exit 1); exit 1; }; };;
49657   --help | --hel | -h )
49658     echo "$ac_cs_usage"; exit 0 ;;
49659   --debug | --d* | -d )
49660     debug=: ;;
49661   --file | --fil | --fi | --f )
49662     $ac_shift
49663     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49664     ac_need_defaults=false;;
49665   --header | --heade | --head | --hea )
49666     $ac_shift
49667     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49668     ac_need_defaults=false;;
49669   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49670   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49671     ac_cs_silent=: ;;
49672
49673   # This is an error.
49674   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49675 Try \`$0 --help' for more information." >&5
49676 echo "$as_me: error: unrecognized option: $1
49677 Try \`$0 --help' for more information." >&2;}
49678    { (exit 1); exit 1; }; } ;;
49679
49680   *) ac_config_targets="$ac_config_targets $1" ;;
49681
49682   esac
49683   shift
49684 done
49685
49686 ac_configure_extra_args=
49687
49688 if $ac_cs_silent; then
49689   exec 6>/dev/null
49690   ac_configure_extra_args="$ac_configure_extra_args --silent"
49691 fi
49692
49693 _ACEOF
49694 cat >>$CONFIG_STATUS <<_ACEOF
49695 if \$ac_cs_recheck; then
49696   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49697   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49698 fi
49699
49700 _ACEOF
49701
49702 cat >>$CONFIG_STATUS <<_ACEOF
49703 #
49704 # INIT-COMMANDS section.
49705 #
49706
49707
49708             CPP="$CPP"
49709             infile="$srcdir/include/wx/msw/genrcdefs.h"
49710             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49711
49712
49713  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49714  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49715  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49716                      LN_S="${LN_S}"
49717
49718
49719 _ACEOF
49720
49721
49722
49723 cat >>$CONFIG_STATUS <<\_ACEOF
49724 for ac_config_target in $ac_config_targets
49725 do
49726   case "$ac_config_target" in
49727   # Handling of arguments.
49728   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49729   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
49730   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49731   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49732   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
49733   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
49734   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49735   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
49736   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49737 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49738    { (exit 1); exit 1; }; };;
49739   esac
49740 done
49741
49742 # If the user did not use the arguments to specify the items to instantiate,
49743 # then the envvar interface is used.  Set only those that are not.
49744 # We use the long form for the default assignment because of an extremely
49745 # bizarre bug on SunOS 4.1.3.
49746 if $ac_need_defaults; then
49747   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49748   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49749   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49750 fi
49751
49752 # Have a temporary directory for convenience.  Make it in the build tree
49753 # simply because there is no reason to put it here, and in addition,
49754 # creating and moving files from /tmp can sometimes cause problems.
49755 # Create a temporary directory, and hook for its removal unless debugging.
49756 $debug ||
49757 {
49758   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49759   trap '{ (exit 1); exit 1; }' 1 2 13 15
49760 }
49761
49762 # Create a (secure) tmp directory for tmp files.
49763
49764 {
49765   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49766   test -n "$tmp" && test -d "$tmp"
49767 }  ||
49768 {
49769   tmp=./confstat$$-$RANDOM
49770   (umask 077 && mkdir $tmp)
49771 } ||
49772 {
49773    echo "$me: cannot create a temporary directory in ." >&2
49774    { (exit 1); exit 1; }
49775 }
49776
49777 _ACEOF
49778
49779 cat >>$CONFIG_STATUS <<_ACEOF
49780
49781 #
49782 # CONFIG_FILES section.
49783 #
49784
49785 # No need to generate the scripts if there are no CONFIG_FILES.
49786 # This happens for instance when ./config.status config.h
49787 if test -n "\$CONFIG_FILES"; then
49788   # Protect against being on the right side of a sed subst in config.status.
49789   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49790    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49791 s,@SHELL@,$SHELL,;t t
49792 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49793 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49794 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49795 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49796 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49797 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49798 s,@exec_prefix@,$exec_prefix,;t t
49799 s,@prefix@,$prefix,;t t
49800 s,@program_transform_name@,$program_transform_name,;t t
49801 s,@bindir@,$bindir,;t t
49802 s,@sbindir@,$sbindir,;t t
49803 s,@libexecdir@,$libexecdir,;t t
49804 s,@datadir@,$datadir,;t t
49805 s,@sysconfdir@,$sysconfdir,;t t
49806 s,@sharedstatedir@,$sharedstatedir,;t t
49807 s,@localstatedir@,$localstatedir,;t t
49808 s,@libdir@,$libdir,;t t
49809 s,@includedir@,$includedir,;t t
49810 s,@oldincludedir@,$oldincludedir,;t t
49811 s,@infodir@,$infodir,;t t
49812 s,@mandir@,$mandir,;t t
49813 s,@build_alias@,$build_alias,;t t
49814 s,@host_alias@,$host_alias,;t t
49815 s,@target_alias@,$target_alias,;t t
49816 s,@DEFS@,$DEFS,;t t
49817 s,@ECHO_C@,$ECHO_C,;t t
49818 s,@ECHO_N@,$ECHO_N,;t t
49819 s,@ECHO_T@,$ECHO_T,;t t
49820 s,@LIBS@,$LIBS,;t t
49821 s,@build@,$build,;t t
49822 s,@build_cpu@,$build_cpu,;t t
49823 s,@build_vendor@,$build_vendor,;t t
49824 s,@build_os@,$build_os,;t t
49825 s,@host@,$host,;t t
49826 s,@host_cpu@,$host_cpu,;t t
49827 s,@host_vendor@,$host_vendor,;t t
49828 s,@host_os@,$host_os,;t t
49829 s,@target@,$target,;t t
49830 s,@target_cpu@,$target_cpu,;t t
49831 s,@target_vendor@,$target_vendor,;t t
49832 s,@target_os@,$target_os,;t t
49833 s,@CC@,$CC,;t t
49834 s,@CFLAGS@,$CFLAGS,;t t
49835 s,@LDFLAGS@,$LDFLAGS,;t t
49836 s,@CPPFLAGS@,$CPPFLAGS,;t t
49837 s,@ac_ct_CC@,$ac_ct_CC,;t t
49838 s,@EXEEXT@,$EXEEXT,;t t
49839 s,@OBJEXT@,$OBJEXT,;t t
49840 s,@CPP@,$CPP,;t t
49841 s,@EGREP@,$EGREP,;t t
49842 s,@CXX@,$CXX,;t t
49843 s,@CXXFLAGS@,$CXXFLAGS,;t t
49844 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49845 s,@RANLIB@,$RANLIB,;t t
49846 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49847 s,@AR@,$AR,;t t
49848 s,@ac_ct_AR@,$ac_ct_AR,;t t
49849 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49850 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49851 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49852 s,@STRIP@,$STRIP,;t t
49853 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49854 s,@WINDRES@,$WINDRES,;t t
49855 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
49856 s,@DLLTOOL@,$DLLTOOL,;t t
49857 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
49858 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49859 s,@LN_S@,$LN_S,;t t
49860 s,@CXXCPP@,$CXXCPP,;t t
49861 s,@subdirs@,$subdirs,;t t
49862 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49863 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49864 s,@GTK_LIBS@,$GTK_LIBS,;t t
49865 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
49866 s,@X_CFLAGS@,$X_CFLAGS,;t t
49867 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49868 s,@X_LIBS@,$X_LIBS,;t t
49869 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49870 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
49871 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49872 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
49873 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49874 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
49875 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49876 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
49877 s,@REZ@,$REZ,;t t
49878 s,@DEREZ@,$DEREZ,;t t
49879 s,@SETFILE@,$SETFILE,;t t
49880 s,@LIBICONV@,$LIBICONV,;t t
49881 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49882 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49883 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49884 s,@SDL_LIBS@,$SDL_LIBS,;t t
49885 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49886 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
49887 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49888 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
49889 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49890 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
49891 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49892 s,@GST_LIBS@,$GST_LIBS,;t t
49893 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49894 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49895 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49896 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49897 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49898 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49899 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49900 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49901 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49902 s,@VENDOR@,$VENDOR,;t t
49903 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
49904 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49905 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
49906 s,@WXUNIV@,$WXUNIV,;t t
49907 s,@MONOLITHIC@,$MONOLITHIC,;t t
49908 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49909 s,@EXTRALIBS@,$EXTRALIBS,;t t
49910 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49911 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49912 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49913 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49914 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49915 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49916 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
49917 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
49918 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
49919 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
49920 s,@UNICODE@,$UNICODE,;t t
49921 s,@BUILD@,$BUILD,;t t
49922 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49923 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
49924 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49925 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49926 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49927 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49928 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49929 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49930 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49931 s,@SET_MAKE@,$SET_MAKE,;t t
49932 s,@MAKE_SET@,$MAKE_SET,;t t
49933 s,@NM@,$NM,;t t
49934 s,@ac_ct_NM@,$ac_ct_NM,;t t
49935 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49936 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49937 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49938 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49939 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49940 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
49941 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
49942 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49943 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
49944 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
49945 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49946 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49947 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49948 s,@LIBPREFIX@,$LIBPREFIX,;t t
49949 s,@LIBEXT@,$LIBEXT,;t t
49950 s,@DLLPREFIX@,$DLLPREFIX,;t t
49951 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
49952 s,@dlldir@,$dlldir,;t t
49953 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49954 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49955 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49956 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49957 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49958 s,@PIC_FLAG@,$PIC_FLAG,;t t
49959 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
49960 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49961 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49962 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
49963 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
49964 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49965 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49966 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49967 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49968 s,@GCC_PCH@,$GCC_PCH,;t t
49969 s,@ICC_PCH@,$ICC_PCH,;t t
49970 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49971 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49972 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49973 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49974 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49975 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49976 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49977 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49978 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49979 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49980 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49981 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49982 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49983 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49984 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49985 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
49986 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49987 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49988 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
49989 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
49990 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
49991 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
49992 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
49993 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
49994 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
49995 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
49996 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
49997 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49998 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
49999 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
50000 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
50001 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
50002 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
50003 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
50004 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
50005 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
50006 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
50007 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
50008 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50009 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50010 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50011 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50012 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50013 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
50014 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
50015 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50016 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
50017 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
50018 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50019 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50020 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
50021 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
50022 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
50023 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50024 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
50025 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50026 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
50027 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
50028 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
50029 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
50030 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
50031 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50032 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50033 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50034 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50035 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50036 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50037 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50038 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
50039 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50040 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50041 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
50042 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50043 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50044 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50045 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50046 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
50047 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50048 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50049 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50050 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50051 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50052 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
50053 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
50054 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
50055 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
50056 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
50057 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
50058 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
50059 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50060 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50061 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50062 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
50063 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50064 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
50065 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
50066 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50067 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50068 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50069 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50070 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50071 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50072 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50073 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50074 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50075 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50076 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
50077 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
50078 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50079 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50080 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
50081 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50082 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50083 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
50084 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
50085 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50086 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50087 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50088 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50089 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50090 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50091 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50092 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50093 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50094 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50095 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50096 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
50097 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50098 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
50099 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
50100 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
50101 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50102 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
50103 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
50104 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
50105 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50106 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50107 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
50108 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50109 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
50110 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
50111 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
50112 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
50113 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
50114 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50115 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50116 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50117 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50118 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50119 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50120 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50121 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
50122 s,@SHARED@,$SHARED,;t t
50123 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50124 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
50125 s,@USE_GUI@,$USE_GUI,;t t
50126 s,@AFMINSTALL@,$AFMINSTALL,;t t
50127 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50128 s,@TOOLKIT@,$TOOLKIT,;t t
50129 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
50130 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
50131 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
50132 s,@cross_compiling@,$cross_compiling,;t t
50133 s,@WIDGET_SET@,$WIDGET_SET,;t t
50134 s,@WX_RELEASE@,$WX_RELEASE,;t t
50135 s,@WX_VERSION@,$WX_VERSION,;t t
50136 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50137 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50138 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
50139 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50140 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50141 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50142 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
50143 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50144 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
50145 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
50146 s,@EXE_LINKER@,$EXE_LINKER,;t t
50147 s,@GUIDIST@,$GUIDIST,;t t
50148 s,@DISTDIR@,$DISTDIR,;t t
50149 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50150 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
50151 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50152 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50153 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
50154 s,@RESCOMP@,$RESCOMP,;t t
50155 s,@RESFLAGS@,$RESFLAGS,;t t
50156 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50157 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50158 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50159 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
50160 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
50161 s,@MACSETFILE@,$MACSETFILE,;t t
50162 s,@GCC@,$GCC,;t t
50163 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50164 s,@LIBOBJS@,$LIBOBJS,;t t
50165 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50166 CEOF
50167
50168 _ACEOF
50169
50170   cat >>$CONFIG_STATUS <<\_ACEOF
50171   # Split the substitutions into bite-sized pieces for seds with
50172   # small command number limits, like on Digital OSF/1 and HP-UX.
50173   ac_max_sed_lines=48
50174   ac_sed_frag=1 # Number of current file.
50175   ac_beg=1 # First line for current file.
50176   ac_end=$ac_max_sed_lines # Line after last line for current file.
50177   ac_more_lines=:
50178   ac_sed_cmds=
50179   while $ac_more_lines; do
50180     if test $ac_beg -gt 1; then
50181       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50182     else
50183       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50184     fi
50185     if test ! -s $tmp/subs.frag; then
50186       ac_more_lines=false
50187     else
50188       # The purpose of the label and of the branching condition is to
50189       # speed up the sed processing (if there are no `@' at all, there
50190       # is no need to browse any of the substitutions).
50191       # These are the two extra sed commands mentioned above.
50192       (echo ':t
50193   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50194       if test -z "$ac_sed_cmds"; then
50195         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50196       else
50197         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50198       fi
50199       ac_sed_frag=`expr $ac_sed_frag + 1`
50200       ac_beg=$ac_end
50201       ac_end=`expr $ac_end + $ac_max_sed_lines`
50202     fi
50203   done
50204   if test -z "$ac_sed_cmds"; then
50205     ac_sed_cmds=cat
50206   fi
50207 fi # test -n "$CONFIG_FILES"
50208
50209 _ACEOF
50210 cat >>$CONFIG_STATUS <<\_ACEOF
50211 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50212   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50213   case $ac_file in
50214   - | *:- | *:-:* ) # input from stdin
50215         cat >$tmp/stdin
50216         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50217         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50218   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50219         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50220   * )   ac_file_in=$ac_file.in ;;
50221   esac
50222
50223   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50224   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50226          X"$ac_file" : 'X\(//\)[^/]' \| \
50227          X"$ac_file" : 'X\(//\)$' \| \
50228          X"$ac_file" : 'X\(/\)' \| \
50229          .     : '\(.\)' 2>/dev/null ||
50230 echo X"$ac_file" |
50231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50233           /^X\(\/\/\)$/{ s//\1/; q; }
50234           /^X\(\/\).*/{ s//\1/; q; }
50235           s/.*/./; q'`
50236   { if $as_mkdir_p; then
50237     mkdir -p "$ac_dir"
50238   else
50239     as_dir="$ac_dir"
50240     as_dirs=
50241     while test ! -d "$as_dir"; do
50242       as_dirs="$as_dir $as_dirs"
50243       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50245          X"$as_dir" : 'X\(//\)[^/]' \| \
50246          X"$as_dir" : 'X\(//\)$' \| \
50247          X"$as_dir" : 'X\(/\)' \| \
50248          .     : '\(.\)' 2>/dev/null ||
50249 echo X"$as_dir" |
50250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50252           /^X\(\/\/\)$/{ s//\1/; q; }
50253           /^X\(\/\).*/{ s//\1/; q; }
50254           s/.*/./; q'`
50255     done
50256     test ! -n "$as_dirs" || mkdir $as_dirs
50257   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50258 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50259    { (exit 1); exit 1; }; }; }
50260
50261   ac_builddir=.
50262
50263 if test "$ac_dir" != .; then
50264   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50265   # A "../" for each directory in $ac_dir_suffix.
50266   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50267 else
50268   ac_dir_suffix= ac_top_builddir=
50269 fi
50270
50271 case $srcdir in
50272   .)  # No --srcdir option.  We are building in place.
50273     ac_srcdir=.
50274     if test -z "$ac_top_builddir"; then
50275        ac_top_srcdir=.
50276     else
50277        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50278     fi ;;
50279   [\\/]* | ?:[\\/]* )  # Absolute path.
50280     ac_srcdir=$srcdir$ac_dir_suffix;
50281     ac_top_srcdir=$srcdir ;;
50282   *) # Relative path.
50283     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50284     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50285 esac
50286
50287 # Do not use `cd foo && pwd` to compute absolute paths, because
50288 # the directories may not exist.
50289 case `pwd` in
50290 .) ac_abs_builddir="$ac_dir";;
50291 *)
50292   case "$ac_dir" in
50293   .) ac_abs_builddir=`pwd`;;
50294   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50295   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50296   esac;;
50297 esac
50298 case $ac_abs_builddir in
50299 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50300 *)
50301   case ${ac_top_builddir}. in
50302   .) ac_abs_top_builddir=$ac_abs_builddir;;
50303   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50304   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50305   esac;;
50306 esac
50307 case $ac_abs_builddir in
50308 .) ac_abs_srcdir=$ac_srcdir;;
50309 *)
50310   case $ac_srcdir in
50311   .) ac_abs_srcdir=$ac_abs_builddir;;
50312   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50313   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50314   esac;;
50315 esac
50316 case $ac_abs_builddir in
50317 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50318 *)
50319   case $ac_top_srcdir in
50320   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50321   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50322   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50323   esac;;
50324 esac
50325
50326
50327   case $INSTALL in
50328   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50329   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50330   esac
50331
50332   # Let's still pretend it is `configure' which instantiates (i.e., don't
50333   # use $as_me), people would be surprised to read:
50334   #    /* config.h.  Generated by config.status.  */
50335   if test x"$ac_file" = x-; then
50336     configure_input=
50337   else
50338     configure_input="$ac_file.  "
50339   fi
50340   configure_input=$configure_input"Generated from `echo $ac_file_in |
50341                                      sed 's,.*/,,'` by configure."
50342
50343   # First look for the input files in the build tree, otherwise in the
50344   # src tree.
50345   ac_file_inputs=`IFS=:
50346     for f in $ac_file_in; do
50347       case $f in
50348       -) echo $tmp/stdin ;;
50349       [\\/$]*)
50350          # Absolute (can't be DOS-style, as IFS=:)
50351          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50352 echo "$as_me: error: cannot find input file: $f" >&2;}
50353    { (exit 1); exit 1; }; }
50354          echo "$f";;
50355       *) # Relative
50356          if test -f "$f"; then
50357            # Build tree
50358            echo "$f"
50359          elif test -f "$srcdir/$f"; then
50360            # Source tree
50361            echo "$srcdir/$f"
50362          else
50363            # /dev/null tree
50364            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50365 echo "$as_me: error: cannot find input file: $f" >&2;}
50366    { (exit 1); exit 1; }; }
50367          fi;;
50368       esac
50369     done` || { (exit 1); exit 1; }
50370
50371   if test x"$ac_file" != x-; then
50372     { echo "$as_me:$LINENO: creating $ac_file" >&5
50373 echo "$as_me: creating $ac_file" >&6;}
50374     rm -f "$ac_file"
50375   fi
50376 _ACEOF
50377 cat >>$CONFIG_STATUS <<_ACEOF
50378   sed "$ac_vpsub
50379 $extrasub
50380 _ACEOF
50381 cat >>$CONFIG_STATUS <<\_ACEOF
50382 :t
50383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50384 s,@configure_input@,$configure_input,;t t
50385 s,@srcdir@,$ac_srcdir,;t t
50386 s,@abs_srcdir@,$ac_abs_srcdir,;t t
50387 s,@top_srcdir@,$ac_top_srcdir,;t t
50388 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50389 s,@builddir@,$ac_builddir,;t t
50390 s,@abs_builddir@,$ac_abs_builddir,;t t
50391 s,@top_builddir@,$ac_top_builddir,;t t
50392 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50393 s,@INSTALL@,$ac_INSTALL,;t t
50394 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50395   rm -f $tmp/stdin
50396   if test x"$ac_file" != x-; then
50397     mv $tmp/out $ac_file
50398   else
50399     cat $tmp/out
50400     rm -f $tmp/out
50401   fi
50402
50403   # Run the commands associated with the file.
50404   case $ac_file in
50405     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
50406     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
50407   esac
50408 done
50409 _ACEOF
50410 cat >>$CONFIG_STATUS <<\_ACEOF
50411
50412 #
50413 # CONFIG_HEADER section.
50414 #
50415
50416 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50417 # NAME is the cpp macro being defined and VALUE is the value it is being given.
50418 #
50419 # ac_d sets the value in "#define NAME VALUE" lines.
50420 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
50421 ac_dB='[         ].*$,\1#\2'
50422 ac_dC=' '
50423 ac_dD=',;t'
50424 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
50425 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
50426 ac_uB='$,\1#\2define\3'
50427 ac_uC=' '
50428 ac_uD=',;t'
50429
50430 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50431   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50432   case $ac_file in
50433   - | *:- | *:-:* ) # input from stdin
50434         cat >$tmp/stdin
50435         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50436         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50437   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50438         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50439   * )   ac_file_in=$ac_file.in ;;
50440   esac
50441
50442   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50443 echo "$as_me: creating $ac_file" >&6;}
50444
50445   # First look for the input files in the build tree, otherwise in the
50446   # src tree.
50447   ac_file_inputs=`IFS=:
50448     for f in $ac_file_in; do
50449       case $f in
50450       -) echo $tmp/stdin ;;
50451       [\\/$]*)
50452          # Absolute (can't be DOS-style, as IFS=:)
50453          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50454 echo "$as_me: error: cannot find input file: $f" >&2;}
50455    { (exit 1); exit 1; }; }
50456          # Do quote $f, to prevent DOS paths from being IFS'd.
50457          echo "$f";;
50458       *) # Relative
50459          if test -f "$f"; then
50460            # Build tree
50461            echo "$f"
50462          elif test -f "$srcdir/$f"; then
50463            # Source tree
50464            echo "$srcdir/$f"
50465          else
50466            # /dev/null tree
50467            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
50468 echo "$as_me: error: cannot find input file: $f" >&2;}
50469    { (exit 1); exit 1; }; }
50470          fi;;
50471       esac
50472     done` || { (exit 1); exit 1; }
50473   # Remove the trailing spaces.
50474   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
50475
50476 _ACEOF
50477
50478 # Transform confdefs.h into two sed scripts, `conftest.defines' and
50479 # `conftest.undefs', that substitutes the proper values into
50480 # config.h.in to produce config.h.  The first handles `#define'
50481 # templates, and the second `#undef' templates.
50482 # And first: Protect against being on the right side of a sed subst in
50483 # config.status.  Protect against being in an unquoted here document
50484 # in config.status.
50485 rm -f conftest.defines conftest.undefs
50486 # Using a here document instead of a string reduces the quoting nightmare.
50487 # Putting comments in sed scripts is not portable.
50488 #
50489 # `end' is used to avoid that the second main sed command (meant for
50490 # 0-ary CPP macros) applies to n-ary macro definitions.
50491 # See the Autoconf documentation for `clear'.
50492 cat >confdef2sed.sed <<\_ACEOF
50493 s/[\\&,]/\\&/g
50494 s,[\\$`],\\&,g
50495 t clear
50496 : clear
50497 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
50498 t end
50499 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
50500 : end
50501 _ACEOF
50502 # If some macros were called several times there might be several times
50503 # the same #defines, which is useless.  Nevertheless, we may not want to
50504 # sort them, since we want the *last* AC-DEFINE to be honored.
50505 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50506 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50507 rm -f confdef2sed.sed
50508
50509 # This sed command replaces #undef with comments.  This is necessary, for
50510 # example, in the case of _POSIX_SOURCE, which is predefined and required
50511 # on some systems where configure will not decide to define it.
50512 cat >>conftest.undefs <<\_ACEOF
50513 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
50514 _ACEOF
50515
50516 # Break up conftest.defines because some shells have a limit on the size
50517 # of here documents, and old seds have small limits too (100 cmds).
50518 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
50519 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
50520 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50521 echo '  :' >>$CONFIG_STATUS
50522 rm -f conftest.tail
50523 while grep . conftest.defines >/dev/null
50524 do
50525   # Write a limited-size here document to $tmp/defines.sed.
50526   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50527   # Speed up: don't consider the non `#define' lines.
50528   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
50529   # Work around the forget-to-reset-the-flag bug.
50530   echo 't clr' >>$CONFIG_STATUS
50531   echo ': clr' >>$CONFIG_STATUS
50532   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50533   echo 'CEOF
50534   sed -f $tmp/defines.sed $tmp/in >$tmp/out
50535   rm -f $tmp/in
50536   mv $tmp/out $tmp/in
50537 ' >>$CONFIG_STATUS
50538   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50539   rm -f conftest.defines
50540   mv conftest.tail conftest.defines
50541 done
50542 rm -f conftest.defines
50543 echo '  fi # grep' >>$CONFIG_STATUS
50544 echo >>$CONFIG_STATUS
50545
50546 # Break up conftest.undefs because some shells have a limit on the size
50547 # of here documents, and old seds have small limits too (100 cmds).
50548 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
50549 rm -f conftest.tail
50550 while grep . conftest.undefs >/dev/null
50551 do
50552   # Write a limited-size here document to $tmp/undefs.sed.
50553   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50554   # Speed up: don't consider the non `#undef'
50555   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
50556   # Work around the forget-to-reset-the-flag bug.
50557   echo 't clr' >>$CONFIG_STATUS
50558   echo ': clr' >>$CONFIG_STATUS
50559   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50560   echo 'CEOF
50561   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50562   rm -f $tmp/in
50563   mv $tmp/out $tmp/in
50564 ' >>$CONFIG_STATUS
50565   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50566   rm -f conftest.undefs
50567   mv conftest.tail conftest.undefs
50568 done
50569 rm -f conftest.undefs
50570
50571 cat >>$CONFIG_STATUS <<\_ACEOF
50572   # Let's still pretend it is `configure' which instantiates (i.e., don't
50573   # use $as_me), people would be surprised to read:
50574   #    /* config.h.  Generated by config.status.  */
50575   if test x"$ac_file" = x-; then
50576     echo "/* Generated by configure.  */" >$tmp/config.h
50577   else
50578     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
50579   fi
50580   cat $tmp/in >>$tmp/config.h
50581   rm -f $tmp/in
50582   if test x"$ac_file" != x-; then
50583     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50584       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50585 echo "$as_me: $ac_file is unchanged" >&6;}
50586     else
50587       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50589          X"$ac_file" : 'X\(//\)[^/]' \| \
50590          X"$ac_file" : 'X\(//\)$' \| \
50591          X"$ac_file" : 'X\(/\)' \| \
50592          .     : '\(.\)' 2>/dev/null ||
50593 echo X"$ac_file" |
50594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50595           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50596           /^X\(\/\/\)$/{ s//\1/; q; }
50597           /^X\(\/\).*/{ s//\1/; q; }
50598           s/.*/./; q'`
50599       { if $as_mkdir_p; then
50600     mkdir -p "$ac_dir"
50601   else
50602     as_dir="$ac_dir"
50603     as_dirs=
50604     while test ! -d "$as_dir"; do
50605       as_dirs="$as_dir $as_dirs"
50606       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50608          X"$as_dir" : 'X\(//\)[^/]' \| \
50609          X"$as_dir" : 'X\(//\)$' \| \
50610          X"$as_dir" : 'X\(/\)' \| \
50611          .     : '\(.\)' 2>/dev/null ||
50612 echo X"$as_dir" |
50613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50614           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50615           /^X\(\/\/\)$/{ s//\1/; q; }
50616           /^X\(\/\).*/{ s//\1/; q; }
50617           s/.*/./; q'`
50618     done
50619     test ! -n "$as_dirs" || mkdir $as_dirs
50620   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50621 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50622    { (exit 1); exit 1; }; }; }
50623
50624       rm -f $ac_file
50625       mv $tmp/config.h $ac_file
50626     fi
50627   else
50628     cat $tmp/config.h
50629     rm -f $tmp/config.h
50630   fi
50631 done
50632 _ACEOF
50633 cat >>$CONFIG_STATUS <<\_ACEOF
50634
50635 #
50636 # CONFIG_COMMANDS section.
50637 #
50638 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50639   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50640   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50641   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50642 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50643          X"$ac_dest" : 'X\(//\)[^/]' \| \
50644          X"$ac_dest" : 'X\(//\)$' \| \
50645          X"$ac_dest" : 'X\(/\)' \| \
50646          .     : '\(.\)' 2>/dev/null ||
50647 echo X"$ac_dest" |
50648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50650           /^X\(\/\/\)$/{ s//\1/; q; }
50651           /^X\(\/\).*/{ s//\1/; q; }
50652           s/.*/./; q'`
50653   { if $as_mkdir_p; then
50654     mkdir -p "$ac_dir"
50655   else
50656     as_dir="$ac_dir"
50657     as_dirs=
50658     while test ! -d "$as_dir"; do
50659       as_dirs="$as_dir $as_dirs"
50660       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50662          X"$as_dir" : 'X\(//\)[^/]' \| \
50663          X"$as_dir" : 'X\(//\)$' \| \
50664          X"$as_dir" : 'X\(/\)' \| \
50665          .     : '\(.\)' 2>/dev/null ||
50666 echo X"$as_dir" |
50667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50668           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50669           /^X\(\/\/\)$/{ s//\1/; q; }
50670           /^X\(\/\).*/{ s//\1/; q; }
50671           s/.*/./; q'`
50672     done
50673     test ! -n "$as_dirs" || mkdir $as_dirs
50674   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50676    { (exit 1); exit 1; }; }; }
50677
50678   ac_builddir=.
50679
50680 if test "$ac_dir" != .; then
50681   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50682   # A "../" for each directory in $ac_dir_suffix.
50683   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50684 else
50685   ac_dir_suffix= ac_top_builddir=
50686 fi
50687
50688 case $srcdir in
50689   .)  # No --srcdir option.  We are building in place.
50690     ac_srcdir=.
50691     if test -z "$ac_top_builddir"; then
50692        ac_top_srcdir=.
50693     else
50694        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50695     fi ;;
50696   [\\/]* | ?:[\\/]* )  # Absolute path.
50697     ac_srcdir=$srcdir$ac_dir_suffix;
50698     ac_top_srcdir=$srcdir ;;
50699   *) # Relative path.
50700     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50701     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50702 esac
50703
50704 # Do not use `cd foo && pwd` to compute absolute paths, because
50705 # the directories may not exist.
50706 case `pwd` in
50707 .) ac_abs_builddir="$ac_dir";;
50708 *)
50709   case "$ac_dir" in
50710   .) ac_abs_builddir=`pwd`;;
50711   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50712   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50713   esac;;
50714 esac
50715 case $ac_abs_builddir in
50716 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50717 *)
50718   case ${ac_top_builddir}. in
50719   .) ac_abs_top_builddir=$ac_abs_builddir;;
50720   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50721   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50722   esac;;
50723 esac
50724 case $ac_abs_builddir in
50725 .) ac_abs_srcdir=$ac_srcdir;;
50726 *)
50727   case $ac_srcdir in
50728   .) ac_abs_srcdir=$ac_abs_builddir;;
50729   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50730   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50731   esac;;
50732 esac
50733 case $ac_abs_builddir in
50734 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50735 *)
50736   case $ac_top_srcdir in
50737   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50738   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50739   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50740   esac;;
50741 esac
50742
50743
50744   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50745 echo "$as_me: executing $ac_dest commands" >&6;}
50746   case $ac_dest in
50747     rcdefs.h )
50748             mkdir -p $outdir &&
50749             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50750          ;;
50751     wx-config )  rm -f wx-config
50752                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50753                     ;;
50754   esac
50755 done
50756 _ACEOF
50757
50758 cat >>$CONFIG_STATUS <<\_ACEOF
50759
50760 { (exit 0); exit 0; }
50761 _ACEOF
50762 chmod +x $CONFIG_STATUS
50763 ac_clean_files=$ac_clean_files_save
50764
50765
50766 # configure is writing to config.log, and then calls config.status.
50767 # config.status does its own redirection, appending to config.log.
50768 # Unfortunately, on DOS this fails, as config.log is still kept open
50769 # by configure, so config.status won't be able to write to it; its
50770 # output is simply discarded.  So we exec the FD to /dev/null,
50771 # effectively closing config.log, so it can be properly (re)opened and
50772 # appended to by config.status.  When coming back to configure, we
50773 # need to make the FD available again.
50774 if test "$no_create" != yes; then
50775   ac_cs_success=:
50776   ac_config_status_args=
50777   test "$silent" = yes &&
50778     ac_config_status_args="$ac_config_status_args --quiet"
50779   exec 5>/dev/null
50780   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50781   exec 5>>config.log
50782   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50783   # would make configure fail if this is the last instruction.
50784   $ac_cs_success || { (exit 1); exit 1; }
50785 fi
50786
50787 #
50788 # CONFIG_SUBDIRS section.
50789 #
50790 if test "$no_recursion" != yes; then
50791
50792   # Remove --cache-file and --srcdir arguments so they do not pile up.
50793   ac_sub_configure_args=
50794   ac_prev=
50795   for ac_arg in $ac_configure_args; do
50796     if test -n "$ac_prev"; then
50797       ac_prev=
50798       continue
50799     fi
50800     case $ac_arg in
50801     -cache-file | --cache-file | --cache-fil | --cache-fi \
50802     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50803       ac_prev=cache_file ;;
50804     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50805     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50806     | --c=*)
50807       ;;
50808     --config-cache | -C)
50809       ;;
50810     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50811       ac_prev=srcdir ;;
50812     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50813       ;;
50814     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50815       ac_prev=prefix ;;
50816     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50817       ;;
50818     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50819     esac
50820   done
50821
50822   # Always prepend --prefix to ensure using the same prefix
50823   # in subdir configurations.
50824   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50825
50826   ac_popdir=`pwd`
50827   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50828
50829     # Do not complain, so a configure script can configure whichever
50830     # parts of a large source tree are present.
50831     test -d $srcdir/$ac_dir || continue
50832
50833     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50834 echo "$as_me: configuring in $ac_dir" >&6;}
50835     { if $as_mkdir_p; then
50836     mkdir -p "$ac_dir"
50837   else
50838     as_dir="$ac_dir"
50839     as_dirs=
50840     while test ! -d "$as_dir"; do
50841       as_dirs="$as_dir $as_dirs"
50842       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50844          X"$as_dir" : 'X\(//\)[^/]' \| \
50845          X"$as_dir" : 'X\(//\)$' \| \
50846          X"$as_dir" : 'X\(/\)' \| \
50847          .     : '\(.\)' 2>/dev/null ||
50848 echo X"$as_dir" |
50849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50850           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50851           /^X\(\/\/\)$/{ s//\1/; q; }
50852           /^X\(\/\).*/{ s//\1/; q; }
50853           s/.*/./; q'`
50854     done
50855     test ! -n "$as_dirs" || mkdir $as_dirs
50856   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50857 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50858    { (exit 1); exit 1; }; }; }
50859
50860     ac_builddir=.
50861
50862 if test "$ac_dir" != .; then
50863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50864   # A "../" for each directory in $ac_dir_suffix.
50865   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50866 else
50867   ac_dir_suffix= ac_top_builddir=
50868 fi
50869
50870 case $srcdir in
50871   .)  # No --srcdir option.  We are building in place.
50872     ac_srcdir=.
50873     if test -z "$ac_top_builddir"; then
50874        ac_top_srcdir=.
50875     else
50876        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50877     fi ;;
50878   [\\/]* | ?:[\\/]* )  # Absolute path.
50879     ac_srcdir=$srcdir$ac_dir_suffix;
50880     ac_top_srcdir=$srcdir ;;
50881   *) # Relative path.
50882     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50883     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50884 esac
50885
50886 # Do not use `cd foo && pwd` to compute absolute paths, because
50887 # the directories may not exist.
50888 case `pwd` in
50889 .) ac_abs_builddir="$ac_dir";;
50890 *)
50891   case "$ac_dir" in
50892   .) ac_abs_builddir=`pwd`;;
50893   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50894   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50895   esac;;
50896 esac
50897 case $ac_abs_builddir in
50898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50899 *)
50900   case ${ac_top_builddir}. in
50901   .) ac_abs_top_builddir=$ac_abs_builddir;;
50902   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50903   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50904   esac;;
50905 esac
50906 case $ac_abs_builddir in
50907 .) ac_abs_srcdir=$ac_srcdir;;
50908 *)
50909   case $ac_srcdir in
50910   .) ac_abs_srcdir=$ac_abs_builddir;;
50911   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50912   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50913   esac;;
50914 esac
50915 case $ac_abs_builddir in
50916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50917 *)
50918   case $ac_top_srcdir in
50919   .) ac_abs_top_srcdir=$ac_abs_builddir;;
50920   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50921   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50922   esac;;
50923 esac
50924
50925
50926     cd $ac_dir
50927
50928     # Check for guested configure; otherwise get Cygnus style configure.
50929     if test -f $ac_srcdir/configure.gnu; then
50930       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50931     elif test -f $ac_srcdir/configure; then
50932       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50933     elif test -f $ac_srcdir/configure.in; then
50934       ac_sub_configure=$ac_configure
50935     else
50936       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50938       ac_sub_configure=
50939     fi
50940
50941     # The recursion is here.
50942     if test -n "$ac_sub_configure"; then
50943       # Make the cache file name correct relative to the subdirectory.
50944       case $cache_file in
50945       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50946       *) # Relative path.
50947         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
50948       esac
50949
50950       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50951 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50952       # The eval makes quoting arguments work.
50953       eval $ac_sub_configure $ac_sub_configure_args \
50954            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50955         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
50956 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50957    { (exit 1); exit 1; }; }
50958     fi
50959
50960     cd "$ac_popdir"
50961   done
50962 fi
50963
50964
50965 echo
50966 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
50967 echo ""
50968 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
50969 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
50970
50971 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
50972 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
50973 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
50974
50975 echo "  What level of wxWidgets compatibility should be enabled?"
50976 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
50977 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
50978
50979 echo "  Which libraries should wxWidgets use?"
50980 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
50981 echo "                                       png                ${wxUSE_LIBPNG-none}"
50982 echo "                                       regex              ${wxUSE_REGEX}"
50983 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
50984 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50985 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
50986 fi
50987 echo "                                       zlib               ${wxUSE_ZLIB}"
50988 echo "                                       odbc               ${wxUSE_ODBC}"
50989 echo "                                       expat              ${wxUSE_EXPAT}"
50990 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
50991 echo "                                       sdl                ${wxUSE_LIBSDL}"
50992
50993 echo ""
50994