Rewrote configure --enable/with options handling:
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47287 2007-07-10 10:28:12Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.9.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.9.0'
274 PACKAGE_STRING='wxWidgets 2.9.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 wx_top_builddir 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 subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS CFLAGS_VISIBILITY CXXFLAGS_VISIBILITY REZ DEREZ SETFILE LIBICONV SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS ALL_WX_LIBS BUILT_WX_LIBS STD_BASE_LIBS STD_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 CXXWARNINGS 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 AROPTIONS 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 BK_DEPS GCC_PCH ICC_PCH BK_MAKE_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_STC_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_STC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_AUI_1 COND_MONOLITHIC_0_USE_GUI_1 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_HTML_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_0_USE_QA_1 COND_MONOLITHIC_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_USE_STC_1 COND_MONOLITHIC_0_USE_XRC_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_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_TOOLKIT_MGL COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_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_STC_1 COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_USE_OPENGL_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_STC_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_PKG_CONFIG_set=${PKG_CONFIG+set}
786 ac_env_PKG_CONFIG_value=$PKG_CONFIG
787 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
788 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
789 ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
790 ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
791 ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
792 ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
793 ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
794 ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
795 ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
796 ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
797 ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
798 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
799 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
800 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
801 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
802 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
803 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
804 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
805 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
806 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
807 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
808 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
809 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
810 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
811 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
812 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
813 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
814 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
815 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
816 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
817 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
818 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
819 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
820 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
821 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
822 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
823 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
824 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
825 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
826 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
827 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
828 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
829 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
830 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
831 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
832 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
833 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
834 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
835 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
836 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
837 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
838 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
839 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
840 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
841 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
842 ac_env_HILDON_LIBS_value=$HILDON_LIBS
843 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
844 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
845 ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
846 ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
847 ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
848 ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
849 ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
850 ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
851 ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
852 ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
853 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
854 ac_env_GST_CFLAGS_value=$GST_CFLAGS
855 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
856 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
857 ac_env_GST_LIBS_set=${GST_LIBS+set}
858 ac_env_GST_LIBS_value=$GST_LIBS
859 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
860 ac_cv_env_GST_LIBS_value=$GST_LIBS
861
862 #
863 # Report the --help message.
864 #
865 if test "$ac_init_help" = "long"; then
866   # Omit some internal or obsolete options to make the list less imposing.
867   # This message is too long to be a string in the A/UX 3.1 sh.
868   cat <<_ACEOF
869 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
870
871 Usage: $0 [OPTION]... [VAR=VALUE]...
872
873 To assign environment variables (e.g., CC, CFLAGS...), specify them as
874 VAR=VALUE.  See below for descriptions of some of the useful variables.
875
876 Defaults for the options are specified in brackets.
877
878 Configuration:
879   -h, --help              display this help and exit
880       --help=short        display options specific to this package
881       --help=recursive    display the short help of all the included packages
882   -V, --version           display version information and exit
883   -q, --quiet, --silent   do not print \`checking...' messages
884       --cache-file=FILE   cache test results in FILE [disabled]
885   -C, --config-cache      alias for \`--cache-file=config.cache'
886   -n, --no-create         do not create output files
887       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
888
889 _ACEOF
890
891   cat <<_ACEOF
892 Installation directories:
893   --prefix=PREFIX         install architecture-independent files in PREFIX
894                           [$ac_default_prefix]
895   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
896                           [PREFIX]
897
898 By default, \`make install' will install all the files in
899 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
900 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
901 for instance \`--prefix=\$HOME'.
902
903 For better control, use the options below.
904
905 Fine tuning of the installation directories:
906   --bindir=DIR           user executables [EPREFIX/bin]
907   --sbindir=DIR          system admin executables [EPREFIX/sbin]
908   --libexecdir=DIR       program executables [EPREFIX/libexec]
909   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
910   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
911   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
912   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
913   --libdir=DIR           object code libraries [EPREFIX/lib]
914   --includedir=DIR       C header files [PREFIX/include]
915   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
916   --infodir=DIR          info documentation [PREFIX/info]
917   --mandir=DIR           man documentation [PREFIX/man]
918 _ACEOF
919
920   cat <<\_ACEOF
921
922 X features:
923   --x-includes=DIR    X include files are in DIR
924   --x-libraries=DIR   X library files are in DIR
925
926 System types:
927   --build=BUILD     configure for building on BUILD [guessed]
928   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
929   --target=TARGET   configure for building compilers for TARGET [HOST]
930 _ACEOF
931 fi
932
933 if test -n "$ac_init_help"; then
934   case $ac_init_help in
935      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
936    esac
937   cat <<\_ACEOF
938
939 Optional Features:
940   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
941   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
942   --disable-gui           don't build GUI parts of the library
943   --enable-monolithic     build wxWidgets as single library
944   --enable-plugins        build parts of wxWidgets as loadable components
945   --enable-official_build official build of wxWidgets (win32 DLL only)
946   --enable-vendor=VENDOR  vendor name (win32 DLL only)
947   --disable-all-features  disable all optional features to build minimal library
948   --enable-universal      use wxWidgets GUI controls instead of native ones
949   --enable-nanox          use NanoX
950   --disable-gtk2          use GTK+ 1.2 instead of 2.0
951   --enable-gpe            use GNOME PDA Environment features if possible
952   --disable-shared        create static library instead of shared
953   --enable-optimise       create optimised code
954   --enable-debug          same as debug_flag and debug_info
955   --enable-stl            use STL for containers
956   --enable-std_iostreams  use standard C++ stream classes
957   --enable-std_string     use standard C++ string classes
958   --disable-unicode       compile without Unicode support
959   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
960   --enable-utf8           use UTF-8 representation for strings (Unix only)
961   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
962   --enable-extended_rtti  use extended RTTI (XTI)
963   --enable-omf            use OMF object format
964   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
965   --enable-debug_info     create code with debugging information
966   --enable-debug_gdb      create code with extra GDB debugging information
967   --enable-debug_cntxt    use wxDebugContext
968   --enable-mem_tracing    create code with memory tracing
969   --enable-profile        create code with profiling information
970   --enable-no_rtti        create code without RTTI information
971   --enable-no_exceptions  create code without C++ exceptions handling
972   --enable-permissive     compile code disregarding strict ANSI
973   --enable-no_deps        create code without dependency information
974   --disable-vararg_macros don't use vararg macros, even if they are supported
975   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
976   --enable-compat26       enable wxWidgets 2.6 compatibility
977   --disable-compat28      disable wxWidgets 2.8 compatibility
978   --disable-rpath         disable use of rpath for uninstalled builds
979   --enable-objc_uniquifying enable Objective-C class name uniquifying
980   --enable-intl           use internationalization system
981   --enable-config         use wxConfig (and derived) classes
982   --enable-protocols      use wxProtocol and derived classes
983   --enable-ftp            use wxFTP (requires wxProtocol
984   --enable-http           use wxHTTP (requires wxProtocol
985   --enable-fileproto      use wxFileProto class (requires wxProtocol
986   --enable-sockets        use socket/network classes
987   --enable-ole            use OLE classes (Win32 only)
988   --enable-dataobj        use data object classes
989   --enable-ipc            use interprocess communication (wxSocket etc.)
990   --enable-apple_ieee     use the Apple IEEE codec
991   --enable-arcstream      use wxArchive streams
992   --enable-base64         use base64 encoding/decoding functions
993   --enable-backtrace      use wxStackWalker class for getting backtraces
994   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
995   --enable-cmdline        use wxCmdLineParser class
996   --enable-datetime       use wxDateTime class
997   --enable-debugreport    use wxDebugReport class
998   --enable-dialupman      use dialup network classes
999   --enable-dynlib         use wxLibrary class for DLL loading
1000   --enable-dynamicloader  use (new) wxDynamicLibrary class
1001   --enable-exceptions     build exception-safe library
1002   --enable-ffile          use wxFFile class
1003   --enable-file           use wxFile class
1004   --enable-filesystem     use virtual file systems classes
1005   --enable-fontmap        use font encodings conversion classes
1006   --enable-fs_archive     use virtual archive filesystems
1007   --enable-fs_inet        use virtual HTTP/FTP filesystems
1008   --enable-fs_zip         now replaced by fs_archive
1009   --enable-geometry       use geometry class
1010   --enable-log            use logging system
1011   --enable-longlong       use wxLongLong class
1012   --enable-mimetype       use wxMimeTypesManager
1013   --enable-snglinst       use wxSingleInstanceChecker class
1014   --enable-stdpaths       use wxStandardPaths class
1015   --enable-stopwatch      use wxStopWatch class
1016   --enable-streams        use wxStream etc classes
1017   --enable-sysoptions     use wxSystemOptions
1018   --enable-tarstream      use wxTar streams
1019   --enable-textbuf        use wxTextBuffer class
1020   --enable-textfile       use wxTextFile class
1021   --enable-timer          use wxTimer class
1022   --enable-sound          use wxSound class
1023   --enable-mediactrl      use wxMediaCtrl class
1024   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1025   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1026   --enable-zipstream      use wxZip streams
1027   --enable-url            use wxURL class
1028   --enable-variant        use wxVariant class
1029   --enable-protocol       use wxProtocol class
1030   --enable-protocol-http  HTTP support in wxProtocol
1031   --enable-protocol-ftp   FTP support in wxProtocol
1032   --enable-protocol-file  FILE support in wxProtocol
1033   --enable-threads        use threads
1034   --enable-docview        use document view architecture
1035   --enable-help           use help subsystem
1036   --enable-mshtmlhelp     use MS HTML Help (win32)
1037   --enable-html           use wxHTML sub-library
1038   --enable-htmlhelp       use wxHTML-based help
1039   --enable-xrc            use XRC resources sub-library
1040   --enable-aui            use AUI docking library
1041   --enable-stc            use wxStyledTextCtrl library
1042   --enable-constraints    use layout-constraints system
1043   --enable-printarch      use printing architecture
1044   --enable-mdi            use multiple document interface architecture
1045   --enable-mdidoc         use docview architecture with MDI
1046   --enable-loggui         use standard GUI logger
1047   --enable-logwin         use wxLogWindow
1048   --enable-logdialog      use wxLogDialog
1049   --enable-webkit         use wxWebKitCtrl (Mac)
1050   --enable-richtext       use wxRichTextCtrl
1051   --enable-graphics_ctx   use graphics context 2D drawing API
1052   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1053   --enable-clipboard      use wxClipboard class
1054   --enable-dnd            use Drag'n'Drop classes
1055   --enable-metafile       use win32 metafiles
1056   --enable-controls       use all usual controls
1057   --enable-accel          use accelerators
1058   --enable-animatectrl    use wxAnimationCtrl class
1059   --enable-button         use wxButton class
1060   --enable-bmpbutton      use wxBitmapButton class
1061   --enable-bmpcombobox    use wxBitmapComboBox class
1062   --enable-calendar       use wxCalendarCtrl class
1063   --enable-caret          use wxCaret class
1064   --enable-checkbox       use wxCheckBox class
1065   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1066   --enable-choice         use wxChoice class
1067   --enable-choicebook     use wxChoicebook class
1068   --enable-collpane       use wxCollapsiblePane class
1069   --enable-colourpicker   use wxColourPickerCtrl class
1070   --enable-combobox       use wxComboBox class
1071   --enable-comboctrl      use wxComboCtrl class
1072   --enable-datepick       use wxDatePickerCtrl class
1073   --enable-dirpicker      use wxDirPickerCtrl class
1074   --enable-display        use wxDisplay class
1075   --enable-detect_sm      use code to detect X11 session manager
1076   --enable-editablebox    use wxEditableListBox class
1077   --enable-filepicker     use wxFilePickerCtrl class
1078   --enable-fontpicker     use wxFontPickerCtrl class
1079   --enable-gauge          use wxGauge class
1080   --enable-grid           use wxGrid class
1081   --enable-dataviewctrl   use wxDataViewCtrl class
1082   --enable-hyperlink      use wxHyperlinkCtrl class
1083   --enable-imaglist       use wxImageList class
1084   --enable-listbook       use wxListbook class
1085   --enable-listbox        use wxListBox class
1086   --enable-listctrl       use wxListCtrl class
1087   --enable-notebook       use wxNotebook class
1088   --enable-odcombobox     use wxOwnerDrawnComboBox class
1089   --enable-radiobox       use wxRadioBox class
1090   --enable-radiobtn       use wxRadioButton class
1091   --enable-sash           use wxSashWindow class
1092   --enable-scrollbar      use wxScrollBar class and scrollable windows
1093   --enable-searchctrl     use wxSearchCtrl class
1094   --enable-slider         use wxSlider class
1095   --enable-spinbtn        use wxSpinButton class
1096   --enable-spinctrl       use wxSpinCtrl class
1097   --enable-splitter       use wxSplitterWindow class
1098   --enable-statbmp        use wxStaticBitmap class
1099   --enable-statbox        use wxStaticBox class
1100   --enable-statline       use wxStaticLine class
1101   --enable-stattext       use wxStaticText class
1102   --enable-statusbar      use wxStatusBar class
1103   --enable-tabdialog      use wxTabControl class
1104   --enable-textctrl       use wxTextCtrl class
1105   --enable-togglebtn      use wxToggleButton class
1106   --enable-toolbar        use wxToolBar class
1107   --enable-tbarnative     use native wxToolBar class
1108   --enable-treebook       use wxTreebook class
1109   --enable-toolbook       use wxToolbook class
1110   --enable-treectrl       use wxTreeCtrl class
1111   --enable-tipwindow      use wxTipWindow class
1112   --enable-popupwin       use wxPopUpWindow class
1113   --enable-commondlg      use all common dialogs
1114   --enable-aboutdlg       use wxAboutBox
1115   --enable-choicedlg      use wxChoiceDialog
1116   --enable-coldlg         use wxColourDialog
1117   --enable-filedlg        use wxFileDialog
1118   --enable-finddlg        use wxFindReplaceDialog
1119   --enable-fontdlg        use wxFontDialog
1120   --enable-dirdlg         use wxDirDialog
1121   --enable-msgdlg         use wxMessageDialog
1122   --enable-numberdlg      use wxNumberEntryDialog
1123   --enable-splash         use wxSplashScreen
1124   --enable-textdlg        use wxTextDialog
1125   --enable-tipdlg         use startup tips
1126   --enable-progressdlg    use wxProgressDialog
1127   --enable-wizarddlg      use wxWizard
1128   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1129   --enable-miniframe      use wxMiniFrame class
1130   --enable-tooltips       use wxToolTip class
1131   --enable-splines        use spline drawing code
1132   --enable-mousewheel     use mousewheel
1133   --enable-validators     use wxValidator and derived classes
1134   --enable-busyinfo       use wxBusyInfo
1135   --enable-joystick       use wxJoystick
1136   --enable-metafiles      use wxMetaFile (Win32 only)
1137   --enable-dragimage      use wxDragImage
1138   --enable-accessibility  enable accessibility support
1139   --enable-dccache        cache temporary wxDC objects (Win32 only)
1140   --enable-palette        use wxPalette class
1141   --enable-image          use wxImage class
1142   --enable-gif            use gif images (GIF file format)
1143   --enable-pcx            use pcx images (PCX file format)
1144   --enable-tga            use tga images (TGA file format)
1145   --enable-iff            use iff images (IFF file format)
1146   --enable-pnm            use pnm images (PNM file format)
1147   --enable-xpm            use xpm images (XPM file format)
1148   --enable-icocur         use Windows ICO and CUR formats
1149   --disable-largefile     omit support for large files
1150   --disable-gtktest       do not try to compile and run a test GTK+ program
1151   --disable-gtktest       Do not try to compile and run a test GTK program
1152   --disable-sdltest       Do not try to compile and run a test SDL program
1153   --enable-omf            use OMF object format (OS/2)
1154   --disable-dependency-tracking
1155                           don't use dependency tracking even if the compiler
1156                           can
1157   --disable-precomp-headers
1158                           don't use precompiled headers even if compiler can
1159
1160 Optional Packages:
1161   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1162   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1163   --without-subdirs       don't generate makefiles for samples/demos/...
1164   --with-flavour=NAME     specify a name to identify this build
1165   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1166   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1167   --with-motif            use Motif/Lesstif
1168   --with-mac              use Mac OS X
1169   --with-cocoa            use Cocoa
1170   --with-wine             use Wine
1171   --with-msw              use MS-Windows
1172   --with-pm               use OS/2 Presentation Manager
1173   --with-mgl              use SciTech MGL
1174   --with-directfb         use DirectFB
1175   --with-microwin         use MicroWindows
1176   --with-x11              use X11
1177   --with-libpng           use libpng (PNG image format)
1178   --with-libjpeg          use libjpeg (JPEG file format)
1179   --with-libtiff          use libtiff (TIFF file format)
1180   --with-libxpm           use libxpm (XPM file format)
1181   --with-libmspack        use libmspack (CHM help files loading)
1182   --with-sdl              use SDL for audio on Unix
1183   --without-gnomeprint    don't use GNOME printing libraries
1184   --with-gnomevfs         use GNOME VFS for associating MIME types
1185   --with-hildon           use Hildon framework for Nokia 770
1186   --with-opengl           use OpenGL (or Mesa)
1187   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1188   --with-regex            enable support for wxRegEx class
1189   --with-zlib             use zlib for LZW compression
1190   --with-odbc             use the IODBC and wxODBC classes
1191   --with-expat            enable XML support using expat parser
1192   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1193   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1194   --with-x                use the X Window System
1195   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1196   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1197   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1198   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1199   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1200
1201 Some influential environment variables:
1202   CC          C compiler command
1203   CFLAGS      C compiler flags
1204   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1205               nonstandard directory <lib dir>
1206   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1207               headers in a nonstandard directory <include dir>
1208   CPP         C preprocessor
1209   CXX         C++ compiler command
1210   CXXFLAGS    C++ compiler flags
1211   PKG_CONFIG  path to pkg-config utility
1212   DIRECTFB_CFLAGS
1213               C compiler flags for DIRECTFB, overriding pkg-config
1214   DIRECTFB_LIBS
1215               linker flags for DIRECTFB, overriding pkg-config
1216   PANGOX_CFLAGS
1217               C compiler flags for PANGOX, overriding pkg-config
1218   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1219   PANGOFT2_CFLAGS
1220               C compiler flags for PANGOFT2, overriding pkg-config
1221   PANGOFT2_LIBS
1222               linker flags for PANGOFT2, overriding pkg-config
1223   PANGOXFT_CFLAGS
1224               C compiler flags for PANGOXFT, overriding pkg-config
1225   PANGOXFT_LIBS
1226               linker flags for PANGOXFT, overriding pkg-config
1227   LIBGNOMEPRINTUI_CFLAGS
1228               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1229   LIBGNOMEPRINTUI_LIBS
1230               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1231   GNOMEVFS_CFLAGS
1232               C compiler flags for GNOMEVFS, overriding pkg-config
1233   GNOMEVFS_LIBS
1234               linker flags for GNOMEVFS, overriding pkg-config
1235   HILDON_CFLAGS
1236               C compiler flags for HILDON, overriding pkg-config
1237   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1238   CAIRO_CFLAGS
1239               C compiler flags for CAIRO, overriding pkg-config
1240   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1241   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1242   GST_LIBS    linker flags for GST, overriding pkg-config
1243
1244 Use these variables to override the choices made by `configure' or to help
1245 it to find libraries and programs with nonstandard names/locations.
1246
1247 Report bugs to <wx-dev@lists.wxwidgets.org>.
1248 _ACEOF
1249 fi
1250
1251 if test "$ac_init_help" = "recursive"; then
1252   # If there are subdirs, report their specific --help.
1253   ac_popdir=`pwd`
1254   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1255     test -d $ac_dir || continue
1256     ac_builddir=.
1257
1258 if test "$ac_dir" != .; then
1259   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1260   # A "../" for each directory in $ac_dir_suffix.
1261   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1262 else
1263   ac_dir_suffix= ac_top_builddir=
1264 fi
1265
1266 case $srcdir in
1267   .)  # No --srcdir option.  We are building in place.
1268     ac_srcdir=.
1269     if test -z "$ac_top_builddir"; then
1270        ac_top_srcdir=.
1271     else
1272        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1273     fi ;;
1274   [\\/]* | ?:[\\/]* )  # Absolute path.
1275     ac_srcdir=$srcdir$ac_dir_suffix;
1276     ac_top_srcdir=$srcdir ;;
1277   *) # Relative path.
1278     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1279     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1280 esac
1281
1282 # Do not use `cd foo && pwd` to compute absolute paths, because
1283 # the directories may not exist.
1284 case `pwd` in
1285 .) ac_abs_builddir="$ac_dir";;
1286 *)
1287   case "$ac_dir" in
1288   .) ac_abs_builddir=`pwd`;;
1289   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1290   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1291   esac;;
1292 esac
1293 case $ac_abs_builddir in
1294 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1295 *)
1296   case ${ac_top_builddir}. in
1297   .) ac_abs_top_builddir=$ac_abs_builddir;;
1298   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1299   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1300   esac;;
1301 esac
1302 case $ac_abs_builddir in
1303 .) ac_abs_srcdir=$ac_srcdir;;
1304 *)
1305   case $ac_srcdir in
1306   .) ac_abs_srcdir=$ac_abs_builddir;;
1307   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1308   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1309   esac;;
1310 esac
1311 case $ac_abs_builddir in
1312 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1313 *)
1314   case $ac_top_srcdir in
1315   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1316   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1317   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1318   esac;;
1319 esac
1320
1321     cd $ac_dir
1322     # Check for guested configure; otherwise get Cygnus style configure.
1323     if test -f $ac_srcdir/configure.gnu; then
1324       echo
1325       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1326     elif test -f $ac_srcdir/configure; then
1327       echo
1328       $SHELL $ac_srcdir/configure  --help=recursive
1329     elif test -f $ac_srcdir/configure.ac ||
1330            test -f $ac_srcdir/configure.in; then
1331       echo
1332       $ac_configure --help
1333     else
1334       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1335     fi
1336     cd "$ac_popdir"
1337   done
1338 fi
1339
1340 test -n "$ac_init_help" && exit 0
1341 if $ac_init_version; then
1342   cat <<\_ACEOF
1343 wxWidgets configure 2.9.0
1344 generated by GNU Autoconf 2.59
1345
1346 Copyright (C) 2003 Free Software Foundation, Inc.
1347 This configure script is free software; the Free Software Foundation
1348 gives unlimited permission to copy, distribute and modify it.
1349 _ACEOF
1350   exit 0
1351 fi
1352 exec 5>config.log
1353 cat >&5 <<_ACEOF
1354 This file contains any messages produced by compilers while
1355 running configure, to aid debugging if configure makes a mistake.
1356
1357 It was created by wxWidgets $as_me 2.9.0, which was
1358 generated by GNU Autoconf 2.59.  Invocation command line was
1359
1360   $ $0 $@
1361
1362 _ACEOF
1363 {
1364 cat <<_ASUNAME
1365 ## --------- ##
1366 ## Platform. ##
1367 ## --------- ##
1368
1369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1374
1375 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1377
1378 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1379 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1380 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1382 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1383 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1384 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1385
1386 _ASUNAME
1387
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391   IFS=$as_save_IFS
1392   test -z "$as_dir" && as_dir=.
1393   echo "PATH: $as_dir"
1394 done
1395
1396 } >&5
1397
1398 cat >&5 <<_ACEOF
1399
1400
1401 ## ----------- ##
1402 ## Core tests. ##
1403 ## ----------- ##
1404
1405 _ACEOF
1406
1407
1408 # Keep a trace of the command line.
1409 # Strip out --no-create and --no-recursion so they do not pile up.
1410 # Strip out --silent because we don't want to record it for future runs.
1411 # Also quote any args containing shell meta-characters.
1412 # Make two passes to allow for proper duplicate-argument suppression.
1413 ac_configure_args=
1414 ac_configure_args0=
1415 ac_configure_args1=
1416 ac_sep=
1417 ac_must_keep_next=false
1418 for ac_pass in 1 2
1419 do
1420   for ac_arg
1421   do
1422     case $ac_arg in
1423     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425     | -silent | --silent | --silen | --sile | --sil)
1426       continue ;;
1427     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1429     esac
1430     case $ac_pass in
1431     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1432     2)
1433       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1434       if test $ac_must_keep_next = true; then
1435         ac_must_keep_next=false # Got value, back to normal.
1436       else
1437         case $ac_arg in
1438           *=* | --config-cache | -C | -disable-* | --disable-* \
1439           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441           | -with-* | --with-* | -without-* | --without-* | --x)
1442             case "$ac_configure_args0 " in
1443               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1444             esac
1445             ;;
1446           -* ) ac_must_keep_next=true ;;
1447         esac
1448       fi
1449       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1450       # Get rid of the leading space.
1451       ac_sep=" "
1452       ;;
1453     esac
1454   done
1455 done
1456 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1457 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1458
1459 # When interrupted or exit'd, cleanup temporary files, and complete
1460 # config.log.  We remove comments because anyway the quotes in there
1461 # would cause problems or look ugly.
1462 # WARNING: Be sure not to use single quotes in there, as some shells,
1463 # such as our DU 5.0 friend, will then `close' the trap.
1464 trap 'exit_status=$?
1465   # Save into config.log some information that might help in debugging.
1466   {
1467     echo
1468
1469     cat <<\_ASBOX
1470 ## ---------------- ##
1471 ## Cache variables. ##
1472 ## ---------------- ##
1473 _ASBOX
1474     echo
1475     # The following way of writing the cache mishandles newlines in values,
1476 {
1477   (set) 2>&1 |
1478     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1479     *ac_space=\ *)
1480       sed -n \
1481         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1482           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1483       ;;
1484     *)
1485       sed -n \
1486         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1487       ;;
1488     esac;
1489 }
1490     echo
1491
1492     cat <<\_ASBOX
1493 ## ----------------- ##
1494 ## Output variables. ##
1495 ## ----------------- ##
1496 _ASBOX
1497     echo
1498     for ac_var in $ac_subst_vars
1499     do
1500       eval ac_val=$`echo $ac_var`
1501       echo "$ac_var='"'"'$ac_val'"'"'"
1502     done | sort
1503     echo
1504
1505     if test -n "$ac_subst_files"; then
1506       cat <<\_ASBOX
1507 ## ------------- ##
1508 ## Output files. ##
1509 ## ------------- ##
1510 _ASBOX
1511       echo
1512       for ac_var in $ac_subst_files
1513       do
1514         eval ac_val=$`echo $ac_var`
1515         echo "$ac_var='"'"'$ac_val'"'"'"
1516       done | sort
1517       echo
1518     fi
1519
1520     if test -s confdefs.h; then
1521       cat <<\_ASBOX
1522 ## ----------- ##
1523 ## confdefs.h. ##
1524 ## ----------- ##
1525 _ASBOX
1526       echo
1527       sed "/^$/d" confdefs.h | sort
1528       echo
1529     fi
1530     test "$ac_signal" != 0 &&
1531       echo "$as_me: caught signal $ac_signal"
1532     echo "$as_me: exit $exit_status"
1533   } >&5
1534   rm -f core *.core &&
1535   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1536     exit $exit_status
1537      ' 0
1538 for ac_signal in 1 2 13 15; do
1539   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1540 done
1541 ac_signal=0
1542
1543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1544 rm -rf conftest* confdefs.h
1545 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1546 echo >confdefs.h
1547
1548 # Predefined preprocessor variables.
1549
1550 cat >>confdefs.h <<_ACEOF
1551 #define PACKAGE_NAME "$PACKAGE_NAME"
1552 _ACEOF
1553
1554
1555 cat >>confdefs.h <<_ACEOF
1556 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1557 _ACEOF
1558
1559
1560 cat >>confdefs.h <<_ACEOF
1561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1562 _ACEOF
1563
1564
1565 cat >>confdefs.h <<_ACEOF
1566 #define PACKAGE_STRING "$PACKAGE_STRING"
1567 _ACEOF
1568
1569
1570 cat >>confdefs.h <<_ACEOF
1571 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1572 _ACEOF
1573
1574
1575 # Let the site file select an alternate cache file if it wants to.
1576 # Prefer explicitly selected file to automatically selected ones.
1577 if test -z "$CONFIG_SITE"; then
1578   if test "x$prefix" != xNONE; then
1579     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1580   else
1581     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1582   fi
1583 fi
1584 for ac_site_file in $CONFIG_SITE; do
1585   if test -r "$ac_site_file"; then
1586     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1587 echo "$as_me: loading site script $ac_site_file" >&6;}
1588     sed 's/^/| /' "$ac_site_file" >&5
1589     . "$ac_site_file"
1590   fi
1591 done
1592
1593 if test -r "$cache_file"; then
1594   # Some versions of bash will fail to source /dev/null (special
1595   # files actually), so we avoid doing that.
1596   if test -f "$cache_file"; then
1597     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1598 echo "$as_me: loading cache $cache_file" >&6;}
1599     case $cache_file in
1600       [\\/]* | ?:[\\/]* ) . $cache_file;;
1601       *)                      . ./$cache_file;;
1602     esac
1603   fi
1604 else
1605   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1606 echo "$as_me: creating cache $cache_file" >&6;}
1607   >$cache_file
1608 fi
1609
1610 # Check that the precious variables saved in the cache have kept the same
1611 # value.
1612 ac_cache_corrupted=false
1613 for ac_var in `(set) 2>&1 |
1614                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1615   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1616   eval ac_new_set=\$ac_env_${ac_var}_set
1617   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1618   eval ac_new_val="\$ac_env_${ac_var}_value"
1619   case $ac_old_set,$ac_new_set in
1620     set,)
1621       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1622 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1623       ac_cache_corrupted=: ;;
1624     ,set)
1625       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1626 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1627       ac_cache_corrupted=: ;;
1628     ,);;
1629     *)
1630       if test "x$ac_old_val" != "x$ac_new_val"; then
1631         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1632 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1633         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1634 echo "$as_me:   former value:  $ac_old_val" >&2;}
1635         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1636 echo "$as_me:   current value: $ac_new_val" >&2;}
1637         ac_cache_corrupted=:
1638       fi;;
1639   esac
1640   # Pass precious variables to config.status.
1641   if test "$ac_new_set" = set; then
1642     case $ac_new_val in
1643     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1644       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1645     *) ac_arg=$ac_var=$ac_new_val ;;
1646     esac
1647     case " $ac_configure_args " in
1648       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1649       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1650     esac
1651   fi
1652 done
1653 if $ac_cache_corrupted; then
1654   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1655 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1656   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1657 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1658    { (exit 1); exit 1; }; }
1659 fi
1660
1661 ac_ext=c
1662 ac_cpp='$CPP $CPPFLAGS'
1663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696 ac_aux_dir=
1697 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1698   if test -f $ac_dir/install-sh; then
1699     ac_aux_dir=$ac_dir
1700     ac_install_sh="$ac_aux_dir/install-sh -c"
1701     break
1702   elif test -f $ac_dir/install.sh; then
1703     ac_aux_dir=$ac_dir
1704     ac_install_sh="$ac_aux_dir/install.sh -c"
1705     break
1706   elif test -f $ac_dir/shtool; then
1707     ac_aux_dir=$ac_dir
1708     ac_install_sh="$ac_aux_dir/shtool install -c"
1709     break
1710   fi
1711 done
1712 if test -z "$ac_aux_dir"; then
1713   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1714 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1715    { (exit 1); exit 1; }; }
1716 fi
1717 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1718 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1719 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1720
1721 # Make sure we can run config.sub.
1722 $ac_config_sub sun4 >/dev/null 2>&1 ||
1723   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1725    { (exit 1); exit 1; }; }
1726
1727 echo "$as_me:$LINENO: checking build system type" >&5
1728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1729 if test "${ac_cv_build+set}" = set; then
1730   echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732   ac_cv_build_alias=$build_alias
1733 test -z "$ac_cv_build_alias" &&
1734   ac_cv_build_alias=`$ac_config_guess`
1735 test -z "$ac_cv_build_alias" &&
1736   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1738    { (exit 1); exit 1; }; }
1739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1740   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 fi
1745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1746 echo "${ECHO_T}$ac_cv_build" >&6
1747 build=$ac_cv_build
1748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751
1752
1753 echo "$as_me:$LINENO: checking host system type" >&5
1754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1755 if test "${ac_cv_host+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   ac_cv_host_alias=$host_alias
1759 test -z "$ac_cv_host_alias" &&
1760   ac_cv_host_alias=$ac_cv_build_alias
1761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1762   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1764    { (exit 1); exit 1; }; }
1765
1766 fi
1767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1768 echo "${ECHO_T}$ac_cv_host" >&6
1769 host=$ac_cv_host
1770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773
1774
1775 echo "$as_me:$LINENO: checking target system type" >&5
1776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1777 if test "${ac_cv_target+set}" = set; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   ac_cv_target_alias=$target_alias
1781 test "x$ac_cv_target_alias" = "x" &&
1782   ac_cv_target_alias=$ac_cv_host_alias
1783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1784   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1786    { (exit 1); exit 1; }; }
1787
1788 fi
1789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1790 echo "${ECHO_T}$ac_cv_target" >&6
1791 target=$ac_cv_target
1792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1795
1796
1797 # The aliases save the names the user supplied, while $host etc.
1798 # will get canonicalized.
1799 test -n "$target_alias" &&
1800   test "$program_prefix$program_suffix$program_transform_name" = \
1801     NONENONEs,x,x, &&
1802   program_prefix=${target_alias}-
1803
1804
1805
1806 wx_major_version_number=2
1807 wx_minor_version_number=9
1808 wx_release_number=0
1809 wx_subrelease_number=0
1810
1811 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1812 WX_VERSION=$WX_RELEASE.$wx_release_number
1813 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1814
1815 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1816
1817
1818 wx_top_builddir="`pwd`"
1819
1820
1821
1822
1823 USE_UNIX=1
1824 USE_OS2=0
1825 USE_WIN32=0
1826 USE_DOS=0
1827 USE_BEOS=0
1828 USE_MAC=0
1829
1830 USE_AIX=
1831 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1832 USE_GNU=                            USE_HPUX=
1833 USE_LINUX=
1834 USE_NETBSD=
1835 USE_OPENBSD=
1836 USE_OSF=                            USE_SGI=
1837 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1838 USE_ULTRIX=
1839 USE_UNIXWARE=
1840
1841 USE_ALPHA=
1842
1843 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1844
1845 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
1846
1847 DEFAULT_wxUSE_COCOA=0
1848 DEFAULT_wxUSE_GTK=0
1849 DEFAULT_wxUSE_MAC=0
1850 DEFAULT_wxUSE_MGL=0
1851 DEFAULT_wxUSE_MICROWIN=0
1852 DEFAULT_wxUSE_MOTIF=0
1853 DEFAULT_wxUSE_MSW=0
1854 DEFAULT_wxUSE_PM=0
1855 DEFAULT_wxUSE_X11=0
1856 DEFAULT_wxUSE_DFB=0
1857
1858 DEFAULT_DEFAULT_wxUSE_COCOA=0
1859 DEFAULT_DEFAULT_wxUSE_GTK=0
1860 DEFAULT_DEFAULT_wxUSE_MAC=0
1861 DEFAULT_DEFAULT_wxUSE_MGL=0
1862 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1863 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1864 DEFAULT_DEFAULT_wxUSE_MSW=0
1865 DEFAULT_DEFAULT_wxUSE_PM=0
1866 DEFAULT_DEFAULT_wxUSE_X11=0
1867 DEFAULT_DEFAULT_wxUSE_DFB=0
1868
1869 PROGRAM_EXT=
1870 SO_SUFFIX=so
1871 SAMPLES_RPATH_FLAG=
1872 SAMPLES_RPATH_POSTLINK=
1873
1874 DEFAULT_STD_FLAG=yes
1875
1876 case "${host}" in
1877   *-hp-hpux* )
1878     USE_HPUX=1
1879     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1881     SO_SUFFIX=sl
1882     cat >>confdefs.h <<\_ACEOF
1883 #define __HPUX__ 1
1884 _ACEOF
1885
1886
1887             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1888   ;;
1889   *-*-linux* )
1890     USE_LINUX=1
1891     cat >>confdefs.h <<\_ACEOF
1892 #define __LINUX__ 1
1893 _ACEOF
1894
1895     TMP=`uname -m`
1896     if test "x$TMP" = "xalpha"; then
1897       USE_ALPHA=1
1898       cat >>confdefs.h <<\_ACEOF
1899 #define __ALPHA__ 1
1900 _ACEOF
1901
1902     fi
1903     DEFAULT_DEFAULT_wxUSE_GTK=1
1904   ;;
1905   *-*-gnu* | *-*-k*bsd*-gnu )
1906     USE_GNU=1
1907     TMP=`uname -m`
1908     if test "x$TMP" = "xalpha"; then
1909       USE_ALPHA=1
1910       cat >>confdefs.h <<\_ACEOF
1911 #define __ALPHA__ 1
1912 _ACEOF
1913
1914     fi
1915     DEFAULT_DEFAULT_wxUSE_GTK=1
1916   ;;
1917   *-*-irix5* | *-*-irix6* )
1918     USE_SGI=1
1919     USE_SVR4=1
1920     cat >>confdefs.h <<\_ACEOF
1921 #define __SGI__ 1
1922 _ACEOF
1923
1924     cat >>confdefs.h <<\_ACEOF
1925 #define __SVR4__ 1
1926 _ACEOF
1927
1928     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1929   ;;
1930   *-*-solaris2* )
1931     USE_SUN=1
1932     USE_SOLARIS=1
1933     USE_SVR4=1
1934     cat >>confdefs.h <<\_ACEOF
1935 #define __SUN__ 1
1936 _ACEOF
1937
1938     cat >>confdefs.h <<\_ACEOF
1939 #define __SOLARIS__ 1
1940 _ACEOF
1941
1942     cat >>confdefs.h <<\_ACEOF
1943 #define __SVR4__ 1
1944 _ACEOF
1945
1946     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1947     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1948   ;;
1949   *-*-sunos4* )
1950     USE_SUN=1
1951     USE_SUNOS=1
1952     USE_BSD=1
1953     cat >>confdefs.h <<\_ACEOF
1954 #define __SUN__ 1
1955 _ACEOF
1956
1957     cat >>confdefs.h <<\_ACEOF
1958 #define __SUNOS__ 1
1959 _ACEOF
1960
1961     cat >>confdefs.h <<\_ACEOF
1962 #define __BSD__ 1
1963 _ACEOF
1964
1965     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1966   ;;
1967   *-*-freebsd*)
1968     USE_BSD=1
1969     USE_FREEBSD=1
1970     cat >>confdefs.h <<\_ACEOF
1971 #define __FREEBSD__ 1
1972 _ACEOF
1973
1974     cat >>confdefs.h <<\_ACEOF
1975 #define __BSD__ 1
1976 _ACEOF
1977
1978     DEFAULT_DEFAULT_wxUSE_GTK=1
1979   ;;
1980   *-*-openbsd*|*-*-mirbsd*)
1981     USE_BSD=1
1982     USE_OPENBSD=1
1983     cat >>confdefs.h <<\_ACEOF
1984 #define __OPENBSD__ 1
1985 _ACEOF
1986
1987     cat >>confdefs.h <<\_ACEOF
1988 #define __BSD__ 1
1989 _ACEOF
1990
1991     DEFAULT_DEFAULT_wxUSE_GTK=1
1992   ;;
1993   *-*-netbsd*)
1994     USE_BSD=1
1995     USE_NETBSD=1
1996     cat >>confdefs.h <<\_ACEOF
1997 #define __NETBSD__ 1
1998 _ACEOF
1999
2000     cat >>confdefs.h <<\_ACEOF
2001 #define __BSD__ 1
2002 _ACEOF
2003
2004     DEFAULT_DEFAULT_wxUSE_GTK=1
2005     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2006
2007             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2008   ;;
2009   *-*-osf* )
2010     USE_ALPHA=1
2011     USE_OSF=1
2012     cat >>confdefs.h <<\_ACEOF
2013 #define __ALPHA__ 1
2014 _ACEOF
2015
2016     cat >>confdefs.h <<\_ACEOF
2017 #define __OSF__ 1
2018 _ACEOF
2019
2020     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2021     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2022   ;;
2023   *-*-dgux5* )
2024     USE_ALPHA=1
2025     USE_SVR4=1
2026     cat >>confdefs.h <<\_ACEOF
2027 #define __ALPHA__ 1
2028 _ACEOF
2029
2030     cat >>confdefs.h <<\_ACEOF
2031 #define __SVR4__ 1
2032 _ACEOF
2033
2034     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2035   ;;
2036   *-*-sysv5* )
2037     USE_SYSV=1
2038     USE_SVR4=1
2039     cat >>confdefs.h <<\_ACEOF
2040 #define __SYSV__ 1
2041 _ACEOF
2042
2043     cat >>confdefs.h <<\_ACEOF
2044 #define __SVR4__ 1
2045 _ACEOF
2046
2047     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2048   ;;
2049   *-*-aix* )
2050     USE_AIX=1
2051     USE_SYSV=1
2052     USE_SVR4=1
2053                         SO_SUFFIX=a
2054     cat >>confdefs.h <<\_ACEOF
2055 #define __AIX__ 1
2056 _ACEOF
2057
2058     cat >>confdefs.h <<\_ACEOF
2059 #define __SYSV__ 1
2060 _ACEOF
2061
2062     cat >>confdefs.h <<\_ACEOF
2063 #define __SVR4__ 1
2064 _ACEOF
2065
2066     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2067   ;;
2068
2069   *-*-*UnixWare*)
2070     USE_SYSV=1
2071     USE_SVR4=1
2072     USE_UNIXWARE=1
2073     cat >>confdefs.h <<\_ACEOF
2074 #define __UNIXWARE__ 1
2075 _ACEOF
2076
2077   ;;
2078
2079   *-*-cygwin* | *-*-mingw32* )
2080                 SO_SUFFIX=dll
2081     PROGRAM_EXT=".exe"
2082     DEFAULT_DEFAULT_wxUSE_MSW=1
2083   ;;
2084
2085   *-pc-msdosdjgpp )
2086     USE_UNIX=0
2087     USE_DOS=1
2088     cat >>confdefs.h <<\_ACEOF
2089 #define __DOS__ 1
2090 _ACEOF
2091
2092     PROGRAM_EXT=".exe"
2093     DEFAULT_DEFAULT_wxUSE_MGL=1
2094   ;;
2095
2096   *-pc-os2_emx | *-pc-os2-emx )
2097     cat >>confdefs.h <<\_ACEOF
2098 #define __EMX__ 1
2099 _ACEOF
2100
2101     USE_OS2=1
2102     cat >>confdefs.h <<\_ACEOF
2103 #define __OS2__ 1
2104 _ACEOF
2105
2106     PROGRAM_EXT=".exe"
2107     DEFAULT_DEFAULT_wxUSE_PM=1
2108         CXX=gcc
2109     LDFLAGS="$LDFLAGS -Zcrtdll"
2110                         ac_executable_extensions=".exe"
2111     export ac_executable_extensions
2112             ac_save_IFS="$IFS"
2113     IFS='\\'
2114     ac_TEMP_PATH=
2115     for ac_dir in $PATH; do
2116       IFS=$ac_save_IFS
2117       if test -z "$ac_TEMP_PATH"; then
2118         ac_TEMP_PATH="$ac_dir"
2119       else
2120         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2121       fi
2122     done
2123     export PATH="$ac_TEMP_PATH"
2124     unset ac_TEMP_PATH
2125     DEFAULT_STD_FLAG=no
2126   ;;
2127
2128   *-*-darwin* )
2129         USE_BSD=1
2130     USE_DARWIN=1
2131     SO_SUFFIX=dylib
2132     cat >>confdefs.h <<\_ACEOF
2133 #define __BSD__ 1
2134 _ACEOF
2135
2136     cat >>confdefs.h <<\_ACEOF
2137 #define __DARWIN__ 1
2138 _ACEOF
2139
2140     cat >>confdefs.h <<\_ACEOF
2141 #define TARGET_CARBON 1
2142 _ACEOF
2143
2144     DEFAULT_DEFAULT_wxUSE_MAC=1
2145     DEFAULT_STD_FLAG=no
2146   ;;
2147   powerpc-apple-macos* )
2148         USE_UNIX=0
2149             ac_cv_c_bigendian=yes
2150     SO_SUFFIX=shlib
2151             DEFAULT_DEFAULT_wxUSE_MAC=1
2152     DEFAULT_STD_FLAG=no
2153   ;;
2154
2155   *-*-beos* )
2156         USE_BEOS=1
2157     cat >>confdefs.h <<\_ACEOF
2158 #define __BEOS__ 1
2159 _ACEOF
2160
2161   ;;
2162
2163   *)
2164     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2165 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2166     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2167 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2168
2169     DEFAULT_DEFAULT_wxUSE_X11=1
2170     DEFAULT_wxUSE_SHARED=no
2171 esac
2172
2173
2174
2175
2176           wx_arg_cache_file="configarg.cache"
2177           echo "loading argument cache $wx_arg_cache_file"
2178           rm -f ${wx_arg_cache_file}.tmp
2179           touch ${wx_arg_cache_file}.tmp
2180           touch ${wx_arg_cache_file}
2181
2182
2183 DEFAULT_wxUSE_ALL_FEATURES=yes
2184
2185 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2186 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2187
2188 DEFAULT_wxUSE_UNICODE_UTF8=auto
2189 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2190 DEFAULT_wxUSE_WCSRTOMBS=no
2191
2192 DEFAULT_wxUSE_ACCESSIBILITY=no
2193
2194 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2195
2196 DEFAULT_wxUSE_GTK2=yes
2197
2198 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2199
2200
2201 for toolkit in `echo $ALL_TOOLKITS`; do
2202   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2203   if test "x$LINE" != "x" ; then
2204     has_toolkit_in_cache=1
2205     eval "DEFAULT_$LINE"
2206     eval "CACHE_$toolkit=1"
2207
2208     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2209     if test "x$LINE" != "x" ; then
2210         eval "DEFAULT_$LINE"
2211     fi
2212   fi
2213 done
2214
2215
2216
2217
2218
2219           enablestring=disable
2220           defaultval=
2221           if test -z"$defaultval"; then
2222               if test x"$enablestring" = xdisable; then
2223                   defaultval=yes
2224               else
2225                   defaultval=no
2226               fi
2227           fi
2228
2229           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2230 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2231           no_cache=0
2232           # Check whether --enable-gui or --disable-gui was given.
2233 if test "${enable_gui+set}" = set; then
2234   enableval="$enable_gui"
2235
2236                           if test "$enableval" = yes; then
2237                             ac_cv_use_gui='wxUSE_GUI=yes'
2238                           else
2239                             ac_cv_use_gui='wxUSE_GUI=no'
2240                           fi
2241
2242 else
2243
2244                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
2245                           if test "x$LINE" != x ; then
2246                             eval "DEFAULT_$LINE"
2247                           else
2248                             no_cache=1
2249                           fi
2250
2251                           ac_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2252
2253 fi;
2254
2255           eval "$ac_cv_use_gui"
2256           if test "$no_cache" != 1; then
2257             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2258           fi
2259
2260           if test x"$enablestring" = xdisable; then
2261             if test $wxUSE_GUI = yes; then
2262               result=no
2263             else
2264               result=yes
2265             fi
2266           else
2267             result=$wxUSE_GUI
2268           fi
2269
2270           echo "$as_me:$LINENO: result: $result" >&5
2271 echo "${ECHO_T}$result" >&6
2272
2273
2274           enablestring=
2275           defaultval=
2276           if test -z"$defaultval"; then
2277               if test x"$enablestring" = xdisable; then
2278                   defaultval=yes
2279               else
2280                   defaultval=no
2281               fi
2282           fi
2283
2284           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2285 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2286           no_cache=0
2287           # Check whether --enable-monolithic or --disable-monolithic was given.
2288 if test "${enable_monolithic+set}" = set; then
2289   enableval="$enable_monolithic"
2290
2291                           if test "$enableval" = yes; then
2292                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2293                           else
2294                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2295                           fi
2296
2297 else
2298
2299                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
2300                           if test "x$LINE" != x ; then
2301                             eval "DEFAULT_$LINE"
2302                           else
2303                             no_cache=1
2304                           fi
2305
2306                           ac_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
2307
2308 fi;
2309
2310           eval "$ac_cv_use_monolithic"
2311           if test "$no_cache" != 1; then
2312             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2313           fi
2314
2315           if test x"$enablestring" = xdisable; then
2316             if test $wxUSE_MONOLITHIC = yes; then
2317               result=no
2318             else
2319               result=yes
2320             fi
2321           else
2322             result=$wxUSE_MONOLITHIC
2323           fi
2324
2325           echo "$as_me:$LINENO: result: $result" >&5
2326 echo "${ECHO_T}$result" >&6
2327
2328
2329           enablestring=
2330           defaultval=
2331           if test -z"$defaultval"; then
2332               if test x"$enablestring" = xdisable; then
2333                   defaultval=yes
2334               else
2335                   defaultval=no
2336               fi
2337           fi
2338
2339           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2340 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2341           no_cache=0
2342           # Check whether --enable-plugins or --disable-plugins was given.
2343 if test "${enable_plugins+set}" = set; then
2344   enableval="$enable_plugins"
2345
2346                           if test "$enableval" = yes; then
2347                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2348                           else
2349                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2350                           fi
2351
2352 else
2353
2354                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
2355                           if test "x$LINE" != x ; then
2356                             eval "DEFAULT_$LINE"
2357                           else
2358                             no_cache=1
2359                           fi
2360
2361                           ac_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
2362
2363 fi;
2364
2365           eval "$ac_cv_use_plugins"
2366           if test "$no_cache" != 1; then
2367             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2368           fi
2369
2370           if test x"$enablestring" = xdisable; then
2371             if test $wxUSE_PLUGINS = yes; then
2372               result=no
2373             else
2374               result=yes
2375             fi
2376           else
2377             result=$wxUSE_PLUGINS
2378           fi
2379
2380           echo "$as_me:$LINENO: result: $result" >&5
2381 echo "${ECHO_T}$result" >&6
2382
2383
2384           withstring=without
2385           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2386 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2387           no_cache=0
2388
2389 # Check whether --with-subdirs or --without-subdirs was given.
2390 if test "${with_subdirs+set}" = set; then
2391   withval="$with_subdirs"
2392
2393                         if test "$withval" = yes; then
2394                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2395                         else
2396                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2397                         fi
2398
2399 else
2400
2401                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
2402                         if test "x$LINE" != x ; then
2403                           eval "DEFAULT_$LINE"
2404                         else
2405                           no_cache=1
2406                         fi
2407
2408                         ac_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$wxUSE_ALL_FEATURES}"
2409
2410 fi;
2411
2412           eval "$ac_cv_use_subdirs"
2413           if test "$no_cache" != 1; then
2414             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2415           fi
2416
2417           if test x"$withstring" = xwithout; then
2418             if test $wxWITH_SUBDIRS = yes; then
2419               result=no
2420             else
2421               result=yes
2422             fi
2423           else
2424             result=$wxWITH_SUBDIRS
2425           fi
2426
2427           echo "$as_me:$LINENO: result: $result" >&5
2428 echo "${ECHO_T}$result" >&6
2429
2430
2431 # Check whether --with-flavour or --without-flavour was given.
2432 if test "${with_flavour+set}" = set; then
2433   withval="$with_flavour"
2434   WX_FLAVOUR="$withval"
2435 fi;
2436
2437           enablestring=
2438           defaultval=
2439           if test -z"$defaultval"; then
2440               if test x"$enablestring" = xdisable; then
2441                   defaultval=yes
2442               else
2443                   defaultval=no
2444               fi
2445           fi
2446
2447           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
2448 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
2449           no_cache=0
2450           # Check whether --enable-official_build or --disable-official_build was given.
2451 if test "${enable_official_build+set}" = set; then
2452   enableval="$enable_official_build"
2453
2454                           if test "$enableval" = yes; then
2455                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
2456                           else
2457                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
2458                           fi
2459
2460 else
2461
2462                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
2463                           if test "x$LINE" != x ; then
2464                             eval "DEFAULT_$LINE"
2465                           else
2466                             no_cache=1
2467                           fi
2468
2469                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
2470
2471 fi;
2472
2473           eval "$ac_cv_use_official_build"
2474           if test "$no_cache" != 1; then
2475             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
2476           fi
2477
2478           if test x"$enablestring" = xdisable; then
2479             if test $wxUSE_OFFICIAL_BUILD = yes; then
2480               result=no
2481             else
2482               result=yes
2483             fi
2484           else
2485             result=$wxUSE_OFFICIAL_BUILD
2486           fi
2487
2488           echo "$as_me:$LINENO: result: $result" >&5
2489 echo "${ECHO_T}$result" >&6
2490
2491 # Check whether --enable-vendor or --disable-vendor was given.
2492 if test "${enable_vendor+set}" = set; then
2493   enableval="$enable_vendor"
2494   VENDOR="$enableval"
2495 fi;
2496 if test "x$VENDOR" = "x"; then
2497     VENDOR="custom"
2498 fi
2499
2500
2501           enablestring=disable
2502           defaultval=
2503           if test -z"$defaultval"; then
2504               if test x"$enablestring" = xdisable; then
2505                   defaultval=yes
2506               else
2507                   defaultval=no
2508               fi
2509           fi
2510
2511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
2512 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6
2513           no_cache=0
2514           # Check whether --enable-all-features or --disable-all-features was given.
2515 if test "${enable_all_features+set}" = set; then
2516   enableval="$enable_all_features"
2517
2518                           if test "$enableval" = yes; then
2519                             ac_cv_use_all-features='wxUSE_ALL_FEATURES=yes'
2520                           else
2521                             ac_cv_use_all-features='wxUSE_ALL_FEATURES=no'
2522                           fi
2523
2524 else
2525
2526                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
2527                           if test "x$LINE" != x ; then
2528                             eval "DEFAULT_$LINE"
2529                           else
2530                             no_cache=1
2531                           fi
2532
2533                           ac_cv_use_all-features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
2534
2535 fi;
2536
2537           eval "$ac_cv_use_all-features"
2538           if test "$no_cache" != 1; then
2539             echo $ac_cv_use_all-features >> ${wx_arg_cache_file}.tmp
2540           fi
2541
2542           if test x"$enablestring" = xdisable; then
2543             if test $wxUSE_ALL_FEATURES = yes; then
2544               result=no
2545             else
2546               result=yes
2547             fi
2548           else
2549             result=$wxUSE_ALL_FEATURES
2550           fi
2551
2552           echo "$as_me:$LINENO: result: $result" >&5
2553 echo "${ECHO_T}$result" >&6
2554
2555
2556
2557 if test "$wxUSE_GUI" = "yes"; then
2558
2559
2560           enablestring=
2561           defaultval=
2562           if test -z"$defaultval"; then
2563               if test x"$enablestring" = xdisable; then
2564                   defaultval=yes
2565               else
2566                   defaultval=no
2567               fi
2568           fi
2569
2570           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2571 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2572           no_cache=0
2573           # Check whether --enable-universal or --disable-universal was given.
2574 if test "${enable_universal+set}" = set; then
2575   enableval="$enable_universal"
2576
2577                           if test "$enableval" = yes; then
2578                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2579                           else
2580                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2581                           fi
2582
2583 else
2584
2585                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
2586                           if test "x$LINE" != x ; then
2587                             eval "DEFAULT_$LINE"
2588                           else
2589                             no_cache=1
2590                           fi
2591
2592                           ac_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
2593
2594 fi;
2595
2596           eval "$ac_cv_use_universal"
2597           if test "$no_cache" != 1; then
2598             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2599           fi
2600
2601           if test x"$enablestring" = xdisable; then
2602             if test $wxUSE_UNIVERSAL = yes; then
2603               result=no
2604             else
2605               result=yes
2606             fi
2607           else
2608             result=$wxUSE_UNIVERSAL
2609           fi
2610
2611           echo "$as_me:$LINENO: result: $result" >&5
2612 echo "${ECHO_T}$result" >&6
2613
2614 if test "$wxUSE_UNIVERSAL" = "yes"; then
2615
2616 # Check whether --with-themes or --without-themes was given.
2617 if test "${with_themes+set}" = set; then
2618   withval="$with_themes"
2619   wxUNIV_THEMES="$withval"
2620 fi;
2621 fi
2622
2623
2624 # Check whether --with-gtk or --without-gtk was given.
2625 if test "${with_gtk+set}" = set; then
2626   withval="$with_gtk"
2627   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2628 fi;
2629
2630 # Check whether --with-motif or --without-motif was given.
2631 if test "${with_motif+set}" = set; then
2632   withval="$with_motif"
2633   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2634 fi;
2635
2636 # Check whether --with-mac or --without-mac was given.
2637 if test "${with_mac+set}" = set; then
2638   withval="$with_mac"
2639   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2640 fi;
2641
2642 # Check whether --with-cocoa or --without-cocoa was given.
2643 if test "${with_cocoa+set}" = set; then
2644   withval="$with_cocoa"
2645   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2646 fi;
2647
2648 # Check whether --with-wine or --without-wine was given.
2649 if test "${with_wine+set}" = set; then
2650   withval="$with_wine"
2651   wxUSE_WINE="$withval" CACHE_WINE=1
2652 fi;
2653
2654 # Check whether --with-msw or --without-msw was given.
2655 if test "${with_msw+set}" = set; then
2656   withval="$with_msw"
2657   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2658 fi;
2659
2660 # Check whether --with-pm or --without-pm was given.
2661 if test "${with_pm+set}" = set; then
2662   withval="$with_pm"
2663   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2664 fi;
2665
2666 # Check whether --with-mgl or --without-mgl was given.
2667 if test "${with_mgl+set}" = set; then
2668   withval="$with_mgl"
2669   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2670 fi;
2671
2672 # Check whether --with-directfb or --without-directfb was given.
2673 if test "${with_directfb+set}" = set; then
2674   withval="$with_directfb"
2675   wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2676 fi;
2677
2678 # Check whether --with-microwin or --without-microwin was given.
2679 if test "${with_microwin+set}" = set; then
2680   withval="$with_microwin"
2681   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2682 fi;
2683
2684 # Check whether --with-x11 or --without-x11 was given.
2685 if test "${with_x11+set}" = set; then
2686   withval="$with_x11"
2687   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2688 fi;
2689
2690           enablestring=
2691           defaultval=
2692           if test -z"$defaultval"; then
2693               if test x"$enablestring" = xdisable; then
2694                   defaultval=yes
2695               else
2696                   defaultval=no
2697               fi
2698           fi
2699
2700           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2701 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2702           no_cache=0
2703           # Check whether --enable-nanox or --disable-nanox was given.
2704 if test "${enable_nanox+set}" = set; then
2705   enableval="$enable_nanox"
2706
2707                           if test "$enableval" = yes; then
2708                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2709                           else
2710                             ac_cv_use_nanox='wxUSE_NANOX=no'
2711                           fi
2712
2713 else
2714
2715                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
2716                           if test "x$LINE" != x ; then
2717                             eval "DEFAULT_$LINE"
2718                           else
2719                             no_cache=1
2720                           fi
2721
2722                           ac_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
2723
2724 fi;
2725
2726           eval "$ac_cv_use_nanox"
2727           if test "$no_cache" != 1; then
2728             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2729           fi
2730
2731           if test x"$enablestring" = xdisable; then
2732             if test $wxUSE_NANOX = yes; then
2733               result=no
2734             else
2735               result=yes
2736             fi
2737           else
2738             result=$wxUSE_NANOX
2739           fi
2740
2741           echo "$as_me:$LINENO: result: $result" >&5
2742 echo "${ECHO_T}$result" >&6
2743
2744
2745 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2746 if test "${enable_gtk2+set}" = set; then
2747   enableval="$enable_gtk2"
2748   wxUSE_GTK2="$enableval"
2749 fi;
2750
2751           enablestring=
2752           defaultval=
2753           if test -z"$defaultval"; then
2754               if test x"$enablestring" = xdisable; then
2755                   defaultval=yes
2756               else
2757                   defaultval=no
2758               fi
2759           fi
2760
2761           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2762 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2763           no_cache=0
2764           # Check whether --enable-gpe or --disable-gpe was given.
2765 if test "${enable_gpe+set}" = set; then
2766   enableval="$enable_gpe"
2767
2768                           if test "$enableval" = yes; then
2769                             ac_cv_use_gpe='wxUSE_GPE=yes'
2770                           else
2771                             ac_cv_use_gpe='wxUSE_GPE=no'
2772                           fi
2773
2774 else
2775
2776                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
2777                           if test "x$LINE" != x ; then
2778                             eval "DEFAULT_$LINE"
2779                           else
2780                             no_cache=1
2781                           fi
2782
2783                           ac_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
2784
2785 fi;
2786
2787           eval "$ac_cv_use_gpe"
2788           if test "$no_cache" != 1; then
2789             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2790           fi
2791
2792           if test x"$enablestring" = xdisable; then
2793             if test $wxUSE_GPE = yes; then
2794               result=no
2795             else
2796               result=yes
2797             fi
2798           else
2799             result=$wxUSE_GPE
2800           fi
2801
2802           echo "$as_me:$LINENO: result: $result" >&5
2803 echo "${ECHO_T}$result" >&6
2804
2805
2806
2807
2808           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2809 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2810           no_cache=0
2811
2812 # Check whether --with-libpng or --without-libpng was given.
2813 if test "${with_libpng+set}" = set; then
2814   withval="$with_libpng"
2815
2816                         if test "$withval" = yes; then
2817                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2818                         elif test "$withval" = no; then
2819                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2820                         elif test "$withval" = sys; then
2821                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2822                         elif test "$withval" = builtin; then
2823                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2824                         else
2825                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2826 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2827    { (exit 1); exit 1; }; }
2828                         fi
2829
2830 else
2831
2832                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
2833                         if test "x$LINE" != x ; then
2834                           eval "DEFAULT_$LINE"
2835                         else
2836                           no_cache=1
2837                         fi
2838
2839                         ac_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
2840
2841 fi;
2842
2843           eval "$ac_cv_use_libpng"
2844           if test "$no_cache" != 1; then
2845             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2846           fi
2847
2848           if test "$wxUSE_LIBPNG" = yes; then
2849             echo "$as_me:$LINENO: result: yes" >&5
2850 echo "${ECHO_T}yes" >&6
2851           elif test "$wxUSE_LIBPNG" = no; then
2852             echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2854           elif test "$wxUSE_LIBPNG" = sys; then
2855             echo "$as_me:$LINENO: result: system version" >&5
2856 echo "${ECHO_T}system version" >&6
2857           elif test "$wxUSE_LIBPNG" = builtin; then
2858             echo "$as_me:$LINENO: result: builtin version" >&5
2859 echo "${ECHO_T}builtin version" >&6
2860           else
2861             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2862 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2863    { (exit 1); exit 1; }; }
2864           fi
2865
2866
2867           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2868 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2869           no_cache=0
2870
2871 # Check whether --with-libjpeg or --without-libjpeg was given.
2872 if test "${with_libjpeg+set}" = set; then
2873   withval="$with_libjpeg"
2874
2875                         if test "$withval" = yes; then
2876                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2877                         elif test "$withval" = no; then
2878                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2879                         elif test "$withval" = sys; then
2880                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2881                         elif test "$withval" = builtin; then
2882                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2883                         else
2884                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2885 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2886    { (exit 1); exit 1; }; }
2887                         fi
2888
2889 else
2890
2891                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
2892                         if test "x$LINE" != x ; then
2893                           eval "DEFAULT_$LINE"
2894                         else
2895                           no_cache=1
2896                         fi
2897
2898                         ac_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
2899
2900 fi;
2901
2902           eval "$ac_cv_use_libjpeg"
2903           if test "$no_cache" != 1; then
2904             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2905           fi
2906
2907           if test "$wxUSE_LIBJPEG" = yes; then
2908             echo "$as_me:$LINENO: result: yes" >&5
2909 echo "${ECHO_T}yes" >&6
2910           elif test "$wxUSE_LIBJPEG" = no; then
2911             echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2913           elif test "$wxUSE_LIBJPEG" = sys; then
2914             echo "$as_me:$LINENO: result: system version" >&5
2915 echo "${ECHO_T}system version" >&6
2916           elif test "$wxUSE_LIBJPEG" = builtin; then
2917             echo "$as_me:$LINENO: result: builtin version" >&5
2918 echo "${ECHO_T}builtin version" >&6
2919           else
2920             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2921 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2922    { (exit 1); exit 1; }; }
2923           fi
2924
2925
2926           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2927 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2928           no_cache=0
2929
2930 # Check whether --with-libtiff or --without-libtiff was given.
2931 if test "${with_libtiff+set}" = set; then
2932   withval="$with_libtiff"
2933
2934                         if test "$withval" = yes; then
2935                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2936                         elif test "$withval" = no; then
2937                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2938                         elif test "$withval" = sys; then
2939                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2940                         elif test "$withval" = builtin; then
2941                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2942                         else
2943                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2944 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2945    { (exit 1); exit 1; }; }
2946                         fi
2947
2948 else
2949
2950                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
2951                         if test "x$LINE" != x ; then
2952                           eval "DEFAULT_$LINE"
2953                         else
2954                           no_cache=1
2955                         fi
2956
2957                         ac_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
2958
2959 fi;
2960
2961           eval "$ac_cv_use_libtiff"
2962           if test "$no_cache" != 1; then
2963             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2964           fi
2965
2966           if test "$wxUSE_LIBTIFF" = yes; then
2967             echo "$as_me:$LINENO: result: yes" >&5
2968 echo "${ECHO_T}yes" >&6
2969           elif test "$wxUSE_LIBTIFF" = no; then
2970             echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6
2972           elif test "$wxUSE_LIBTIFF" = sys; then
2973             echo "$as_me:$LINENO: result: system version" >&5
2974 echo "${ECHO_T}system version" >&6
2975           elif test "$wxUSE_LIBTIFF" = builtin; then
2976             echo "$as_me:$LINENO: result: builtin version" >&5
2977 echo "${ECHO_T}builtin version" >&6
2978           else
2979             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2980 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2981    { (exit 1); exit 1; }; }
2982           fi
2983
2984
2985           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2986 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2987           no_cache=0
2988
2989 # Check whether --with-libxpm or --without-libxpm was given.
2990 if test "${with_libxpm+set}" = set; then
2991   withval="$with_libxpm"
2992
2993                         if test "$withval" = yes; then
2994                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2995                         elif test "$withval" = no; then
2996                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2997                         elif test "$withval" = sys; then
2998                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2999                         elif test "$withval" = builtin; then
3000                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3001                         else
3002                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3003 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3004    { (exit 1); exit 1; }; }
3005                         fi
3006
3007 else
3008
3009                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3010                         if test "x$LINE" != x ; then
3011                           eval "DEFAULT_$LINE"
3012                         else
3013                           no_cache=1
3014                         fi
3015
3016                         ac_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3017
3018 fi;
3019
3020           eval "$ac_cv_use_libxpm"
3021           if test "$no_cache" != 1; then
3022             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3023           fi
3024
3025           if test "$wxUSE_LIBXPM" = yes; then
3026             echo "$as_me:$LINENO: result: yes" >&5
3027 echo "${ECHO_T}yes" >&6
3028           elif test "$wxUSE_LIBXPM" = no; then
3029             echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6
3031           elif test "$wxUSE_LIBXPM" = sys; then
3032             echo "$as_me:$LINENO: result: system version" >&5
3033 echo "${ECHO_T}system version" >&6
3034           elif test "$wxUSE_LIBXPM" = builtin; then
3035             echo "$as_me:$LINENO: result: builtin version" >&5
3036 echo "${ECHO_T}builtin version" >&6
3037           else
3038             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3039 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3040    { (exit 1); exit 1; }; }
3041           fi
3042
3043
3044           withstring=
3045           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3046 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3047           no_cache=0
3048
3049 # Check whether --with-libmspack or --without-libmspack was given.
3050 if test "${with_libmspack+set}" = set; then
3051   withval="$with_libmspack"
3052
3053                         if test "$withval" = yes; then
3054                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3055                         else
3056                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3057                         fi
3058
3059 else
3060
3061                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3062                         if test "x$LINE" != x ; then
3063                           eval "DEFAULT_$LINE"
3064                         else
3065                           no_cache=1
3066                         fi
3067
3068                         ac_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$wxUSE_ALL_FEATURES}"
3069
3070 fi;
3071
3072           eval "$ac_cv_use_libmspack"
3073           if test "$no_cache" != 1; then
3074             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3075           fi
3076
3077           if test x"$withstring" = xwithout; then
3078             if test $wxUSE_LIBMSPACK = yes; then
3079               result=no
3080             else
3081               result=yes
3082             fi
3083           else
3084             result=$wxUSE_LIBMSPACK
3085           fi
3086
3087           echo "$as_me:$LINENO: result: $result" >&5
3088 echo "${ECHO_T}$result" >&6
3089
3090
3091           withstring=
3092           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3093 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3094           no_cache=0
3095
3096 # Check whether --with-sdl or --without-sdl was given.
3097 if test "${with_sdl+set}" = set; then
3098   withval="$with_sdl"
3099
3100                         if test "$withval" = yes; then
3101                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3102                         else
3103                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3104                         fi
3105
3106 else
3107
3108                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
3109                         if test "x$LINE" != x ; then
3110                           eval "DEFAULT_$LINE"
3111                         else
3112                           no_cache=1
3113                         fi
3114
3115                         ac_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$wxUSE_ALL_FEATURES}"
3116
3117 fi;
3118
3119           eval "$ac_cv_use_sdl"
3120           if test "$no_cache" != 1; then
3121             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3122           fi
3123
3124           if test x"$withstring" = xwithout; then
3125             if test $wxUSE_LIBSDL = yes; then
3126               result=no
3127             else
3128               result=yes
3129             fi
3130           else
3131             result=$wxUSE_LIBSDL
3132           fi
3133
3134           echo "$as_me:$LINENO: result: $result" >&5
3135 echo "${ECHO_T}$result" >&6
3136
3137
3138           withstring=without
3139           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3140 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3141           no_cache=0
3142
3143 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3144 if test "${with_gnomeprint+set}" = set; then
3145   withval="$with_gnomeprint"
3146
3147                         if test "$withval" = yes; then
3148                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3149                         else
3150                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3151                         fi
3152
3153 else
3154
3155                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3156                         if test "x$LINE" != x ; then
3157                           eval "DEFAULT_$LINE"
3158                         else
3159                           no_cache=1
3160                         fi
3161
3162                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$wxUSE_ALL_FEATURES}"
3163
3164 fi;
3165
3166           eval "$ac_cv_use_gnomeprint"
3167           if test "$no_cache" != 1; then
3168             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3169           fi
3170
3171           if test x"$withstring" = xwithout; then
3172             if test $wxUSE_LIBGNOMEPRINT = yes; then
3173               result=no
3174             else
3175               result=yes
3176             fi
3177           else
3178             result=$wxUSE_LIBGNOMEPRINT
3179           fi
3180
3181           echo "$as_me:$LINENO: result: $result" >&5
3182 echo "${ECHO_T}$result" >&6
3183
3184
3185           withstring=
3186           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3187 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3188           no_cache=0
3189
3190 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3191 if test "${with_gnomevfs+set}" = set; then
3192   withval="$with_gnomevfs"
3193
3194                         if test "$withval" = yes; then
3195                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3196                         else
3197                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3198                         fi
3199
3200 else
3201
3202                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3203                         if test "x$LINE" != x ; then
3204                           eval "DEFAULT_$LINE"
3205                         else
3206                           no_cache=1
3207                         fi
3208
3209                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$wxUSE_ALL_FEATURES}"
3210
3211 fi;
3212
3213           eval "$ac_cv_use_gnomevfs"
3214           if test "$no_cache" != 1; then
3215             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3216           fi
3217
3218           if test x"$withstring" = xwithout; then
3219             if test $wxUSE_LIBGNOMEVFS = yes; then
3220               result=no
3221             else
3222               result=yes
3223             fi
3224           else
3225             result=$wxUSE_LIBGNOMEVFS
3226           fi
3227
3228           echo "$as_me:$LINENO: result: $result" >&5
3229 echo "${ECHO_T}$result" >&6
3230
3231
3232           withstring=
3233           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3234 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3235           no_cache=0
3236
3237 # Check whether --with-hildon or --without-hildon was given.
3238 if test "${with_hildon+set}" = set; then
3239   withval="$with_hildon"
3240
3241                         if test "$withval" = yes; then
3242                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3243                         else
3244                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3245                         fi
3246
3247 else
3248
3249                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3250                         if test "x$LINE" != x ; then
3251                           eval "DEFAULT_$LINE"
3252                         else
3253                           no_cache=1
3254                         fi
3255
3256                         ac_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$wxUSE_ALL_FEATURES}"
3257
3258 fi;
3259
3260           eval "$ac_cv_use_hildon"
3261           if test "$no_cache" != 1; then
3262             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3263           fi
3264
3265           if test x"$withstring" = xwithout; then
3266             if test $wxUSE_LIBHILDON = yes; then
3267               result=no
3268             else
3269               result=yes
3270             fi
3271           else
3272             result=$wxUSE_LIBHILDON
3273           fi
3274
3275           echo "$as_me:$LINENO: result: $result" >&5
3276 echo "${ECHO_T}$result" >&6
3277
3278
3279           withstring=
3280           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3281 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3282           no_cache=0
3283
3284 # Check whether --with-opengl or --without-opengl was given.
3285 if test "${with_opengl+set}" = set; then
3286   withval="$with_opengl"
3287
3288                         if test "$withval" = yes; then
3289                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3290                         else
3291                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3292                         fi
3293
3294 else
3295
3296                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
3297                         if test "x$LINE" != x ; then
3298                           eval "DEFAULT_$LINE"
3299                         else
3300                           no_cache=1
3301                         fi
3302
3303                         ac_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$wxUSE_ALL_FEATURES}"
3304
3305 fi;
3306
3307           eval "$ac_cv_use_opengl"
3308           if test "$no_cache" != 1; then
3309             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3310           fi
3311
3312           if test x"$withstring" = xwithout; then
3313             if test $wxUSE_OPENGL = yes; then
3314               result=no
3315             else
3316               result=yes
3317             fi
3318           else
3319             result=$wxUSE_OPENGL
3320           fi
3321
3322           echo "$as_me:$LINENO: result: $result" >&5
3323 echo "${ECHO_T}$result" >&6
3324
3325
3326 fi
3327
3328
3329           withstring=
3330           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3331 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3332           no_cache=0
3333
3334 # Check whether --with-dmalloc or --without-dmalloc was given.
3335 if test "${with_dmalloc+set}" = set; then
3336   withval="$with_dmalloc"
3337
3338                         if test "$withval" = yes; then
3339                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3340                         else
3341                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3342                         fi
3343
3344 else
3345
3346                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
3347                         if test "x$LINE" != x ; then
3348                           eval "DEFAULT_$LINE"
3349                         else
3350                           no_cache=1
3351                         fi
3352
3353                         ac_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$wxUSE_ALL_FEATURES}"
3354
3355 fi;
3356
3357           eval "$ac_cv_use_dmalloc"
3358           if test "$no_cache" != 1; then
3359             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3360           fi
3361
3362           if test x"$withstring" = xwithout; then
3363             if test $wxUSE_DMALLOC = yes; then
3364               result=no
3365             else
3366               result=yes
3367             fi
3368           else
3369             result=$wxUSE_DMALLOC
3370           fi
3371
3372           echo "$as_me:$LINENO: result: $result" >&5
3373 echo "${ECHO_T}$result" >&6
3374
3375
3376           echo "$as_me:$LINENO: checking for --with-regex" >&5
3377 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3378           no_cache=0
3379
3380 # Check whether --with-regex or --without-regex was given.
3381 if test "${with_regex+set}" = set; then
3382   withval="$with_regex"
3383
3384                         if test "$withval" = yes; then
3385                           ac_cv_use_regex='wxUSE_REGEX=yes'
3386                         elif test "$withval" = no; then
3387                           ac_cv_use_regex='wxUSE_REGEX=no'
3388                         elif test "$withval" = sys; then
3389                           ac_cv_use_regex='wxUSE_REGEX=sys'
3390                         elif test "$withval" = builtin; then
3391                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3392                         else
3393                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3394 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3395    { (exit 1); exit 1; }; }
3396                         fi
3397
3398 else
3399
3400                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
3401                         if test "x$LINE" != x ; then
3402                           eval "DEFAULT_$LINE"
3403                         else
3404                           no_cache=1
3405                         fi
3406
3407                         ac_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
3408
3409 fi;
3410
3411           eval "$ac_cv_use_regex"
3412           if test "$no_cache" != 1; then
3413             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3414           fi
3415
3416           if test "$wxUSE_REGEX" = yes; then
3417             echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6
3419           elif test "$wxUSE_REGEX" = no; then
3420             echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422           elif test "$wxUSE_REGEX" = sys; then
3423             echo "$as_me:$LINENO: result: system version" >&5
3424 echo "${ECHO_T}system version" >&6
3425           elif test "$wxUSE_REGEX" = builtin; then
3426             echo "$as_me:$LINENO: result: builtin version" >&5
3427 echo "${ECHO_T}builtin version" >&6
3428           else
3429             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3430 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3431    { (exit 1); exit 1; }; }
3432           fi
3433
3434
3435           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3436 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3437           no_cache=0
3438
3439 # Check whether --with-zlib or --without-zlib was given.
3440 if test "${with_zlib+set}" = set; then
3441   withval="$with_zlib"
3442
3443                         if test "$withval" = yes; then
3444                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3445                         elif test "$withval" = no; then
3446                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3447                         elif test "$withval" = sys; then
3448                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3449                         elif test "$withval" = builtin; then
3450                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3451                         else
3452                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3453 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3454    { (exit 1); exit 1; }; }
3455                         fi
3456
3457 else
3458
3459                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
3460                         if test "x$LINE" != x ; then
3461                           eval "DEFAULT_$LINE"
3462                         else
3463                           no_cache=1
3464                         fi
3465
3466                         ac_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
3467
3468 fi;
3469
3470           eval "$ac_cv_use_zlib"
3471           if test "$no_cache" != 1; then
3472             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3473           fi
3474
3475           if test "$wxUSE_ZLIB" = yes; then
3476             echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3478           elif test "$wxUSE_ZLIB" = no; then
3479             echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481           elif test "$wxUSE_ZLIB" = sys; then
3482             echo "$as_me:$LINENO: result: system version" >&5
3483 echo "${ECHO_T}system version" >&6
3484           elif test "$wxUSE_ZLIB" = builtin; then
3485             echo "$as_me:$LINENO: result: builtin version" >&5
3486 echo "${ECHO_T}builtin version" >&6
3487           else
3488             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3489 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3490    { (exit 1); exit 1; }; }
3491           fi
3492
3493
3494           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3495 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3496           no_cache=0
3497
3498 # Check whether --with-odbc or --without-odbc was given.
3499 if test "${with_odbc+set}" = set; then
3500   withval="$with_odbc"
3501
3502                         if test "$withval" = yes; then
3503                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3504                         elif test "$withval" = no; then
3505                           ac_cv_use_odbc='wxUSE_ODBC=no'
3506                         elif test "$withval" = sys; then
3507                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3508                         elif test "$withval" = builtin; then
3509                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3510                         else
3511                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3512 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3513    { (exit 1); exit 1; }; }
3514                         fi
3515
3516 else
3517
3518                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
3519                         if test "x$LINE" != x ; then
3520                           eval "DEFAULT_$LINE"
3521                         else
3522                           no_cache=1
3523                         fi
3524
3525                         ac_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
3526
3527 fi;
3528
3529           eval "$ac_cv_use_odbc"
3530           if test "$no_cache" != 1; then
3531             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3532           fi
3533
3534           if test "$wxUSE_ODBC" = yes; then
3535             echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537           elif test "$wxUSE_ODBC" = no; then
3538             echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6
3540           elif test "$wxUSE_ODBC" = sys; then
3541             echo "$as_me:$LINENO: result: system version" >&5
3542 echo "${ECHO_T}system version" >&6
3543           elif test "$wxUSE_ODBC" = builtin; then
3544             echo "$as_me:$LINENO: result: builtin version" >&5
3545 echo "${ECHO_T}builtin version" >&6
3546           else
3547             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3548 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3549    { (exit 1); exit 1; }; }
3550           fi
3551
3552
3553           echo "$as_me:$LINENO: checking for --with-expat" >&5
3554 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3555           no_cache=0
3556
3557 # Check whether --with-expat or --without-expat was given.
3558 if test "${with_expat+set}" = set; then
3559   withval="$with_expat"
3560
3561                         if test "$withval" = yes; then
3562                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3563                         elif test "$withval" = no; then
3564                           ac_cv_use_expat='wxUSE_EXPAT=no'
3565                         elif test "$withval" = sys; then
3566                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3567                         elif test "$withval" = builtin; then
3568                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3569                         else
3570                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3571 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3572    { (exit 1); exit 1; }; }
3573                         fi
3574
3575 else
3576
3577                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
3578                         if test "x$LINE" != x ; then
3579                           eval "DEFAULT_$LINE"
3580                         else
3581                           no_cache=1
3582                         fi
3583
3584                         ac_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
3585
3586 fi;
3587
3588           eval "$ac_cv_use_expat"
3589           if test "$no_cache" != 1; then
3590             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3591           fi
3592
3593           if test "$wxUSE_EXPAT" = yes; then
3594             echo "$as_me:$LINENO: result: yes" >&5
3595 echo "${ECHO_T}yes" >&6
3596           elif test "$wxUSE_EXPAT" = no; then
3597             echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599           elif test "$wxUSE_EXPAT" = sys; then
3600             echo "$as_me:$LINENO: result: system version" >&5
3601 echo "${ECHO_T}system version" >&6
3602           elif test "$wxUSE_EXPAT" = builtin; then
3603             echo "$as_me:$LINENO: result: builtin version" >&5
3604 echo "${ECHO_T}builtin version" >&6
3605           else
3606             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3607 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3608    { (exit 1); exit 1; }; }
3609           fi
3610
3611
3612
3613
3614           enablestring=disable
3615           defaultval=
3616           if test -z"$defaultval"; then
3617               if test x"$enablestring" = xdisable; then
3618                   defaultval=yes
3619               else
3620                   defaultval=no
3621               fi
3622           fi
3623
3624           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3625 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3626           no_cache=0
3627           # Check whether --enable-shared or --disable-shared was given.
3628 if test "${enable_shared+set}" = set; then
3629   enableval="$enable_shared"
3630
3631                           if test "$enableval" = yes; then
3632                             ac_cv_use_shared='wxUSE_SHARED=yes'
3633                           else
3634                             ac_cv_use_shared='wxUSE_SHARED=no'
3635                           fi
3636
3637 else
3638
3639                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
3640                           if test "x$LINE" != x ; then
3641                             eval "DEFAULT_$LINE"
3642                           else
3643                             no_cache=1
3644                           fi
3645
3646                           ac_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
3647
3648 fi;
3649
3650           eval "$ac_cv_use_shared"
3651           if test "$no_cache" != 1; then
3652             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3653           fi
3654
3655           if test x"$enablestring" = xdisable; then
3656             if test $wxUSE_SHARED = yes; then
3657               result=no
3658             else
3659               result=yes
3660             fi
3661           else
3662             result=$wxUSE_SHARED
3663           fi
3664
3665           echo "$as_me:$LINENO: result: $result" >&5
3666 echo "${ECHO_T}$result" >&6
3667
3668
3669           enablestring=
3670           defaultval=
3671           if test -z"$defaultval"; then
3672               if test x"$enablestring" = xdisable; then
3673                   defaultval=yes
3674               else
3675                   defaultval=no
3676               fi
3677           fi
3678
3679           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3680 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3681           no_cache=0
3682           # Check whether --enable-optimise or --disable-optimise was given.
3683 if test "${enable_optimise+set}" = set; then
3684   enableval="$enable_optimise"
3685
3686                           if test "$enableval" = yes; then
3687                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3688                           else
3689                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3690                           fi
3691
3692 else
3693
3694                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
3695                           if test "x$LINE" != x ; then
3696                             eval "DEFAULT_$LINE"
3697                           else
3698                             no_cache=1
3699                           fi
3700
3701                           ac_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
3702
3703 fi;
3704
3705           eval "$ac_cv_use_optimise"
3706           if test "$no_cache" != 1; then
3707             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3708           fi
3709
3710           if test x"$enablestring" = xdisable; then
3711             if test $wxUSE_OPTIMISE = yes; then
3712               result=no
3713             else
3714               result=yes
3715             fi
3716           else
3717             result=$wxUSE_OPTIMISE
3718           fi
3719
3720           echo "$as_me:$LINENO: result: $result" >&5
3721 echo "${ECHO_T}$result" >&6
3722
3723
3724           enablestring=
3725           defaultval=
3726           if test -z"$defaultval"; then
3727               if test x"$enablestring" = xdisable; then
3728                   defaultval=yes
3729               else
3730                   defaultval=no
3731               fi
3732           fi
3733
3734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3735 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3736           no_cache=0
3737           # Check whether --enable-debug or --disable-debug was given.
3738 if test "${enable_debug+set}" = set; then
3739   enableval="$enable_debug"
3740
3741                           if test "$enableval" = yes; then
3742                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3743                           else
3744                             ac_cv_use_debug='wxUSE_DEBUG=no'
3745                           fi
3746
3747 else
3748
3749                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
3750                           if test "x$LINE" != x ; then
3751                             eval "DEFAULT_$LINE"
3752                           else
3753                             no_cache=1
3754                           fi
3755
3756                           ac_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
3757
3758 fi;
3759
3760           eval "$ac_cv_use_debug"
3761           if test "$no_cache" != 1; then
3762             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3763           fi
3764
3765           if test x"$enablestring" = xdisable; then
3766             if test $wxUSE_DEBUG = yes; then
3767               result=no
3768             else
3769               result=yes
3770             fi
3771           else
3772             result=$wxUSE_DEBUG
3773           fi
3774
3775           echo "$as_me:$LINENO: result: $result" >&5
3776 echo "${ECHO_T}$result" >&6
3777
3778
3779           enablestring=
3780           defaultval=
3781           if test -z"$defaultval"; then
3782               if test x"$enablestring" = xdisable; then
3783                   defaultval=yes
3784               else
3785                   defaultval=no
3786               fi
3787           fi
3788
3789           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3790 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3791           no_cache=0
3792           # Check whether --enable-stl or --disable-stl was given.
3793 if test "${enable_stl+set}" = set; then
3794   enableval="$enable_stl"
3795
3796                           if test "$enableval" = yes; then
3797                             ac_cv_use_stl='wxUSE_STL=yes'
3798                           else
3799                             ac_cv_use_stl='wxUSE_STL=no'
3800                           fi
3801
3802 else
3803
3804                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
3805                           if test "x$LINE" != x ; then
3806                             eval "DEFAULT_$LINE"
3807                           else
3808                             no_cache=1
3809                           fi
3810
3811                           ac_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
3812
3813 fi;
3814
3815           eval "$ac_cv_use_stl"
3816           if test "$no_cache" != 1; then
3817             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3818           fi
3819
3820           if test x"$enablestring" = xdisable; then
3821             if test $wxUSE_STL = yes; then
3822               result=no
3823             else
3824               result=yes
3825             fi
3826           else
3827             result=$wxUSE_STL
3828           fi
3829
3830           echo "$as_me:$LINENO: result: $result" >&5
3831 echo "${ECHO_T}$result" >&6
3832
3833
3834           enablestring=
3835           defaultval=
3836           if test -z"$defaultval"; then
3837               if test x"$enablestring" = xdisable; then
3838                   defaultval=yes
3839               else
3840                   defaultval=no
3841               fi
3842           fi
3843
3844           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
3845 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
3846           no_cache=0
3847           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3848 if test "${enable_std_iostreams+set}" = set; then
3849   enableval="$enable_std_iostreams"
3850
3851                           if test "$enableval" = yes; then
3852                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3853                           else
3854                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3855                           fi
3856
3857 else
3858
3859                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
3860                           if test "x$LINE" != x ; then
3861                             eval "DEFAULT_$LINE"
3862                           else
3863                             no_cache=1
3864                           fi
3865
3866                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
3867
3868 fi;
3869
3870           eval "$ac_cv_use_std_iostreams"
3871           if test "$no_cache" != 1; then
3872             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3873           fi
3874
3875           if test x"$enablestring" = xdisable; then
3876             if test $wxUSE_STD_IOSTREAM = yes; then
3877               result=no
3878             else
3879               result=yes
3880             fi
3881           else
3882             result=$wxUSE_STD_IOSTREAM
3883           fi
3884
3885           echo "$as_me:$LINENO: result: $result" >&5
3886 echo "${ECHO_T}$result" >&6
3887
3888
3889           enablestring=
3890           defaultval=
3891           if test -z"$defaultval"; then
3892               if test x"$enablestring" = xdisable; then
3893                   defaultval=yes
3894               else
3895                   defaultval=no
3896               fi
3897           fi
3898
3899           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
3900 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
3901           no_cache=0
3902           # Check whether --enable-std_string or --disable-std_string was given.
3903 if test "${enable_std_string+set}" = set; then
3904   enableval="$enable_std_string"
3905
3906                           if test "$enableval" = yes; then
3907                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
3908                           else
3909                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
3910                           fi
3911
3912 else
3913
3914                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
3915                           if test "x$LINE" != x ; then
3916                             eval "DEFAULT_$LINE"
3917                           else
3918                             no_cache=1
3919                           fi
3920
3921                           ac_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
3922
3923 fi;
3924
3925           eval "$ac_cv_use_std_string"
3926           if test "$no_cache" != 1; then
3927             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
3928           fi
3929
3930           if test x"$enablestring" = xdisable; then
3931             if test $wxUSE_STD_STRING = yes; then
3932               result=no
3933             else
3934               result=yes
3935             fi
3936           else
3937             result=$wxUSE_STD_STRING
3938           fi
3939
3940           echo "$as_me:$LINENO: result: $result" >&5
3941 echo "${ECHO_T}$result" >&6
3942
3943
3944           enablestring=disable
3945           defaultval=
3946           if test -z"$defaultval"; then
3947               if test x"$enablestring" = xdisable; then
3948                   defaultval=yes
3949               else
3950                   defaultval=no
3951               fi
3952           fi
3953
3954           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
3955 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
3956           no_cache=0
3957           # Check whether --enable-unicode or --disable-unicode was given.
3958 if test "${enable_unicode+set}" = set; then
3959   enableval="$enable_unicode"
3960
3961                           if test "$enableval" = yes; then
3962                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
3963                           else
3964                             ac_cv_use_unicode='wxUSE_UNICODE=no'
3965                           fi
3966
3967 else
3968
3969                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
3970                           if test "x$LINE" != x ; then
3971                             eval "DEFAULT_$LINE"
3972                           else
3973                             no_cache=1
3974                           fi
3975
3976                           ac_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
3977
3978 fi;
3979
3980           eval "$ac_cv_use_unicode"
3981           if test "$no_cache" != 1; then
3982             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3983           fi
3984
3985           if test x"$enablestring" = xdisable; then
3986             if test $wxUSE_UNICODE = yes; then
3987               result=no
3988             else
3989               result=yes
3990             fi
3991           else
3992             result=$wxUSE_UNICODE
3993           fi
3994
3995           echo "$as_me:$LINENO: result: $result" >&5
3996 echo "${ECHO_T}$result" >&6
3997
3998
3999           enablestring=
4000           defaultval=
4001           if test -z"$defaultval"; then
4002               if test x"$enablestring" = xdisable; then
4003                   defaultval=yes
4004               else
4005                   defaultval=no
4006               fi
4007           fi
4008
4009           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4010 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
4011           no_cache=0
4012           # Check whether --enable-mslu or --disable-mslu was given.
4013 if test "${enable_mslu+set}" = set; then
4014   enableval="$enable_mslu"
4015
4016                           if test "$enableval" = yes; then
4017                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4018                           else
4019                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4020                           fi
4021
4022 else
4023
4024                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4025                           if test "x$LINE" != x ; then
4026                             eval "DEFAULT_$LINE"
4027                           else
4028                             no_cache=1
4029                           fi
4030
4031                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4032
4033 fi;
4034
4035           eval "$ac_cv_use_mslu"
4036           if test "$no_cache" != 1; then
4037             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4038           fi
4039
4040           if test x"$enablestring" = xdisable; then
4041             if test $wxUSE_UNICODE_MSLU = yes; then
4042               result=no
4043             else
4044               result=yes
4045             fi
4046           else
4047             result=$wxUSE_UNICODE_MSLU
4048           fi
4049
4050           echo "$as_me:$LINENO: result: $result" >&5
4051 echo "${ECHO_T}$result" >&6
4052
4053
4054           enablestring=
4055           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4056 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6
4057           no_cache=0
4058           # Check whether --enable-utf8 or --disable-utf8 was given.
4059 if test "${enable_utf8+set}" = set; then
4060   enableval="$enable_utf8"
4061
4062                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4063
4064 else
4065
4066                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4067                           if test "x$LINE" != x ; then
4068                             eval "DEFAULT_$LINE"
4069                           else
4070                             no_cache=1
4071                           fi
4072
4073                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4074
4075 fi;
4076
4077           eval "$wx_cv_use_utf8"
4078           if test "$no_cache" != 1; then
4079             echo $wx_cv_use_utf8 >> ${wx_arg_cache_file}.tmp
4080           fi
4081
4082           echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4083 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6
4084
4085
4086           enablestring=
4087           defaultval=
4088           if test -z"$defaultval"; then
4089               if test x"$enablestring" = xdisable; then
4090                   defaultval=yes
4091               else
4092                   defaultval=no
4093               fi
4094           fi
4095
4096           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4097 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6
4098           no_cache=0
4099           # Check whether --enable-utf8only or --disable-utf8only was given.
4100 if test "${enable_utf8only+set}" = set; then
4101   enableval="$enable_utf8only"
4102
4103                           if test "$enableval" = yes; then
4104                             ac_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4105                           else
4106                             ac_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4107                           fi
4108
4109 else
4110
4111                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4112                           if test "x$LINE" != x ; then
4113                             eval "DEFAULT_$LINE"
4114                           else
4115                             no_cache=1
4116                           fi
4117
4118                           ac_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4119
4120 fi;
4121
4122           eval "$ac_cv_use_utf8only"
4123           if test "$no_cache" != 1; then
4124             echo $ac_cv_use_utf8only >> ${wx_arg_cache_file}.tmp
4125           fi
4126
4127           if test x"$enablestring" = xdisable; then
4128             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4129               result=no
4130             else
4131               result=yes
4132             fi
4133           else
4134             result=$wxUSE_UNICODE_UTF8_LOCALE
4135           fi
4136
4137           echo "$as_me:$LINENO: result: $result" >&5
4138 echo "${ECHO_T}$result" >&6
4139
4140
4141           enablestring=
4142           defaultval=
4143           if test -z"$defaultval"; then
4144               if test x"$enablestring" = xdisable; then
4145                   defaultval=yes
4146               else
4147                   defaultval=no
4148               fi
4149           fi
4150
4151           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4152 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6
4153           no_cache=0
4154           # Check whether --enable-extended_rtti or --disable-extended_rtti was given.
4155 if test "${enable_extended_rtti+set}" = set; then
4156   enableval="$enable_extended_rtti"
4157
4158                           if test "$enableval" = yes; then
4159                             ac_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4160                           else
4161                             ac_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4162                           fi
4163
4164 else
4165
4166                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
4167                           if test "x$LINE" != x ; then
4168                             eval "DEFAULT_$LINE"
4169                           else
4170                             no_cache=1
4171                           fi
4172
4173                           ac_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4174
4175 fi;
4176
4177           eval "$ac_cv_use_extended_rtti"
4178           if test "$no_cache" != 1; then
4179             echo $ac_cv_use_extended_rtti >> ${wx_arg_cache_file}.tmp
4180           fi
4181
4182           if test x"$enablestring" = xdisable; then
4183             if test $wxUSE_EXTENDED_RTTI = yes; then
4184               result=no
4185             else
4186               result=yes
4187             fi
4188           else
4189             result=$wxUSE_EXTENDED_RTTI
4190           fi
4191
4192           echo "$as_me:$LINENO: result: $result" >&5
4193 echo "${ECHO_T}$result" >&6
4194
4195 if test "$USE_OS2" = "1"; then
4196     DEFAULT_wxUSE_OMF=no
4197
4198           enablestring=
4199           defaultval=
4200           if test -z"$defaultval"; then
4201               if test x"$enablestring" = xdisable; then
4202                   defaultval=yes
4203               else
4204                   defaultval=no
4205               fi
4206           fi
4207
4208           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4209 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
4210           no_cache=0
4211           # Check whether --enable-omf or --disable-omf was given.
4212 if test "${enable_omf+set}" = set; then
4213   enableval="$enable_omf"
4214
4215                           if test "$enableval" = yes; then
4216                             ac_cv_use_omf='wxUSE_OMF=yes'
4217                           else
4218                             ac_cv_use_omf='wxUSE_OMF=no'
4219                           fi
4220
4221 else
4222
4223                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
4224                           if test "x$LINE" != x ; then
4225                             eval "DEFAULT_$LINE"
4226                           else
4227                             no_cache=1
4228                           fi
4229
4230                           ac_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4231
4232 fi;
4233
4234           eval "$ac_cv_use_omf"
4235           if test "$no_cache" != 1; then
4236             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
4237           fi
4238
4239           if test x"$enablestring" = xdisable; then
4240             if test $wxUSE_OMF = yes; then
4241               result=no
4242             else
4243               result=yes
4244             fi
4245           else
4246             result=$wxUSE_OMF
4247           fi
4248
4249           echo "$as_me:$LINENO: result: $result" >&5
4250 echo "${ECHO_T}$result" >&6
4251
4252 fi
4253
4254 if test "$wxUSE_DEBUG" = "yes"; then
4255   DEFAULT_wxUSE_DEBUG_FLAG=yes
4256   DEFAULT_wxUSE_DEBUG_INFO=yes
4257   BUILD=debug
4258 elif test "$wxUSE_DEBUG" = "no"; then
4259   DEFAULT_wxUSE_DEBUG_FLAG=no
4260   DEFAULT_wxUSE_DEBUG_INFO=no
4261   BUILD=release
4262 fi
4263
4264
4265           enablestring=
4266           defaultval=
4267           if test -z"$defaultval"; then
4268               if test x"$enablestring" = xdisable; then
4269                   defaultval=yes
4270               else
4271                   defaultval=no
4272               fi
4273           fi
4274
4275           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4276 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4277           no_cache=0
4278           # Check whether --enable-debug_flag or --disable-debug_flag was given.
4279 if test "${enable_debug_flag+set}" = set; then
4280   enableval="$enable_debug_flag"
4281
4282                           if test "$enableval" = yes; then
4283                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4284                           else
4285                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4286                           fi
4287
4288 else
4289
4290                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
4291                           if test "x$LINE" != x ; then
4292                             eval "DEFAULT_$LINE"
4293                           else
4294                             no_cache=1
4295                           fi
4296
4297                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4298
4299 fi;
4300
4301           eval "$ac_cv_use_debug_flag"
4302           if test "$no_cache" != 1; then
4303             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4304           fi
4305
4306           if test x"$enablestring" = xdisable; then
4307             if test $wxUSE_DEBUG_FLAG = yes; then
4308               result=no
4309             else
4310               result=yes
4311             fi
4312           else
4313             result=$wxUSE_DEBUG_FLAG
4314           fi
4315
4316           echo "$as_me:$LINENO: result: $result" >&5
4317 echo "${ECHO_T}$result" >&6
4318
4319
4320           enablestring=
4321           defaultval=
4322           if test -z"$defaultval"; then
4323               if test x"$enablestring" = xdisable; then
4324                   defaultval=yes
4325               else
4326                   defaultval=no
4327               fi
4328           fi
4329
4330           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4331 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4332           no_cache=0
4333           # Check whether --enable-debug_info or --disable-debug_info was given.
4334 if test "${enable_debug_info+set}" = set; then
4335   enableval="$enable_debug_info"
4336
4337                           if test "$enableval" = yes; then
4338                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4339                           else
4340                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4341                           fi
4342
4343 else
4344
4345                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
4346                           if test "x$LINE" != x ; then
4347                             eval "DEFAULT_$LINE"
4348                           else
4349                             no_cache=1
4350                           fi
4351
4352                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4353
4354 fi;
4355
4356           eval "$ac_cv_use_debug_info"
4357           if test "$no_cache" != 1; then
4358             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4359           fi
4360
4361           if test x"$enablestring" = xdisable; then
4362             if test $wxUSE_DEBUG_INFO = yes; then
4363               result=no
4364             else
4365               result=yes
4366             fi
4367           else
4368             result=$wxUSE_DEBUG_INFO
4369           fi
4370
4371           echo "$as_me:$LINENO: result: $result" >&5
4372 echo "${ECHO_T}$result" >&6
4373
4374
4375           enablestring=
4376           defaultval=
4377           if test -z"$defaultval"; then
4378               if test x"$enablestring" = xdisable; then
4379                   defaultval=yes
4380               else
4381                   defaultval=no
4382               fi
4383           fi
4384
4385           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4386 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4387           no_cache=0
4388           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4389 if test "${enable_debug_gdb+set}" = set; then
4390   enableval="$enable_debug_gdb"
4391
4392                           if test "$enableval" = yes; then
4393                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4394                           else
4395                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4396                           fi
4397
4398 else
4399
4400                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
4401                           if test "x$LINE" != x ; then
4402                             eval "DEFAULT_$LINE"
4403                           else
4404                             no_cache=1
4405                           fi
4406
4407                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
4408
4409 fi;
4410
4411           eval "$ac_cv_use_debug_gdb"
4412           if test "$no_cache" != 1; then
4413             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4414           fi
4415
4416           if test x"$enablestring" = xdisable; then
4417             if test $wxUSE_DEBUG_GDB = yes; then
4418               result=no
4419             else
4420               result=yes
4421             fi
4422           else
4423             result=$wxUSE_DEBUG_GDB
4424           fi
4425
4426           echo "$as_me:$LINENO: result: $result" >&5
4427 echo "${ECHO_T}$result" >&6
4428
4429
4430           enablestring=
4431           defaultval=
4432           if test -z"$defaultval"; then
4433               if test x"$enablestring" = xdisable; then
4434                   defaultval=yes
4435               else
4436                   defaultval=no
4437               fi
4438           fi
4439
4440           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4441 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4442           no_cache=0
4443           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4444 if test "${enable_debug_cntxt+set}" = set; then
4445   enableval="$enable_debug_cntxt"
4446
4447                           if test "$enableval" = yes; then
4448                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4449                           else
4450                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4451                           fi
4452
4453 else
4454
4455                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
4456                           if test "x$LINE" != x ; then
4457                             eval "DEFAULT_$LINE"
4458                           else
4459                             no_cache=1
4460                           fi
4461
4462                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
4463
4464 fi;
4465
4466           eval "$ac_cv_use_debug_cntxt"
4467           if test "$no_cache" != 1; then
4468             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4469           fi
4470
4471           if test x"$enablestring" = xdisable; then
4472             if test $wxUSE_DEBUG_CONTEXT = yes; then
4473               result=no
4474             else
4475               result=yes
4476             fi
4477           else
4478             result=$wxUSE_DEBUG_CONTEXT
4479           fi
4480
4481           echo "$as_me:$LINENO: result: $result" >&5
4482 echo "${ECHO_T}$result" >&6
4483
4484
4485           enablestring=
4486           defaultval=
4487           if test -z"$defaultval"; then
4488               if test x"$enablestring" = xdisable; then
4489                   defaultval=yes
4490               else
4491                   defaultval=no
4492               fi
4493           fi
4494
4495           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4496 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4497           no_cache=0
4498           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4499 if test "${enable_mem_tracing+set}" = set; then
4500   enableval="$enable_mem_tracing"
4501
4502                           if test "$enableval" = yes; then
4503                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4504                           else
4505                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4506                           fi
4507
4508 else
4509
4510                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
4511                           if test "x$LINE" != x ; then
4512                             eval "DEFAULT_$LINE"
4513                           else
4514                             no_cache=1
4515                           fi
4516
4517                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
4518
4519 fi;
4520
4521           eval "$ac_cv_use_mem_tracing"
4522           if test "$no_cache" != 1; then
4523             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4524           fi
4525
4526           if test x"$enablestring" = xdisable; then
4527             if test $wxUSE_MEM_TRACING = yes; then
4528               result=no
4529             else
4530               result=yes
4531             fi
4532           else
4533             result=$wxUSE_MEM_TRACING
4534           fi
4535
4536           echo "$as_me:$LINENO: result: $result" >&5
4537 echo "${ECHO_T}$result" >&6
4538
4539
4540           enablestring=
4541           defaultval=
4542           if test -z"$defaultval"; then
4543               if test x"$enablestring" = xdisable; then
4544                   defaultval=yes
4545               else
4546                   defaultval=no
4547               fi
4548           fi
4549
4550           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4551 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4552           no_cache=0
4553           # Check whether --enable-profile or --disable-profile was given.
4554 if test "${enable_profile+set}" = set; then
4555   enableval="$enable_profile"
4556
4557                           if test "$enableval" = yes; then
4558                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4559                           else
4560                             ac_cv_use_profile='wxUSE_PROFILE=no'
4561                           fi
4562
4563 else
4564
4565                           LINE=`grep "^wxUSE_PROFILE=" ${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_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
4573
4574 fi;
4575
4576           eval "$ac_cv_use_profile"
4577           if test "$no_cache" != 1; then
4578             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4579           fi
4580
4581           if test x"$enablestring" = xdisable; then
4582             if test $wxUSE_PROFILE = yes; then
4583               result=no
4584             else
4585               result=yes
4586             fi
4587           else
4588             result=$wxUSE_PROFILE
4589           fi
4590
4591           echo "$as_me:$LINENO: result: $result" >&5
4592 echo "${ECHO_T}$result" >&6
4593
4594
4595           enablestring=
4596           defaultval=
4597           if test -z"$defaultval"; then
4598               if test x"$enablestring" = xdisable; then
4599                   defaultval=yes
4600               else
4601                   defaultval=no
4602               fi
4603           fi
4604
4605           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4606 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4607           no_cache=0
4608           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4609 if test "${enable_no_rtti+set}" = set; then
4610   enableval="$enable_no_rtti"
4611
4612                           if test "$enableval" = yes; then
4613                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4614                           else
4615                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4616                           fi
4617
4618 else
4619
4620                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
4621                           if test "x$LINE" != x ; then
4622                             eval "DEFAULT_$LINE"
4623                           else
4624                             no_cache=1
4625                           fi
4626
4627                           ac_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
4628
4629 fi;
4630
4631           eval "$ac_cv_use_no_rtti"
4632           if test "$no_cache" != 1; then
4633             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4634           fi
4635
4636           if test x"$enablestring" = xdisable; then
4637             if test $wxUSE_NO_RTTI = yes; then
4638               result=no
4639             else
4640               result=yes
4641             fi
4642           else
4643             result=$wxUSE_NO_RTTI
4644           fi
4645
4646           echo "$as_me:$LINENO: result: $result" >&5
4647 echo "${ECHO_T}$result" >&6
4648
4649
4650           enablestring=
4651           defaultval=
4652           if test -z"$defaultval"; then
4653               if test x"$enablestring" = xdisable; then
4654                   defaultval=yes
4655               else
4656                   defaultval=no
4657               fi
4658           fi
4659
4660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4661 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4662           no_cache=0
4663           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4664 if test "${enable_no_exceptions+set}" = set; then
4665   enableval="$enable_no_exceptions"
4666
4667                           if test "$enableval" = yes; then
4668                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4669                           else
4670                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4671                           fi
4672
4673 else
4674
4675                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
4676                           if test "x$LINE" != x ; then
4677                             eval "DEFAULT_$LINE"
4678                           else
4679                             no_cache=1
4680                           fi
4681
4682                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
4683
4684 fi;
4685
4686           eval "$ac_cv_use_no_exceptions"
4687           if test "$no_cache" != 1; then
4688             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4689           fi
4690
4691           if test x"$enablestring" = xdisable; then
4692             if test $wxUSE_NO_EXCEPTIONS = yes; then
4693               result=no
4694             else
4695               result=yes
4696             fi
4697           else
4698             result=$wxUSE_NO_EXCEPTIONS
4699           fi
4700
4701           echo "$as_me:$LINENO: result: $result" >&5
4702 echo "${ECHO_T}$result" >&6
4703
4704
4705           enablestring=
4706           defaultval=
4707           if test -z"$defaultval"; then
4708               if test x"$enablestring" = xdisable; then
4709                   defaultval=yes
4710               else
4711                   defaultval=no
4712               fi
4713           fi
4714
4715           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4716 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4717           no_cache=0
4718           # Check whether --enable-permissive or --disable-permissive was given.
4719 if test "${enable_permissive+set}" = set; then
4720   enableval="$enable_permissive"
4721
4722                           if test "$enableval" = yes; then
4723                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4724                           else
4725                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4726                           fi
4727
4728 else
4729
4730                           LINE=`grep "^wxUSE_PERMISSIVE=" ${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_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
4738
4739 fi;
4740
4741           eval "$ac_cv_use_permissive"
4742           if test "$no_cache" != 1; then
4743             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4744           fi
4745
4746           if test x"$enablestring" = xdisable; then
4747             if test $wxUSE_PERMISSIVE = yes; then
4748               result=no
4749             else
4750               result=yes
4751             fi
4752           else
4753             result=$wxUSE_PERMISSIVE
4754           fi
4755
4756           echo "$as_me:$LINENO: result: $result" >&5
4757 echo "${ECHO_T}$result" >&6
4758
4759
4760           enablestring=
4761           defaultval=
4762           if test -z"$defaultval"; then
4763               if test x"$enablestring" = xdisable; then
4764                   defaultval=yes
4765               else
4766                   defaultval=no
4767               fi
4768           fi
4769
4770           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4771 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4772           no_cache=0
4773           # Check whether --enable-no_deps or --disable-no_deps was given.
4774 if test "${enable_no_deps+set}" = set; then
4775   enableval="$enable_no_deps"
4776
4777                           if test "$enableval" = yes; then
4778                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4779                           else
4780                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4781                           fi
4782
4783 else
4784
4785                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
4786                           if test "x$LINE" != x ; then
4787                             eval "DEFAULT_$LINE"
4788                           else
4789                             no_cache=1
4790                           fi
4791
4792                           ac_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
4793
4794 fi;
4795
4796           eval "$ac_cv_use_no_deps"
4797           if test "$no_cache" != 1; then
4798             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4799           fi
4800
4801           if test x"$enablestring" = xdisable; then
4802             if test $wxUSE_NO_DEPS = yes; then
4803               result=no
4804             else
4805               result=yes
4806             fi
4807           else
4808             result=$wxUSE_NO_DEPS
4809           fi
4810
4811           echo "$as_me:$LINENO: result: $result" >&5
4812 echo "${ECHO_T}$result" >&6
4813
4814
4815           enablestring=disable
4816           defaultval=
4817           if test -z"$defaultval"; then
4818               if test x"$enablestring" = xdisable; then
4819                   defaultval=yes
4820               else
4821                   defaultval=no
4822               fi
4823           fi
4824
4825           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
4826 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6
4827           no_cache=0
4828           # Check whether --enable-vararg_macros or --disable-vararg_macros was given.
4829 if test "${enable_vararg_macros+set}" = set; then
4830   enableval="$enable_vararg_macros"
4831
4832                           if test "$enableval" = yes; then
4833                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
4834                           else
4835                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
4836                           fi
4837
4838 else
4839
4840                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
4841                           if test "x$LINE" != x ; then
4842                             eval "DEFAULT_$LINE"
4843                           else
4844                             no_cache=1
4845                           fi
4846
4847                           ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
4848
4849 fi;
4850
4851           eval "$ac_cv_use_vararg_macros"
4852           if test "$no_cache" != 1; then
4853             echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
4854           fi
4855
4856           if test x"$enablestring" = xdisable; then
4857             if test $wxUSE_VARARG_MACROS = yes; then
4858               result=no
4859             else
4860               result=yes
4861             fi
4862           else
4863             result=$wxUSE_VARARG_MACROS
4864           fi
4865
4866           echo "$as_me:$LINENO: result: $result" >&5
4867 echo "${ECHO_T}$result" >&6
4868
4869
4870           enablestring=
4871           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4872 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4873           no_cache=0
4874           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4875 if test "${enable_universal_binary+set}" = set; then
4876   enableval="$enable_universal_binary"
4877
4878                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4879
4880 else
4881
4882                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
4883                           if test "x$LINE" != x ; then
4884                             eval "DEFAULT_$LINE"
4885                           else
4886                             no_cache=1
4887                           fi
4888
4889                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4890
4891 fi;
4892
4893           eval "$wx_cv_use_universal_binary"
4894           if test "$no_cache" != 1; then
4895             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4896           fi
4897
4898           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4899 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4900
4901
4902
4903           enablestring=
4904           defaultval=
4905           if test -z"$defaultval"; then
4906               if test x"$enablestring" = xdisable; then
4907                   defaultval=yes
4908               else
4909                   defaultval=no
4910               fi
4911           fi
4912
4913           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4914 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4915           no_cache=0
4916           # Check whether --enable-compat26 or --disable-compat26 was given.
4917 if test "${enable_compat26+set}" = set; then
4918   enableval="$enable_compat26"
4919
4920                           if test "$enableval" = yes; then
4921                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4922                           else
4923                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4924                           fi
4925
4926 else
4927
4928                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
4929                           if test "x$LINE" != x ; then
4930                             eval "DEFAULT_$LINE"
4931                           else
4932                             no_cache=1
4933                           fi
4934
4935                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
4936
4937 fi;
4938
4939           eval "$ac_cv_use_compat26"
4940           if test "$no_cache" != 1; then
4941             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4942           fi
4943
4944           if test x"$enablestring" = xdisable; then
4945             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
4946               result=no
4947             else
4948               result=yes
4949             fi
4950           else
4951             result=$WXWIN_COMPATIBILITY_2_6
4952           fi
4953
4954           echo "$as_me:$LINENO: result: $result" >&5
4955 echo "${ECHO_T}$result" >&6
4956
4957
4958           enablestring=disable
4959           defaultval=
4960           if test -z"$defaultval"; then
4961               if test x"$enablestring" = xdisable; then
4962                   defaultval=yes
4963               else
4964                   defaultval=no
4965               fi
4966           fi
4967
4968           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
4969 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6
4970           no_cache=0
4971           # Check whether --enable-compat28 or --disable-compat28 was given.
4972 if test "${enable_compat28+set}" = set; then
4973   enableval="$enable_compat28"
4974
4975                           if test "$enableval" = yes; then
4976                             ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
4977                           else
4978                             ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
4979                           fi
4980
4981 else
4982
4983                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
4984                           if test "x$LINE" != x ; then
4985                             eval "DEFAULT_$LINE"
4986                           else
4987                             no_cache=1
4988                           fi
4989
4990                           ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
4991
4992 fi;
4993
4994           eval "$ac_cv_use_compat28"
4995           if test "$no_cache" != 1; then
4996             echo $ac_cv_use_compat28 >> ${wx_arg_cache_file}.tmp
4997           fi
4998
4999           if test x"$enablestring" = xdisable; then
5000             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5001               result=no
5002             else
5003               result=yes
5004             fi
5005           else
5006             result=$WXWIN_COMPATIBILITY_2_8
5007           fi
5008
5009           echo "$as_me:$LINENO: result: $result" >&5
5010 echo "${ECHO_T}$result" >&6
5011
5012
5013
5014           enablestring=disable
5015           defaultval=
5016           if test -z"$defaultval"; then
5017               if test x"$enablestring" = xdisable; then
5018                   defaultval=yes
5019               else
5020                   defaultval=no
5021               fi
5022           fi
5023
5024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5025 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
5026           no_cache=0
5027           # Check whether --enable-rpath or --disable-rpath was given.
5028 if test "${enable_rpath+set}" = set; then
5029   enableval="$enable_rpath"
5030
5031                           if test "$enableval" = yes; then
5032                             ac_cv_use_rpath='wxUSE_RPATH=yes'
5033                           else
5034                             ac_cv_use_rpath='wxUSE_RPATH=no'
5035                           fi
5036
5037 else
5038
5039                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5040                           if test "x$LINE" != x ; then
5041                             eval "DEFAULT_$LINE"
5042                           else
5043                             no_cache=1
5044                           fi
5045
5046                           ac_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5047
5048 fi;
5049
5050           eval "$ac_cv_use_rpath"
5051           if test "$no_cache" != 1; then
5052             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
5053           fi
5054
5055           if test x"$enablestring" = xdisable; then
5056             if test $wxUSE_RPATH = yes; then
5057               result=no
5058             else
5059               result=yes
5060             fi
5061           else
5062             result=$wxUSE_RPATH
5063           fi
5064
5065           echo "$as_me:$LINENO: result: $result" >&5
5066 echo "${ECHO_T}$result" >&6
5067
5068
5069
5070           enablestring=
5071           defaultval=
5072           if test -z"$defaultval"; then
5073               if test x"$enablestring" = xdisable; then
5074                   defaultval=yes
5075               else
5076                   defaultval=no
5077               fi
5078           fi
5079
5080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5081 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6
5082           no_cache=0
5083           # Check whether --enable-objc_uniquifying or --disable-objc_uniquifying was given.
5084 if test "${enable_objc_uniquifying+set}" = set; then
5085   enableval="$enable_objc_uniquifying"
5086
5087                           if test "$enableval" = yes; then
5088                             ac_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5089                           else
5090                             ac_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5091                           fi
5092
5093 else
5094
5095                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5096                           if test "x$LINE" != x ; then
5097                             eval "DEFAULT_$LINE"
5098                           else
5099                             no_cache=1
5100                           fi
5101
5102                           ac_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5103
5104 fi;
5105
5106           eval "$ac_cv_use_objc_uniquifying"
5107           if test "$no_cache" != 1; then
5108             echo $ac_cv_use_objc_uniquifying >> ${wx_arg_cache_file}.tmp
5109           fi
5110
5111           if test x"$enablestring" = xdisable; then
5112             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5113               result=no
5114             else
5115               result=yes
5116             fi
5117           else
5118             result=$wxUSE_OBJC_UNIQUIFYING
5119           fi
5120
5121           echo "$as_me:$LINENO: result: $result" >&5
5122 echo "${ECHO_T}$result" >&6
5123
5124
5125
5126
5127           enablestring=
5128           defaultval=$wxUSE_ALL_FEATURES
5129           if test -z"$defaultval"; then
5130               if test x"$enablestring" = xdisable; then
5131                   defaultval=yes
5132               else
5133                   defaultval=no
5134               fi
5135           fi
5136
5137           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5138 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
5139           no_cache=0
5140           # Check whether --enable-intl or --disable-intl was given.
5141 if test "${enable_intl+set}" = set; then
5142   enableval="$enable_intl"
5143
5144                           if test "$enableval" = yes; then
5145                             ac_cv_use_intl='wxUSE_INTL=yes'
5146                           else
5147                             ac_cv_use_intl='wxUSE_INTL=no'
5148                           fi
5149
5150 else
5151
5152                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
5153                           if test "x$LINE" != x ; then
5154                             eval "DEFAULT_$LINE"
5155                           else
5156                             no_cache=1
5157                           fi
5158
5159                           ac_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5160
5161 fi;
5162
5163           eval "$ac_cv_use_intl"
5164           if test "$no_cache" != 1; then
5165             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
5166           fi
5167
5168           if test x"$enablestring" = xdisable; then
5169             if test $wxUSE_INTL = yes; then
5170               result=no
5171             else
5172               result=yes
5173             fi
5174           else
5175             result=$wxUSE_INTL
5176           fi
5177
5178           echo "$as_me:$LINENO: result: $result" >&5
5179 echo "${ECHO_T}$result" >&6
5180
5181
5182           enablestring=
5183           defaultval=$wxUSE_ALL_FEATURES
5184           if test -z"$defaultval"; then
5185               if test x"$enablestring" = xdisable; then
5186                   defaultval=yes
5187               else
5188                   defaultval=no
5189               fi
5190           fi
5191
5192           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5193 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
5194           no_cache=0
5195           # Check whether --enable-config or --disable-config was given.
5196 if test "${enable_config+set}" = set; then
5197   enableval="$enable_config"
5198
5199                           if test "$enableval" = yes; then
5200                             ac_cv_use_config='wxUSE_CONFIG=yes'
5201                           else
5202                             ac_cv_use_config='wxUSE_CONFIG=no'
5203                           fi
5204
5205 else
5206
5207                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
5208                           if test "x$LINE" != x ; then
5209                             eval "DEFAULT_$LINE"
5210                           else
5211                             no_cache=1
5212                           fi
5213
5214                           ac_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5215
5216 fi;
5217
5218           eval "$ac_cv_use_config"
5219           if test "$no_cache" != 1; then
5220             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
5221           fi
5222
5223           if test x"$enablestring" = xdisable; then
5224             if test $wxUSE_CONFIG = yes; then
5225               result=no
5226             else
5227               result=yes
5228             fi
5229           else
5230             result=$wxUSE_CONFIG
5231           fi
5232
5233           echo "$as_me:$LINENO: result: $result" >&5
5234 echo "${ECHO_T}$result" >&6
5235
5236
5237
5238           enablestring=
5239           defaultval=$wxUSE_ALL_FEATURES
5240           if test -z"$defaultval"; then
5241               if test x"$enablestring" = xdisable; then
5242                   defaultval=yes
5243               else
5244                   defaultval=no
5245               fi
5246           fi
5247
5248           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5249 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
5250           no_cache=0
5251           # Check whether --enable-protocols or --disable-protocols was given.
5252 if test "${enable_protocols+set}" = set; then
5253   enableval="$enable_protocols"
5254
5255                           if test "$enableval" = yes; then
5256                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
5257                           else
5258                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
5259                           fi
5260
5261 else
5262
5263                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
5264                           if test "x$LINE" != x ; then
5265                             eval "DEFAULT_$LINE"
5266                           else
5267                             no_cache=1
5268                           fi
5269
5270                           ac_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5271
5272 fi;
5273
5274           eval "$ac_cv_use_protocols"
5275           if test "$no_cache" != 1; then
5276             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
5277           fi
5278
5279           if test x"$enablestring" = xdisable; then
5280             if test $wxUSE_PROTOCOL = yes; then
5281               result=no
5282             else
5283               result=yes
5284             fi
5285           else
5286             result=$wxUSE_PROTOCOL
5287           fi
5288
5289           echo "$as_me:$LINENO: result: $result" >&5
5290 echo "${ECHO_T}$result" >&6
5291
5292
5293           enablestring=
5294           defaultval=$wxUSE_ALL_FEATURES
5295           if test -z"$defaultval"; then
5296               if test x"$enablestring" = xdisable; then
5297                   defaultval=yes
5298               else
5299                   defaultval=no
5300               fi
5301           fi
5302
5303           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5304 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
5305           no_cache=0
5306           # Check whether --enable-ftp or --disable-ftp was given.
5307 if test "${enable_ftp+set}" = set; then
5308   enableval="$enable_ftp"
5309
5310                           if test "$enableval" = yes; then
5311                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5312                           else
5313                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5314                           fi
5315
5316 else
5317
5318                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
5319                           if test "x$LINE" != x ; then
5320                             eval "DEFAULT_$LINE"
5321                           else
5322                             no_cache=1
5323                           fi
5324
5325                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5326
5327 fi;
5328
5329           eval "$ac_cv_use_ftp"
5330           if test "$no_cache" != 1; then
5331             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
5332           fi
5333
5334           if test x"$enablestring" = xdisable; then
5335             if test $wxUSE_PROTOCOL_FTP = yes; then
5336               result=no
5337             else
5338               result=yes
5339             fi
5340           else
5341             result=$wxUSE_PROTOCOL_FTP
5342           fi
5343
5344           echo "$as_me:$LINENO: result: $result" >&5
5345 echo "${ECHO_T}$result" >&6
5346
5347
5348           enablestring=
5349           defaultval=$wxUSE_ALL_FEATURES
5350           if test -z"$defaultval"; then
5351               if test x"$enablestring" = xdisable; then
5352                   defaultval=yes
5353               else
5354                   defaultval=no
5355               fi
5356           fi
5357
5358           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5359 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
5360           no_cache=0
5361           # Check whether --enable-http or --disable-http was given.
5362 if test "${enable_http+set}" = set; then
5363   enableval="$enable_http"
5364
5365                           if test "$enableval" = yes; then
5366                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5367                           else
5368                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5369                           fi
5370
5371 else
5372
5373                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
5374                           if test "x$LINE" != x ; then
5375                             eval "DEFAULT_$LINE"
5376                           else
5377                             no_cache=1
5378                           fi
5379
5380                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5381
5382 fi;
5383
5384           eval "$ac_cv_use_http"
5385           if test "$no_cache" != 1; then
5386             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
5387           fi
5388
5389           if test x"$enablestring" = xdisable; then
5390             if test $wxUSE_PROTOCOL_HTTP = yes; then
5391               result=no
5392             else
5393               result=yes
5394             fi
5395           else
5396             result=$wxUSE_PROTOCOL_HTTP
5397           fi
5398
5399           echo "$as_me:$LINENO: result: $result" >&5
5400 echo "${ECHO_T}$result" >&6
5401
5402
5403           enablestring=
5404           defaultval=$wxUSE_ALL_FEATURES
5405           if test -z"$defaultval"; then
5406               if test x"$enablestring" = xdisable; then
5407                   defaultval=yes
5408               else
5409                   defaultval=no
5410               fi
5411           fi
5412
5413           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5414 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
5415           no_cache=0
5416           # Check whether --enable-fileproto or --disable-fileproto was given.
5417 if test "${enable_fileproto+set}" = set; then
5418   enableval="$enable_fileproto"
5419
5420                           if test "$enableval" = yes; then
5421                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5422                           else
5423                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5424                           fi
5425
5426 else
5427
5428                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
5429                           if test "x$LINE" != x ; then
5430                             eval "DEFAULT_$LINE"
5431                           else
5432                             no_cache=1
5433                           fi
5434
5435                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5436
5437 fi;
5438
5439           eval "$ac_cv_use_fileproto"
5440           if test "$no_cache" != 1; then
5441             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
5442           fi
5443
5444           if test x"$enablestring" = xdisable; then
5445             if test $wxUSE_PROTOCOL_FILE = yes; then
5446               result=no
5447             else
5448               result=yes
5449             fi
5450           else
5451             result=$wxUSE_PROTOCOL_FILE
5452           fi
5453
5454           echo "$as_me:$LINENO: result: $result" >&5
5455 echo "${ECHO_T}$result" >&6
5456
5457
5458           enablestring=
5459           defaultval=$wxUSE_ALL_FEATURES
5460           if test -z"$defaultval"; then
5461               if test x"$enablestring" = xdisable; then
5462                   defaultval=yes
5463               else
5464                   defaultval=no
5465               fi
5466           fi
5467
5468           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5469 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
5470           no_cache=0
5471           # Check whether --enable-sockets or --disable-sockets was given.
5472 if test "${enable_sockets+set}" = set; then
5473   enableval="$enable_sockets"
5474
5475                           if test "$enableval" = yes; then
5476                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
5477                           else
5478                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
5479                           fi
5480
5481 else
5482
5483                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
5484                           if test "x$LINE" != x ; then
5485                             eval "DEFAULT_$LINE"
5486                           else
5487                             no_cache=1
5488                           fi
5489
5490                           ac_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5491
5492 fi;
5493
5494           eval "$ac_cv_use_sockets"
5495           if test "$no_cache" != 1; then
5496             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
5497           fi
5498
5499           if test x"$enablestring" = xdisable; then
5500             if test $wxUSE_SOCKETS = yes; then
5501               result=no
5502             else
5503               result=yes
5504             fi
5505           else
5506             result=$wxUSE_SOCKETS
5507           fi
5508
5509           echo "$as_me:$LINENO: result: $result" >&5
5510 echo "${ECHO_T}$result" >&6
5511
5512
5513           enablestring=
5514           defaultval=$wxUSE_ALL_FEATURES
5515           if test -z"$defaultval"; then
5516               if test x"$enablestring" = xdisable; then
5517                   defaultval=yes
5518               else
5519                   defaultval=no
5520               fi
5521           fi
5522
5523           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5524 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
5525           no_cache=0
5526           # Check whether --enable-ole or --disable-ole was given.
5527 if test "${enable_ole+set}" = set; then
5528   enableval="$enable_ole"
5529
5530                           if test "$enableval" = yes; then
5531                             ac_cv_use_ole='wxUSE_OLE=yes'
5532                           else
5533                             ac_cv_use_ole='wxUSE_OLE=no'
5534                           fi
5535
5536 else
5537
5538                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
5539                           if test "x$LINE" != x ; then
5540                             eval "DEFAULT_$LINE"
5541                           else
5542                             no_cache=1
5543                           fi
5544
5545                           ac_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
5546
5547 fi;
5548
5549           eval "$ac_cv_use_ole"
5550           if test "$no_cache" != 1; then
5551             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
5552           fi
5553
5554           if test x"$enablestring" = xdisable; then
5555             if test $wxUSE_OLE = yes; then
5556               result=no
5557             else
5558               result=yes
5559             fi
5560           else
5561             result=$wxUSE_OLE
5562           fi
5563
5564           echo "$as_me:$LINENO: result: $result" >&5
5565 echo "${ECHO_T}$result" >&6
5566
5567
5568           enablestring=
5569           defaultval=$wxUSE_ALL_FEATURES
5570           if test -z"$defaultval"; then
5571               if test x"$enablestring" = xdisable; then
5572                   defaultval=yes
5573               else
5574                   defaultval=no
5575               fi
5576           fi
5577
5578           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5579 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
5580           no_cache=0
5581           # Check whether --enable-dataobj or --disable-dataobj was given.
5582 if test "${enable_dataobj+set}" = set; then
5583   enableval="$enable_dataobj"
5584
5585                           if test "$enableval" = yes; then
5586                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5587                           else
5588                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
5589                           fi
5590
5591 else
5592
5593                           LINE=`grep "^wxUSE_DATAOBJ=" ${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_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
5601
5602 fi;
5603
5604           eval "$ac_cv_use_dataobj"
5605           if test "$no_cache" != 1; then
5606             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
5607           fi
5608
5609           if test x"$enablestring" = xdisable; then
5610             if test $wxUSE_DATAOBJ = yes; then
5611               result=no
5612             else
5613               result=yes
5614             fi
5615           else
5616             result=$wxUSE_DATAOBJ
5617           fi
5618
5619           echo "$as_me:$LINENO: result: $result" >&5
5620 echo "${ECHO_T}$result" >&6
5621
5622
5623
5624           enablestring=
5625           defaultval=$wxUSE_ALL_FEATURES
5626           if test -z"$defaultval"; then
5627               if test x"$enablestring" = xdisable; then
5628                   defaultval=yes
5629               else
5630                   defaultval=no
5631               fi
5632           fi
5633
5634           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5635 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
5636           no_cache=0
5637           # Check whether --enable-ipc or --disable-ipc was given.
5638 if test "${enable_ipc+set}" = set; then
5639   enableval="$enable_ipc"
5640
5641                           if test "$enableval" = yes; then
5642                             ac_cv_use_ipc='wxUSE_IPC=yes'
5643                           else
5644                             ac_cv_use_ipc='wxUSE_IPC=no'
5645                           fi
5646
5647 else
5648
5649                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
5650                           if test "x$LINE" != x ; then
5651                             eval "DEFAULT_$LINE"
5652                           else
5653                             no_cache=1
5654                           fi
5655
5656                           ac_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
5657
5658 fi;
5659
5660           eval "$ac_cv_use_ipc"
5661           if test "$no_cache" != 1; then
5662             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5663           fi
5664
5665           if test x"$enablestring" = xdisable; then
5666             if test $wxUSE_IPC = yes; then
5667               result=no
5668             else
5669               result=yes
5670             fi
5671           else
5672             result=$wxUSE_IPC
5673           fi
5674
5675           echo "$as_me:$LINENO: result: $result" >&5
5676 echo "${ECHO_T}$result" >&6
5677
5678
5679
5680           enablestring=
5681           defaultval=$wxUSE_ALL_FEATURES
5682           if test -z"$defaultval"; then
5683               if test x"$enablestring" = xdisable; then
5684                   defaultval=yes
5685               else
5686                   defaultval=no
5687               fi
5688           fi
5689
5690           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5691 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
5692           no_cache=0
5693           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
5694 if test "${enable_apple_ieee+set}" = set; then
5695   enableval="$enable_apple_ieee"
5696
5697                           if test "$enableval" = yes; then
5698                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5699                           else
5700                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5701                           fi
5702
5703 else
5704
5705                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
5706                           if test "x$LINE" != x ; then
5707                             eval "DEFAULT_$LINE"
5708                           else
5709                             no_cache=1
5710                           fi
5711
5712                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
5713
5714 fi;
5715
5716           eval "$ac_cv_use_apple_ieee"
5717           if test "$no_cache" != 1; then
5718             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5719           fi
5720
5721           if test x"$enablestring" = xdisable; then
5722             if test $wxUSE_APPLE_IEEE = yes; then
5723               result=no
5724             else
5725               result=yes
5726             fi
5727           else
5728             result=$wxUSE_APPLE_IEEE
5729           fi
5730
5731           echo "$as_me:$LINENO: result: $result" >&5
5732 echo "${ECHO_T}$result" >&6
5733
5734
5735           enablestring=
5736           defaultval=$wxUSE_ALL_FEATURES
5737           if test -z"$defaultval"; then
5738               if test x"$enablestring" = xdisable; then
5739                   defaultval=yes
5740               else
5741                   defaultval=no
5742               fi
5743           fi
5744
5745           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5746 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5747           no_cache=0
5748           # Check whether --enable-arcstream or --disable-arcstream was given.
5749 if test "${enable_arcstream+set}" = set; then
5750   enableval="$enable_arcstream"
5751
5752                           if test "$enableval" = yes; then
5753                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5754                           else
5755                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5756                           fi
5757
5758 else
5759
5760                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
5761                           if test "x$LINE" != x ; then
5762                             eval "DEFAULT_$LINE"
5763                           else
5764                             no_cache=1
5765                           fi
5766
5767                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
5768
5769 fi;
5770
5771           eval "$ac_cv_use_arcstream"
5772           if test "$no_cache" != 1; then
5773             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5774           fi
5775
5776           if test x"$enablestring" = xdisable; then
5777             if test $wxUSE_ARCHIVE_STREAMS = yes; then
5778               result=no
5779             else
5780               result=yes
5781             fi
5782           else
5783             result=$wxUSE_ARCHIVE_STREAMS
5784           fi
5785
5786           echo "$as_me:$LINENO: result: $result" >&5
5787 echo "${ECHO_T}$result" >&6
5788
5789
5790           enablestring=
5791           defaultval=$wxUSE_ALL_FEATURES
5792           if test -z"$defaultval"; then
5793               if test x"$enablestring" = xdisable; then
5794                   defaultval=yes
5795               else
5796                   defaultval=no
5797               fi
5798           fi
5799
5800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
5801 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6
5802           no_cache=0
5803           # Check whether --enable-base64 or --disable-base64 was given.
5804 if test "${enable_base64+set}" = set; then
5805   enableval="$enable_base64"
5806
5807                           if test "$enableval" = yes; then
5808                             ac_cv_use_base64='wxUSE_BASE64=yes'
5809                           else
5810                             ac_cv_use_base64='wxUSE_BASE64=no'
5811                           fi
5812
5813 else
5814
5815                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
5816                           if test "x$LINE" != x ; then
5817                             eval "DEFAULT_$LINE"
5818                           else
5819                             no_cache=1
5820                           fi
5821
5822                           ac_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
5823
5824 fi;
5825
5826           eval "$ac_cv_use_base64"
5827           if test "$no_cache" != 1; then
5828             echo $ac_cv_use_base64 >> ${wx_arg_cache_file}.tmp
5829           fi
5830
5831           if test x"$enablestring" = xdisable; then
5832             if test $wxUSE_BASE64 = yes; then
5833               result=no
5834             else
5835               result=yes
5836             fi
5837           else
5838             result=$wxUSE_BASE64
5839           fi
5840
5841           echo "$as_me:$LINENO: result: $result" >&5
5842 echo "${ECHO_T}$result" >&6
5843
5844
5845           enablestring=
5846           defaultval=$wxUSE_ALL_FEATURES
5847           if test -z"$defaultval"; then
5848               if test x"$enablestring" = xdisable; then
5849                   defaultval=yes
5850               else
5851                   defaultval=no
5852               fi
5853           fi
5854
5855           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5856 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5857           no_cache=0
5858           # Check whether --enable-backtrace or --disable-backtrace was given.
5859 if test "${enable_backtrace+set}" = set; then
5860   enableval="$enable_backtrace"
5861
5862                           if test "$enableval" = yes; then
5863                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5864                           else
5865                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5866                           fi
5867
5868 else
5869
5870                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
5871                           if test "x$LINE" != x ; then
5872                             eval "DEFAULT_$LINE"
5873                           else
5874                             no_cache=1
5875                           fi
5876
5877                           ac_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
5878
5879 fi;
5880
5881           eval "$ac_cv_use_backtrace"
5882           if test "$no_cache" != 1; then
5883             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5884           fi
5885
5886           if test x"$enablestring" = xdisable; then
5887             if test $wxUSE_STACKWALKER = yes; then
5888               result=no
5889             else
5890               result=yes
5891             fi
5892           else
5893             result=$wxUSE_STACKWALKER
5894           fi
5895
5896           echo "$as_me:$LINENO: result: $result" >&5
5897 echo "${ECHO_T}$result" >&6
5898
5899
5900           enablestring=
5901           defaultval=$wxUSE_ALL_FEATURES
5902           if test -z"$defaultval"; then
5903               if test x"$enablestring" = xdisable; then
5904                   defaultval=yes
5905               else
5906                   defaultval=no
5907               fi
5908           fi
5909
5910           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5911 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5912           no_cache=0
5913           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5914 if test "${enable_catch_segvs+set}" = set; then
5915   enableval="$enable_catch_segvs"
5916
5917                           if test "$enableval" = yes; then
5918                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5919                           else
5920                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5921                           fi
5922
5923 else
5924
5925                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
5926                           if test "x$LINE" != x ; then
5927                             eval "DEFAULT_$LINE"
5928                           else
5929                             no_cache=1
5930                           fi
5931
5932                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
5933
5934 fi;
5935
5936           eval "$ac_cv_use_catch_segvs"
5937           if test "$no_cache" != 1; then
5938             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5939           fi
5940
5941           if test x"$enablestring" = xdisable; then
5942             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
5943               result=no
5944             else
5945               result=yes
5946             fi
5947           else
5948             result=$wxUSE_ON_FATAL_EXCEPTION
5949           fi
5950
5951           echo "$as_me:$LINENO: result: $result" >&5
5952 echo "${ECHO_T}$result" >&6
5953
5954
5955           enablestring=
5956           defaultval=$wxUSE_ALL_FEATURES
5957           if test -z"$defaultval"; then
5958               if test x"$enablestring" = xdisable; then
5959                   defaultval=yes
5960               else
5961                   defaultval=no
5962               fi
5963           fi
5964
5965           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5966 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5967           no_cache=0
5968           # Check whether --enable-cmdline or --disable-cmdline was given.
5969 if test "${enable_cmdline+set}" = set; then
5970   enableval="$enable_cmdline"
5971
5972                           if test "$enableval" = yes; then
5973                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5974                           else
5975                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5976                           fi
5977
5978 else
5979
5980                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
5981                           if test "x$LINE" != x ; then
5982                             eval "DEFAULT_$LINE"
5983                           else
5984                             no_cache=1
5985                           fi
5986
5987                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
5988
5989 fi;
5990
5991           eval "$ac_cv_use_cmdline"
5992           if test "$no_cache" != 1; then
5993             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5994           fi
5995
5996           if test x"$enablestring" = xdisable; then
5997             if test $wxUSE_CMDLINE_PARSER = yes; then
5998               result=no
5999             else
6000               result=yes
6001             fi
6002           else
6003             result=$wxUSE_CMDLINE_PARSER
6004           fi
6005
6006           echo "$as_me:$LINENO: result: $result" >&5
6007 echo "${ECHO_T}$result" >&6
6008
6009
6010           enablestring=
6011           defaultval=$wxUSE_ALL_FEATURES
6012           if test -z"$defaultval"; then
6013               if test x"$enablestring" = xdisable; then
6014                   defaultval=yes
6015               else
6016                   defaultval=no
6017               fi
6018           fi
6019
6020           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6021 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
6022           no_cache=0
6023           # Check whether --enable-datetime or --disable-datetime was given.
6024 if test "${enable_datetime+set}" = set; then
6025   enableval="$enable_datetime"
6026
6027                           if test "$enableval" = yes; then
6028                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
6029                           else
6030                             ac_cv_use_datetime='wxUSE_DATETIME=no'
6031                           fi
6032
6033 else
6034
6035                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
6036                           if test "x$LINE" != x ; then
6037                             eval "DEFAULT_$LINE"
6038                           else
6039                             no_cache=1
6040                           fi
6041
6042                           ac_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6043
6044 fi;
6045
6046           eval "$ac_cv_use_datetime"
6047           if test "$no_cache" != 1; then
6048             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
6049           fi
6050
6051           if test x"$enablestring" = xdisable; then
6052             if test $wxUSE_DATETIME = yes; then
6053               result=no
6054             else
6055               result=yes
6056             fi
6057           else
6058             result=$wxUSE_DATETIME
6059           fi
6060
6061           echo "$as_me:$LINENO: result: $result" >&5
6062 echo "${ECHO_T}$result" >&6
6063
6064
6065           enablestring=
6066           defaultval=$wxUSE_ALL_FEATURES
6067           if test -z"$defaultval"; then
6068               if test x"$enablestring" = xdisable; then
6069                   defaultval=yes
6070               else
6071                   defaultval=no
6072               fi
6073           fi
6074
6075           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6076 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
6077           no_cache=0
6078           # Check whether --enable-debugreport or --disable-debugreport was given.
6079 if test "${enable_debugreport+set}" = set; then
6080   enableval="$enable_debugreport"
6081
6082                           if test "$enableval" = yes; then
6083                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6084                           else
6085                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6086                           fi
6087
6088 else
6089
6090                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
6091                           if test "x$LINE" != x ; then
6092                             eval "DEFAULT_$LINE"
6093                           else
6094                             no_cache=1
6095                           fi
6096
6097                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6098
6099 fi;
6100
6101           eval "$ac_cv_use_debugreport"
6102           if test "$no_cache" != 1; then
6103             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
6104           fi
6105
6106           if test x"$enablestring" = xdisable; then
6107             if test $wxUSE_DEBUGREPORT = yes; then
6108               result=no
6109             else
6110               result=yes
6111             fi
6112           else
6113             result=$wxUSE_DEBUGREPORT
6114           fi
6115
6116           echo "$as_me:$LINENO: result: $result" >&5
6117 echo "${ECHO_T}$result" >&6
6118
6119
6120           enablestring=
6121           defaultval=$wxUSE_ALL_FEATURES
6122           if test -z"$defaultval"; then
6123               if test x"$enablestring" = xdisable; then
6124                   defaultval=yes
6125               else
6126                   defaultval=no
6127               fi
6128           fi
6129
6130           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6131 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
6132           no_cache=0
6133           # Check whether --enable-dialupman or --disable-dialupman was given.
6134 if test "${enable_dialupman+set}" = set; then
6135   enableval="$enable_dialupman"
6136
6137                           if test "$enableval" = yes; then
6138                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6139                           else
6140                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6141                           fi
6142
6143 else
6144
6145                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
6146                           if test "x$LINE" != x ; then
6147                             eval "DEFAULT_$LINE"
6148                           else
6149                             no_cache=1
6150                           fi
6151
6152                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6153
6154 fi;
6155
6156           eval "$ac_cv_use_dialupman"
6157           if test "$no_cache" != 1; then
6158             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
6159           fi
6160
6161           if test x"$enablestring" = xdisable; then
6162             if test $wxUSE_DIALUP_MANAGER = yes; then
6163               result=no
6164             else
6165               result=yes
6166             fi
6167           else
6168             result=$wxUSE_DIALUP_MANAGER
6169           fi
6170
6171           echo "$as_me:$LINENO: result: $result" >&5
6172 echo "${ECHO_T}$result" >&6
6173
6174
6175           enablestring=
6176           defaultval=$wxUSE_ALL_FEATURES
6177           if test -z"$defaultval"; then
6178               if test x"$enablestring" = xdisable; then
6179                   defaultval=yes
6180               else
6181                   defaultval=no
6182               fi
6183           fi
6184
6185           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6186 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
6187           no_cache=0
6188           # Check whether --enable-dynlib or --disable-dynlib was given.
6189 if test "${enable_dynlib+set}" = set; then
6190   enableval="$enable_dynlib"
6191
6192                           if test "$enableval" = yes; then
6193                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6194                           else
6195                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6196                           fi
6197
6198 else
6199
6200                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
6201                           if test "x$LINE" != x ; then
6202                             eval "DEFAULT_$LINE"
6203                           else
6204                             no_cache=1
6205                           fi
6206
6207                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6208
6209 fi;
6210
6211           eval "$ac_cv_use_dynlib"
6212           if test "$no_cache" != 1; then
6213             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
6214           fi
6215
6216           if test x"$enablestring" = xdisable; then
6217             if test $wxUSE_DYNLIB_CLASS = yes; then
6218               result=no
6219             else
6220               result=yes
6221             fi
6222           else
6223             result=$wxUSE_DYNLIB_CLASS
6224           fi
6225
6226           echo "$as_me:$LINENO: result: $result" >&5
6227 echo "${ECHO_T}$result" >&6
6228
6229
6230           enablestring=
6231           defaultval=$wxUSE_ALL_FEATURES
6232           if test -z"$defaultval"; then
6233               if test x"$enablestring" = xdisable; then
6234                   defaultval=yes
6235               else
6236                   defaultval=no
6237               fi
6238           fi
6239
6240           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6241 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
6242           no_cache=0
6243           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
6244 if test "${enable_dynamicloader+set}" = set; then
6245   enableval="$enable_dynamicloader"
6246
6247                           if test "$enableval" = yes; then
6248                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6249                           else
6250                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6251                           fi
6252
6253 else
6254
6255                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
6256                           if test "x$LINE" != x ; then
6257                             eval "DEFAULT_$LINE"
6258                           else
6259                             no_cache=1
6260                           fi
6261
6262                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6263
6264 fi;
6265
6266           eval "$ac_cv_use_dynamicloader"
6267           if test "$no_cache" != 1; then
6268             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
6269           fi
6270
6271           if test x"$enablestring" = xdisable; then
6272             if test $wxUSE_DYNAMIC_LOADER = yes; then
6273               result=no
6274             else
6275               result=yes
6276             fi
6277           else
6278             result=$wxUSE_DYNAMIC_LOADER
6279           fi
6280
6281           echo "$as_me:$LINENO: result: $result" >&5
6282 echo "${ECHO_T}$result" >&6
6283
6284
6285           enablestring=
6286           defaultval=$wxUSE_ALL_FEATURES
6287           if test -z"$defaultval"; then
6288               if test x"$enablestring" = xdisable; then
6289                   defaultval=yes
6290               else
6291                   defaultval=no
6292               fi
6293           fi
6294
6295           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6296 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
6297           no_cache=0
6298           # Check whether --enable-exceptions or --disable-exceptions was given.
6299 if test "${enable_exceptions+set}" = set; then
6300   enableval="$enable_exceptions"
6301
6302                           if test "$enableval" = yes; then
6303                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6304                           else
6305                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6306                           fi
6307
6308 else
6309
6310                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
6311                           if test "x$LINE" != x ; then
6312                             eval "DEFAULT_$LINE"
6313                           else
6314                             no_cache=1
6315                           fi
6316
6317                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6318
6319 fi;
6320
6321           eval "$ac_cv_use_exceptions"
6322           if test "$no_cache" != 1; then
6323             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
6324           fi
6325
6326           if test x"$enablestring" = xdisable; then
6327             if test $wxUSE_EXCEPTIONS = yes; then
6328               result=no
6329             else
6330               result=yes
6331             fi
6332           else
6333             result=$wxUSE_EXCEPTIONS
6334           fi
6335
6336           echo "$as_me:$LINENO: result: $result" >&5
6337 echo "${ECHO_T}$result" >&6
6338
6339
6340           enablestring=
6341           defaultval=$wxUSE_ALL_FEATURES
6342           if test -z"$defaultval"; then
6343               if test x"$enablestring" = xdisable; then
6344                   defaultval=yes
6345               else
6346                   defaultval=no
6347               fi
6348           fi
6349
6350           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6351 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
6352           no_cache=0
6353           # Check whether --enable-ffile or --disable-ffile was given.
6354 if test "${enable_ffile+set}" = set; then
6355   enableval="$enable_ffile"
6356
6357                           if test "$enableval" = yes; then
6358                             ac_cv_use_ffile='wxUSE_FFILE=yes'
6359                           else
6360                             ac_cv_use_ffile='wxUSE_FFILE=no'
6361                           fi
6362
6363 else
6364
6365                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
6366                           if test "x$LINE" != x ; then
6367                             eval "DEFAULT_$LINE"
6368                           else
6369                             no_cache=1
6370                           fi
6371
6372                           ac_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6373
6374 fi;
6375
6376           eval "$ac_cv_use_ffile"
6377           if test "$no_cache" != 1; then
6378             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
6379           fi
6380
6381           if test x"$enablestring" = xdisable; then
6382             if test $wxUSE_FFILE = yes; then
6383               result=no
6384             else
6385               result=yes
6386             fi
6387           else
6388             result=$wxUSE_FFILE
6389           fi
6390
6391           echo "$as_me:$LINENO: result: $result" >&5
6392 echo "${ECHO_T}$result" >&6
6393
6394
6395           enablestring=
6396           defaultval=$wxUSE_ALL_FEATURES
6397           if test -z"$defaultval"; then
6398               if test x"$enablestring" = xdisable; then
6399                   defaultval=yes
6400               else
6401                   defaultval=no
6402               fi
6403           fi
6404
6405           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6406 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
6407           no_cache=0
6408           # Check whether --enable-file or --disable-file was given.
6409 if test "${enable_file+set}" = set; then
6410   enableval="$enable_file"
6411
6412                           if test "$enableval" = yes; then
6413                             ac_cv_use_file='wxUSE_FILE=yes'
6414                           else
6415                             ac_cv_use_file='wxUSE_FILE=no'
6416                           fi
6417
6418 else
6419
6420                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
6421                           if test "x$LINE" != x ; then
6422                             eval "DEFAULT_$LINE"
6423                           else
6424                             no_cache=1
6425                           fi
6426
6427                           ac_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6428
6429 fi;
6430
6431           eval "$ac_cv_use_file"
6432           if test "$no_cache" != 1; then
6433             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
6434           fi
6435
6436           if test x"$enablestring" = xdisable; then
6437             if test $wxUSE_FILE = yes; then
6438               result=no
6439             else
6440               result=yes
6441             fi
6442           else
6443             result=$wxUSE_FILE
6444           fi
6445
6446           echo "$as_me:$LINENO: result: $result" >&5
6447 echo "${ECHO_T}$result" >&6
6448
6449
6450           enablestring=
6451           defaultval=$wxUSE_ALL_FEATURES
6452           if test -z"$defaultval"; then
6453               if test x"$enablestring" = xdisable; then
6454                   defaultval=yes
6455               else
6456                   defaultval=no
6457               fi
6458           fi
6459
6460           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6461 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
6462           no_cache=0
6463           # Check whether --enable-filesystem or --disable-filesystem was given.
6464 if test "${enable_filesystem+set}" = set; then
6465   enableval="$enable_filesystem"
6466
6467                           if test "$enableval" = yes; then
6468                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6469                           else
6470                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6471                           fi
6472
6473 else
6474
6475                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
6476                           if test "x$LINE" != x ; then
6477                             eval "DEFAULT_$LINE"
6478                           else
6479                             no_cache=1
6480                           fi
6481
6482                           ac_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6483
6484 fi;
6485
6486           eval "$ac_cv_use_filesystem"
6487           if test "$no_cache" != 1; then
6488             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
6489           fi
6490
6491           if test x"$enablestring" = xdisable; then
6492             if test $wxUSE_FILESYSTEM = yes; then
6493               result=no
6494             else
6495               result=yes
6496             fi
6497           else
6498             result=$wxUSE_FILESYSTEM
6499           fi
6500
6501           echo "$as_me:$LINENO: result: $result" >&5
6502 echo "${ECHO_T}$result" >&6
6503
6504
6505           enablestring=
6506           defaultval=$wxUSE_ALL_FEATURES
6507           if test -z"$defaultval"; then
6508               if test x"$enablestring" = xdisable; then
6509                   defaultval=yes
6510               else
6511                   defaultval=no
6512               fi
6513           fi
6514
6515           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6516 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
6517           no_cache=0
6518           # Check whether --enable-fontmap or --disable-fontmap was given.
6519 if test "${enable_fontmap+set}" = set; then
6520   enableval="$enable_fontmap"
6521
6522                           if test "$enableval" = yes; then
6523                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
6524                           else
6525                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
6526                           fi
6527
6528 else
6529
6530                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
6531                           if test "x$LINE" != x ; then
6532                             eval "DEFAULT_$LINE"
6533                           else
6534                             no_cache=1
6535                           fi
6536
6537                           ac_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
6538
6539 fi;
6540
6541           eval "$ac_cv_use_fontmap"
6542           if test "$no_cache" != 1; then
6543             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
6544           fi
6545
6546           if test x"$enablestring" = xdisable; then
6547             if test $wxUSE_FONTMAP = yes; then
6548               result=no
6549             else
6550               result=yes
6551             fi
6552           else
6553             result=$wxUSE_FONTMAP
6554           fi
6555
6556           echo "$as_me:$LINENO: result: $result" >&5
6557 echo "${ECHO_T}$result" >&6
6558
6559
6560           enablestring=
6561           defaultval=$wxUSE_ALL_FEATURES
6562           if test -z"$defaultval"; then
6563               if test x"$enablestring" = xdisable; then
6564                   defaultval=yes
6565               else
6566                   defaultval=no
6567               fi
6568           fi
6569
6570           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6571 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
6572           no_cache=0
6573           # Check whether --enable-fs_archive or --disable-fs_archive was given.
6574 if test "${enable_fs_archive+set}" = set; then
6575   enableval="$enable_fs_archive"
6576
6577                           if test "$enableval" = yes; then
6578                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6579                           else
6580                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6581                           fi
6582
6583 else
6584
6585                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
6586                           if test "x$LINE" != x ; then
6587                             eval "DEFAULT_$LINE"
6588                           else
6589                             no_cache=1
6590                           fi
6591
6592                           ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
6593
6594 fi;
6595
6596           eval "$ac_cv_use_fs_archive"
6597           if test "$no_cache" != 1; then
6598             echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
6599           fi
6600
6601           if test x"$enablestring" = xdisable; then
6602             if test $wxUSE_FS_ARCHIVE = yes; then
6603               result=no
6604             else
6605               result=yes
6606             fi
6607           else
6608             result=$wxUSE_FS_ARCHIVE
6609           fi
6610
6611           echo "$as_me:$LINENO: result: $result" >&5
6612 echo "${ECHO_T}$result" >&6
6613
6614
6615           enablestring=
6616           defaultval=$wxUSE_ALL_FEATURES
6617           if test -z"$defaultval"; then
6618               if test x"$enablestring" = xdisable; then
6619                   defaultval=yes
6620               else
6621                   defaultval=no
6622               fi
6623           fi
6624
6625           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6626 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
6627           no_cache=0
6628           # Check whether --enable-fs_inet or --disable-fs_inet was given.
6629 if test "${enable_fs_inet+set}" = set; then
6630   enableval="$enable_fs_inet"
6631
6632                           if test "$enableval" = yes; then
6633                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
6634                           else
6635                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
6636                           fi
6637
6638 else
6639
6640                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
6641                           if test "x$LINE" != x ; then
6642                             eval "DEFAULT_$LINE"
6643                           else
6644                             no_cache=1
6645                           fi
6646
6647                           ac_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
6648
6649 fi;
6650
6651           eval "$ac_cv_use_fs_inet"
6652           if test "$no_cache" != 1; then
6653             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
6654           fi
6655
6656           if test x"$enablestring" = xdisable; then
6657             if test $wxUSE_FS_INET = yes; then
6658               result=no
6659             else
6660               result=yes
6661             fi
6662           else
6663             result=$wxUSE_FS_INET
6664           fi
6665
6666           echo "$as_me:$LINENO: result: $result" >&5
6667 echo "${ECHO_T}$result" >&6
6668
6669
6670           enablestring=
6671           defaultval=$wxUSE_ALL_FEATURES
6672           if test -z"$defaultval"; then
6673               if test x"$enablestring" = xdisable; then
6674                   defaultval=yes
6675               else
6676                   defaultval=no
6677               fi
6678           fi
6679
6680           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
6681 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
6682           no_cache=0
6683           # Check whether --enable-fs_zip or --disable-fs_zip was given.
6684 if test "${enable_fs_zip+set}" = set; then
6685   enableval="$enable_fs_zip"
6686
6687                           if test "$enableval" = yes; then
6688                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
6689                           else
6690                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
6691                           fi
6692
6693 else
6694
6695                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
6696                           if test "x$LINE" != x ; then
6697                             eval "DEFAULT_$LINE"
6698                           else
6699                             no_cache=1
6700                           fi
6701
6702                           ac_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
6703
6704 fi;
6705
6706           eval "$ac_cv_use_fs_zip"
6707           if test "$no_cache" != 1; then
6708             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
6709           fi
6710
6711           if test x"$enablestring" = xdisable; then
6712             if test $wxUSE_FS_ZIP = yes; then
6713               result=no
6714             else
6715               result=yes
6716             fi
6717           else
6718             result=$wxUSE_FS_ZIP
6719           fi
6720
6721           echo "$as_me:$LINENO: result: $result" >&5
6722 echo "${ECHO_T}$result" >&6
6723
6724
6725           enablestring=
6726           defaultval=$wxUSE_ALL_FEATURES
6727           if test -z"$defaultval"; then
6728               if test x"$enablestring" = xdisable; then
6729                   defaultval=yes
6730               else
6731                   defaultval=no
6732               fi
6733           fi
6734
6735           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
6736 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
6737           no_cache=0
6738           # Check whether --enable-geometry or --disable-geometry was given.
6739 if test "${enable_geometry+set}" = set; then
6740   enableval="$enable_geometry"
6741
6742                           if test "$enableval" = yes; then
6743                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
6744                           else
6745                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
6746                           fi
6747
6748 else
6749
6750                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
6751                           if test "x$LINE" != x ; then
6752                             eval "DEFAULT_$LINE"
6753                           else
6754                             no_cache=1
6755                           fi
6756
6757                           ac_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
6758
6759 fi;
6760
6761           eval "$ac_cv_use_geometry"
6762           if test "$no_cache" != 1; then
6763             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
6764           fi
6765
6766           if test x"$enablestring" = xdisable; then
6767             if test $wxUSE_GEOMETRY = yes; then
6768               result=no
6769             else
6770               result=yes
6771             fi
6772           else
6773             result=$wxUSE_GEOMETRY
6774           fi
6775
6776           echo "$as_me:$LINENO: result: $result" >&5
6777 echo "${ECHO_T}$result" >&6
6778
6779
6780           enablestring=
6781           defaultval=$wxUSE_ALL_FEATURES
6782           if test -z"$defaultval"; then
6783               if test x"$enablestring" = xdisable; then
6784                   defaultval=yes
6785               else
6786                   defaultval=no
6787               fi
6788           fi
6789
6790           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
6791 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
6792           no_cache=0
6793           # Check whether --enable-log or --disable-log was given.
6794 if test "${enable_log+set}" = set; then
6795   enableval="$enable_log"
6796
6797                           if test "$enableval" = yes; then
6798                             ac_cv_use_log='wxUSE_LOG=yes'
6799                           else
6800                             ac_cv_use_log='wxUSE_LOG=no'
6801                           fi
6802
6803 else
6804
6805                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
6806                           if test "x$LINE" != x ; then
6807                             eval "DEFAULT_$LINE"
6808                           else
6809                             no_cache=1
6810                           fi
6811
6812                           ac_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
6813
6814 fi;
6815
6816           eval "$ac_cv_use_log"
6817           if test "$no_cache" != 1; then
6818             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
6819           fi
6820
6821           if test x"$enablestring" = xdisable; then
6822             if test $wxUSE_LOG = yes; then
6823               result=no
6824             else
6825               result=yes
6826             fi
6827           else
6828             result=$wxUSE_LOG
6829           fi
6830
6831           echo "$as_me:$LINENO: result: $result" >&5
6832 echo "${ECHO_T}$result" >&6
6833
6834
6835           enablestring=
6836           defaultval=$wxUSE_ALL_FEATURES
6837           if test -z"$defaultval"; then
6838               if test x"$enablestring" = xdisable; then
6839                   defaultval=yes
6840               else
6841                   defaultval=no
6842               fi
6843           fi
6844
6845           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
6846 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
6847           no_cache=0
6848           # Check whether --enable-longlong or --disable-longlong was given.
6849 if test "${enable_longlong+set}" = set; then
6850   enableval="$enable_longlong"
6851
6852                           if test "$enableval" = yes; then
6853                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
6854                           else
6855                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
6856                           fi
6857
6858 else
6859
6860                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
6861                           if test "x$LINE" != x ; then
6862                             eval "DEFAULT_$LINE"
6863                           else
6864                             no_cache=1
6865                           fi
6866
6867                           ac_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
6868
6869 fi;
6870
6871           eval "$ac_cv_use_longlong"
6872           if test "$no_cache" != 1; then
6873             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
6874           fi
6875
6876           if test x"$enablestring" = xdisable; then
6877             if test $wxUSE_LONGLONG = yes; then
6878               result=no
6879             else
6880               result=yes
6881             fi
6882           else
6883             result=$wxUSE_LONGLONG
6884           fi
6885
6886           echo "$as_me:$LINENO: result: $result" >&5
6887 echo "${ECHO_T}$result" >&6
6888
6889
6890           enablestring=
6891           defaultval=$wxUSE_ALL_FEATURES
6892           if test -z"$defaultval"; then
6893               if test x"$enablestring" = xdisable; then
6894                   defaultval=yes
6895               else
6896                   defaultval=no
6897               fi
6898           fi
6899
6900           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
6901 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
6902           no_cache=0
6903           # Check whether --enable-mimetype or --disable-mimetype was given.
6904 if test "${enable_mimetype+set}" = set; then
6905   enableval="$enable_mimetype"
6906
6907                           if test "$enableval" = yes; then
6908                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
6909                           else
6910                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
6911                           fi
6912
6913 else
6914
6915                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
6916                           if test "x$LINE" != x ; then
6917                             eval "DEFAULT_$LINE"
6918                           else
6919                             no_cache=1
6920                           fi
6921
6922                           ac_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
6923
6924 fi;
6925
6926           eval "$ac_cv_use_mimetype"
6927           if test "$no_cache" != 1; then
6928             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
6929           fi
6930
6931           if test x"$enablestring" = xdisable; then
6932             if test $wxUSE_MIMETYPE = yes; then
6933               result=no
6934             else
6935               result=yes
6936             fi
6937           else
6938             result=$wxUSE_MIMETYPE
6939           fi
6940
6941           echo "$as_me:$LINENO: result: $result" >&5
6942 echo "${ECHO_T}$result" >&6
6943
6944
6945           enablestring=
6946           defaultval=$wxUSE_ALL_FEATURES
6947           if test -z"$defaultval"; then
6948               if test x"$enablestring" = xdisable; then
6949                   defaultval=yes
6950               else
6951                   defaultval=no
6952               fi
6953           fi
6954
6955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
6956 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
6957           no_cache=0
6958           # Check whether --enable-snglinst or --disable-snglinst was given.
6959 if test "${enable_snglinst+set}" = set; then
6960   enableval="$enable_snglinst"
6961
6962                           if test "$enableval" = yes; then
6963                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
6964                           else
6965                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
6966                           fi
6967
6968 else
6969
6970                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
6971                           if test "x$LINE" != x ; then
6972                             eval "DEFAULT_$LINE"
6973                           else
6974                             no_cache=1
6975                           fi
6976
6977                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
6978
6979 fi;
6980
6981           eval "$ac_cv_use_snglinst"
6982           if test "$no_cache" != 1; then
6983             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6984           fi
6985
6986           if test x"$enablestring" = xdisable; then
6987             if test $wxUSE_SNGLINST_CHECKER = yes; then
6988               result=no
6989             else
6990               result=yes
6991             fi
6992           else
6993             result=$wxUSE_SNGLINST_CHECKER
6994           fi
6995
6996           echo "$as_me:$LINENO: result: $result" >&5
6997 echo "${ECHO_T}$result" >&6
6998
6999
7000           enablestring=
7001           defaultval=$wxUSE_ALL_FEATURES
7002           if test -z"$defaultval"; then
7003               if test x"$enablestring" = xdisable; then
7004                   defaultval=yes
7005               else
7006                   defaultval=no
7007               fi
7008           fi
7009
7010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7011 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
7012           no_cache=0
7013           # Check whether --enable-stdpaths or --disable-stdpaths was given.
7014 if test "${enable_stdpaths+set}" = set; then
7015   enableval="$enable_stdpaths"
7016
7017                           if test "$enableval" = yes; then
7018                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7019                           else
7020                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
7021                           fi
7022
7023 else
7024
7025                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
7026                           if test "x$LINE" != x ; then
7027                             eval "DEFAULT_$LINE"
7028                           else
7029                             no_cache=1
7030                           fi
7031
7032                           ac_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7033
7034 fi;
7035
7036           eval "$ac_cv_use_stdpaths"
7037           if test "$no_cache" != 1; then
7038             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
7039           fi
7040
7041           if test x"$enablestring" = xdisable; then
7042             if test $wxUSE_STDPATHS = yes; then
7043               result=no
7044             else
7045               result=yes
7046             fi
7047           else
7048             result=$wxUSE_STDPATHS
7049           fi
7050
7051           echo "$as_me:$LINENO: result: $result" >&5
7052 echo "${ECHO_T}$result" >&6
7053
7054
7055           enablestring=
7056           defaultval=$wxUSE_ALL_FEATURES
7057           if test -z"$defaultval"; then
7058               if test x"$enablestring" = xdisable; then
7059                   defaultval=yes
7060               else
7061                   defaultval=no
7062               fi
7063           fi
7064
7065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7066 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
7067           no_cache=0
7068           # Check whether --enable-stopwatch or --disable-stopwatch was given.
7069 if test "${enable_stopwatch+set}" = set; then
7070   enableval="$enable_stopwatch"
7071
7072                           if test "$enableval" = yes; then
7073                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7074                           else
7075                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7076                           fi
7077
7078 else
7079
7080                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
7081                           if test "x$LINE" != x ; then
7082                             eval "DEFAULT_$LINE"
7083                           else
7084                             no_cache=1
7085                           fi
7086
7087                           ac_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7088
7089 fi;
7090
7091           eval "$ac_cv_use_stopwatch"
7092           if test "$no_cache" != 1; then
7093             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
7094           fi
7095
7096           if test x"$enablestring" = xdisable; then
7097             if test $wxUSE_STOPWATCH = yes; then
7098               result=no
7099             else
7100               result=yes
7101             fi
7102           else
7103             result=$wxUSE_STOPWATCH
7104           fi
7105
7106           echo "$as_me:$LINENO: result: $result" >&5
7107 echo "${ECHO_T}$result" >&6
7108
7109
7110           enablestring=
7111           defaultval=$wxUSE_ALL_FEATURES
7112           if test -z"$defaultval"; then
7113               if test x"$enablestring" = xdisable; then
7114                   defaultval=yes
7115               else
7116                   defaultval=no
7117               fi
7118           fi
7119
7120           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7121 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
7122           no_cache=0
7123           # Check whether --enable-streams or --disable-streams was given.
7124 if test "${enable_streams+set}" = set; then
7125   enableval="$enable_streams"
7126
7127                           if test "$enableval" = yes; then
7128                             ac_cv_use_streams='wxUSE_STREAMS=yes'
7129                           else
7130                             ac_cv_use_streams='wxUSE_STREAMS=no'
7131                           fi
7132
7133 else
7134
7135                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
7136                           if test "x$LINE" != x ; then
7137                             eval "DEFAULT_$LINE"
7138                           else
7139                             no_cache=1
7140                           fi
7141
7142                           ac_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7143
7144 fi;
7145
7146           eval "$ac_cv_use_streams"
7147           if test "$no_cache" != 1; then
7148             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
7149           fi
7150
7151           if test x"$enablestring" = xdisable; then
7152             if test $wxUSE_STREAMS = yes; then
7153               result=no
7154             else
7155               result=yes
7156             fi
7157           else
7158             result=$wxUSE_STREAMS
7159           fi
7160
7161           echo "$as_me:$LINENO: result: $result" >&5
7162 echo "${ECHO_T}$result" >&6
7163
7164
7165           enablestring=
7166           defaultval=$wxUSE_ALL_FEATURES
7167           if test -z"$defaultval"; then
7168               if test x"$enablestring" = xdisable; then
7169                   defaultval=yes
7170               else
7171                   defaultval=no
7172               fi
7173           fi
7174
7175           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7176 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
7177           no_cache=0
7178           # Check whether --enable-system_options or --disable-system_options was given.
7179 if test "${enable_system_options+set}" = set; then
7180   enableval="$enable_system_options"
7181
7182                           if test "$enableval" = yes; then
7183                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7184                           else
7185                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7186                           fi
7187
7188 else
7189
7190                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
7191                           if test "x$LINE" != x ; then
7192                             eval "DEFAULT_$LINE"
7193                           else
7194                             no_cache=1
7195                           fi
7196
7197                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7198
7199 fi;
7200
7201           eval "$ac_cv_use_system_options"
7202           if test "$no_cache" != 1; then
7203             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
7204           fi
7205
7206           if test x"$enablestring" = xdisable; then
7207             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7208               result=no
7209             else
7210               result=yes
7211             fi
7212           else
7213             result=$wxUSE_SYSTEM_OPTIONS
7214           fi
7215
7216           echo "$as_me:$LINENO: result: $result" >&5
7217 echo "${ECHO_T}$result" >&6
7218
7219
7220           enablestring=
7221           defaultval=$wxUSE_ALL_FEATURES
7222           if test -z"$defaultval"; then
7223               if test x"$enablestring" = xdisable; then
7224                   defaultval=yes
7225               else
7226                   defaultval=no
7227               fi
7228           fi
7229
7230           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7231 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
7232           no_cache=0
7233           # Check whether --enable-tarstream or --disable-tarstream was given.
7234 if test "${enable_tarstream+set}" = set; then
7235   enableval="$enable_tarstream"
7236
7237                           if test "$enableval" = yes; then
7238                             ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7239                           else
7240                             ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
7241                           fi
7242
7243 else
7244
7245                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
7246                           if test "x$LINE" != x ; then
7247                             eval "DEFAULT_$LINE"
7248                           else
7249                             no_cache=1
7250                           fi
7251
7252                           ac_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7253
7254 fi;
7255
7256           eval "$ac_cv_use_tarstream"
7257           if test "$no_cache" != 1; then
7258             echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
7259           fi
7260
7261           if test x"$enablestring" = xdisable; then
7262             if test $wxUSE_TARSTREAM = yes; then
7263               result=no
7264             else
7265               result=yes
7266             fi
7267           else
7268             result=$wxUSE_TARSTREAM
7269           fi
7270
7271           echo "$as_me:$LINENO: result: $result" >&5
7272 echo "${ECHO_T}$result" >&6
7273
7274
7275           enablestring=
7276           defaultval=$wxUSE_ALL_FEATURES
7277           if test -z"$defaultval"; then
7278               if test x"$enablestring" = xdisable; then
7279                   defaultval=yes
7280               else
7281                   defaultval=no
7282               fi
7283           fi
7284
7285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7286 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
7287           no_cache=0
7288           # Check whether --enable-textbuf or --disable-textbuf was given.
7289 if test "${enable_textbuf+set}" = set; then
7290   enableval="$enable_textbuf"
7291
7292                           if test "$enableval" = yes; then
7293                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7294                           else
7295                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7296                           fi
7297
7298 else
7299
7300                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
7301                           if test "x$LINE" != x ; then
7302                             eval "DEFAULT_$LINE"
7303                           else
7304                             no_cache=1
7305                           fi
7306
7307                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7308
7309 fi;
7310
7311           eval "$ac_cv_use_textbuf"
7312           if test "$no_cache" != 1; then
7313             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
7314           fi
7315
7316           if test x"$enablestring" = xdisable; then
7317             if test $wxUSE_TEXTBUFFER = yes; then
7318               result=no
7319             else
7320               result=yes
7321             fi
7322           else
7323             result=$wxUSE_TEXTBUFFER
7324           fi
7325
7326           echo "$as_me:$LINENO: result: $result" >&5
7327 echo "${ECHO_T}$result" >&6
7328
7329
7330           enablestring=
7331           defaultval=$wxUSE_ALL_FEATURES
7332           if test -z"$defaultval"; then
7333               if test x"$enablestring" = xdisable; then
7334                   defaultval=yes
7335               else
7336                   defaultval=no
7337               fi
7338           fi
7339
7340           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7341 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
7342           no_cache=0
7343           # Check whether --enable-textfile or --disable-textfile was given.
7344 if test "${enable_textfile+set}" = set; then
7345   enableval="$enable_textfile"
7346
7347                           if test "$enableval" = yes; then
7348                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
7349                           else
7350                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
7351                           fi
7352
7353 else
7354
7355                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
7356                           if test "x$LINE" != x ; then
7357                             eval "DEFAULT_$LINE"
7358                           else
7359                             no_cache=1
7360                           fi
7361
7362                           ac_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7363
7364 fi;
7365
7366           eval "$ac_cv_use_textfile"
7367           if test "$no_cache" != 1; then
7368             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
7369           fi
7370
7371           if test x"$enablestring" = xdisable; then
7372             if test $wxUSE_TEXTFILE = yes; then
7373               result=no
7374             else
7375               result=yes
7376             fi
7377           else
7378             result=$wxUSE_TEXTFILE
7379           fi
7380
7381           echo "$as_me:$LINENO: result: $result" >&5
7382 echo "${ECHO_T}$result" >&6
7383
7384
7385           enablestring=
7386           defaultval=$wxUSE_ALL_FEATURES
7387           if test -z"$defaultval"; then
7388               if test x"$enablestring" = xdisable; then
7389                   defaultval=yes
7390               else
7391                   defaultval=no
7392               fi
7393           fi
7394
7395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7396 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
7397           no_cache=0
7398           # Check whether --enable-timer or --disable-timer was given.
7399 if test "${enable_timer+set}" = set; then
7400   enableval="$enable_timer"
7401
7402                           if test "$enableval" = yes; then
7403                             ac_cv_use_timer='wxUSE_TIMER=yes'
7404                           else
7405                             ac_cv_use_timer='wxUSE_TIMER=no'
7406                           fi
7407
7408 else
7409
7410                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
7411                           if test "x$LINE" != x ; then
7412                             eval "DEFAULT_$LINE"
7413                           else
7414                             no_cache=1
7415                           fi
7416
7417                           ac_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7418
7419 fi;
7420
7421           eval "$ac_cv_use_timer"
7422           if test "$no_cache" != 1; then
7423             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
7424           fi
7425
7426           if test x"$enablestring" = xdisable; then
7427             if test $wxUSE_TIMER = yes; then
7428               result=no
7429             else
7430               result=yes
7431             fi
7432           else
7433             result=$wxUSE_TIMER
7434           fi
7435
7436           echo "$as_me:$LINENO: result: $result" >&5
7437 echo "${ECHO_T}$result" >&6
7438
7439
7440           enablestring=
7441           defaultval=$wxUSE_ALL_FEATURES
7442           if test -z"$defaultval"; then
7443               if test x"$enablestring" = xdisable; then
7444                   defaultval=yes
7445               else
7446                   defaultval=no
7447               fi
7448           fi
7449
7450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7451 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
7452           no_cache=0
7453           # Check whether --enable-sound or --disable-sound was given.
7454 if test "${enable_sound+set}" = set; then
7455   enableval="$enable_sound"
7456
7457                           if test "$enableval" = yes; then
7458                             ac_cv_use_sound='wxUSE_SOUND=yes'
7459                           else
7460                             ac_cv_use_sound='wxUSE_SOUND=no'
7461                           fi
7462
7463 else
7464
7465                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
7466                           if test "x$LINE" != x ; then
7467                             eval "DEFAULT_$LINE"
7468                           else
7469                             no_cache=1
7470                           fi
7471
7472                           ac_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7473
7474 fi;
7475
7476           eval "$ac_cv_use_sound"
7477           if test "$no_cache" != 1; then
7478             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
7479           fi
7480
7481           if test x"$enablestring" = xdisable; then
7482             if test $wxUSE_SOUND = yes; then
7483               result=no
7484             else
7485               result=yes
7486             fi
7487           else
7488             result=$wxUSE_SOUND
7489           fi
7490
7491           echo "$as_me:$LINENO: result: $result" >&5
7492 echo "${ECHO_T}$result" >&6
7493
7494
7495           enablestring=
7496           defaultval=$wxUSE_ALL_FEATURES
7497           if test -z"$defaultval"; then
7498               if test x"$enablestring" = xdisable; then
7499                   defaultval=yes
7500               else
7501                   defaultval=no
7502               fi
7503           fi
7504
7505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7506 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
7507           no_cache=0
7508           # Check whether --enable-mediactrl or --disable-mediactrl was given.
7509 if test "${enable_mediactrl+set}" = set; then
7510   enableval="$enable_mediactrl"
7511
7512                           if test "$enableval" = yes; then
7513                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7514                           else
7515                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7516                           fi
7517
7518 else
7519
7520                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
7521                           if test "x$LINE" != x ; then
7522                             eval "DEFAULT_$LINE"
7523                           else
7524                             no_cache=1
7525                           fi
7526
7527                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
7528
7529 fi;
7530
7531           eval "$ac_cv_use_mediactrl"
7532           if test "$no_cache" != 1; then
7533             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
7534           fi
7535
7536           if test x"$enablestring" = xdisable; then
7537             if test $wxUSE_MEDIACTRL = yes; then
7538               result=no
7539             else
7540               result=yes
7541             fi
7542           else
7543             result=$wxUSE_MEDIACTRL
7544           fi
7545
7546           echo "$as_me:$LINENO: result: $result" >&5
7547 echo "${ECHO_T}$result" >&6
7548
7549
7550           enablestring=
7551           defaultval=$wxUSE_ALL_FEATURES
7552           if test -z"$defaultval"; then
7553               if test x"$enablestring" = xdisable; then
7554                   defaultval=yes
7555               else
7556                   defaultval=no
7557               fi
7558           fi
7559
7560           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7561 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
7562           no_cache=0
7563           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
7564 if test "${enable_gstreamer8+set}" = set; then
7565   enableval="$enable_gstreamer8"
7566
7567                           if test "$enableval" = yes; then
7568                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7569                           else
7570                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7571                           fi
7572
7573 else
7574
7575                           LINE=`grep "^wxUSE_GSTREAMER8=" ${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_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
7583
7584 fi;
7585
7586           eval "$ac_cv_use_gstreamer8"
7587           if test "$no_cache" != 1; then
7588             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
7589           fi
7590
7591           if test x"$enablestring" = xdisable; then
7592             if test $wxUSE_GSTREAMER8 = yes; then
7593               result=no
7594             else
7595               result=yes
7596             fi
7597           else
7598             result=$wxUSE_GSTREAMER8
7599           fi
7600
7601           echo "$as_me:$LINENO: result: $result" >&5
7602 echo "${ECHO_T}$result" >&6
7603
7604
7605           enablestring=
7606           defaultval=$wxUSE_ALL_FEATURES
7607           if test -z"$defaultval"; then
7608               if test x"$enablestring" = xdisable; then
7609                   defaultval=yes
7610               else
7611                   defaultval=no
7612               fi
7613           fi
7614
7615           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7616 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
7617           no_cache=0
7618           # Check whether --enable-printfposparam or --disable-printfposparam was given.
7619 if test "${enable_printfposparam+set}" = set; then
7620   enableval="$enable_printfposparam"
7621
7622                           if test "$enableval" = yes; then
7623                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7624                           else
7625                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7626                           fi
7627
7628 else
7629
7630                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
7631                           if test "x$LINE" != x ; then
7632                             eval "DEFAULT_$LINE"
7633                           else
7634                             no_cache=1
7635                           fi
7636
7637                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7638
7639 fi;
7640
7641           eval "$ac_cv_use_printfposparam"
7642           if test "$no_cache" != 1; then
7643             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
7644           fi
7645
7646           if test x"$enablestring" = xdisable; then
7647             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7648               result=no
7649             else
7650               result=yes
7651             fi
7652           else
7653             result=$wxUSE_PRINTF_POS_PARAMS
7654           fi
7655
7656           echo "$as_me:$LINENO: result: $result" >&5
7657 echo "${ECHO_T}$result" >&6
7658
7659
7660           enablestring=
7661           defaultval=$wxUSE_ALL_FEATURES
7662           if test -z"$defaultval"; then
7663               if test x"$enablestring" = xdisable; then
7664                   defaultval=yes
7665               else
7666                   defaultval=no
7667               fi
7668           fi
7669
7670           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7671 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
7672           no_cache=0
7673           # Check whether --enable-zipstream or --disable-zipstream was given.
7674 if test "${enable_zipstream+set}" = set; then
7675   enableval="$enable_zipstream"
7676
7677                           if test "$enableval" = yes; then
7678                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7679                           else
7680                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7681                           fi
7682
7683 else
7684
7685                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
7686                           if test "x$LINE" != x ; then
7687                             eval "DEFAULT_$LINE"
7688                           else
7689                             no_cache=1
7690                           fi
7691
7692                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7693
7694 fi;
7695
7696           eval "$ac_cv_use_zipstream"
7697           if test "$no_cache" != 1; then
7698             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
7699           fi
7700
7701           if test x"$enablestring" = xdisable; then
7702             if test $wxUSE_ZIPSTREAM = yes; then
7703               result=no
7704             else
7705               result=yes
7706             fi
7707           else
7708             result=$wxUSE_ZIPSTREAM
7709           fi
7710
7711           echo "$as_me:$LINENO: result: $result" >&5
7712 echo "${ECHO_T}$result" >&6
7713
7714
7715
7716           enablestring=
7717           defaultval=$wxUSE_ALL_FEATURES
7718           if test -z"$defaultval"; then
7719               if test x"$enablestring" = xdisable; then
7720                   defaultval=yes
7721               else
7722                   defaultval=no
7723               fi
7724           fi
7725
7726           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7727 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
7728           no_cache=0
7729           # Check whether --enable-url or --disable-url was given.
7730 if test "${enable_url+set}" = set; then
7731   enableval="$enable_url"
7732
7733                           if test "$enableval" = yes; then
7734                             ac_cv_use_url='wxUSE_URL=yes'
7735                           else
7736                             ac_cv_use_url='wxUSE_URL=no'
7737                           fi
7738
7739 else
7740
7741                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
7742                           if test "x$LINE" != x ; then
7743                             eval "DEFAULT_$LINE"
7744                           else
7745                             no_cache=1
7746                           fi
7747
7748                           ac_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7749
7750 fi;
7751
7752           eval "$ac_cv_use_url"
7753           if test "$no_cache" != 1; then
7754             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
7755           fi
7756
7757           if test x"$enablestring" = xdisable; then
7758             if test $wxUSE_URL = yes; then
7759               result=no
7760             else
7761               result=yes
7762             fi
7763           else
7764             result=$wxUSE_URL
7765           fi
7766
7767           echo "$as_me:$LINENO: result: $result" >&5
7768 echo "${ECHO_T}$result" >&6
7769
7770
7771           enablestring=
7772           defaultval=$wxUSE_ALL_FEATURES
7773           if test -z"$defaultval"; then
7774               if test x"$enablestring" = xdisable; then
7775                   defaultval=yes
7776               else
7777                   defaultval=no
7778               fi
7779           fi
7780
7781           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7782 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
7783           no_cache=0
7784           # Check whether --enable-variant or --disable-variant was given.
7785 if test "${enable_variant+set}" = set; then
7786   enableval="$enable_variant"
7787
7788                           if test "$enableval" = yes; then
7789                             ac_cv_use_variant='wxUSE_VARIANT=yes'
7790                           else
7791                             ac_cv_use_variant='wxUSE_VARIANT=no'
7792                           fi
7793
7794 else
7795
7796                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
7797                           if test "x$LINE" != x ; then
7798                             eval "DEFAULT_$LINE"
7799                           else
7800                             no_cache=1
7801                           fi
7802
7803                           ac_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7804
7805 fi;
7806
7807           eval "$ac_cv_use_variant"
7808           if test "$no_cache" != 1; then
7809             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
7810           fi
7811
7812           if test x"$enablestring" = xdisable; then
7813             if test $wxUSE_VARIANT = yes; then
7814               result=no
7815             else
7816               result=yes
7817             fi
7818           else
7819             result=$wxUSE_VARIANT
7820           fi
7821
7822           echo "$as_me:$LINENO: result: $result" >&5
7823 echo "${ECHO_T}$result" >&6
7824
7825
7826           enablestring=
7827           defaultval=$wxUSE_ALL_FEATURES
7828           if test -z"$defaultval"; then
7829               if test x"$enablestring" = xdisable; then
7830                   defaultval=yes
7831               else
7832                   defaultval=no
7833               fi
7834           fi
7835
7836           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7837 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
7838           no_cache=0
7839           # Check whether --enable-protocol or --disable-protocol was given.
7840 if test "${enable_protocol+set}" = set; then
7841   enableval="$enable_protocol"
7842
7843                           if test "$enableval" = yes; then
7844                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
7845                           else
7846                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
7847                           fi
7848
7849 else
7850
7851                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
7852                           if test "x$LINE" != x ; then
7853                             eval "DEFAULT_$LINE"
7854                           else
7855                             no_cache=1
7856                           fi
7857
7858                           ac_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7859
7860 fi;
7861
7862           eval "$ac_cv_use_protocol"
7863           if test "$no_cache" != 1; then
7864             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
7865           fi
7866
7867           if test x"$enablestring" = xdisable; then
7868             if test $wxUSE_PROTOCOL = yes; then
7869               result=no
7870             else
7871               result=yes
7872             fi
7873           else
7874             result=$wxUSE_PROTOCOL
7875           fi
7876
7877           echo "$as_me:$LINENO: result: $result" >&5
7878 echo "${ECHO_T}$result" >&6
7879
7880
7881           enablestring=
7882           defaultval=$wxUSE_ALL_FEATURES
7883           if test -z"$defaultval"; then
7884               if test x"$enablestring" = xdisable; then
7885                   defaultval=yes
7886               else
7887                   defaultval=no
7888               fi
7889           fi
7890
7891           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7892 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
7893           no_cache=0
7894           # Check whether --enable-protocol_http or --disable-protocol_http was given.
7895 if test "${enable_protocol_http+set}" = set; then
7896   enableval="$enable_protocol_http"
7897
7898                           if test "$enableval" = yes; then
7899                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7900                           else
7901                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7902                           fi
7903
7904 else
7905
7906                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
7907                           if test "x$LINE" != x ; then
7908                             eval "DEFAULT_$LINE"
7909                           else
7910                             no_cache=1
7911                           fi
7912
7913                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
7914
7915 fi;
7916
7917           eval "$ac_cv_use_protocol_http"
7918           if test "$no_cache" != 1; then
7919             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
7920           fi
7921
7922           if test x"$enablestring" = xdisable; then
7923             if test $wxUSE_PROTOCOL_HTTP = yes; then
7924               result=no
7925             else
7926               result=yes
7927             fi
7928           else
7929             result=$wxUSE_PROTOCOL_HTTP
7930           fi
7931
7932           echo "$as_me:$LINENO: result: $result" >&5
7933 echo "${ECHO_T}$result" >&6
7934
7935
7936           enablestring=
7937           defaultval=$wxUSE_ALL_FEATURES
7938           if test -z"$defaultval"; then
7939               if test x"$enablestring" = xdisable; then
7940                   defaultval=yes
7941               else
7942                   defaultval=no
7943               fi
7944           fi
7945
7946           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
7947 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
7948           no_cache=0
7949           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
7950 if test "${enable_protocol_ftp+set}" = set; then
7951   enableval="$enable_protocol_ftp"
7952
7953                           if test "$enableval" = yes; then
7954                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
7955                           else
7956                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
7957                           fi
7958
7959 else
7960
7961                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
7962                           if test "x$LINE" != x ; then
7963                             eval "DEFAULT_$LINE"
7964                           else
7965                             no_cache=1
7966                           fi
7967
7968                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
7969
7970 fi;
7971
7972           eval "$ac_cv_use_protocol_ftp"
7973           if test "$no_cache" != 1; then
7974             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
7975           fi
7976
7977           if test x"$enablestring" = xdisable; then
7978             if test $wxUSE_PROTOCOL_FTP = yes; then
7979               result=no
7980             else
7981               result=yes
7982             fi
7983           else
7984             result=$wxUSE_PROTOCOL_FTP
7985           fi
7986
7987           echo "$as_me:$LINENO: result: $result" >&5
7988 echo "${ECHO_T}$result" >&6
7989
7990
7991           enablestring=
7992           defaultval=$wxUSE_ALL_FEATURES
7993           if test -z"$defaultval"; then
7994               if test x"$enablestring" = xdisable; then
7995                   defaultval=yes
7996               else
7997                   defaultval=no
7998               fi
7999           fi
8000
8001           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8002 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
8003           no_cache=0
8004           # Check whether --enable-protocol_file or --disable-protocol_file was given.
8005 if test "${enable_protocol_file+set}" = set; then
8006   enableval="$enable_protocol_file"
8007
8008                           if test "$enableval" = yes; then
8009                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8010                           else
8011                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8012                           fi
8013
8014 else
8015
8016                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
8017                           if test "x$LINE" != x ; then
8018                             eval "DEFAULT_$LINE"
8019                           else
8020                             no_cache=1
8021                           fi
8022
8023                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8024
8025 fi;
8026
8027           eval "$ac_cv_use_protocol_file"
8028           if test "$no_cache" != 1; then
8029             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
8030           fi
8031
8032           if test x"$enablestring" = xdisable; then
8033             if test $wxUSE_PROTOCOL_FILE = yes; then
8034               result=no
8035             else
8036               result=yes
8037             fi
8038           else
8039             result=$wxUSE_PROTOCOL_FILE
8040           fi
8041
8042           echo "$as_me:$LINENO: result: $result" >&5
8043 echo "${ECHO_T}$result" >&6
8044
8045
8046
8047           enablestring=
8048           defaultval=$wxUSE_ALL_FEATURES
8049           if test -z"$defaultval"; then
8050               if test x"$enablestring" = xdisable; then
8051                   defaultval=yes
8052               else
8053                   defaultval=no
8054               fi
8055           fi
8056
8057           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8058 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
8059           no_cache=0
8060           # Check whether --enable-threads or --disable-threads was given.
8061 if test "${enable_threads+set}" = set; then
8062   enableval="$enable_threads"
8063
8064                           if test "$enableval" = yes; then
8065                             ac_cv_use_threads='wxUSE_THREADS=yes'
8066                           else
8067                             ac_cv_use_threads='wxUSE_THREADS=no'
8068                           fi
8069
8070 else
8071
8072                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
8073                           if test "x$LINE" != x ; then
8074                             eval "DEFAULT_$LINE"
8075                           else
8076                             no_cache=1
8077                           fi
8078
8079                           ac_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8080
8081 fi;
8082
8083           eval "$ac_cv_use_threads"
8084           if test "$no_cache" != 1; then
8085             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
8086           fi
8087
8088           if test x"$enablestring" = xdisable; then
8089             if test $wxUSE_THREADS = yes; then
8090               result=no
8091             else
8092               result=yes
8093             fi
8094           else
8095             result=$wxUSE_THREADS
8096           fi
8097
8098           echo "$as_me:$LINENO: result: $result" >&5
8099 echo "${ECHO_T}$result" >&6
8100
8101
8102 if test "$wxUSE_GUI" = "yes"; then
8103
8104
8105
8106           enablestring=
8107           defaultval=$wxUSE_ALL_FEATURES
8108           if test -z"$defaultval"; then
8109               if test x"$enablestring" = xdisable; then
8110                   defaultval=yes
8111               else
8112                   defaultval=no
8113               fi
8114           fi
8115
8116           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8117 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
8118           no_cache=0
8119           # Check whether --enable-docview or --disable-docview was given.
8120 if test "${enable_docview+set}" = set; then
8121   enableval="$enable_docview"
8122
8123                           if test "$enableval" = yes; then
8124                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8125                           else
8126                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8127                           fi
8128
8129 else
8130
8131                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
8132                           if test "x$LINE" != x ; then
8133                             eval "DEFAULT_$LINE"
8134                           else
8135                             no_cache=1
8136                           fi
8137
8138                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8139
8140 fi;
8141
8142           eval "$ac_cv_use_docview"
8143           if test "$no_cache" != 1; then
8144             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
8145           fi
8146
8147           if test x"$enablestring" = xdisable; then
8148             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8149               result=no
8150             else
8151               result=yes
8152             fi
8153           else
8154             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8155           fi
8156
8157           echo "$as_me:$LINENO: result: $result" >&5
8158 echo "${ECHO_T}$result" >&6
8159
8160
8161           enablestring=
8162           defaultval=$wxUSE_ALL_FEATURES
8163           if test -z"$defaultval"; then
8164               if test x"$enablestring" = xdisable; then
8165                   defaultval=yes
8166               else
8167                   defaultval=no
8168               fi
8169           fi
8170
8171           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8172 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
8173           no_cache=0
8174           # Check whether --enable-help or --disable-help was given.
8175 if test "${enable_help+set}" = set; then
8176   enableval="$enable_help"
8177
8178                           if test "$enableval" = yes; then
8179                             ac_cv_use_help='wxUSE_HELP=yes'
8180                           else
8181                             ac_cv_use_help='wxUSE_HELP=no'
8182                           fi
8183
8184 else
8185
8186                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
8187                           if test "x$LINE" != x ; then
8188                             eval "DEFAULT_$LINE"
8189                           else
8190                             no_cache=1
8191                           fi
8192
8193                           ac_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8194
8195 fi;
8196
8197           eval "$ac_cv_use_help"
8198           if test "$no_cache" != 1; then
8199             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
8200           fi
8201
8202           if test x"$enablestring" = xdisable; then
8203             if test $wxUSE_HELP = yes; then
8204               result=no
8205             else
8206               result=yes
8207             fi
8208           else
8209             result=$wxUSE_HELP
8210           fi
8211
8212           echo "$as_me:$LINENO: result: $result" >&5
8213 echo "${ECHO_T}$result" >&6
8214
8215
8216           enablestring=
8217           defaultval=$wxUSE_ALL_FEATURES
8218           if test -z"$defaultval"; then
8219               if test x"$enablestring" = xdisable; then
8220                   defaultval=yes
8221               else
8222                   defaultval=no
8223               fi
8224           fi
8225
8226           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8227 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
8228           no_cache=0
8229           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
8230 if test "${enable_mshtmlhelp+set}" = set; then
8231   enableval="$enable_mshtmlhelp"
8232
8233                           if test "$enableval" = yes; then
8234                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8235                           else
8236                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8237                           fi
8238
8239 else
8240
8241                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
8242                           if test "x$LINE" != x ; then
8243                             eval "DEFAULT_$LINE"
8244                           else
8245                             no_cache=1
8246                           fi
8247
8248                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8249
8250 fi;
8251
8252           eval "$ac_cv_use_mshtmlhelp"
8253           if test "$no_cache" != 1; then
8254             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
8255           fi
8256
8257           if test x"$enablestring" = xdisable; then
8258             if test $wxUSE_MS_HTML_HELP = yes; then
8259               result=no
8260             else
8261               result=yes
8262             fi
8263           else
8264             result=$wxUSE_MS_HTML_HELP
8265           fi
8266
8267           echo "$as_me:$LINENO: result: $result" >&5
8268 echo "${ECHO_T}$result" >&6
8269
8270
8271           enablestring=
8272           defaultval=$wxUSE_ALL_FEATURES
8273           if test -z"$defaultval"; then
8274               if test x"$enablestring" = xdisable; then
8275                   defaultval=yes
8276               else
8277                   defaultval=no
8278               fi
8279           fi
8280
8281           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8282 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
8283           no_cache=0
8284           # Check whether --enable-html or --disable-html was given.
8285 if test "${enable_html+set}" = set; then
8286   enableval="$enable_html"
8287
8288                           if test "$enableval" = yes; then
8289                             ac_cv_use_html='wxUSE_HTML=yes'
8290                           else
8291                             ac_cv_use_html='wxUSE_HTML=no'
8292                           fi
8293
8294 else
8295
8296                           LINE=`grep "^wxUSE_HTML=" ${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_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8304
8305 fi;
8306
8307           eval "$ac_cv_use_html"
8308           if test "$no_cache" != 1; then
8309             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
8310           fi
8311
8312           if test x"$enablestring" = xdisable; then
8313             if test $wxUSE_HTML = yes; then
8314               result=no
8315             else
8316               result=yes
8317             fi
8318           else
8319             result=$wxUSE_HTML
8320           fi
8321
8322           echo "$as_me:$LINENO: result: $result" >&5
8323 echo "${ECHO_T}$result" >&6
8324
8325
8326           enablestring=
8327           defaultval=$wxUSE_ALL_FEATURES
8328           if test -z"$defaultval"; then
8329               if test x"$enablestring" = xdisable; then
8330                   defaultval=yes
8331               else
8332                   defaultval=no
8333               fi
8334           fi
8335
8336           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8337 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
8338           no_cache=0
8339           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
8340 if test "${enable_htmlhelp+set}" = set; then
8341   enableval="$enable_htmlhelp"
8342
8343                           if test "$enableval" = yes; then
8344                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8345                           else
8346                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8347                           fi
8348
8349 else
8350
8351                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
8352                           if test "x$LINE" != x ; then
8353                             eval "DEFAULT_$LINE"
8354                           else
8355                             no_cache=1
8356                           fi
8357
8358                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8359
8360 fi;
8361
8362           eval "$ac_cv_use_htmlhelp"
8363           if test "$no_cache" != 1; then
8364             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
8365           fi
8366
8367           if test x"$enablestring" = xdisable; then
8368             if test $wxUSE_WXHTML_HELP = yes; then
8369               result=no
8370             else
8371               result=yes
8372             fi
8373           else
8374             result=$wxUSE_WXHTML_HELP
8375           fi
8376
8377           echo "$as_me:$LINENO: result: $result" >&5
8378 echo "${ECHO_T}$result" >&6
8379
8380
8381           enablestring=
8382           defaultval=$wxUSE_ALL_FEATURES
8383           if test -z"$defaultval"; then
8384               if test x"$enablestring" = xdisable; then
8385                   defaultval=yes
8386               else
8387                   defaultval=no
8388               fi
8389           fi
8390
8391           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8392 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
8393           no_cache=0
8394           # Check whether --enable-xrc or --disable-xrc was given.
8395 if test "${enable_xrc+set}" = set; then
8396   enableval="$enable_xrc"
8397
8398                           if test "$enableval" = yes; then
8399                             ac_cv_use_xrc='wxUSE_XRC=yes'
8400                           else
8401                             ac_cv_use_xrc='wxUSE_XRC=no'
8402                           fi
8403
8404 else
8405
8406                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
8407                           if test "x$LINE" != x ; then
8408                             eval "DEFAULT_$LINE"
8409                           else
8410                             no_cache=1
8411                           fi
8412
8413                           ac_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8414
8415 fi;
8416
8417           eval "$ac_cv_use_xrc"
8418           if test "$no_cache" != 1; then
8419             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
8420           fi
8421
8422           if test x"$enablestring" = xdisable; then
8423             if test $wxUSE_XRC = yes; then
8424               result=no
8425             else
8426               result=yes
8427             fi
8428           else
8429             result=$wxUSE_XRC
8430           fi
8431
8432           echo "$as_me:$LINENO: result: $result" >&5
8433 echo "${ECHO_T}$result" >&6
8434
8435
8436           enablestring=
8437           defaultval=$wxUSE_ALL_FEATURES
8438           if test -z"$defaultval"; then
8439               if test x"$enablestring" = xdisable; then
8440                   defaultval=yes
8441               else
8442                   defaultval=no
8443               fi
8444           fi
8445
8446           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8447 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
8448           no_cache=0
8449           # Check whether --enable-aui or --disable-aui was given.
8450 if test "${enable_aui+set}" = set; then
8451   enableval="$enable_aui"
8452
8453                           if test "$enableval" = yes; then
8454                             ac_cv_use_aui='wxUSE_AUI=yes'
8455                           else
8456                             ac_cv_use_aui='wxUSE_AUI=no'
8457                           fi
8458
8459 else
8460
8461                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
8462                           if test "x$LINE" != x ; then
8463                             eval "DEFAULT_$LINE"
8464                           else
8465                             no_cache=1
8466                           fi
8467
8468                           ac_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8469
8470 fi;
8471
8472           eval "$ac_cv_use_aui"
8473           if test "$no_cache" != 1; then
8474             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
8475           fi
8476
8477           if test x"$enablestring" = xdisable; then
8478             if test $wxUSE_AUI = yes; then
8479               result=no
8480             else
8481               result=yes
8482             fi
8483           else
8484             result=$wxUSE_AUI
8485           fi
8486
8487           echo "$as_me:$LINENO: result: $result" >&5
8488 echo "${ECHO_T}$result" >&6
8489
8490
8491           enablestring=
8492           defaultval=$wxUSE_ALL_FEATURES
8493           if test -z"$defaultval"; then
8494               if test x"$enablestring" = xdisable; then
8495                   defaultval=yes
8496               else
8497                   defaultval=no
8498               fi
8499           fi
8500
8501           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8502 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6
8503           no_cache=0
8504           # Check whether --enable-stc or --disable-stc was given.
8505 if test "${enable_stc+set}" = set; then
8506   enableval="$enable_stc"
8507
8508                           if test "$enableval" = yes; then
8509                             ac_cv_use_stc='wxUSE_STC=yes'
8510                           else
8511                             ac_cv_use_stc='wxUSE_STC=no'
8512                           fi
8513
8514 else
8515
8516                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
8517                           if test "x$LINE" != x ; then
8518                             eval "DEFAULT_$LINE"
8519                           else
8520                             no_cache=1
8521                           fi
8522
8523                           ac_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8524
8525 fi;
8526
8527           eval "$ac_cv_use_stc"
8528           if test "$no_cache" != 1; then
8529             echo $ac_cv_use_stc >> ${wx_arg_cache_file}.tmp
8530           fi
8531
8532           if test x"$enablestring" = xdisable; then
8533             if test $wxUSE_STC = yes; then
8534               result=no
8535             else
8536               result=yes
8537             fi
8538           else
8539             result=$wxUSE_STC
8540           fi
8541
8542           echo "$as_me:$LINENO: result: $result" >&5
8543 echo "${ECHO_T}$result" >&6
8544
8545
8546           enablestring=
8547           defaultval=$wxUSE_ALL_FEATURES
8548           if test -z"$defaultval"; then
8549               if test x"$enablestring" = xdisable; then
8550                   defaultval=yes
8551               else
8552                   defaultval=no
8553               fi
8554           fi
8555
8556           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8557 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
8558           no_cache=0
8559           # Check whether --enable-constraints or --disable-constraints was given.
8560 if test "${enable_constraints+set}" = set; then
8561   enableval="$enable_constraints"
8562
8563                           if test "$enableval" = yes; then
8564                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8565                           else
8566                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8567                           fi
8568
8569 else
8570
8571                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
8572                           if test "x$LINE" != x ; then
8573                             eval "DEFAULT_$LINE"
8574                           else
8575                             no_cache=1
8576                           fi
8577
8578                           ac_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8579
8580 fi;
8581
8582           eval "$ac_cv_use_constraints"
8583           if test "$no_cache" != 1; then
8584             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
8585           fi
8586
8587           if test x"$enablestring" = xdisable; then
8588             if test $wxUSE_CONSTRAINTS = yes; then
8589               result=no
8590             else
8591               result=yes
8592             fi
8593           else
8594             result=$wxUSE_CONSTRAINTS
8595           fi
8596
8597           echo "$as_me:$LINENO: result: $result" >&5
8598 echo "${ECHO_T}$result" >&6
8599
8600
8601           enablestring=
8602           defaultval=$wxUSE_ALL_FEATURES
8603           if test -z"$defaultval"; then
8604               if test x"$enablestring" = xdisable; then
8605                   defaultval=yes
8606               else
8607                   defaultval=no
8608               fi
8609           fi
8610
8611           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
8612 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
8613           no_cache=0
8614           # Check whether --enable-printarch or --disable-printarch was given.
8615 if test "${enable_printarch+set}" = set; then
8616   enableval="$enable_printarch"
8617
8618                           if test "$enableval" = yes; then
8619                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8620                           else
8621                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8622                           fi
8623
8624 else
8625
8626                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
8627                           if test "x$LINE" != x ; then
8628                             eval "DEFAULT_$LINE"
8629                           else
8630                             no_cache=1
8631                           fi
8632
8633                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
8634
8635 fi;
8636
8637           eval "$ac_cv_use_printarch"
8638           if test "$no_cache" != 1; then
8639             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
8640           fi
8641
8642           if test x"$enablestring" = xdisable; then
8643             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
8644               result=no
8645             else
8646               result=yes
8647             fi
8648           else
8649             result=$wxUSE_PRINTING_ARCHITECTURE
8650           fi
8651
8652           echo "$as_me:$LINENO: result: $result" >&5
8653 echo "${ECHO_T}$result" >&6
8654
8655
8656           enablestring=
8657           defaultval=$wxUSE_ALL_FEATURES
8658           if test -z"$defaultval"; then
8659               if test x"$enablestring" = xdisable; then
8660                   defaultval=yes
8661               else
8662                   defaultval=no
8663               fi
8664           fi
8665
8666           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8667 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
8668           no_cache=0
8669           # Check whether --enable-mdi or --disable-mdi was given.
8670 if test "${enable_mdi+set}" = set; then
8671   enableval="$enable_mdi"
8672
8673                           if test "$enableval" = yes; then
8674                             ac_cv_use_mdi='wxUSE_MDI=yes'
8675                           else
8676                             ac_cv_use_mdi='wxUSE_MDI=no'
8677                           fi
8678
8679 else
8680
8681                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
8682                           if test "x$LINE" != x ; then
8683                             eval "DEFAULT_$LINE"
8684                           else
8685                             no_cache=1
8686                           fi
8687
8688                           ac_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8689
8690 fi;
8691
8692           eval "$ac_cv_use_mdi"
8693           if test "$no_cache" != 1; then
8694             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
8695           fi
8696
8697           if test x"$enablestring" = xdisable; then
8698             if test $wxUSE_MDI = yes; then
8699               result=no
8700             else
8701               result=yes
8702             fi
8703           else
8704             result=$wxUSE_MDI
8705           fi
8706
8707           echo "$as_me:$LINENO: result: $result" >&5
8708 echo "${ECHO_T}$result" >&6
8709
8710
8711           enablestring=
8712           defaultval=$wxUSE_ALL_FEATURES
8713           if test -z"$defaultval"; then
8714               if test x"$enablestring" = xdisable; then
8715                   defaultval=yes
8716               else
8717                   defaultval=no
8718               fi
8719           fi
8720
8721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8722 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
8723           no_cache=0
8724           # Check whether --enable-mdidoc or --disable-mdidoc was given.
8725 if test "${enable_mdidoc+set}" = set; then
8726   enableval="$enable_mdidoc"
8727
8728                           if test "$enableval" = yes; then
8729                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8730                           else
8731                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8732                           fi
8733
8734 else
8735
8736                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
8737                           if test "x$LINE" != x ; then
8738                             eval "DEFAULT_$LINE"
8739                           else
8740                             no_cache=1
8741                           fi
8742
8743                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8744
8745 fi;
8746
8747           eval "$ac_cv_use_mdidoc"
8748           if test "$no_cache" != 1; then
8749             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
8750           fi
8751
8752           if test x"$enablestring" = xdisable; then
8753             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8754               result=no
8755             else
8756               result=yes
8757             fi
8758           else
8759             result=$wxUSE_MDI_ARCHITECTURE
8760           fi
8761
8762           echo "$as_me:$LINENO: result: $result" >&5
8763 echo "${ECHO_T}$result" >&6
8764
8765
8766           enablestring=
8767           defaultval=$wxUSE_ALL_FEATURES
8768           if test -z"$defaultval"; then
8769               if test x"$enablestring" = xdisable; then
8770                   defaultval=yes
8771               else
8772                   defaultval=no
8773               fi
8774           fi
8775
8776           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8777 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
8778           no_cache=0
8779           # Check whether --enable-loggui or --disable-loggui was given.
8780 if test "${enable_loggui+set}" = set; then
8781   enableval="$enable_loggui"
8782
8783                           if test "$enableval" = yes; then
8784                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
8785                           else
8786                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
8787                           fi
8788
8789 else
8790
8791                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
8792                           if test "x$LINE" != x ; then
8793                             eval "DEFAULT_$LINE"
8794                           else
8795                             no_cache=1
8796                           fi
8797
8798                           ac_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8799
8800 fi;
8801
8802           eval "$ac_cv_use_loggui"
8803           if test "$no_cache" != 1; then
8804             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
8805           fi
8806
8807           if test x"$enablestring" = xdisable; then
8808             if test $wxUSE_LOGGUI = yes; then
8809               result=no
8810             else
8811               result=yes
8812             fi
8813           else
8814             result=$wxUSE_LOGGUI
8815           fi
8816
8817           echo "$as_me:$LINENO: result: $result" >&5
8818 echo "${ECHO_T}$result" >&6
8819
8820
8821           enablestring=
8822           defaultval=$wxUSE_ALL_FEATURES
8823           if test -z"$defaultval"; then
8824               if test x"$enablestring" = xdisable; then
8825                   defaultval=yes
8826               else
8827                   defaultval=no
8828               fi
8829           fi
8830
8831           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8832 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
8833           no_cache=0
8834           # Check whether --enable-logwin or --disable-logwin was given.
8835 if test "${enable_logwin+set}" = set; then
8836   enableval="$enable_logwin"
8837
8838                           if test "$enableval" = yes; then
8839                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8840                           else
8841                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
8842                           fi
8843
8844 else
8845
8846                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
8847                           if test "x$LINE" != x ; then
8848                             eval "DEFAULT_$LINE"
8849                           else
8850                             no_cache=1
8851                           fi
8852
8853                           ac_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8854
8855 fi;
8856
8857           eval "$ac_cv_use_logwin"
8858           if test "$no_cache" != 1; then
8859             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
8860           fi
8861
8862           if test x"$enablestring" = xdisable; then
8863             if test $wxUSE_LOGWINDOW = yes; then
8864               result=no
8865             else
8866               result=yes
8867             fi
8868           else
8869             result=$wxUSE_LOGWINDOW
8870           fi
8871
8872           echo "$as_me:$LINENO: result: $result" >&5
8873 echo "${ECHO_T}$result" >&6
8874
8875
8876           enablestring=
8877           defaultval=$wxUSE_ALL_FEATURES
8878           if test -z"$defaultval"; then
8879               if test x"$enablestring" = xdisable; then
8880                   defaultval=yes
8881               else
8882                   defaultval=no
8883               fi
8884           fi
8885
8886           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8887 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
8888           no_cache=0
8889           # Check whether --enable-logdialog or --disable-logdialog was given.
8890 if test "${enable_logdialog+set}" = set; then
8891   enableval="$enable_logdialog"
8892
8893                           if test "$enableval" = yes; then
8894                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8895                           else
8896                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8897                           fi
8898
8899 else
8900
8901                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
8902                           if test "x$LINE" != x ; then
8903                             eval "DEFAULT_$LINE"
8904                           else
8905                             no_cache=1
8906                           fi
8907
8908                           ac_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8909
8910 fi;
8911
8912           eval "$ac_cv_use_logdialog"
8913           if test "$no_cache" != 1; then
8914             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
8915           fi
8916
8917           if test x"$enablestring" = xdisable; then
8918             if test $wxUSE_LOGDIALOG = yes; then
8919               result=no
8920             else
8921               result=yes
8922             fi
8923           else
8924             result=$wxUSE_LOGDIALOG
8925           fi
8926
8927           echo "$as_me:$LINENO: result: $result" >&5
8928 echo "${ECHO_T}$result" >&6
8929
8930
8931           enablestring=
8932           defaultval=$wxUSE_ALL_FEATURES
8933           if test -z"$defaultval"; then
8934               if test x"$enablestring" = xdisable; then
8935                   defaultval=yes
8936               else
8937                   defaultval=no
8938               fi
8939           fi
8940
8941           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8942 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
8943           no_cache=0
8944           # Check whether --enable-webkit or --disable-webkit was given.
8945 if test "${enable_webkit+set}" = set; then
8946   enableval="$enable_webkit"
8947
8948                           if test "$enableval" = yes; then
8949                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
8950                           else
8951                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
8952                           fi
8953
8954 else
8955
8956                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
8957                           if test "x$LINE" != x ; then
8958                             eval "DEFAULT_$LINE"
8959                           else
8960                             no_cache=1
8961                           fi
8962
8963                           ac_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
8964
8965 fi;
8966
8967           eval "$ac_cv_use_webkit"
8968           if test "$no_cache" != 1; then
8969             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
8970           fi
8971
8972           if test x"$enablestring" = xdisable; then
8973             if test $wxUSE_WEBKIT = yes; then
8974               result=no
8975             else
8976               result=yes
8977             fi
8978           else
8979             result=$wxUSE_WEBKIT
8980           fi
8981
8982           echo "$as_me:$LINENO: result: $result" >&5
8983 echo "${ECHO_T}$result" >&6
8984
8985
8986           enablestring=
8987           defaultval=$wxUSE_ALL_FEATURES
8988           if test -z"$defaultval"; then
8989               if test x"$enablestring" = xdisable; then
8990                   defaultval=yes
8991               else
8992                   defaultval=no
8993               fi
8994           fi
8995
8996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8997 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
8998           no_cache=0
8999           # Check whether --enable-richtext or --disable-richtext was given.
9000 if test "${enable_richtext+set}" = set; then
9001   enableval="$enable_richtext"
9002
9003                           if test "$enableval" = yes; then
9004                             ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
9005                           else
9006                             ac_cv_use_richtext='wxUSE_RICHTEXT=no'
9007                           fi
9008
9009 else
9010
9011                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
9012                           if test "x$LINE" != x ; then
9013                             eval "DEFAULT_$LINE"
9014                           else
9015                             no_cache=1
9016                           fi
9017
9018                           ac_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9019
9020 fi;
9021
9022           eval "$ac_cv_use_richtext"
9023           if test "$no_cache" != 1; then
9024             echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
9025           fi
9026
9027           if test x"$enablestring" = xdisable; then
9028             if test $wxUSE_RICHTEXT = yes; then
9029               result=no
9030             else
9031               result=yes
9032             fi
9033           else
9034             result=$wxUSE_RICHTEXT
9035           fi
9036
9037           echo "$as_me:$LINENO: result: $result" >&5
9038 echo "${ECHO_T}$result" >&6
9039
9040
9041           enablestring=
9042           defaultval=$wxUSE_ALL_FEATURES
9043           if test -z"$defaultval"; then
9044               if test x"$enablestring" = xdisable; then
9045                   defaultval=yes
9046               else
9047                   defaultval=no
9048               fi
9049           fi
9050
9051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9052 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
9053           no_cache=0
9054           # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
9055 if test "${enable_graphics_ctx+set}" = set; then
9056   enableval="$enable_graphics_ctx"
9057
9058                           if test "$enableval" = yes; then
9059                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9060                           else
9061                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9062                           fi
9063
9064 else
9065
9066                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
9067                           if test "x$LINE" != x ; then
9068                             eval "DEFAULT_$LINE"
9069                           else
9070                             no_cache=1
9071                           fi
9072
9073                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9074
9075 fi;
9076
9077           eval "$ac_cv_use_graphics_ctx"
9078           if test "$no_cache" != 1; then
9079             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
9080           fi
9081
9082           if test x"$enablestring" = xdisable; then
9083             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9084               result=no
9085             else
9086               result=yes
9087             fi
9088           else
9089             result=$wxUSE_GRAPHICS_CONTEXT
9090           fi
9091
9092           echo "$as_me:$LINENO: result: $result" >&5
9093 echo "${ECHO_T}$result" >&6
9094
9095
9096           enablestring=
9097           defaultval=$wxUSE_ALL_FEATURES
9098           if test -z"$defaultval"; then
9099               if test x"$enablestring" = xdisable; then
9100                   defaultval=yes
9101               else
9102                   defaultval=no
9103               fi
9104           fi
9105
9106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9107 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
9108           no_cache=0
9109           # Check whether --enable-postscript or --disable-postscript was given.
9110 if test "${enable_postscript+set}" = set; then
9111   enableval="$enable_postscript"
9112
9113                           if test "$enableval" = yes; then
9114                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9115                           else
9116                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9117                           fi
9118
9119 else
9120
9121                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
9122                           if test "x$LINE" != x ; then
9123                             eval "DEFAULT_$LINE"
9124                           else
9125                             no_cache=1
9126                           fi
9127
9128                           ac_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9129
9130 fi;
9131
9132           eval "$ac_cv_use_postscript"
9133           if test "$no_cache" != 1; then
9134             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
9135           fi
9136
9137           if test x"$enablestring" = xdisable; then
9138             if test $wxUSE_POSTSCRIPT = yes; then
9139               result=no
9140             else
9141               result=yes
9142             fi
9143           else
9144             result=$wxUSE_POSTSCRIPT
9145           fi
9146
9147           echo "$as_me:$LINENO: result: $result" >&5
9148 echo "${ECHO_T}$result" >&6
9149
9150
9151
9152
9153           enablestring=
9154           defaultval=$wxUSE_ALL_FEATURES
9155           if test -z"$defaultval"; then
9156               if test x"$enablestring" = xdisable; then
9157                   defaultval=yes
9158               else
9159                   defaultval=no
9160               fi
9161           fi
9162
9163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9164 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
9165           no_cache=0
9166           # Check whether --enable-clipboard or --disable-clipboard was given.
9167 if test "${enable_clipboard+set}" = set; then
9168   enableval="$enable_clipboard"
9169
9170                           if test "$enableval" = yes; then
9171                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9172                           else
9173                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9174                           fi
9175
9176 else
9177
9178                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
9179                           if test "x$LINE" != x ; then
9180                             eval "DEFAULT_$LINE"
9181                           else
9182                             no_cache=1
9183                           fi
9184
9185                           ac_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9186
9187 fi;
9188
9189           eval "$ac_cv_use_clipboard"
9190           if test "$no_cache" != 1; then
9191             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
9192           fi
9193
9194           if test x"$enablestring" = xdisable; then
9195             if test $wxUSE_CLIPBOARD = yes; then
9196               result=no
9197             else
9198               result=yes
9199             fi
9200           else
9201             result=$wxUSE_CLIPBOARD
9202           fi
9203
9204           echo "$as_me:$LINENO: result: $result" >&5
9205 echo "${ECHO_T}$result" >&6
9206
9207
9208           enablestring=
9209           defaultval=$wxUSE_ALL_FEATURES
9210           if test -z"$defaultval"; then
9211               if test x"$enablestring" = xdisable; then
9212                   defaultval=yes
9213               else
9214                   defaultval=no
9215               fi
9216           fi
9217
9218           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9219 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
9220           no_cache=0
9221           # Check whether --enable-dnd or --disable-dnd was given.
9222 if test "${enable_dnd+set}" = set; then
9223   enableval="$enable_dnd"
9224
9225                           if test "$enableval" = yes; then
9226                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9227                           else
9228                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9229                           fi
9230
9231 else
9232
9233                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
9234                           if test "x$LINE" != x ; then
9235                             eval "DEFAULT_$LINE"
9236                           else
9237                             no_cache=1
9238                           fi
9239
9240                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9241
9242 fi;
9243
9244           eval "$ac_cv_use_dnd"
9245           if test "$no_cache" != 1; then
9246             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
9247           fi
9248
9249           if test x"$enablestring" = xdisable; then
9250             if test $wxUSE_DRAG_AND_DROP = yes; then
9251               result=no
9252             else
9253               result=yes
9254             fi
9255           else
9256             result=$wxUSE_DRAG_AND_DROP
9257           fi
9258
9259           echo "$as_me:$LINENO: result: $result" >&5
9260 echo "${ECHO_T}$result" >&6
9261
9262
9263           enablestring=
9264           defaultval=$wxUSE_ALL_FEATURES
9265           if test -z"$defaultval"; then
9266               if test x"$enablestring" = xdisable; then
9267                   defaultval=yes
9268               else
9269                   defaultval=no
9270               fi
9271           fi
9272
9273           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9274 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9275           no_cache=0
9276           # Check whether --enable-metafile or --disable-metafile was given.
9277 if test "${enable_metafile+set}" = set; then
9278   enableval="$enable_metafile"
9279
9280                           if test "$enableval" = yes; then
9281                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9282                           else
9283                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9284                           fi
9285
9286 else
9287
9288                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
9289                           if test "x$LINE" != x ; then
9290                             eval "DEFAULT_$LINE"
9291                           else
9292                             no_cache=1
9293                           fi
9294
9295                           ac_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9296
9297 fi;
9298
9299           eval "$ac_cv_use_metafile"
9300           if test "$no_cache" != 1; then
9301             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9302           fi
9303
9304           if test x"$enablestring" = xdisable; then
9305             if test $wxUSE_METAFILE = yes; then
9306               result=no
9307             else
9308               result=yes
9309             fi
9310           else
9311             result=$wxUSE_METAFILE
9312           fi
9313
9314           echo "$as_me:$LINENO: result: $result" >&5
9315 echo "${ECHO_T}$result" >&6
9316
9317
9318
9319
9320           enablestring=
9321           defaultval=$wxUSE_ALL_FEATURES
9322           if test -z"$defaultval"; then
9323               if test x"$enablestring" = xdisable; then
9324                   defaultval=yes
9325               else
9326                   defaultval=no
9327               fi
9328           fi
9329
9330           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9331 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
9332           no_cache=0
9333           # Check whether --enable-controls or --disable-controls was given.
9334 if test "${enable_controls+set}" = set; then
9335   enableval="$enable_controls"
9336
9337                           if test "$enableval" = yes; then
9338                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
9339                           else
9340                             ac_cv_use_controls='wxUSE_CONTROLS=no'
9341                           fi
9342
9343 else
9344
9345                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
9346                           if test "x$LINE" != x ; then
9347                             eval "DEFAULT_$LINE"
9348                           else
9349                             no_cache=1
9350                           fi
9351
9352                           ac_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9353
9354 fi;
9355
9356           eval "$ac_cv_use_controls"
9357           if test "$no_cache" != 1; then
9358             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
9359           fi
9360
9361           if test x"$enablestring" = xdisable; then
9362             if test $wxUSE_CONTROLS = yes; then
9363               result=no
9364             else
9365               result=yes
9366             fi
9367           else
9368             result=$wxUSE_CONTROLS
9369           fi
9370
9371           echo "$as_me:$LINENO: result: $result" >&5
9372 echo "${ECHO_T}$result" >&6
9373
9374
9375 if test "$wxUSE_CONTROLS" = "yes"; then
9376   DEFAULT_wxUSE_ACCEL=yes
9377   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9378   DEFAULT_wxUSE_BMPBUTTON=yes
9379   DEFAULT_wxUSE_BUTTON=yes
9380   DEFAULT_wxUSE_CALCTRL=yes
9381   DEFAULT_wxUSE_CARET=yes
9382   DEFAULT_wxUSE_COMBOBOX=yes
9383   DEFAULT_wxUSE_CHECKBOX=yes
9384   DEFAULT_wxUSE_CHECKLISTBOX=yes
9385   DEFAULT_wxUSE_CHOICE=yes
9386   DEFAULT_wxUSE_CHOICEBOOK=yes
9387   DEFAULT_wxUSE_COLLPANE=yes
9388   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9389   DEFAULT_wxUSE_COMBOBOX=yes
9390   DEFAULT_wxUSE_DATEPICKCTRL=yes
9391   DEFAULT_wxUSE_DISPLAY=yes
9392   DEFAULT_wxUSE_DETECT_SM=yes
9393   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9394   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9395   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9396   DEFAULT_wxUSE_GAUGE=yes
9397   DEFAULT_wxUSE_GRID=yes
9398   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9399   DEFAULT_wxUSE_DATAVIEWCTRL=no
9400   DEFAULT_wxUSE_IMAGLIST=yes
9401   DEFAULT_wxUSE_LISTBOOK=yes
9402   DEFAULT_wxUSE_LISTBOX=yes
9403   DEFAULT_wxUSE_LISTCTRL=yes
9404   DEFAULT_wxUSE_NOTEBOOK=yes
9405   DEFAULT_wxUSE_RADIOBOX=yes
9406   DEFAULT_wxUSE_RADIOBTN=yes
9407   DEFAULT_wxUSE_SASH=yes
9408   DEFAULT_wxUSE_SCROLLBAR=yes
9409   DEFAULT_wxUSE_SEARCHCTRL=yes
9410   DEFAULT_wxUSE_SLIDER=yes
9411   DEFAULT_wxUSE_SPINBTN=yes
9412   DEFAULT_wxUSE_SPINCTRL=yes
9413   DEFAULT_wxUSE_SPLITTER=yes
9414   DEFAULT_wxUSE_STATBMP=yes
9415   DEFAULT_wxUSE_STATBOX=yes
9416   DEFAULT_wxUSE_STATLINE=yes
9417   DEFAULT_wxUSE_STATUSBAR=yes
9418   DEFAULT_wxUSE_TAB_DIALOG=yes
9419   DEFAULT_wxUSE_TOGGLEBTN=yes
9420   DEFAULT_wxUSE_TOOLBAR=yes
9421   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9422   DEFAULT_wxUSE_TOOLTIPS=yes
9423   DEFAULT_wxUSE_TREEBOOK=yes
9424   DEFAULT_wxUSE_TOOLBOOK=yes
9425   DEFAULT_wxUSE_TREECTRL=yes
9426   DEFAULT_wxUSE_POPUPWIN=yes
9427   DEFAULT_wxUSE_TIPWINDOW=yes
9428 elif test "$wxUSE_CONTROLS" = "no"; then
9429   DEFAULT_wxUSE_ACCEL=no
9430   DEFAULT_wxUSE_ANIMATIONCTRL=no
9431   DEFAULT_wxUSE_BMPBUTTON=no
9432   DEFAULT_wxUSE_BUTTON=no
9433   DEFAULT_wxUSE_CALCTRL=no
9434   DEFAULT_wxUSE_CARET=no
9435   DEFAULT_wxUSE_COLLPANE=no
9436   DEFAULT_wxUSE_COMBOBOX=no
9437   DEFAULT_wxUSE_CHECKBOX=no
9438   DEFAULT_wxUSE_CHECKLISTBOX=no
9439   DEFAULT_wxUSE_CHOICE=no
9440   DEFAULT_wxUSE_CHOICEBOOK=no
9441   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9442   DEFAULT_wxUSE_COMBOBOX=no
9443   DEFAULT_wxUSE_DATEPICKCTRL=no
9444   DEFAULT_wxUSE_DISPLAY=no
9445   DEFAULT_wxUSE_DETECT_SM=no
9446   DEFAULT_wxUSE_DIRPICKERCTRL=no
9447   DEFAULT_wxUSE_FILEPICKERCTRL=no
9448   DEFAULT_wxUSE_FONTPICKERCTRL=no
9449   DEFAULT_wxUSE_GAUGE=no
9450   DEFAULT_wxUSE_GRID=no
9451   DEFAULT_wxUSE_HYPERLINKCTRL=no
9452   DEFAULT_wxUSE_DATAVIEWCTRL=no
9453   DEFAULT_wxUSE_IMAGLIST=no
9454   DEFAULT_wxUSE_LISTBOOK=no
9455   DEFAULT_wxUSE_LISTBOX=no
9456   DEFAULT_wxUSE_LISTCTRL=no
9457   DEFAULT_wxUSE_NOTEBOOK=no
9458   DEFAULT_wxUSE_RADIOBOX=no
9459   DEFAULT_wxUSE_RADIOBTN=no
9460   DEFAULT_wxUSE_SASH=no
9461   DEFAULT_wxUSE_SCROLLBAR=no
9462   DEFAULT_wxUSE_SEARCHCTRL=no
9463   DEFAULT_wxUSE_SLIDER=no
9464   DEFAULT_wxUSE_SPINBTN=no
9465   DEFAULT_wxUSE_SPINCTRL=no
9466   DEFAULT_wxUSE_SPLITTER=no
9467   DEFAULT_wxUSE_STATBMP=no
9468   DEFAULT_wxUSE_STATBOX=no
9469   DEFAULT_wxUSE_STATLINE=no
9470   DEFAULT_wxUSE_STATUSBAR=no
9471   DEFAULT_wxUSE_TAB_DIALOG=no
9472   DEFAULT_wxUSE_TOGGLEBTN=no
9473   DEFAULT_wxUSE_TOOLBAR=no
9474   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9475   DEFAULT_wxUSE_TOOLTIPS=no
9476   DEFAULT_wxUSE_TREEBOOK=no
9477   DEFAULT_wxUSE_TOOLBOOK=no
9478   DEFAULT_wxUSE_TREECTRL=no
9479   DEFAULT_wxUSE_POPUPWIN=no
9480   DEFAULT_wxUSE_TIPWINDOW=no
9481 fi
9482
9483
9484           enablestring=
9485           defaultval=$wxUSE_ALL_FEATURES
9486           if test -z"$defaultval"; then
9487               if test x"$enablestring" = xdisable; then
9488                   defaultval=yes
9489               else
9490                   defaultval=no
9491               fi
9492           fi
9493
9494           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
9495 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
9496           no_cache=0
9497           # Check whether --enable-accel or --disable-accel was given.
9498 if test "${enable_accel+set}" = set; then
9499   enableval="$enable_accel"
9500
9501                           if test "$enableval" = yes; then
9502                             ac_cv_use_accel='wxUSE_ACCEL=yes'
9503                           else
9504                             ac_cv_use_accel='wxUSE_ACCEL=no'
9505                           fi
9506
9507 else
9508
9509                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
9510                           if test "x$LINE" != x ; then
9511                             eval "DEFAULT_$LINE"
9512                           else
9513                             no_cache=1
9514                           fi
9515
9516                           ac_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9517
9518 fi;
9519
9520           eval "$ac_cv_use_accel"
9521           if test "$no_cache" != 1; then
9522             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
9523           fi
9524
9525           if test x"$enablestring" = xdisable; then
9526             if test $wxUSE_ACCEL = yes; then
9527               result=no
9528             else
9529               result=yes
9530             fi
9531           else
9532             result=$wxUSE_ACCEL
9533           fi
9534
9535           echo "$as_me:$LINENO: result: $result" >&5
9536 echo "${ECHO_T}$result" >&6
9537
9538
9539           enablestring=
9540           defaultval=$wxUSE_ALL_FEATURES
9541           if test -z"$defaultval"; then
9542               if test x"$enablestring" = xdisable; then
9543                   defaultval=yes
9544               else
9545                   defaultval=no
9546               fi
9547           fi
9548
9549           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9550 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
9551           no_cache=0
9552           # Check whether --enable-animatectrl or --disable-animatectrl was given.
9553 if test "${enable_animatectrl+set}" = set; then
9554   enableval="$enable_animatectrl"
9555
9556                           if test "$enableval" = yes; then
9557                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9558                           else
9559                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9560                           fi
9561
9562 else
9563
9564                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
9565                           if test "x$LINE" != x ; then
9566                             eval "DEFAULT_$LINE"
9567                           else
9568                             no_cache=1
9569                           fi
9570
9571                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9572
9573 fi;
9574
9575           eval "$ac_cv_use_animatectrl"
9576           if test "$no_cache" != 1; then
9577             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
9578           fi
9579
9580           if test x"$enablestring" = xdisable; then
9581             if test $wxUSE_ANIMATIONCTRL = yes; then
9582               result=no
9583             else
9584               result=yes
9585             fi
9586           else
9587             result=$wxUSE_ANIMATIONCTRL
9588           fi
9589
9590           echo "$as_me:$LINENO: result: $result" >&5
9591 echo "${ECHO_T}$result" >&6
9592
9593
9594           enablestring=
9595           defaultval=$wxUSE_ALL_FEATURES
9596           if test -z"$defaultval"; then
9597               if test x"$enablestring" = xdisable; then
9598                   defaultval=yes
9599               else
9600                   defaultval=no
9601               fi
9602           fi
9603
9604           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9605 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
9606           no_cache=0
9607           # Check whether --enable-button or --disable-button was given.
9608 if test "${enable_button+set}" = set; then
9609   enableval="$enable_button"
9610
9611                           if test "$enableval" = yes; then
9612                             ac_cv_use_button='wxUSE_BUTTON=yes'
9613                           else
9614                             ac_cv_use_button='wxUSE_BUTTON=no'
9615                           fi
9616
9617 else
9618
9619                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
9620                           if test "x$LINE" != x ; then
9621                             eval "DEFAULT_$LINE"
9622                           else
9623                             no_cache=1
9624                           fi
9625
9626                           ac_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9627
9628 fi;
9629
9630           eval "$ac_cv_use_button"
9631           if test "$no_cache" != 1; then
9632             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
9633           fi
9634
9635           if test x"$enablestring" = xdisable; then
9636             if test $wxUSE_BUTTON = yes; then
9637               result=no
9638             else
9639               result=yes
9640             fi
9641           else
9642             result=$wxUSE_BUTTON
9643           fi
9644
9645           echo "$as_me:$LINENO: result: $result" >&5
9646 echo "${ECHO_T}$result" >&6
9647
9648
9649           enablestring=
9650           defaultval=$wxUSE_ALL_FEATURES
9651           if test -z"$defaultval"; then
9652               if test x"$enablestring" = xdisable; then
9653                   defaultval=yes
9654               else
9655                   defaultval=no
9656               fi
9657           fi
9658
9659           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9660 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
9661           no_cache=0
9662           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
9663 if test "${enable_bmpbutton+set}" = set; then
9664   enableval="$enable_bmpbutton"
9665
9666                           if test "$enableval" = yes; then
9667                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9668                           else
9669                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9670                           fi
9671
9672 else
9673
9674                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
9675                           if test "x$LINE" != x ; then
9676                             eval "DEFAULT_$LINE"
9677                           else
9678                             no_cache=1
9679                           fi
9680
9681                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9682
9683 fi;
9684
9685           eval "$ac_cv_use_bmpbutton"
9686           if test "$no_cache" != 1; then
9687             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
9688           fi
9689
9690           if test x"$enablestring" = xdisable; then
9691             if test $wxUSE_BMPBUTTON = yes; then
9692               result=no
9693             else
9694               result=yes
9695             fi
9696           else
9697             result=$wxUSE_BMPBUTTON
9698           fi
9699
9700           echo "$as_me:$LINENO: result: $result" >&5
9701 echo "${ECHO_T}$result" >&6
9702
9703
9704           enablestring=
9705           defaultval=$wxUSE_ALL_FEATURES
9706           if test -z"$defaultval"; then
9707               if test x"$enablestring" = xdisable; then
9708                   defaultval=yes
9709               else
9710                   defaultval=no
9711               fi
9712           fi
9713
9714           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9715 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
9716           no_cache=0
9717           # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
9718 if test "${enable_bmpcombobox+set}" = set; then
9719   enableval="$enable_bmpcombobox"
9720
9721                           if test "$enableval" = yes; then
9722                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9723                           else
9724                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9725                           fi
9726
9727 else
9728
9729                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
9730                           if test "x$LINE" != x ; then
9731                             eval "DEFAULT_$LINE"
9732                           else
9733                             no_cache=1
9734                           fi
9735
9736                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9737
9738 fi;
9739
9740           eval "$ac_cv_use_bmpcombobox"
9741           if test "$no_cache" != 1; then
9742             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
9743           fi
9744
9745           if test x"$enablestring" = xdisable; then
9746             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9747               result=no
9748             else
9749               result=yes
9750             fi
9751           else
9752             result=$wxUSE_BITMAPCOMBOBOX
9753           fi
9754
9755           echo "$as_me:$LINENO: result: $result" >&5
9756 echo "${ECHO_T}$result" >&6
9757
9758
9759           enablestring=
9760           defaultval=$wxUSE_ALL_FEATURES
9761           if test -z"$defaultval"; then
9762               if test x"$enablestring" = xdisable; then
9763                   defaultval=yes
9764               else
9765                   defaultval=no
9766               fi
9767           fi
9768
9769           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9770 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
9771           no_cache=0
9772           # Check whether --enable-calendar or --disable-calendar was given.
9773 if test "${enable_calendar+set}" = set; then
9774   enableval="$enable_calendar"
9775
9776                           if test "$enableval" = yes; then
9777                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
9778                           else
9779                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
9780                           fi
9781
9782 else
9783
9784                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
9785                           if test "x$LINE" != x ; then
9786                             eval "DEFAULT_$LINE"
9787                           else
9788                             no_cache=1
9789                           fi
9790
9791                           ac_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9792
9793 fi;
9794
9795           eval "$ac_cv_use_calendar"
9796           if test "$no_cache" != 1; then
9797             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
9798           fi
9799
9800           if test x"$enablestring" = xdisable; then
9801             if test $wxUSE_CALCTRL = yes; then
9802               result=no
9803             else
9804               result=yes
9805             fi
9806           else
9807             result=$wxUSE_CALCTRL
9808           fi
9809
9810           echo "$as_me:$LINENO: result: $result" >&5
9811 echo "${ECHO_T}$result" >&6
9812
9813
9814           enablestring=
9815           defaultval=$wxUSE_ALL_FEATURES
9816           if test -z"$defaultval"; then
9817               if test x"$enablestring" = xdisable; then
9818                   defaultval=yes
9819               else
9820                   defaultval=no
9821               fi
9822           fi
9823
9824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9825 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
9826           no_cache=0
9827           # Check whether --enable-caret or --disable-caret was given.
9828 if test "${enable_caret+set}" = set; then
9829   enableval="$enable_caret"
9830
9831                           if test "$enableval" = yes; then
9832                             ac_cv_use_caret='wxUSE_CARET=yes'
9833                           else
9834                             ac_cv_use_caret='wxUSE_CARET=no'
9835                           fi
9836
9837 else
9838
9839                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
9840                           if test "x$LINE" != x ; then
9841                             eval "DEFAULT_$LINE"
9842                           else
9843                             no_cache=1
9844                           fi
9845
9846                           ac_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9847
9848 fi;
9849
9850           eval "$ac_cv_use_caret"
9851           if test "$no_cache" != 1; then
9852             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
9853           fi
9854
9855           if test x"$enablestring" = xdisable; then
9856             if test $wxUSE_CARET = yes; then
9857               result=no
9858             else
9859               result=yes
9860             fi
9861           else
9862             result=$wxUSE_CARET
9863           fi
9864
9865           echo "$as_me:$LINENO: result: $result" >&5
9866 echo "${ECHO_T}$result" >&6
9867
9868
9869           enablestring=
9870           defaultval=$wxUSE_ALL_FEATURES
9871           if test -z"$defaultval"; then
9872               if test x"$enablestring" = xdisable; then
9873                   defaultval=yes
9874               else
9875                   defaultval=no
9876               fi
9877           fi
9878
9879           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9880 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
9881           no_cache=0
9882           # Check whether --enable-checkbox or --disable-checkbox was given.
9883 if test "${enable_checkbox+set}" = set; then
9884   enableval="$enable_checkbox"
9885
9886                           if test "$enableval" = yes; then
9887                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9888                           else
9889                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
9890                           fi
9891
9892 else
9893
9894                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
9895                           if test "x$LINE" != x ; then
9896                             eval "DEFAULT_$LINE"
9897                           else
9898                             no_cache=1
9899                           fi
9900
9901                           ac_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9902
9903 fi;
9904
9905           eval "$ac_cv_use_checkbox"
9906           if test "$no_cache" != 1; then
9907             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
9908           fi
9909
9910           if test x"$enablestring" = xdisable; then
9911             if test $wxUSE_CHECKBOX = yes; then
9912               result=no
9913             else
9914               result=yes
9915             fi
9916           else
9917             result=$wxUSE_CHECKBOX
9918           fi
9919
9920           echo "$as_me:$LINENO: result: $result" >&5
9921 echo "${ECHO_T}$result" >&6
9922
9923
9924           enablestring=
9925           defaultval=$wxUSE_ALL_FEATURES
9926           if test -z"$defaultval"; then
9927               if test x"$enablestring" = xdisable; then
9928                   defaultval=yes
9929               else
9930                   defaultval=no
9931               fi
9932           fi
9933
9934           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9935 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
9936           no_cache=0
9937           # Check whether --enable-checklst or --disable-checklst was given.
9938 if test "${enable_checklst+set}" = set; then
9939   enableval="$enable_checklst"
9940
9941                           if test "$enableval" = yes; then
9942                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
9943                           else
9944                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
9945                           fi
9946
9947 else
9948
9949                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
9950                           if test "x$LINE" != x ; then
9951                             eval "DEFAULT_$LINE"
9952                           else
9953                             no_cache=1
9954                           fi
9955
9956                           ac_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9957
9958 fi;
9959
9960           eval "$ac_cv_use_checklst"
9961           if test "$no_cache" != 1; then
9962             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
9963           fi
9964
9965           if test x"$enablestring" = xdisable; then
9966             if test $wxUSE_CHECKLST = yes; then
9967               result=no
9968             else
9969               result=yes
9970             fi
9971           else
9972             result=$wxUSE_CHECKLST
9973           fi
9974
9975           echo "$as_me:$LINENO: result: $result" >&5
9976 echo "${ECHO_T}$result" >&6
9977
9978
9979           enablestring=
9980           defaultval=$wxUSE_ALL_FEATURES
9981           if test -z"$defaultval"; then
9982               if test x"$enablestring" = xdisable; then
9983                   defaultval=yes
9984               else
9985                   defaultval=no
9986               fi
9987           fi
9988
9989           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9990 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
9991           no_cache=0
9992           # Check whether --enable-choice or --disable-choice was given.
9993 if test "${enable_choice+set}" = set; then
9994   enableval="$enable_choice"
9995
9996                           if test "$enableval" = yes; then
9997                             ac_cv_use_choice='wxUSE_CHOICE=yes'
9998                           else
9999                             ac_cv_use_choice='wxUSE_CHOICE=no'
10000                           fi
10001
10002 else
10003
10004                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
10005                           if test "x$LINE" != x ; then
10006                             eval "DEFAULT_$LINE"
10007                           else
10008                             no_cache=1
10009                           fi
10010
10011                           ac_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10012
10013 fi;
10014
10015           eval "$ac_cv_use_choice"
10016           if test "$no_cache" != 1; then
10017             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
10018           fi
10019
10020           if test x"$enablestring" = xdisable; then
10021             if test $wxUSE_CHOICE = yes; then
10022               result=no
10023             else
10024               result=yes
10025             fi
10026           else
10027             result=$wxUSE_CHOICE
10028           fi
10029
10030           echo "$as_me:$LINENO: result: $result" >&5
10031 echo "${ECHO_T}$result" >&6
10032
10033
10034           enablestring=
10035           defaultval=$wxUSE_ALL_FEATURES
10036           if test -z"$defaultval"; then
10037               if test x"$enablestring" = xdisable; then
10038                   defaultval=yes
10039               else
10040                   defaultval=no
10041               fi
10042           fi
10043
10044           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10045 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
10046           no_cache=0
10047           # Check whether --enable-choicebook or --disable-choicebook was given.
10048 if test "${enable_choicebook+set}" = set; then
10049   enableval="$enable_choicebook"
10050
10051                           if test "$enableval" = yes; then
10052                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10053                           else
10054                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10055                           fi
10056
10057 else
10058
10059                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
10060                           if test "x$LINE" != x ; then
10061                             eval "DEFAULT_$LINE"
10062                           else
10063                             no_cache=1
10064                           fi
10065
10066                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10067
10068 fi;
10069
10070           eval "$ac_cv_use_choicebook"
10071           if test "$no_cache" != 1; then
10072             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
10073           fi
10074
10075           if test x"$enablestring" = xdisable; then
10076             if test $wxUSE_CHOICEBOOK = yes; then
10077               result=no
10078             else
10079               result=yes
10080             fi
10081           else
10082             result=$wxUSE_CHOICEBOOK
10083           fi
10084
10085           echo "$as_me:$LINENO: result: $result" >&5
10086 echo "${ECHO_T}$result" >&6
10087
10088
10089           enablestring=
10090           defaultval=$wxUSE_ALL_FEATURES
10091           if test -z"$defaultval"; then
10092               if test x"$enablestring" = xdisable; then
10093                   defaultval=yes
10094               else
10095                   defaultval=no
10096               fi
10097           fi
10098
10099           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10100 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
10101           no_cache=0
10102           # Check whether --enable-collpane or --disable-collpane was given.
10103 if test "${enable_collpane+set}" = set; then
10104   enableval="$enable_collpane"
10105
10106                           if test "$enableval" = yes; then
10107                             ac_cv_use_collpane='wxUSE_COLLPANE=yes'
10108                           else
10109                             ac_cv_use_collpane='wxUSE_COLLPANE=no'
10110                           fi
10111
10112 else
10113
10114                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
10115                           if test "x$LINE" != x ; then
10116                             eval "DEFAULT_$LINE"
10117                           else
10118                             no_cache=1
10119                           fi
10120
10121                           ac_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10122
10123 fi;
10124
10125           eval "$ac_cv_use_collpane"
10126           if test "$no_cache" != 1; then
10127             echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
10128           fi
10129
10130           if test x"$enablestring" = xdisable; then
10131             if test $wxUSE_COLLPANE = yes; then
10132               result=no
10133             else
10134               result=yes
10135             fi
10136           else
10137             result=$wxUSE_COLLPANE
10138           fi
10139
10140           echo "$as_me:$LINENO: result: $result" >&5
10141 echo "${ECHO_T}$result" >&6
10142
10143
10144           enablestring=
10145           defaultval=$wxUSE_ALL_FEATURES
10146           if test -z"$defaultval"; then
10147               if test x"$enablestring" = xdisable; then
10148                   defaultval=yes
10149               else
10150                   defaultval=no
10151               fi
10152           fi
10153
10154           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10155 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
10156           no_cache=0
10157           # Check whether --enable-colourpicker or --disable-colourpicker was given.
10158 if test "${enable_colourpicker+set}" = set; then
10159   enableval="$enable_colourpicker"
10160
10161                           if test "$enableval" = yes; then
10162                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10163                           else
10164                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10165                           fi
10166
10167 else
10168
10169                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
10170                           if test "x$LINE" != x ; then
10171                             eval "DEFAULT_$LINE"
10172                           else
10173                             no_cache=1
10174                           fi
10175
10176                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10177
10178 fi;
10179
10180           eval "$ac_cv_use_colourpicker"
10181           if test "$no_cache" != 1; then
10182             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
10183           fi
10184
10185           if test x"$enablestring" = xdisable; then
10186             if test $wxUSE_COLOURPICKERCTRL = yes; then
10187               result=no
10188             else
10189               result=yes
10190             fi
10191           else
10192             result=$wxUSE_COLOURPICKERCTRL
10193           fi
10194
10195           echo "$as_me:$LINENO: result: $result" >&5
10196 echo "${ECHO_T}$result" >&6
10197
10198
10199           enablestring=
10200           defaultval=$wxUSE_ALL_FEATURES
10201           if test -z"$defaultval"; then
10202               if test x"$enablestring" = xdisable; then
10203                   defaultval=yes
10204               else
10205                   defaultval=no
10206               fi
10207           fi
10208
10209           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10210 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10211           no_cache=0
10212           # Check whether --enable-combobox or --disable-combobox was given.
10213 if test "${enable_combobox+set}" = set; then
10214   enableval="$enable_combobox"
10215
10216                           if test "$enableval" = yes; then
10217                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
10218                           else
10219                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
10220                           fi
10221
10222 else
10223
10224                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
10225                           if test "x$LINE" != x ; then
10226                             eval "DEFAULT_$LINE"
10227                           else
10228                             no_cache=1
10229                           fi
10230
10231                           ac_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10232
10233 fi;
10234
10235           eval "$ac_cv_use_combobox"
10236           if test "$no_cache" != 1; then
10237             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
10238           fi
10239
10240           if test x"$enablestring" = xdisable; then
10241             if test $wxUSE_COMBOBOX = yes; then
10242               result=no
10243             else
10244               result=yes
10245             fi
10246           else
10247             result=$wxUSE_COMBOBOX
10248           fi
10249
10250           echo "$as_me:$LINENO: result: $result" >&5
10251 echo "${ECHO_T}$result" >&6
10252
10253
10254           enablestring=
10255           defaultval=$wxUSE_ALL_FEATURES
10256           if test -z"$defaultval"; then
10257               if test x"$enablestring" = xdisable; then
10258                   defaultval=yes
10259               else
10260                   defaultval=no
10261               fi
10262           fi
10263
10264           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10265 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
10266           no_cache=0
10267           # Check whether --enable-comboctrl or --disable-comboctrl was given.
10268 if test "${enable_comboctrl+set}" = set; then
10269   enableval="$enable_comboctrl"
10270
10271                           if test "$enableval" = yes; then
10272                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10273                           else
10274                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10275                           fi
10276
10277 else
10278
10279                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
10280                           if test "x$LINE" != x ; then
10281                             eval "DEFAULT_$LINE"
10282                           else
10283                             no_cache=1
10284                           fi
10285
10286                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10287
10288 fi;
10289
10290           eval "$ac_cv_use_comboctrl"
10291           if test "$no_cache" != 1; then
10292             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
10293           fi
10294
10295           if test x"$enablestring" = xdisable; then
10296             if test $wxUSE_COMBOCTRL = yes; then
10297               result=no
10298             else
10299               result=yes
10300             fi
10301           else
10302             result=$wxUSE_COMBOCTRL
10303           fi
10304
10305           echo "$as_me:$LINENO: result: $result" >&5
10306 echo "${ECHO_T}$result" >&6
10307
10308
10309           enablestring=
10310           defaultval=$wxUSE_ALL_FEATURES
10311           if test -z"$defaultval"; then
10312               if test x"$enablestring" = xdisable; then
10313                   defaultval=yes
10314               else
10315                   defaultval=no
10316               fi
10317           fi
10318
10319           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10320 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
10321           no_cache=0
10322           # Check whether --enable-datepick or --disable-datepick was given.
10323 if test "${enable_datepick+set}" = set; then
10324   enableval="$enable_datepick"
10325
10326                           if test "$enableval" = yes; then
10327                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10328                           else
10329                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10330                           fi
10331
10332 else
10333
10334                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
10335                           if test "x$LINE" != x ; then
10336                             eval "DEFAULT_$LINE"
10337                           else
10338                             no_cache=1
10339                           fi
10340
10341                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10342
10343 fi;
10344
10345           eval "$ac_cv_use_datepick"
10346           if test "$no_cache" != 1; then
10347             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
10348           fi
10349
10350           if test x"$enablestring" = xdisable; then
10351             if test $wxUSE_DATEPICKCTRL = yes; then
10352               result=no
10353             else
10354               result=yes
10355             fi
10356           else
10357             result=$wxUSE_DATEPICKCTRL
10358           fi
10359
10360           echo "$as_me:$LINENO: result: $result" >&5
10361 echo "${ECHO_T}$result" >&6
10362
10363
10364           enablestring=
10365           defaultval=$wxUSE_ALL_FEATURES
10366           if test -z"$defaultval"; then
10367               if test x"$enablestring" = xdisable; then
10368                   defaultval=yes
10369               else
10370                   defaultval=no
10371               fi
10372           fi
10373
10374           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
10375 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
10376           no_cache=0
10377           # Check whether --enable-dirpicker or --disable-dirpicker was given.
10378 if test "${enable_dirpicker+set}" = set; then
10379   enableval="$enable_dirpicker"
10380
10381                           if test "$enableval" = yes; then
10382                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10383                           else
10384                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10385                           fi
10386
10387 else
10388
10389                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${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_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10397
10398 fi;
10399
10400           eval "$ac_cv_use_dirpicker"
10401           if test "$no_cache" != 1; then
10402             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
10403           fi
10404
10405           if test x"$enablestring" = xdisable; then
10406             if test $wxUSE_DIRPICKERCTRL = yes; then
10407               result=no
10408             else
10409               result=yes
10410             fi
10411           else
10412             result=$wxUSE_DIRPICKERCTRL
10413           fi
10414
10415           echo "$as_me:$LINENO: result: $result" >&5
10416 echo "${ECHO_T}$result" >&6
10417
10418
10419           enablestring=
10420           defaultval=$wxUSE_ALL_FEATURES
10421           if test -z"$defaultval"; then
10422               if test x"$enablestring" = xdisable; then
10423                   defaultval=yes
10424               else
10425                   defaultval=no
10426               fi
10427           fi
10428
10429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10430 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
10431           no_cache=0
10432           # Check whether --enable-display or --disable-display was given.
10433 if test "${enable_display+set}" = set; then
10434   enableval="$enable_display"
10435
10436                           if test "$enableval" = yes; then
10437                             ac_cv_use_display='wxUSE_DISPLAY=yes'
10438                           else
10439                             ac_cv_use_display='wxUSE_DISPLAY=no'
10440                           fi
10441
10442 else
10443
10444                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
10445                           if test "x$LINE" != x ; then
10446                             eval "DEFAULT_$LINE"
10447                           else
10448                             no_cache=1
10449                           fi
10450
10451                           ac_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10452
10453 fi;
10454
10455           eval "$ac_cv_use_display"
10456           if test "$no_cache" != 1; then
10457             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
10458           fi
10459
10460           if test x"$enablestring" = xdisable; then
10461             if test $wxUSE_DISPLAY = yes; then
10462               result=no
10463             else
10464               result=yes
10465             fi
10466           else
10467             result=$wxUSE_DISPLAY
10468           fi
10469
10470           echo "$as_me:$LINENO: result: $result" >&5
10471 echo "${ECHO_T}$result" >&6
10472
10473
10474           enablestring=
10475           defaultval=$wxUSE_ALL_FEATURES
10476           if test -z"$defaultval"; then
10477               if test x"$enablestring" = xdisable; then
10478                   defaultval=yes
10479               else
10480                   defaultval=no
10481               fi
10482           fi
10483
10484           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10485 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
10486           no_cache=0
10487           # Check whether --enable-detect_sm or --disable-detect_sm was given.
10488 if test "${enable_detect_sm+set}" = set; then
10489   enableval="$enable_detect_sm"
10490
10491                           if test "$enableval" = yes; then
10492                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10493                           else
10494                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10495                           fi
10496
10497 else
10498
10499                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
10500                           if test "x$LINE" != x ; then
10501                             eval "DEFAULT_$LINE"
10502                           else
10503                             no_cache=1
10504                           fi
10505
10506                           ac_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10507
10508 fi;
10509
10510           eval "$ac_cv_use_detect_sm"
10511           if test "$no_cache" != 1; then
10512             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
10513           fi
10514
10515           if test x"$enablestring" = xdisable; then
10516             if test $wxUSE_DETECT_SM = yes; then
10517               result=no
10518             else
10519               result=yes
10520             fi
10521           else
10522             result=$wxUSE_DETECT_SM
10523           fi
10524
10525           echo "$as_me:$LINENO: result: $result" >&5
10526 echo "${ECHO_T}$result" >&6
10527
10528
10529           enablestring=
10530           defaultval=$wxUSE_ALL_FEATURES
10531           if test -z"$defaultval"; then
10532               if test x"$enablestring" = xdisable; then
10533                   defaultval=yes
10534               else
10535                   defaultval=no
10536               fi
10537           fi
10538
10539           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10540 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6
10541           no_cache=0
10542           # Check whether --enable-editablebox or --disable-editablebox was given.
10543 if test "${enable_editablebox+set}" = set; then
10544   enableval="$enable_editablebox"
10545
10546                           if test "$enableval" = yes; then
10547                             ac_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10548                           else
10549                             ac_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10550                           fi
10551
10552 else
10553
10554                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
10555                           if test "x$LINE" != x ; then
10556                             eval "DEFAULT_$LINE"
10557                           else
10558                             no_cache=1
10559                           fi
10560
10561                           ac_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10562
10563 fi;
10564
10565           eval "$ac_cv_use_editablebox"
10566           if test "$no_cache" != 1; then
10567             echo $ac_cv_use_editablebox >> ${wx_arg_cache_file}.tmp
10568           fi
10569
10570           if test x"$enablestring" = xdisable; then
10571             if test $wxUSE_EDITABLELISTBOX = yes; then
10572               result=no
10573             else
10574               result=yes
10575             fi
10576           else
10577             result=$wxUSE_EDITABLELISTBOX
10578           fi
10579
10580           echo "$as_me:$LINENO: result: $result" >&5
10581 echo "${ECHO_T}$result" >&6
10582
10583
10584           enablestring=
10585           defaultval=$wxUSE_ALL_FEATURES
10586           if test -z"$defaultval"; then
10587               if test x"$enablestring" = xdisable; then
10588                   defaultval=yes
10589               else
10590                   defaultval=no
10591               fi
10592           fi
10593
10594           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10595 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
10596           no_cache=0
10597           # Check whether --enable-filepicker or --disable-filepicker was given.
10598 if test "${enable_filepicker+set}" = set; then
10599   enableval="$enable_filepicker"
10600
10601                           if test "$enableval" = yes; then
10602                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10603                           else
10604                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10605                           fi
10606
10607 else
10608
10609                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
10610                           if test "x$LINE" != x ; then
10611                             eval "DEFAULT_$LINE"
10612                           else
10613                             no_cache=1
10614                           fi
10615
10616                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10617
10618 fi;
10619
10620           eval "$ac_cv_use_filepicker"
10621           if test "$no_cache" != 1; then
10622             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
10623           fi
10624
10625           if test x"$enablestring" = xdisable; then
10626             if test $wxUSE_FILEPICKERCTRL = yes; then
10627               result=no
10628             else
10629               result=yes
10630             fi
10631           else
10632             result=$wxUSE_FILEPICKERCTRL
10633           fi
10634
10635           echo "$as_me:$LINENO: result: $result" >&5
10636 echo "${ECHO_T}$result" >&6
10637
10638
10639           enablestring=
10640           defaultval=$wxUSE_ALL_FEATURES
10641           if test -z"$defaultval"; then
10642               if test x"$enablestring" = xdisable; then
10643                   defaultval=yes
10644               else
10645                   defaultval=no
10646               fi
10647           fi
10648
10649           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10650 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
10651           no_cache=0
10652           # Check whether --enable-fontpicker or --disable-fontpicker was given.
10653 if test "${enable_fontpicker+set}" = set; then
10654   enableval="$enable_fontpicker"
10655
10656                           if test "$enableval" = yes; then
10657                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10658                           else
10659                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10660                           fi
10661
10662 else
10663
10664                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
10665                           if test "x$LINE" != x ; then
10666                             eval "DEFAULT_$LINE"
10667                           else
10668                             no_cache=1
10669                           fi
10670
10671                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10672
10673 fi;
10674
10675           eval "$ac_cv_use_fontpicker"
10676           if test "$no_cache" != 1; then
10677             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
10678           fi
10679
10680           if test x"$enablestring" = xdisable; then
10681             if test $wxUSE_FONTPICKERCTRL = yes; then
10682               result=no
10683             else
10684               result=yes
10685             fi
10686           else
10687             result=$wxUSE_FONTPICKERCTRL
10688           fi
10689
10690           echo "$as_me:$LINENO: result: $result" >&5
10691 echo "${ECHO_T}$result" >&6
10692
10693
10694           enablestring=
10695           defaultval=$wxUSE_ALL_FEATURES
10696           if test -z"$defaultval"; then
10697               if test x"$enablestring" = xdisable; then
10698                   defaultval=yes
10699               else
10700                   defaultval=no
10701               fi
10702           fi
10703
10704           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10705 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10706           no_cache=0
10707           # Check whether --enable-gauge or --disable-gauge was given.
10708 if test "${enable_gauge+set}" = set; then
10709   enableval="$enable_gauge"
10710
10711                           if test "$enableval" = yes; then
10712                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
10713                           else
10714                             ac_cv_use_gauge='wxUSE_GAUGE=no'
10715                           fi
10716
10717 else
10718
10719                           LINE=`grep "^wxUSE_GAUGE=" ${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_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10727
10728 fi;
10729
10730           eval "$ac_cv_use_gauge"
10731           if test "$no_cache" != 1; then
10732             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
10733           fi
10734
10735           if test x"$enablestring" = xdisable; then
10736             if test $wxUSE_GAUGE = yes; then
10737               result=no
10738             else
10739               result=yes
10740             fi
10741           else
10742             result=$wxUSE_GAUGE
10743           fi
10744
10745           echo "$as_me:$LINENO: result: $result" >&5
10746 echo "${ECHO_T}$result" >&6
10747
10748
10749           enablestring=
10750           defaultval=$wxUSE_ALL_FEATURES
10751           if test -z"$defaultval"; then
10752               if test x"$enablestring" = xdisable; then
10753                   defaultval=yes
10754               else
10755                   defaultval=no
10756               fi
10757           fi
10758
10759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10760 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10761           no_cache=0
10762           # Check whether --enable-grid or --disable-grid was given.
10763 if test "${enable_grid+set}" = set; then
10764   enableval="$enable_grid"
10765
10766                           if test "$enableval" = yes; then
10767                             ac_cv_use_grid='wxUSE_GRID=yes'
10768                           else
10769                             ac_cv_use_grid='wxUSE_GRID=no'
10770                           fi
10771
10772 else
10773
10774                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
10775                           if test "x$LINE" != x ; then
10776                             eval "DEFAULT_$LINE"
10777                           else
10778                             no_cache=1
10779                           fi
10780
10781                           ac_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10782
10783 fi;
10784
10785           eval "$ac_cv_use_grid"
10786           if test "$no_cache" != 1; then
10787             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
10788           fi
10789
10790           if test x"$enablestring" = xdisable; then
10791             if test $wxUSE_GRID = yes; then
10792               result=no
10793             else
10794               result=yes
10795             fi
10796           else
10797             result=$wxUSE_GRID
10798           fi
10799
10800           echo "$as_me:$LINENO: result: $result" >&5
10801 echo "${ECHO_T}$result" >&6
10802
10803
10804           enablestring=
10805           defaultval=$wxUSE_ALL_FEATURES
10806           if test -z"$defaultval"; then
10807               if test x"$enablestring" = xdisable; then
10808                   defaultval=yes
10809               else
10810                   defaultval=no
10811               fi
10812           fi
10813
10814           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10815 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
10816           no_cache=0
10817           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
10818 if test "${enable_dataviewctrl+set}" = set; then
10819   enableval="$enable_dataviewctrl"
10820
10821                           if test "$enableval" = yes; then
10822                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10823                           else
10824                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10825                           fi
10826
10827 else
10828
10829                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
10830                           if test "x$LINE" != x ; then
10831                             eval "DEFAULT_$LINE"
10832                           else
10833                             no_cache=1
10834                           fi
10835
10836                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10837
10838 fi;
10839
10840           eval "$ac_cv_use_dataviewctrl"
10841           if test "$no_cache" != 1; then
10842             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
10843           fi
10844
10845           if test x"$enablestring" = xdisable; then
10846             if test $wxUSE_DATAVIEWCTRL = yes; then
10847               result=no
10848             else
10849               result=yes
10850             fi
10851           else
10852             result=$wxUSE_DATAVIEWCTRL
10853           fi
10854
10855           echo "$as_me:$LINENO: result: $result" >&5
10856 echo "${ECHO_T}$result" >&6
10857
10858
10859           enablestring=
10860           defaultval=$wxUSE_ALL_FEATURES
10861           if test -z"$defaultval"; then
10862               if test x"$enablestring" = xdisable; then
10863                   defaultval=yes
10864               else
10865                   defaultval=no
10866               fi
10867           fi
10868
10869           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10870 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
10871           no_cache=0
10872           # Check whether --enable-hyperlink or --disable-hyperlink was given.
10873 if test "${enable_hyperlink+set}" = set; then
10874   enableval="$enable_hyperlink"
10875
10876                           if test "$enableval" = yes; then
10877                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10878                           else
10879                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10880                           fi
10881
10882 else
10883
10884                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
10885                           if test "x$LINE" != x ; then
10886                             eval "DEFAULT_$LINE"
10887                           else
10888                             no_cache=1
10889                           fi
10890
10891                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10892
10893 fi;
10894
10895           eval "$ac_cv_use_hyperlink"
10896           if test "$no_cache" != 1; then
10897             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
10898           fi
10899
10900           if test x"$enablestring" = xdisable; then
10901             if test $wxUSE_HYPERLINKCTRL = yes; then
10902               result=no
10903             else
10904               result=yes
10905             fi
10906           else
10907             result=$wxUSE_HYPERLINKCTRL
10908           fi
10909
10910           echo "$as_me:$LINENO: result: $result" >&5
10911 echo "${ECHO_T}$result" >&6
10912
10913
10914           enablestring=
10915           defaultval=$wxUSE_ALL_FEATURES
10916           if test -z"$defaultval"; then
10917               if test x"$enablestring" = xdisable; then
10918                   defaultval=yes
10919               else
10920                   defaultval=no
10921               fi
10922           fi
10923
10924           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10925 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10926           no_cache=0
10927           # Check whether --enable-imaglist or --disable-imaglist was given.
10928 if test "${enable_imaglist+set}" = set; then
10929   enableval="$enable_imaglist"
10930
10931                           if test "$enableval" = yes; then
10932                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10933                           else
10934                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
10935                           fi
10936
10937 else
10938
10939                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
10940                           if test "x$LINE" != x ; then
10941                             eval "DEFAULT_$LINE"
10942                           else
10943                             no_cache=1
10944                           fi
10945
10946                           ac_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10947
10948 fi;
10949
10950           eval "$ac_cv_use_imaglist"
10951           if test "$no_cache" != 1; then
10952             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
10953           fi
10954
10955           if test x"$enablestring" = xdisable; then
10956             if test $wxUSE_IMAGLIST = yes; then
10957               result=no
10958             else
10959               result=yes
10960             fi
10961           else
10962             result=$wxUSE_IMAGLIST
10963           fi
10964
10965           echo "$as_me:$LINENO: result: $result" >&5
10966 echo "${ECHO_T}$result" >&6
10967
10968
10969           enablestring=
10970           defaultval=$wxUSE_ALL_FEATURES
10971           if test -z"$defaultval"; then
10972               if test x"$enablestring" = xdisable; then
10973                   defaultval=yes
10974               else
10975                   defaultval=no
10976               fi
10977           fi
10978
10979           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10980 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
10981           no_cache=0
10982           # Check whether --enable-listbook or --disable-listbook was given.
10983 if test "${enable_listbook+set}" = set; then
10984   enableval="$enable_listbook"
10985
10986                           if test "$enableval" = yes; then
10987                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
10988                           else
10989                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
10990                           fi
10991
10992 else
10993
10994                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
10995                           if test "x$LINE" != x ; then
10996                             eval "DEFAULT_$LINE"
10997                           else
10998                             no_cache=1
10999                           fi
11000
11001                           ac_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11002
11003 fi;
11004
11005           eval "$ac_cv_use_listbook"
11006           if test "$no_cache" != 1; then
11007             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
11008           fi
11009
11010           if test x"$enablestring" = xdisable; then
11011             if test $wxUSE_LISTBOOK = yes; then
11012               result=no
11013             else
11014               result=yes
11015             fi
11016           else
11017             result=$wxUSE_LISTBOOK
11018           fi
11019
11020           echo "$as_me:$LINENO: result: $result" >&5
11021 echo "${ECHO_T}$result" >&6
11022
11023
11024           enablestring=
11025           defaultval=$wxUSE_ALL_FEATURES
11026           if test -z"$defaultval"; then
11027               if test x"$enablestring" = xdisable; then
11028                   defaultval=yes
11029               else
11030                   defaultval=no
11031               fi
11032           fi
11033
11034           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11035 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
11036           no_cache=0
11037           # Check whether --enable-listbox or --disable-listbox was given.
11038 if test "${enable_listbox+set}" = set; then
11039   enableval="$enable_listbox"
11040
11041                           if test "$enableval" = yes; then
11042                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
11043                           else
11044                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
11045                           fi
11046
11047 else
11048
11049                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
11050                           if test "x$LINE" != x ; then
11051                             eval "DEFAULT_$LINE"
11052                           else
11053                             no_cache=1
11054                           fi
11055
11056                           ac_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11057
11058 fi;
11059
11060           eval "$ac_cv_use_listbox"
11061           if test "$no_cache" != 1; then
11062             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
11063           fi
11064
11065           if test x"$enablestring" = xdisable; then
11066             if test $wxUSE_LISTBOX = yes; then
11067               result=no
11068             else
11069               result=yes
11070             fi
11071           else
11072             result=$wxUSE_LISTBOX
11073           fi
11074
11075           echo "$as_me:$LINENO: result: $result" >&5
11076 echo "${ECHO_T}$result" >&6
11077
11078
11079           enablestring=
11080           defaultval=$wxUSE_ALL_FEATURES
11081           if test -z"$defaultval"; then
11082               if test x"$enablestring" = xdisable; then
11083                   defaultval=yes
11084               else
11085                   defaultval=no
11086               fi
11087           fi
11088
11089           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11090 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
11091           no_cache=0
11092           # Check whether --enable-listctrl or --disable-listctrl was given.
11093 if test "${enable_listctrl+set}" = set; then
11094   enableval="$enable_listctrl"
11095
11096                           if test "$enableval" = yes; then
11097                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11098                           else
11099                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
11100                           fi
11101
11102 else
11103
11104                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
11105                           if test "x$LINE" != x ; then
11106                             eval "DEFAULT_$LINE"
11107                           else
11108                             no_cache=1
11109                           fi
11110
11111                           ac_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11112
11113 fi;
11114
11115           eval "$ac_cv_use_listctrl"
11116           if test "$no_cache" != 1; then
11117             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
11118           fi
11119
11120           if test x"$enablestring" = xdisable; then
11121             if test $wxUSE_LISTCTRL = yes; then
11122               result=no
11123             else
11124               result=yes
11125             fi
11126           else
11127             result=$wxUSE_LISTCTRL
11128           fi
11129
11130           echo "$as_me:$LINENO: result: $result" >&5
11131 echo "${ECHO_T}$result" >&6
11132
11133
11134           enablestring=
11135           defaultval=$wxUSE_ALL_FEATURES
11136           if test -z"$defaultval"; then
11137               if test x"$enablestring" = xdisable; then
11138                   defaultval=yes
11139               else
11140                   defaultval=no
11141               fi
11142           fi
11143
11144           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11145 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
11146           no_cache=0
11147           # Check whether --enable-notebook or --disable-notebook was given.
11148 if test "${enable_notebook+set}" = set; then
11149   enableval="$enable_notebook"
11150
11151                           if test "$enableval" = yes; then
11152                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11153                           else
11154                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
11155                           fi
11156
11157 else
11158
11159                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
11160                           if test "x$LINE" != x ; then
11161                             eval "DEFAULT_$LINE"
11162                           else
11163                             no_cache=1
11164                           fi
11165
11166                           ac_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11167
11168 fi;
11169
11170           eval "$ac_cv_use_notebook"
11171           if test "$no_cache" != 1; then
11172             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
11173           fi
11174
11175           if test x"$enablestring" = xdisable; then
11176             if test $wxUSE_NOTEBOOK = yes; then
11177               result=no
11178             else
11179               result=yes
11180             fi
11181           else
11182             result=$wxUSE_NOTEBOOK
11183           fi
11184
11185           echo "$as_me:$LINENO: result: $result" >&5
11186 echo "${ECHO_T}$result" >&6
11187
11188
11189           enablestring=
11190           defaultval=$wxUSE_ALL_FEATURES
11191           if test -z"$defaultval"; then
11192               if test x"$enablestring" = xdisable; then
11193                   defaultval=yes
11194               else
11195                   defaultval=no
11196               fi
11197           fi
11198
11199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11200 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
11201           no_cache=0
11202           # Check whether --enable-odcombobox or --disable-odcombobox was given.
11203 if test "${enable_odcombobox+set}" = set; then
11204   enableval="$enable_odcombobox"
11205
11206                           if test "$enableval" = yes; then
11207                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11208                           else
11209                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11210                           fi
11211
11212 else
11213
11214                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
11215                           if test "x$LINE" != x ; then
11216                             eval "DEFAULT_$LINE"
11217                           else
11218                             no_cache=1
11219                           fi
11220
11221                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11222
11223 fi;
11224
11225           eval "$ac_cv_use_odcombobox"
11226           if test "$no_cache" != 1; then
11227             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
11228           fi
11229
11230           if test x"$enablestring" = xdisable; then
11231             if test $wxUSE_ODCOMBOBOX = yes; then
11232               result=no
11233             else
11234               result=yes
11235             fi
11236           else
11237             result=$wxUSE_ODCOMBOBOX
11238           fi
11239
11240           echo "$as_me:$LINENO: result: $result" >&5
11241 echo "${ECHO_T}$result" >&6
11242
11243
11244           enablestring=
11245           defaultval=$wxUSE_ALL_FEATURES
11246           if test -z"$defaultval"; then
11247               if test x"$enablestring" = xdisable; then
11248                   defaultval=yes
11249               else
11250                   defaultval=no
11251               fi
11252           fi
11253
11254           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11255 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
11256           no_cache=0
11257           # Check whether --enable-radiobox or --disable-radiobox was given.
11258 if test "${enable_radiobox+set}" = set; then
11259   enableval="$enable_radiobox"
11260
11261                           if test "$enableval" = yes; then
11262                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11263                           else
11264                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
11265                           fi
11266
11267 else
11268
11269                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
11270                           if test "x$LINE" != x ; then
11271                             eval "DEFAULT_$LINE"
11272                           else
11273                             no_cache=1
11274                           fi
11275
11276                           ac_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11277
11278 fi;
11279
11280           eval "$ac_cv_use_radiobox"
11281           if test "$no_cache" != 1; then
11282             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
11283           fi
11284
11285           if test x"$enablestring" = xdisable; then
11286             if test $wxUSE_RADIOBOX = yes; then
11287               result=no
11288             else
11289               result=yes
11290             fi
11291           else
11292             result=$wxUSE_RADIOBOX
11293           fi
11294
11295           echo "$as_me:$LINENO: result: $result" >&5
11296 echo "${ECHO_T}$result" >&6
11297
11298
11299           enablestring=
11300           defaultval=$wxUSE_ALL_FEATURES
11301           if test -z"$defaultval"; then
11302               if test x"$enablestring" = xdisable; then
11303                   defaultval=yes
11304               else
11305                   defaultval=no
11306               fi
11307           fi
11308
11309           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11310 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
11311           no_cache=0
11312           # Check whether --enable-radiobtn or --disable-radiobtn was given.
11313 if test "${enable_radiobtn+set}" = set; then
11314   enableval="$enable_radiobtn"
11315
11316                           if test "$enableval" = yes; then
11317                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11318                           else
11319                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11320                           fi
11321
11322 else
11323
11324                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
11325                           if test "x$LINE" != x ; then
11326                             eval "DEFAULT_$LINE"
11327                           else
11328                             no_cache=1
11329                           fi
11330
11331                           ac_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11332
11333 fi;
11334
11335           eval "$ac_cv_use_radiobtn"
11336           if test "$no_cache" != 1; then
11337             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
11338           fi
11339
11340           if test x"$enablestring" = xdisable; then
11341             if test $wxUSE_RADIOBTN = yes; then
11342               result=no
11343             else
11344               result=yes
11345             fi
11346           else
11347             result=$wxUSE_RADIOBTN
11348           fi
11349
11350           echo "$as_me:$LINENO: result: $result" >&5
11351 echo "${ECHO_T}$result" >&6
11352
11353
11354           enablestring=
11355           defaultval=$wxUSE_ALL_FEATURES
11356           if test -z"$defaultval"; then
11357               if test x"$enablestring" = xdisable; then
11358                   defaultval=yes
11359               else
11360                   defaultval=no
11361               fi
11362           fi
11363
11364           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11365 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
11366           no_cache=0
11367           # Check whether --enable-sash or --disable-sash was given.
11368 if test "${enable_sash+set}" = set; then
11369   enableval="$enable_sash"
11370
11371                           if test "$enableval" = yes; then
11372                             ac_cv_use_sash='wxUSE_SASH=yes'
11373                           else
11374                             ac_cv_use_sash='wxUSE_SASH=no'
11375                           fi
11376
11377 else
11378
11379                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
11380                           if test "x$LINE" != x ; then
11381                             eval "DEFAULT_$LINE"
11382                           else
11383                             no_cache=1
11384                           fi
11385
11386                           ac_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11387
11388 fi;
11389
11390           eval "$ac_cv_use_sash"
11391           if test "$no_cache" != 1; then
11392             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
11393           fi
11394
11395           if test x"$enablestring" = xdisable; then
11396             if test $wxUSE_SASH = yes; then
11397               result=no
11398             else
11399               result=yes
11400             fi
11401           else
11402             result=$wxUSE_SASH
11403           fi
11404
11405           echo "$as_me:$LINENO: result: $result" >&5
11406 echo "${ECHO_T}$result" >&6
11407
11408
11409           enablestring=
11410           defaultval=$wxUSE_ALL_FEATURES
11411           if test -z"$defaultval"; then
11412               if test x"$enablestring" = xdisable; then
11413                   defaultval=yes
11414               else
11415                   defaultval=no
11416               fi
11417           fi
11418
11419           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11420 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
11421           no_cache=0
11422           # Check whether --enable-scrollbar or --disable-scrollbar was given.
11423 if test "${enable_scrollbar+set}" = set; then
11424   enableval="$enable_scrollbar"
11425
11426                           if test "$enableval" = yes; then
11427                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11428                           else
11429                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11430                           fi
11431
11432 else
11433
11434                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
11435                           if test "x$LINE" != x ; then
11436                             eval "DEFAULT_$LINE"
11437                           else
11438                             no_cache=1
11439                           fi
11440
11441                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11442
11443 fi;
11444
11445           eval "$ac_cv_use_scrollbar"
11446           if test "$no_cache" != 1; then
11447             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
11448           fi
11449
11450           if test x"$enablestring" = xdisable; then
11451             if test $wxUSE_SCROLLBAR = yes; then
11452               result=no
11453             else
11454               result=yes
11455             fi
11456           else
11457             result=$wxUSE_SCROLLBAR
11458           fi
11459
11460           echo "$as_me:$LINENO: result: $result" >&5
11461 echo "${ECHO_T}$result" >&6
11462
11463
11464           enablestring=
11465           defaultval=$wxUSE_ALL_FEATURES
11466           if test -z"$defaultval"; then
11467               if test x"$enablestring" = xdisable; then
11468                   defaultval=yes
11469               else
11470                   defaultval=no
11471               fi
11472           fi
11473
11474           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11475 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6
11476           no_cache=0
11477           # Check whether --enable-searchctrl or --disable-searchctrl was given.
11478 if test "${enable_searchctrl+set}" = set; then
11479   enableval="$enable_searchctrl"
11480
11481                           if test "$enableval" = yes; then
11482                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11483                           else
11484                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11485                           fi
11486
11487 else
11488
11489                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
11490                           if test "x$LINE" != x ; then
11491                             eval "DEFAULT_$LINE"
11492                           else
11493                             no_cache=1
11494                           fi
11495
11496                           ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11497
11498 fi;
11499
11500           eval "$ac_cv_use_searchctrl"
11501           if test "$no_cache" != 1; then
11502             echo $ac_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
11503           fi
11504
11505           if test x"$enablestring" = xdisable; then
11506             if test $wxUSE_SEARCHCTRL = yes; then
11507               result=no
11508             else
11509               result=yes
11510             fi
11511           else
11512             result=$wxUSE_SEARCHCTRL
11513           fi
11514
11515           echo "$as_me:$LINENO: result: $result" >&5
11516 echo "${ECHO_T}$result" >&6
11517
11518
11519           enablestring=
11520           defaultval=$wxUSE_ALL_FEATURES
11521           if test -z"$defaultval"; then
11522               if test x"$enablestring" = xdisable; then
11523                   defaultval=yes
11524               else
11525                   defaultval=no
11526               fi
11527           fi
11528
11529           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11530 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
11531           no_cache=0
11532           # Check whether --enable-slider or --disable-slider was given.
11533 if test "${enable_slider+set}" = set; then
11534   enableval="$enable_slider"
11535
11536                           if test "$enableval" = yes; then
11537                             ac_cv_use_slider='wxUSE_SLIDER=yes'
11538                           else
11539                             ac_cv_use_slider='wxUSE_SLIDER=no'
11540                           fi
11541
11542 else
11543
11544                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
11545                           if test "x$LINE" != x ; then
11546                             eval "DEFAULT_$LINE"
11547                           else
11548                             no_cache=1
11549                           fi
11550
11551                           ac_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11552
11553 fi;
11554
11555           eval "$ac_cv_use_slider"
11556           if test "$no_cache" != 1; then
11557             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
11558           fi
11559
11560           if test x"$enablestring" = xdisable; then
11561             if test $wxUSE_SLIDER = yes; then
11562               result=no
11563             else
11564               result=yes
11565             fi
11566           else
11567             result=$wxUSE_SLIDER
11568           fi
11569
11570           echo "$as_me:$LINENO: result: $result" >&5
11571 echo "${ECHO_T}$result" >&6
11572
11573
11574           enablestring=
11575           defaultval=$wxUSE_ALL_FEATURES
11576           if test -z"$defaultval"; then
11577               if test x"$enablestring" = xdisable; then
11578                   defaultval=yes
11579               else
11580                   defaultval=no
11581               fi
11582           fi
11583
11584           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11585 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
11586           no_cache=0
11587           # Check whether --enable-spinbtn or --disable-spinbtn was given.
11588 if test "${enable_spinbtn+set}" = set; then
11589   enableval="$enable_spinbtn"
11590
11591                           if test "$enableval" = yes; then
11592                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11593                           else
11594                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
11595                           fi
11596
11597 else
11598
11599                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
11600                           if test "x$LINE" != x ; then
11601                             eval "DEFAULT_$LINE"
11602                           else
11603                             no_cache=1
11604                           fi
11605
11606                           ac_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11607
11608 fi;
11609
11610           eval "$ac_cv_use_spinbtn"
11611           if test "$no_cache" != 1; then
11612             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
11613           fi
11614
11615           if test x"$enablestring" = xdisable; then
11616             if test $wxUSE_SPINBTN = yes; then
11617               result=no
11618             else
11619               result=yes
11620             fi
11621           else
11622             result=$wxUSE_SPINBTN
11623           fi
11624
11625           echo "$as_me:$LINENO: result: $result" >&5
11626 echo "${ECHO_T}$result" >&6
11627
11628
11629           enablestring=
11630           defaultval=$wxUSE_ALL_FEATURES
11631           if test -z"$defaultval"; then
11632               if test x"$enablestring" = xdisable; then
11633                   defaultval=yes
11634               else
11635                   defaultval=no
11636               fi
11637           fi
11638
11639           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11640 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
11641           no_cache=0
11642           # Check whether --enable-spinctrl or --disable-spinctrl was given.
11643 if test "${enable_spinctrl+set}" = set; then
11644   enableval="$enable_spinctrl"
11645
11646                           if test "$enableval" = yes; then
11647                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11648                           else
11649                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11650                           fi
11651
11652 else
11653
11654                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
11655                           if test "x$LINE" != x ; then
11656                             eval "DEFAULT_$LINE"
11657                           else
11658                             no_cache=1
11659                           fi
11660
11661                           ac_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11662
11663 fi;
11664
11665           eval "$ac_cv_use_spinctrl"
11666           if test "$no_cache" != 1; then
11667             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
11668           fi
11669
11670           if test x"$enablestring" = xdisable; then
11671             if test $wxUSE_SPINCTRL = yes; then
11672               result=no
11673             else
11674               result=yes
11675             fi
11676           else
11677             result=$wxUSE_SPINCTRL
11678           fi
11679
11680           echo "$as_me:$LINENO: result: $result" >&5
11681 echo "${ECHO_T}$result" >&6
11682
11683
11684           enablestring=
11685           defaultval=$wxUSE_ALL_FEATURES
11686           if test -z"$defaultval"; then
11687               if test x"$enablestring" = xdisable; then
11688                   defaultval=yes
11689               else
11690                   defaultval=no
11691               fi
11692           fi
11693
11694           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11695 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
11696           no_cache=0
11697           # Check whether --enable-splitter or --disable-splitter was given.
11698 if test "${enable_splitter+set}" = set; then
11699   enableval="$enable_splitter"
11700
11701                           if test "$enableval" = yes; then
11702                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
11703                           else
11704                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
11705                           fi
11706
11707 else
11708
11709                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
11710                           if test "x$LINE" != x ; then
11711                             eval "DEFAULT_$LINE"
11712                           else
11713                             no_cache=1
11714                           fi
11715
11716                           ac_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11717
11718 fi;
11719
11720           eval "$ac_cv_use_splitter"
11721           if test "$no_cache" != 1; then
11722             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
11723           fi
11724
11725           if test x"$enablestring" = xdisable; then
11726             if test $wxUSE_SPLITTER = yes; then
11727               result=no
11728             else
11729               result=yes
11730             fi
11731           else
11732             result=$wxUSE_SPLITTER
11733           fi
11734
11735           echo "$as_me:$LINENO: result: $result" >&5
11736 echo "${ECHO_T}$result" >&6
11737
11738
11739           enablestring=
11740           defaultval=$wxUSE_ALL_FEATURES
11741           if test -z"$defaultval"; then
11742               if test x"$enablestring" = xdisable; then
11743                   defaultval=yes
11744               else
11745                   defaultval=no
11746               fi
11747           fi
11748
11749           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11750 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
11751           no_cache=0
11752           # Check whether --enable-statbmp or --disable-statbmp was given.
11753 if test "${enable_statbmp+set}" = set; then
11754   enableval="$enable_statbmp"
11755
11756                           if test "$enableval" = yes; then
11757                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
11758                           else
11759                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
11760                           fi
11761
11762 else
11763
11764                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
11765                           if test "x$LINE" != x ; then
11766                             eval "DEFAULT_$LINE"
11767                           else
11768                             no_cache=1
11769                           fi
11770
11771                           ac_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11772
11773 fi;
11774
11775           eval "$ac_cv_use_statbmp"
11776           if test "$no_cache" != 1; then
11777             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
11778           fi
11779
11780           if test x"$enablestring" = xdisable; then
11781             if test $wxUSE_STATBMP = yes; then
11782               result=no
11783             else
11784               result=yes
11785             fi
11786           else
11787             result=$wxUSE_STATBMP
11788           fi
11789
11790           echo "$as_me:$LINENO: result: $result" >&5
11791 echo "${ECHO_T}$result" >&6
11792
11793
11794           enablestring=
11795           defaultval=$wxUSE_ALL_FEATURES
11796           if test -z"$defaultval"; then
11797               if test x"$enablestring" = xdisable; then
11798                   defaultval=yes
11799               else
11800                   defaultval=no
11801               fi
11802           fi
11803
11804           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11805 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
11806           no_cache=0
11807           # Check whether --enable-statbox or --disable-statbox was given.
11808 if test "${enable_statbox+set}" = set; then
11809   enableval="$enable_statbox"
11810
11811                           if test "$enableval" = yes; then
11812                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
11813                           else
11814                             ac_cv_use_statbox='wxUSE_STATBOX=no'
11815                           fi
11816
11817 else
11818
11819                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
11820                           if test "x$LINE" != x ; then
11821                             eval "DEFAULT_$LINE"
11822                           else
11823                             no_cache=1
11824                           fi
11825
11826                           ac_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11827
11828 fi;
11829
11830           eval "$ac_cv_use_statbox"
11831           if test "$no_cache" != 1; then
11832             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
11833           fi
11834
11835           if test x"$enablestring" = xdisable; then
11836             if test $wxUSE_STATBOX = yes; then
11837               result=no
11838             else
11839               result=yes
11840             fi
11841           else
11842             result=$wxUSE_STATBOX
11843           fi
11844
11845           echo "$as_me:$LINENO: result: $result" >&5
11846 echo "${ECHO_T}$result" >&6
11847
11848
11849           enablestring=
11850           defaultval=$wxUSE_ALL_FEATURES
11851           if test -z"$defaultval"; then
11852               if test x"$enablestring" = xdisable; then
11853                   defaultval=yes
11854               else
11855                   defaultval=no
11856               fi
11857           fi
11858
11859           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11860 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
11861           no_cache=0
11862           # Check whether --enable-statline or --disable-statline was given.
11863 if test "${enable_statline+set}" = set; then
11864   enableval="$enable_statline"
11865
11866                           if test "$enableval" = yes; then
11867                             ac_cv_use_statline='wxUSE_STATLINE=yes'
11868                           else
11869                             ac_cv_use_statline='wxUSE_STATLINE=no'
11870                           fi
11871
11872 else
11873
11874                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
11875                           if test "x$LINE" != x ; then
11876                             eval "DEFAULT_$LINE"
11877                           else
11878                             no_cache=1
11879                           fi
11880
11881                           ac_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11882
11883 fi;
11884
11885           eval "$ac_cv_use_statline"
11886           if test "$no_cache" != 1; then
11887             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
11888           fi
11889
11890           if test x"$enablestring" = xdisable; then
11891             if test $wxUSE_STATLINE = yes; then
11892               result=no
11893             else
11894               result=yes
11895             fi
11896           else
11897             result=$wxUSE_STATLINE
11898           fi
11899
11900           echo "$as_me:$LINENO: result: $result" >&5
11901 echo "${ECHO_T}$result" >&6
11902
11903
11904           enablestring=
11905           defaultval=$wxUSE_ALL_FEATURES
11906           if test -z"$defaultval"; then
11907               if test x"$enablestring" = xdisable; then
11908                   defaultval=yes
11909               else
11910                   defaultval=no
11911               fi
11912           fi
11913
11914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11915 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
11916           no_cache=0
11917           # Check whether --enable-stattext or --disable-stattext was given.
11918 if test "${enable_stattext+set}" = set; then
11919   enableval="$enable_stattext"
11920
11921                           if test "$enableval" = yes; then
11922                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
11923                           else
11924                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
11925                           fi
11926
11927 else
11928
11929                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
11930                           if test "x$LINE" != x ; then
11931                             eval "DEFAULT_$LINE"
11932                           else
11933                             no_cache=1
11934                           fi
11935
11936                           ac_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11937
11938 fi;
11939
11940           eval "$ac_cv_use_stattext"
11941           if test "$no_cache" != 1; then
11942             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
11943           fi
11944
11945           if test x"$enablestring" = xdisable; then
11946             if test $wxUSE_STATTEXT = yes; then
11947               result=no
11948             else
11949               result=yes
11950             fi
11951           else
11952             result=$wxUSE_STATTEXT
11953           fi
11954
11955           echo "$as_me:$LINENO: result: $result" >&5
11956 echo "${ECHO_T}$result" >&6
11957
11958
11959           enablestring=
11960           defaultval=$wxUSE_ALL_FEATURES
11961           if test -z"$defaultval"; then
11962               if test x"$enablestring" = xdisable; then
11963                   defaultval=yes
11964               else
11965                   defaultval=no
11966               fi
11967           fi
11968
11969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11970 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
11971           no_cache=0
11972           # Check whether --enable-statusbar or --disable-statusbar was given.
11973 if test "${enable_statusbar+set}" = set; then
11974   enableval="$enable_statusbar"
11975
11976                           if test "$enableval" = yes; then
11977                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11978                           else
11979                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
11980                           fi
11981
11982 else
11983
11984                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
11985                           if test "x$LINE" != x ; then
11986                             eval "DEFAULT_$LINE"
11987                           else
11988                             no_cache=1
11989                           fi
11990
11991                           ac_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11992
11993 fi;
11994
11995           eval "$ac_cv_use_statusbar"
11996           if test "$no_cache" != 1; then
11997             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
11998           fi
11999
12000           if test x"$enablestring" = xdisable; then
12001             if test $wxUSE_STATUSBAR = yes; then
12002               result=no
12003             else
12004               result=yes
12005             fi
12006           else
12007             result=$wxUSE_STATUSBAR
12008           fi
12009
12010           echo "$as_me:$LINENO: result: $result" >&5
12011 echo "${ECHO_T}$result" >&6
12012
12013
12014           enablestring=
12015           defaultval=$wxUSE_ALL_FEATURES
12016           if test -z"$defaultval"; then
12017               if test x"$enablestring" = xdisable; then
12018                   defaultval=yes
12019               else
12020                   defaultval=no
12021               fi
12022           fi
12023
12024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
12025 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
12026           no_cache=0
12027           # Check whether --enable-tabdialog or --disable-tabdialog was given.
12028 if test "${enable_tabdialog+set}" = set; then
12029   enableval="$enable_tabdialog"
12030
12031                           if test "$enableval" = yes; then
12032                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
12033                           else
12034                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
12035                           fi
12036
12037 else
12038
12039                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
12040                           if test "x$LINE" != x ; then
12041                             eval "DEFAULT_$LINE"
12042                           else
12043                             no_cache=1
12044                           fi
12045
12046                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
12047
12048 fi;
12049
12050           eval "$ac_cv_use_tabdialog"
12051           if test "$no_cache" != 1; then
12052             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
12053           fi
12054
12055           if test x"$enablestring" = xdisable; then
12056             if test $wxUSE_TAB_DIALOG = yes; then
12057               result=no
12058             else
12059               result=yes
12060             fi
12061           else
12062             result=$wxUSE_TAB_DIALOG
12063           fi
12064
12065           echo "$as_me:$LINENO: result: $result" >&5
12066 echo "${ECHO_T}$result" >&6
12067
12068
12069           enablestring=
12070           defaultval=$wxUSE_ALL_FEATURES
12071           if test -z"$defaultval"; then
12072               if test x"$enablestring" = xdisable; then
12073                   defaultval=yes
12074               else
12075                   defaultval=no
12076               fi
12077           fi
12078
12079           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12080 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
12081           no_cache=0
12082           # Check whether --enable-textctrl or --disable-textctrl was given.
12083 if test "${enable_textctrl+set}" = set; then
12084   enableval="$enable_textctrl"
12085
12086                           if test "$enableval" = yes; then
12087                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12088                           else
12089                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12090                           fi
12091
12092 else
12093
12094                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
12095                           if test "x$LINE" != x ; then
12096                             eval "DEFAULT_$LINE"
12097                           else
12098                             no_cache=1
12099                           fi
12100
12101                           ac_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12102
12103 fi;
12104
12105           eval "$ac_cv_use_textctrl"
12106           if test "$no_cache" != 1; then
12107             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
12108           fi
12109
12110           if test x"$enablestring" = xdisable; then
12111             if test $wxUSE_TEXTCTRL = yes; then
12112               result=no
12113             else
12114               result=yes
12115             fi
12116           else
12117             result=$wxUSE_TEXTCTRL
12118           fi
12119
12120           echo "$as_me:$LINENO: result: $result" >&5
12121 echo "${ECHO_T}$result" >&6
12122
12123
12124           enablestring=
12125           defaultval=$wxUSE_ALL_FEATURES
12126           if test -z"$defaultval"; then
12127               if test x"$enablestring" = xdisable; then
12128                   defaultval=yes
12129               else
12130                   defaultval=no
12131               fi
12132           fi
12133
12134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12135 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
12136           no_cache=0
12137           # Check whether --enable-togglebtn or --disable-togglebtn was given.
12138 if test "${enable_togglebtn+set}" = set; then
12139   enableval="$enable_togglebtn"
12140
12141                           if test "$enableval" = yes; then
12142                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12143                           else
12144                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12145                           fi
12146
12147 else
12148
12149                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
12150                           if test "x$LINE" != x ; then
12151                             eval "DEFAULT_$LINE"
12152                           else
12153                             no_cache=1
12154                           fi
12155
12156                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12157
12158 fi;
12159
12160           eval "$ac_cv_use_togglebtn"
12161           if test "$no_cache" != 1; then
12162             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
12163           fi
12164
12165           if test x"$enablestring" = xdisable; then
12166             if test $wxUSE_TOGGLEBTN = yes; then
12167               result=no
12168             else
12169               result=yes
12170             fi
12171           else
12172             result=$wxUSE_TOGGLEBTN
12173           fi
12174
12175           echo "$as_me:$LINENO: result: $result" >&5
12176 echo "${ECHO_T}$result" >&6
12177
12178
12179           enablestring=
12180           defaultval=$wxUSE_ALL_FEATURES
12181           if test -z"$defaultval"; then
12182               if test x"$enablestring" = xdisable; then
12183                   defaultval=yes
12184               else
12185                   defaultval=no
12186               fi
12187           fi
12188
12189           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
12190 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
12191           no_cache=0
12192           # Check whether --enable-toolbar or --disable-toolbar was given.
12193 if test "${enable_toolbar+set}" = set; then
12194   enableval="$enable_toolbar"
12195
12196                           if test "$enableval" = yes; then
12197                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
12198                           else
12199                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
12200                           fi
12201
12202 else
12203
12204                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
12205                           if test "x$LINE" != x ; then
12206                             eval "DEFAULT_$LINE"
12207                           else
12208                             no_cache=1
12209                           fi
12210
12211                           ac_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
12212
12213 fi;
12214
12215           eval "$ac_cv_use_toolbar"
12216           if test "$no_cache" != 1; then
12217             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
12218           fi
12219
12220           if test x"$enablestring" = xdisable; then
12221             if test $wxUSE_TOOLBAR = yes; then
12222               result=no
12223             else
12224               result=yes
12225             fi
12226           else
12227             result=$wxUSE_TOOLBAR
12228           fi
12229
12230           echo "$as_me:$LINENO: result: $result" >&5
12231 echo "${ECHO_T}$result" >&6
12232
12233
12234           enablestring=
12235           defaultval=$wxUSE_ALL_FEATURES
12236           if test -z"$defaultval"; then
12237               if test x"$enablestring" = xdisable; then
12238                   defaultval=yes
12239               else
12240                   defaultval=no
12241               fi
12242           fi
12243
12244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
12245 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
12246           no_cache=0
12247           # Check whether --enable-tbarnative or --disable-tbarnative was given.
12248 if test "${enable_tbarnative+set}" = set; then
12249   enableval="$enable_tbarnative"
12250
12251                           if test "$enableval" = yes; then
12252                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
12253                           else
12254                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
12255                           fi
12256
12257 else
12258
12259                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
12260                           if test "x$LINE" != x ; then
12261                             eval "DEFAULT_$LINE"
12262                           else
12263                             no_cache=1
12264                           fi
12265
12266                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
12267
12268 fi;
12269
12270           eval "$ac_cv_use_tbarnative"
12271           if test "$no_cache" != 1; then
12272             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
12273           fi
12274
12275           if test x"$enablestring" = xdisable; then
12276             if test $wxUSE_TOOLBAR_NATIVE = yes; then
12277               result=no
12278             else
12279               result=yes
12280             fi
12281           else
12282             result=$wxUSE_TOOLBAR_NATIVE
12283           fi
12284
12285           echo "$as_me:$LINENO: result: $result" >&5
12286 echo "${ECHO_T}$result" >&6
12287
12288
12289           enablestring=
12290           defaultval=$wxUSE_ALL_FEATURES
12291           if test -z"$defaultval"; then
12292               if test x"$enablestring" = xdisable; then
12293                   defaultval=yes
12294               else
12295                   defaultval=no
12296               fi
12297           fi
12298
12299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
12300 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
12301           no_cache=0
12302           # Check whether --enable-treebook or --disable-treebook was given.
12303 if test "${enable_treebook+set}" = set; then
12304   enableval="$enable_treebook"
12305
12306                           if test "$enableval" = yes; then
12307                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
12308                           else
12309                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
12310                           fi
12311
12312 else
12313
12314                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
12315                           if test "x$LINE" != x ; then
12316                             eval "DEFAULT_$LINE"
12317                           else
12318                             no_cache=1
12319                           fi
12320
12321                           ac_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
12322
12323 fi;
12324
12325           eval "$ac_cv_use_treebook"
12326           if test "$no_cache" != 1; then
12327             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
12328           fi
12329
12330           if test x"$enablestring" = xdisable; then
12331             if test $wxUSE_TREEBOOK = yes; then
12332               result=no
12333             else
12334               result=yes
12335             fi
12336           else
12337             result=$wxUSE_TREEBOOK
12338           fi
12339
12340           echo "$as_me:$LINENO: result: $result" >&5
12341 echo "${ECHO_T}$result" >&6
12342
12343
12344           enablestring=
12345           defaultval=$wxUSE_ALL_FEATURES
12346           if test -z"$defaultval"; then
12347               if test x"$enablestring" = xdisable; then
12348                   defaultval=yes
12349               else
12350                   defaultval=no
12351               fi
12352           fi
12353
12354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12355 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
12356           no_cache=0
12357           # Check whether --enable-toolbook or --disable-toolbook was given.
12358 if test "${enable_toolbook+set}" = set; then
12359   enableval="$enable_toolbook"
12360
12361                           if test "$enableval" = yes; then
12362                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12363                           else
12364                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12365                           fi
12366
12367 else
12368
12369                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
12370                           if test "x$LINE" != x ; then
12371                             eval "DEFAULT_$LINE"
12372                           else
12373                             no_cache=1
12374                           fi
12375
12376                           ac_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12377
12378 fi;
12379
12380           eval "$ac_cv_use_toolbook"
12381           if test "$no_cache" != 1; then
12382             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
12383           fi
12384
12385           if test x"$enablestring" = xdisable; then
12386             if test $wxUSE_TOOLBOOK = yes; then
12387               result=no
12388             else
12389               result=yes
12390             fi
12391           else
12392             result=$wxUSE_TOOLBOOK
12393           fi
12394
12395           echo "$as_me:$LINENO: result: $result" >&5
12396 echo "${ECHO_T}$result" >&6
12397
12398
12399           enablestring=
12400           defaultval=$wxUSE_ALL_FEATURES
12401           if test -z"$defaultval"; then
12402               if test x"$enablestring" = xdisable; then
12403                   defaultval=yes
12404               else
12405                   defaultval=no
12406               fi
12407           fi
12408
12409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12410 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
12411           no_cache=0
12412           # Check whether --enable-treectrl or --disable-treectrl was given.
12413 if test "${enable_treectrl+set}" = set; then
12414   enableval="$enable_treectrl"
12415
12416                           if test "$enableval" = yes; then
12417                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
12418                           else
12419                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
12420                           fi
12421
12422 else
12423
12424                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
12425                           if test "x$LINE" != x ; then
12426                             eval "DEFAULT_$LINE"
12427                           else
12428                             no_cache=1
12429                           fi
12430
12431                           ac_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12432
12433 fi;
12434
12435           eval "$ac_cv_use_treectrl"
12436           if test "$no_cache" != 1; then
12437             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
12438           fi
12439
12440           if test x"$enablestring" = xdisable; then
12441             if test $wxUSE_TREECTRL = yes; then
12442               result=no
12443             else
12444               result=yes
12445             fi
12446           else
12447             result=$wxUSE_TREECTRL
12448           fi
12449
12450           echo "$as_me:$LINENO: result: $result" >&5
12451 echo "${ECHO_T}$result" >&6
12452
12453
12454           enablestring=
12455           defaultval=$wxUSE_ALL_FEATURES
12456           if test -z"$defaultval"; then
12457               if test x"$enablestring" = xdisable; then
12458                   defaultval=yes
12459               else
12460                   defaultval=no
12461               fi
12462           fi
12463
12464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12465 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
12466           no_cache=0
12467           # Check whether --enable-tipwindow or --disable-tipwindow was given.
12468 if test "${enable_tipwindow+set}" = set; then
12469   enableval="$enable_tipwindow"
12470
12471                           if test "$enableval" = yes; then
12472                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12473                           else
12474                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12475                           fi
12476
12477 else
12478
12479                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
12480                           if test "x$LINE" != x ; then
12481                             eval "DEFAULT_$LINE"
12482                           else
12483                             no_cache=1
12484                           fi
12485
12486                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12487
12488 fi;
12489
12490           eval "$ac_cv_use_tipwindow"
12491           if test "$no_cache" != 1; then
12492             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
12493           fi
12494
12495           if test x"$enablestring" = xdisable; then
12496             if test $wxUSE_TIPWINDOW = yes; then
12497               result=no
12498             else
12499               result=yes
12500             fi
12501           else
12502             result=$wxUSE_TIPWINDOW
12503           fi
12504
12505           echo "$as_me:$LINENO: result: $result" >&5
12506 echo "${ECHO_T}$result" >&6
12507
12508
12509           enablestring=
12510           defaultval=$wxUSE_ALL_FEATURES
12511           if test -z"$defaultval"; then
12512               if test x"$enablestring" = xdisable; then
12513                   defaultval=yes
12514               else
12515                   defaultval=no
12516               fi
12517           fi
12518
12519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
12520 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
12521           no_cache=0
12522           # Check whether --enable-popupwin or --disable-popupwin was given.
12523 if test "${enable_popupwin+set}" = set; then
12524   enableval="$enable_popupwin"
12525
12526                           if test "$enableval" = yes; then
12527                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12528                           else
12529                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
12530                           fi
12531
12532 else
12533
12534                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
12535                           if test "x$LINE" != x ; then
12536                             eval "DEFAULT_$LINE"
12537                           else
12538                             no_cache=1
12539                           fi
12540
12541                           ac_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12542
12543 fi;
12544
12545           eval "$ac_cv_use_popupwin"
12546           if test "$no_cache" != 1; then
12547             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
12548           fi
12549
12550           if test x"$enablestring" = xdisable; then
12551             if test $wxUSE_POPUPWIN = yes; then
12552               result=no
12553             else
12554               result=yes
12555             fi
12556           else
12557             result=$wxUSE_POPUPWIN
12558           fi
12559
12560           echo "$as_me:$LINENO: result: $result" >&5
12561 echo "${ECHO_T}$result" >&6
12562
12563
12564
12565
12566           enablestring=
12567           defaultval=$wxUSE_ALL_FEATURES
12568           if test -z"$defaultval"; then
12569               if test x"$enablestring" = xdisable; then
12570                   defaultval=yes
12571               else
12572                   defaultval=no
12573               fi
12574           fi
12575
12576           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
12577 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
12578           no_cache=0
12579           # Check whether --enable-commondlg or --disable-commondlg was given.
12580 if test "${enable_commondlg+set}" = set; then
12581   enableval="$enable_commondlg"
12582
12583                           if test "$enableval" = yes; then
12584                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12585                           else
12586                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12587                           fi
12588
12589 else
12590
12591                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
12592                           if test "x$LINE" != x ; then
12593                             eval "DEFAULT_$LINE"
12594                           else
12595                             no_cache=1
12596                           fi
12597
12598                           ac_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12599
12600 fi;
12601
12602           eval "$ac_cv_use_commondlg"
12603           if test "$no_cache" != 1; then
12604             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
12605           fi
12606
12607           if test x"$enablestring" = xdisable; then
12608             if test $wxUSE_COMMONDLGS = yes; then
12609               result=no
12610             else
12611               result=yes
12612             fi
12613           else
12614             result=$wxUSE_COMMONDLGS
12615           fi
12616
12617           echo "$as_me:$LINENO: result: $result" >&5
12618 echo "${ECHO_T}$result" >&6
12619
12620
12621           enablestring=
12622           defaultval=$wxUSE_ALL_FEATURES
12623           if test -z"$defaultval"; then
12624               if test x"$enablestring" = xdisable; then
12625                   defaultval=yes
12626               else
12627                   defaultval=no
12628               fi
12629           fi
12630
12631           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12632 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
12633           no_cache=0
12634           # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
12635 if test "${enable_aboutdlg+set}" = set; then
12636   enableval="$enable_aboutdlg"
12637
12638                           if test "$enableval" = yes; then
12639                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12640                           else
12641                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12642                           fi
12643
12644 else
12645
12646                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
12647                           if test "x$LINE" != x ; then
12648                             eval "DEFAULT_$LINE"
12649                           else
12650                             no_cache=1
12651                           fi
12652
12653                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12654
12655 fi;
12656
12657           eval "$ac_cv_use_aboutdlg"
12658           if test "$no_cache" != 1; then
12659             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
12660           fi
12661
12662           if test x"$enablestring" = xdisable; then
12663             if test $wxUSE_ABOUTDLG = yes; then
12664               result=no
12665             else
12666               result=yes
12667             fi
12668           else
12669             result=$wxUSE_ABOUTDLG
12670           fi
12671
12672           echo "$as_me:$LINENO: result: $result" >&5
12673 echo "${ECHO_T}$result" >&6
12674
12675
12676           enablestring=
12677           defaultval=$wxUSE_ALL_FEATURES
12678           if test -z"$defaultval"; then
12679               if test x"$enablestring" = xdisable; then
12680                   defaultval=yes
12681               else
12682                   defaultval=no
12683               fi
12684           fi
12685
12686           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12687 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
12688           no_cache=0
12689           # Check whether --enable-choicedlg or --disable-choicedlg was given.
12690 if test "${enable_choicedlg+set}" = set; then
12691   enableval="$enable_choicedlg"
12692
12693                           if test "$enableval" = yes; then
12694                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12695                           else
12696                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12697                           fi
12698
12699 else
12700
12701                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
12702                           if test "x$LINE" != x ; then
12703                             eval "DEFAULT_$LINE"
12704                           else
12705                             no_cache=1
12706                           fi
12707
12708                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12709
12710 fi;
12711
12712           eval "$ac_cv_use_choicedlg"
12713           if test "$no_cache" != 1; then
12714             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
12715           fi
12716
12717           if test x"$enablestring" = xdisable; then
12718             if test $wxUSE_CHOICEDLG = yes; then
12719               result=no
12720             else
12721               result=yes
12722             fi
12723           else
12724             result=$wxUSE_CHOICEDLG
12725           fi
12726
12727           echo "$as_me:$LINENO: result: $result" >&5
12728 echo "${ECHO_T}$result" >&6
12729
12730
12731           enablestring=
12732           defaultval=$wxUSE_ALL_FEATURES
12733           if test -z"$defaultval"; then
12734               if test x"$enablestring" = xdisable; then
12735                   defaultval=yes
12736               else
12737                   defaultval=no
12738               fi
12739           fi
12740
12741           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12742 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
12743           no_cache=0
12744           # Check whether --enable-coldlg or --disable-coldlg was given.
12745 if test "${enable_coldlg+set}" = set; then
12746   enableval="$enable_coldlg"
12747
12748                           if test "$enableval" = yes; then
12749                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12750                           else
12751                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
12752                           fi
12753
12754 else
12755
12756                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
12757                           if test "x$LINE" != x ; then
12758                             eval "DEFAULT_$LINE"
12759                           else
12760                             no_cache=1
12761                           fi
12762
12763                           ac_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12764
12765 fi;
12766
12767           eval "$ac_cv_use_coldlg"
12768           if test "$no_cache" != 1; then
12769             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
12770           fi
12771
12772           if test x"$enablestring" = xdisable; then
12773             if test $wxUSE_COLOURDLG = yes; then
12774               result=no
12775             else
12776               result=yes
12777             fi
12778           else
12779             result=$wxUSE_COLOURDLG
12780           fi
12781
12782           echo "$as_me:$LINENO: result: $result" >&5
12783 echo "${ECHO_T}$result" >&6
12784
12785
12786           enablestring=
12787           defaultval=$wxUSE_ALL_FEATURES
12788           if test -z"$defaultval"; then
12789               if test x"$enablestring" = xdisable; then
12790                   defaultval=yes
12791               else
12792                   defaultval=no
12793               fi
12794           fi
12795
12796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12797 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
12798           no_cache=0
12799           # Check whether --enable-filedlg or --disable-filedlg was given.
12800 if test "${enable_filedlg+set}" = set; then
12801   enableval="$enable_filedlg"
12802
12803                           if test "$enableval" = yes; then
12804                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
12805                           else
12806                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
12807                           fi
12808
12809 else
12810
12811                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
12812                           if test "x$LINE" != x ; then
12813                             eval "DEFAULT_$LINE"
12814                           else
12815                             no_cache=1
12816                           fi
12817
12818                           ac_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12819
12820 fi;
12821
12822           eval "$ac_cv_use_filedlg"
12823           if test "$no_cache" != 1; then
12824             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
12825           fi
12826
12827           if test x"$enablestring" = xdisable; then
12828             if test $wxUSE_FILEDLG = yes; then
12829               result=no
12830             else
12831               result=yes
12832             fi
12833           else
12834             result=$wxUSE_FILEDLG
12835           fi
12836
12837           echo "$as_me:$LINENO: result: $result" >&5
12838 echo "${ECHO_T}$result" >&6
12839
12840
12841           enablestring=
12842           defaultval=$wxUSE_ALL_FEATURES
12843           if test -z"$defaultval"; then
12844               if test x"$enablestring" = xdisable; then
12845                   defaultval=yes
12846               else
12847                   defaultval=no
12848               fi
12849           fi
12850
12851           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12852 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
12853           no_cache=0
12854           # Check whether --enable-finddlg or --disable-finddlg was given.
12855 if test "${enable_finddlg+set}" = set; then
12856   enableval="$enable_finddlg"
12857
12858                           if test "$enableval" = yes; then
12859                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12860                           else
12861                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12862                           fi
12863
12864 else
12865
12866                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
12867                           if test "x$LINE" != x ; then
12868                             eval "DEFAULT_$LINE"
12869                           else
12870                             no_cache=1
12871                           fi
12872
12873                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12874
12875 fi;
12876
12877           eval "$ac_cv_use_finddlg"
12878           if test "$no_cache" != 1; then
12879             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
12880           fi
12881
12882           if test x"$enablestring" = xdisable; then
12883             if test $wxUSE_FINDREPLDLG = yes; then
12884               result=no
12885             else
12886               result=yes
12887             fi
12888           else
12889             result=$wxUSE_FINDREPLDLG
12890           fi
12891
12892           echo "$as_me:$LINENO: result: $result" >&5
12893 echo "${ECHO_T}$result" >&6
12894
12895
12896           enablestring=
12897           defaultval=$wxUSE_ALL_FEATURES
12898           if test -z"$defaultval"; then
12899               if test x"$enablestring" = xdisable; then
12900                   defaultval=yes
12901               else
12902                   defaultval=no
12903               fi
12904           fi
12905
12906           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12907 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
12908           no_cache=0
12909           # Check whether --enable-fontdlg or --disable-fontdlg was given.
12910 if test "${enable_fontdlg+set}" = set; then
12911   enableval="$enable_fontdlg"
12912
12913                           if test "$enableval" = yes; then
12914                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12915                           else
12916                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
12917                           fi
12918
12919 else
12920
12921                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
12922                           if test "x$LINE" != x ; then
12923                             eval "DEFAULT_$LINE"
12924                           else
12925                             no_cache=1
12926                           fi
12927
12928                           ac_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12929
12930 fi;
12931
12932           eval "$ac_cv_use_fontdlg"
12933           if test "$no_cache" != 1; then
12934             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
12935           fi
12936
12937           if test x"$enablestring" = xdisable; then
12938             if test $wxUSE_FONTDLG = yes; then
12939               result=no
12940             else
12941               result=yes
12942             fi
12943           else
12944             result=$wxUSE_FONTDLG
12945           fi
12946
12947           echo "$as_me:$LINENO: result: $result" >&5
12948 echo "${ECHO_T}$result" >&6
12949
12950
12951           enablestring=
12952           defaultval=$wxUSE_ALL_FEATURES
12953           if test -z"$defaultval"; then
12954               if test x"$enablestring" = xdisable; then
12955                   defaultval=yes
12956               else
12957                   defaultval=no
12958               fi
12959           fi
12960
12961           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12962 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
12963           no_cache=0
12964           # Check whether --enable-dirdlg or --disable-dirdlg was given.
12965 if test "${enable_dirdlg+set}" = set; then
12966   enableval="$enable_dirdlg"
12967
12968                           if test "$enableval" = yes; then
12969                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12970                           else
12971                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
12972                           fi
12973
12974 else
12975
12976                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
12977                           if test "x$LINE" != x ; then
12978                             eval "DEFAULT_$LINE"
12979                           else
12980                             no_cache=1
12981                           fi
12982
12983                           ac_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12984
12985 fi;
12986
12987           eval "$ac_cv_use_dirdlg"
12988           if test "$no_cache" != 1; then
12989             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
12990           fi
12991
12992           if test x"$enablestring" = xdisable; then
12993             if test $wxUSE_DIRDLG = yes; then
12994               result=no
12995             else
12996               result=yes
12997             fi
12998           else
12999             result=$wxUSE_DIRDLG
13000           fi
13001
13002           echo "$as_me:$LINENO: result: $result" >&5
13003 echo "${ECHO_T}$result" >&6
13004
13005
13006           enablestring=
13007           defaultval=$wxUSE_ALL_FEATURES
13008           if test -z"$defaultval"; then
13009               if test x"$enablestring" = xdisable; then
13010                   defaultval=yes
13011               else
13012                   defaultval=no
13013               fi
13014           fi
13015
13016           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13017 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
13018           no_cache=0
13019           # Check whether --enable-msgdlg or --disable-msgdlg was given.
13020 if test "${enable_msgdlg+set}" = set; then
13021   enableval="$enable_msgdlg"
13022
13023                           if test "$enableval" = yes; then
13024                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13025                           else
13026                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
13027                           fi
13028
13029 else
13030
13031                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
13032                           if test "x$LINE" != x ; then
13033                             eval "DEFAULT_$LINE"
13034                           else
13035                             no_cache=1
13036                           fi
13037
13038                           ac_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13039
13040 fi;
13041
13042           eval "$ac_cv_use_msgdlg"
13043           if test "$no_cache" != 1; then
13044             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
13045           fi
13046
13047           if test x"$enablestring" = xdisable; then
13048             if test $wxUSE_MSGDLG = yes; then
13049               result=no
13050             else
13051               result=yes
13052             fi
13053           else
13054             result=$wxUSE_MSGDLG
13055           fi
13056
13057           echo "$as_me:$LINENO: result: $result" >&5
13058 echo "${ECHO_T}$result" >&6
13059
13060
13061           enablestring=
13062           defaultval=$wxUSE_ALL_FEATURES
13063           if test -z"$defaultval"; then
13064               if test x"$enablestring" = xdisable; then
13065                   defaultval=yes
13066               else
13067                   defaultval=no
13068               fi
13069           fi
13070
13071           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13072 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
13073           no_cache=0
13074           # Check whether --enable-numberdlg or --disable-numberdlg was given.
13075 if test "${enable_numberdlg+set}" = set; then
13076   enableval="$enable_numberdlg"
13077
13078                           if test "$enableval" = yes; then
13079                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13080                           else
13081                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13082                           fi
13083
13084 else
13085
13086                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
13087                           if test "x$LINE" != x ; then
13088                             eval "DEFAULT_$LINE"
13089                           else
13090                             no_cache=1
13091                           fi
13092
13093                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13094
13095 fi;
13096
13097           eval "$ac_cv_use_numberdlg"
13098           if test "$no_cache" != 1; then
13099             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
13100           fi
13101
13102           if test x"$enablestring" = xdisable; then
13103             if test $wxUSE_NUMBERDLG = yes; then
13104               result=no
13105             else
13106               result=yes
13107             fi
13108           else
13109             result=$wxUSE_NUMBERDLG
13110           fi
13111
13112           echo "$as_me:$LINENO: result: $result" >&5
13113 echo "${ECHO_T}$result" >&6
13114
13115
13116           enablestring=
13117           defaultval=$wxUSE_ALL_FEATURES
13118           if test -z"$defaultval"; then
13119               if test x"$enablestring" = xdisable; then
13120                   defaultval=yes
13121               else
13122                   defaultval=no
13123               fi
13124           fi
13125
13126           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13127 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
13128           no_cache=0
13129           # Check whether --enable-splash or --disable-splash was given.
13130 if test "${enable_splash+set}" = set; then
13131   enableval="$enable_splash"
13132
13133                           if test "$enableval" = yes; then
13134                             ac_cv_use_splash='wxUSE_SPLASH=yes'
13135                           else
13136                             ac_cv_use_splash='wxUSE_SPLASH=no'
13137                           fi
13138
13139 else
13140
13141                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
13142                           if test "x$LINE" != x ; then
13143                             eval "DEFAULT_$LINE"
13144                           else
13145                             no_cache=1
13146                           fi
13147
13148                           ac_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13149
13150 fi;
13151
13152           eval "$ac_cv_use_splash"
13153           if test "$no_cache" != 1; then
13154             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
13155           fi
13156
13157           if test x"$enablestring" = xdisable; then
13158             if test $wxUSE_SPLASH = yes; then
13159               result=no
13160             else
13161               result=yes
13162             fi
13163           else
13164             result=$wxUSE_SPLASH
13165           fi
13166
13167           echo "$as_me:$LINENO: result: $result" >&5
13168 echo "${ECHO_T}$result" >&6
13169
13170
13171           enablestring=
13172           defaultval=$wxUSE_ALL_FEATURES
13173           if test -z"$defaultval"; then
13174               if test x"$enablestring" = xdisable; then
13175                   defaultval=yes
13176               else
13177                   defaultval=no
13178               fi
13179           fi
13180
13181           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13182 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
13183           no_cache=0
13184           # Check whether --enable-textdlg or --disable-textdlg was given.
13185 if test "${enable_textdlg+set}" = set; then
13186   enableval="$enable_textdlg"
13187
13188                           if test "$enableval" = yes; then
13189                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13190                           else
13191                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
13192                           fi
13193
13194 else
13195
13196                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
13197                           if test "x$LINE" != x ; then
13198                             eval "DEFAULT_$LINE"
13199                           else
13200                             no_cache=1
13201                           fi
13202
13203                           ac_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13204
13205 fi;
13206
13207           eval "$ac_cv_use_textdlg"
13208           if test "$no_cache" != 1; then
13209             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
13210           fi
13211
13212           if test x"$enablestring" = xdisable; then
13213             if test $wxUSE_TEXTDLG = yes; then
13214               result=no
13215             else
13216               result=yes
13217             fi
13218           else
13219             result=$wxUSE_TEXTDLG
13220           fi
13221
13222           echo "$as_me:$LINENO: result: $result" >&5
13223 echo "${ECHO_T}$result" >&6
13224
13225
13226           enablestring=
13227           defaultval=$wxUSE_ALL_FEATURES
13228           if test -z"$defaultval"; then
13229               if test x"$enablestring" = xdisable; then
13230                   defaultval=yes
13231               else
13232                   defaultval=no
13233               fi
13234           fi
13235
13236           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
13237 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
13238           no_cache=0
13239           # Check whether --enable-tipdlg or --disable-tipdlg was given.
13240 if test "${enable_tipdlg+set}" = set; then
13241   enableval="$enable_tipdlg"
13242
13243                           if test "$enableval" = yes; then
13244                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
13245                           else
13246                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
13247                           fi
13248
13249 else
13250
13251                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
13252                           if test "x$LINE" != x ; then
13253                             eval "DEFAULT_$LINE"
13254                           else
13255                             no_cache=1
13256                           fi
13257
13258                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
13259
13260 fi;
13261
13262           eval "$ac_cv_use_tipdlg"
13263           if test "$no_cache" != 1; then
13264             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
13265           fi
13266
13267           if test x"$enablestring" = xdisable; then
13268             if test $wxUSE_STARTUP_TIPS = yes; then
13269               result=no
13270             else
13271               result=yes
13272             fi
13273           else
13274             result=$wxUSE_STARTUP_TIPS
13275           fi
13276
13277           echo "$as_me:$LINENO: result: $result" >&5
13278 echo "${ECHO_T}$result" >&6
13279
13280
13281           enablestring=
13282           defaultval=$wxUSE_ALL_FEATURES
13283           if test -z"$defaultval"; then
13284               if test x"$enablestring" = xdisable; then
13285                   defaultval=yes
13286               else
13287                   defaultval=no
13288               fi
13289           fi
13290
13291           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
13292 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
13293           no_cache=0
13294           # Check whether --enable-progressdlg or --disable-progressdlg was given.
13295 if test "${enable_progressdlg+set}" = set; then
13296   enableval="$enable_progressdlg"
13297
13298                           if test "$enableval" = yes; then
13299                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
13300                           else
13301                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
13302                           fi
13303
13304 else
13305
13306                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
13307                           if test "x$LINE" != x ; then
13308                             eval "DEFAULT_$LINE"
13309                           else
13310                             no_cache=1
13311                           fi
13312
13313                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
13314
13315 fi;
13316
13317           eval "$ac_cv_use_progressdlg"
13318           if test "$no_cache" != 1; then
13319             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
13320           fi
13321
13322           if test x"$enablestring" = xdisable; then
13323             if test $wxUSE_PROGRESSDLG = yes; then
13324               result=no
13325             else
13326               result=yes
13327             fi
13328           else
13329             result=$wxUSE_PROGRESSDLG
13330           fi
13331
13332           echo "$as_me:$LINENO: result: $result" >&5
13333 echo "${ECHO_T}$result" >&6
13334
13335
13336           enablestring=
13337           defaultval=$wxUSE_ALL_FEATURES
13338           if test -z"$defaultval"; then
13339               if test x"$enablestring" = xdisable; then
13340                   defaultval=yes
13341               else
13342                   defaultval=no
13343               fi
13344           fi
13345
13346           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
13347 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
13348           no_cache=0
13349           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
13350 if test "${enable_wizarddlg+set}" = set; then
13351   enableval="$enable_wizarddlg"
13352
13353                           if test "$enableval" = yes; then
13354                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
13355                           else
13356                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
13357                           fi
13358
13359 else
13360
13361                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
13362                           if test "x$LINE" != x ; then
13363                             eval "DEFAULT_$LINE"
13364                           else
13365                             no_cache=1
13366                           fi
13367
13368                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
13369
13370 fi;
13371
13372           eval "$ac_cv_use_wizarddlg"
13373           if test "$no_cache" != 1; then
13374             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
13375           fi
13376
13377           if test x"$enablestring" = xdisable; then
13378             if test $wxUSE_WIZARDDLG = yes; then
13379               result=no
13380             else
13381               result=yes
13382             fi
13383           else
13384             result=$wxUSE_WIZARDDLG
13385           fi
13386
13387           echo "$as_me:$LINENO: result: $result" >&5
13388 echo "${ECHO_T}$result" >&6
13389
13390
13391
13392
13393           enablestring=
13394           defaultval=$wxUSE_ALL_FEATURES
13395           if test -z"$defaultval"; then
13396               if test x"$enablestring" = xdisable; then
13397                   defaultval=yes
13398               else
13399                   defaultval=no
13400               fi
13401           fi
13402
13403           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
13404 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
13405           no_cache=0
13406           # Check whether --enable-menus or --disable-menus was given.
13407 if test "${enable_menus+set}" = set; then
13408   enableval="$enable_menus"
13409
13410                           if test "$enableval" = yes; then
13411                             ac_cv_use_menus='wxUSE_MENUS=yes'
13412                           else
13413                             ac_cv_use_menus='wxUSE_MENUS=no'
13414                           fi
13415
13416 else
13417
13418                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
13419                           if test "x$LINE" != x ; then
13420                             eval "DEFAULT_$LINE"
13421                           else
13422                             no_cache=1
13423                           fi
13424
13425                           ac_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
13426
13427 fi;
13428
13429           eval "$ac_cv_use_menus"
13430           if test "$no_cache" != 1; then
13431             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
13432           fi
13433
13434           if test x"$enablestring" = xdisable; then
13435             if test $wxUSE_MENUS = yes; then
13436               result=no
13437             else
13438               result=yes
13439             fi
13440           else
13441             result=$wxUSE_MENUS
13442           fi
13443
13444           echo "$as_me:$LINENO: result: $result" >&5
13445 echo "${ECHO_T}$result" >&6
13446
13447
13448           enablestring=
13449           defaultval=$wxUSE_ALL_FEATURES
13450           if test -z"$defaultval"; then
13451               if test x"$enablestring" = xdisable; then
13452                   defaultval=yes
13453               else
13454                   defaultval=no
13455               fi
13456           fi
13457
13458           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
13459 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
13460           no_cache=0
13461           # Check whether --enable-miniframe or --disable-miniframe was given.
13462 if test "${enable_miniframe+set}" = set; then
13463   enableval="$enable_miniframe"
13464
13465                           if test "$enableval" = yes; then
13466                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
13467                           else
13468                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
13469                           fi
13470
13471 else
13472
13473                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
13474                           if test "x$LINE" != x ; then
13475                             eval "DEFAULT_$LINE"
13476                           else
13477                             no_cache=1
13478                           fi
13479
13480                           ac_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
13481
13482 fi;
13483
13484           eval "$ac_cv_use_miniframe"
13485           if test "$no_cache" != 1; then
13486             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
13487           fi
13488
13489           if test x"$enablestring" = xdisable; then
13490             if test $wxUSE_MINIFRAME = yes; then
13491               result=no
13492             else
13493               result=yes
13494             fi
13495           else
13496             result=$wxUSE_MINIFRAME
13497           fi
13498
13499           echo "$as_me:$LINENO: result: $result" >&5
13500 echo "${ECHO_T}$result" >&6
13501
13502
13503           enablestring=
13504           defaultval=$wxUSE_ALL_FEATURES
13505           if test -z"$defaultval"; then
13506               if test x"$enablestring" = xdisable; then
13507                   defaultval=yes
13508               else
13509                   defaultval=no
13510               fi
13511           fi
13512
13513           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
13514 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
13515           no_cache=0
13516           # Check whether --enable-tooltips or --disable-tooltips was given.
13517 if test "${enable_tooltips+set}" = set; then
13518   enableval="$enable_tooltips"
13519
13520                           if test "$enableval" = yes; then
13521                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
13522                           else
13523                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
13524                           fi
13525
13526 else
13527
13528                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
13529                           if test "x$LINE" != x ; then
13530                             eval "DEFAULT_$LINE"
13531                           else
13532                             no_cache=1
13533                           fi
13534
13535                           ac_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
13536
13537 fi;
13538
13539           eval "$ac_cv_use_tooltips"
13540           if test "$no_cache" != 1; then
13541             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
13542           fi
13543
13544           if test x"$enablestring" = xdisable; then
13545             if test $wxUSE_TOOLTIPS = yes; then
13546               result=no
13547             else
13548               result=yes
13549             fi
13550           else
13551             result=$wxUSE_TOOLTIPS
13552           fi
13553
13554           echo "$as_me:$LINENO: result: $result" >&5
13555 echo "${ECHO_T}$result" >&6
13556
13557
13558           enablestring=
13559           defaultval=$wxUSE_ALL_FEATURES
13560           if test -z"$defaultval"; then
13561               if test x"$enablestring" = xdisable; then
13562                   defaultval=yes
13563               else
13564                   defaultval=no
13565               fi
13566           fi
13567
13568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
13569 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
13570           no_cache=0
13571           # Check whether --enable-splines or --disable-splines was given.
13572 if test "${enable_splines+set}" = set; then
13573   enableval="$enable_splines"
13574
13575                           if test "$enableval" = yes; then
13576                             ac_cv_use_splines='wxUSE_SPLINES=yes'
13577                           else
13578                             ac_cv_use_splines='wxUSE_SPLINES=no'
13579                           fi
13580
13581 else
13582
13583                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
13584                           if test "x$LINE" != x ; then
13585                             eval "DEFAULT_$LINE"
13586                           else
13587                             no_cache=1
13588                           fi
13589
13590                           ac_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
13591
13592 fi;
13593
13594           eval "$ac_cv_use_splines"
13595           if test "$no_cache" != 1; then
13596             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
13597           fi
13598
13599           if test x"$enablestring" = xdisable; then
13600             if test $wxUSE_SPLINES = yes; then
13601               result=no
13602             else
13603               result=yes
13604             fi
13605           else
13606             result=$wxUSE_SPLINES
13607           fi
13608
13609           echo "$as_me:$LINENO: result: $result" >&5
13610 echo "${ECHO_T}$result" >&6
13611
13612
13613           enablestring=
13614           defaultval=$wxUSE_ALL_FEATURES
13615           if test -z"$defaultval"; then
13616               if test x"$enablestring" = xdisable; then
13617                   defaultval=yes
13618               else
13619                   defaultval=no
13620               fi
13621           fi
13622
13623           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13624 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
13625           no_cache=0
13626           # Check whether --enable-mousewheel or --disable-mousewheel was given.
13627 if test "${enable_mousewheel+set}" = set; then
13628   enableval="$enable_mousewheel"
13629
13630                           if test "$enableval" = yes; then
13631                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13632                           else
13633                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13634                           fi
13635
13636 else
13637
13638                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
13639                           if test "x$LINE" != x ; then
13640                             eval "DEFAULT_$LINE"
13641                           else
13642                             no_cache=1
13643                           fi
13644
13645                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13646
13647 fi;
13648
13649           eval "$ac_cv_use_mousewheel"
13650           if test "$no_cache" != 1; then
13651             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
13652           fi
13653
13654           if test x"$enablestring" = xdisable; then
13655             if test $wxUSE_MOUSEWHEEL = yes; then
13656               result=no
13657             else
13658               result=yes
13659             fi
13660           else
13661             result=$wxUSE_MOUSEWHEEL
13662           fi
13663
13664           echo "$as_me:$LINENO: result: $result" >&5
13665 echo "${ECHO_T}$result" >&6
13666
13667
13668           enablestring=
13669           defaultval=$wxUSE_ALL_FEATURES
13670           if test -z"$defaultval"; then
13671               if test x"$enablestring" = xdisable; then
13672                   defaultval=yes
13673               else
13674                   defaultval=no
13675               fi
13676           fi
13677
13678           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13679 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
13680           no_cache=0
13681           # Check whether --enable-validators or --disable-validators was given.
13682 if test "${enable_validators+set}" = set; then
13683   enableval="$enable_validators"
13684
13685                           if test "$enableval" = yes; then
13686                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
13687                           else
13688                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
13689                           fi
13690
13691 else
13692
13693                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
13694                           if test "x$LINE" != x ; then
13695                             eval "DEFAULT_$LINE"
13696                           else
13697                             no_cache=1
13698                           fi
13699
13700                           ac_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13701
13702 fi;
13703
13704           eval "$ac_cv_use_validators"
13705           if test "$no_cache" != 1; then
13706             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
13707           fi
13708
13709           if test x"$enablestring" = xdisable; then
13710             if test $wxUSE_VALIDATORS = yes; then
13711               result=no
13712             else
13713               result=yes
13714             fi
13715           else
13716             result=$wxUSE_VALIDATORS
13717           fi
13718
13719           echo "$as_me:$LINENO: result: $result" >&5
13720 echo "${ECHO_T}$result" >&6
13721
13722
13723           enablestring=
13724           defaultval=$wxUSE_ALL_FEATURES
13725           if test -z"$defaultval"; then
13726               if test x"$enablestring" = xdisable; then
13727                   defaultval=yes
13728               else
13729                   defaultval=no
13730               fi
13731           fi
13732
13733           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13734 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
13735           no_cache=0
13736           # Check whether --enable-busyinfo or --disable-busyinfo was given.
13737 if test "${enable_busyinfo+set}" = set; then
13738   enableval="$enable_busyinfo"
13739
13740                           if test "$enableval" = yes; then
13741                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13742                           else
13743                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13744                           fi
13745
13746 else
13747
13748                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
13749                           if test "x$LINE" != x ; then
13750                             eval "DEFAULT_$LINE"
13751                           else
13752                             no_cache=1
13753                           fi
13754
13755                           ac_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13756
13757 fi;
13758
13759           eval "$ac_cv_use_busyinfo"
13760           if test "$no_cache" != 1; then
13761             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
13762           fi
13763
13764           if test x"$enablestring" = xdisable; then
13765             if test $wxUSE_BUSYINFO = yes; then
13766               result=no
13767             else
13768               result=yes
13769             fi
13770           else
13771             result=$wxUSE_BUSYINFO
13772           fi
13773
13774           echo "$as_me:$LINENO: result: $result" >&5
13775 echo "${ECHO_T}$result" >&6
13776
13777
13778           enablestring=
13779           defaultval=$wxUSE_ALL_FEATURES
13780           if test -z"$defaultval"; then
13781               if test x"$enablestring" = xdisable; then
13782                   defaultval=yes
13783               else
13784                   defaultval=no
13785               fi
13786           fi
13787
13788           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13789 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
13790           no_cache=0
13791           # Check whether --enable-joystick or --disable-joystick was given.
13792 if test "${enable_joystick+set}" = set; then
13793   enableval="$enable_joystick"
13794
13795                           if test "$enableval" = yes; then
13796                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
13797                           else
13798                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
13799                           fi
13800
13801 else
13802
13803                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
13804                           if test "x$LINE" != x ; then
13805                             eval "DEFAULT_$LINE"
13806                           else
13807                             no_cache=1
13808                           fi
13809
13810                           ac_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13811
13812 fi;
13813
13814           eval "$ac_cv_use_joystick"
13815           if test "$no_cache" != 1; then
13816             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
13817           fi
13818
13819           if test x"$enablestring" = xdisable; then
13820             if test $wxUSE_JOYSTICK = yes; then
13821               result=no
13822             else
13823               result=yes
13824             fi
13825           else
13826             result=$wxUSE_JOYSTICK
13827           fi
13828
13829           echo "$as_me:$LINENO: result: $result" >&5
13830 echo "${ECHO_T}$result" >&6
13831
13832
13833           enablestring=
13834           defaultval=$wxUSE_ALL_FEATURES
13835           if test -z"$defaultval"; then
13836               if test x"$enablestring" = xdisable; then
13837                   defaultval=yes
13838               else
13839                   defaultval=no
13840               fi
13841           fi
13842
13843           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13844 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
13845           no_cache=0
13846           # Check whether --enable-metafile or --disable-metafile was given.
13847 if test "${enable_metafile+set}" = set; then
13848   enableval="$enable_metafile"
13849
13850                           if test "$enableval" = yes; then
13851                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
13852                           else
13853                             ac_cv_use_metafile='wxUSE_METAFILE=no'
13854                           fi
13855
13856 else
13857
13858                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
13859                           if test "x$LINE" != x ; then
13860                             eval "DEFAULT_$LINE"
13861                           else
13862                             no_cache=1
13863                           fi
13864
13865                           ac_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13866
13867 fi;
13868
13869           eval "$ac_cv_use_metafile"
13870           if test "$no_cache" != 1; then
13871             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
13872           fi
13873
13874           if test x"$enablestring" = xdisable; then
13875             if test $wxUSE_METAFILE = yes; then
13876               result=no
13877             else
13878               result=yes
13879             fi
13880           else
13881             result=$wxUSE_METAFILE
13882           fi
13883
13884           echo "$as_me:$LINENO: result: $result" >&5
13885 echo "${ECHO_T}$result" >&6
13886
13887
13888           enablestring=
13889           defaultval=$wxUSE_ALL_FEATURES
13890           if test -z"$defaultval"; then
13891               if test x"$enablestring" = xdisable; then
13892                   defaultval=yes
13893               else
13894                   defaultval=no
13895               fi
13896           fi
13897
13898           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13899 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
13900           no_cache=0
13901           # Check whether --enable-dragimage or --disable-dragimage was given.
13902 if test "${enable_dragimage+set}" = set; then
13903   enableval="$enable_dragimage"
13904
13905                           if test "$enableval" = yes; then
13906                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13907                           else
13908                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13909                           fi
13910
13911 else
13912
13913                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
13914                           if test "x$LINE" != x ; then
13915                             eval "DEFAULT_$LINE"
13916                           else
13917                             no_cache=1
13918                           fi
13919
13920                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13921
13922 fi;
13923
13924           eval "$ac_cv_use_dragimage"
13925           if test "$no_cache" != 1; then
13926             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
13927           fi
13928
13929           if test x"$enablestring" = xdisable; then
13930             if test $wxUSE_DRAGIMAGE = yes; then
13931               result=no
13932             else
13933               result=yes
13934             fi
13935           else
13936             result=$wxUSE_DRAGIMAGE
13937           fi
13938
13939           echo "$as_me:$LINENO: result: $result" >&5
13940 echo "${ECHO_T}$result" >&6
13941
13942
13943           enablestring=
13944           defaultval=$wxUSE_ALL_FEATURES
13945           if test -z"$defaultval"; then
13946               if test x"$enablestring" = xdisable; then
13947                   defaultval=yes
13948               else
13949                   defaultval=no
13950               fi
13951           fi
13952
13953           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13954 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
13955           no_cache=0
13956           # Check whether --enable-accessibility or --disable-accessibility was given.
13957 if test "${enable_accessibility+set}" = set; then
13958   enableval="$enable_accessibility"
13959
13960                           if test "$enableval" = yes; then
13961                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13962                           else
13963                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13964                           fi
13965
13966 else
13967
13968                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
13969                           if test "x$LINE" != x ; then
13970                             eval "DEFAULT_$LINE"
13971                           else
13972                             no_cache=1
13973                           fi
13974
13975                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13976
13977 fi;
13978
13979           eval "$ac_cv_use_accessibility"
13980           if test "$no_cache" != 1; then
13981             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
13982           fi
13983
13984           if test x"$enablestring" = xdisable; then
13985             if test $wxUSE_ACCESSIBILITY = yes; then
13986               result=no
13987             else
13988               result=yes
13989             fi
13990           else
13991             result=$wxUSE_ACCESSIBILITY
13992           fi
13993
13994           echo "$as_me:$LINENO: result: $result" >&5
13995 echo "${ECHO_T}$result" >&6
13996
13997
13998 if test "$wxUSE_MSW" = "1"; then
13999
14000           enablestring=
14001           defaultval=$wxUSE_ALL_FEATURES
14002           if test -z"$defaultval"; then
14003               if test x"$enablestring" = xdisable; then
14004                   defaultval=yes
14005               else
14006                   defaultval=no
14007               fi
14008           fi
14009
14010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
14011 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
14012           no_cache=0
14013           # Check whether --enable-dccache or --disable-dccache was given.
14014 if test "${enable_dccache+set}" = set; then
14015   enableval="$enable_dccache"
14016
14017                           if test "$enableval" = yes; then
14018                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
14019                           else
14020                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
14021                           fi
14022
14023 else
14024
14025                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
14026                           if test "x$LINE" != x ; then
14027                             eval "DEFAULT_$LINE"
14028                           else
14029                             no_cache=1
14030                           fi
14031
14032                           ac_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
14033
14034 fi;
14035
14036           eval "$ac_cv_use_dccache"
14037           if test "$no_cache" != 1; then
14038             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
14039           fi
14040
14041           if test x"$enablestring" = xdisable; then
14042             if test $wxUSE_DC_CACHEING = yes; then
14043               result=no
14044             else
14045               result=yes
14046             fi
14047           else
14048             result=$wxUSE_DC_CACHEING
14049           fi
14050
14051           echo "$as_me:$LINENO: result: $result" >&5
14052 echo "${ECHO_T}$result" >&6
14053
14054 fi
14055
14056
14057
14058           enablestring=
14059           defaultval=$wxUSE_ALL_FEATURES
14060           if test -z"$defaultval"; then
14061               if test x"$enablestring" = xdisable; then
14062                   defaultval=yes
14063               else
14064                   defaultval=no
14065               fi
14066           fi
14067
14068           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14069 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
14070           no_cache=0
14071           # Check whether --enable-palette or --disable-palette was given.
14072 if test "${enable_palette+set}" = set; then
14073   enableval="$enable_palette"
14074
14075                           if test "$enableval" = yes; then
14076                             ac_cv_use_palette='wxUSE_PALETTE=yes'
14077                           else
14078                             ac_cv_use_palette='wxUSE_PALETTE=no'
14079                           fi
14080
14081 else
14082
14083                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
14084                           if test "x$LINE" != x ; then
14085                             eval "DEFAULT_$LINE"
14086                           else
14087                             no_cache=1
14088                           fi
14089
14090                           ac_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14091
14092 fi;
14093
14094           eval "$ac_cv_use_palette"
14095           if test "$no_cache" != 1; then
14096             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
14097           fi
14098
14099           if test x"$enablestring" = xdisable; then
14100             if test $wxUSE_PALETTE = yes; then
14101               result=no
14102             else
14103               result=yes
14104             fi
14105           else
14106             result=$wxUSE_PALETTE
14107           fi
14108
14109           echo "$as_me:$LINENO: result: $result" >&5
14110 echo "${ECHO_T}$result" >&6
14111
14112
14113           enablestring=
14114           defaultval=$wxUSE_ALL_FEATURES
14115           if test -z"$defaultval"; then
14116               if test x"$enablestring" = xdisable; then
14117                   defaultval=yes
14118               else
14119                   defaultval=no
14120               fi
14121           fi
14122
14123           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14124 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
14125           no_cache=0
14126           # Check whether --enable-image or --disable-image was given.
14127 if test "${enable_image+set}" = set; then
14128   enableval="$enable_image"
14129
14130                           if test "$enableval" = yes; then
14131                             ac_cv_use_image='wxUSE_IMAGE=yes'
14132                           else
14133                             ac_cv_use_image='wxUSE_IMAGE=no'
14134                           fi
14135
14136 else
14137
14138                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
14139                           if test "x$LINE" != x ; then
14140                             eval "DEFAULT_$LINE"
14141                           else
14142                             no_cache=1
14143                           fi
14144
14145                           ac_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14146
14147 fi;
14148
14149           eval "$ac_cv_use_image"
14150           if test "$no_cache" != 1; then
14151             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
14152           fi
14153
14154           if test x"$enablestring" = xdisable; then
14155             if test $wxUSE_IMAGE = yes; then
14156               result=no
14157             else
14158               result=yes
14159             fi
14160           else
14161             result=$wxUSE_IMAGE
14162           fi
14163
14164           echo "$as_me:$LINENO: result: $result" >&5
14165 echo "${ECHO_T}$result" >&6
14166
14167
14168           enablestring=
14169           defaultval=$wxUSE_ALL_FEATURES
14170           if test -z"$defaultval"; then
14171               if test x"$enablestring" = xdisable; then
14172                   defaultval=yes
14173               else
14174                   defaultval=no
14175               fi
14176           fi
14177
14178           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14179 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
14180           no_cache=0
14181           # Check whether --enable-gif or --disable-gif was given.
14182 if test "${enable_gif+set}" = set; then
14183   enableval="$enable_gif"
14184
14185                           if test "$enableval" = yes; then
14186                             ac_cv_use_gif='wxUSE_GIF=yes'
14187                           else
14188                             ac_cv_use_gif='wxUSE_GIF=no'
14189                           fi
14190
14191 else
14192
14193                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
14194                           if test "x$LINE" != x ; then
14195                             eval "DEFAULT_$LINE"
14196                           else
14197                             no_cache=1
14198                           fi
14199
14200                           ac_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14201
14202 fi;
14203
14204           eval "$ac_cv_use_gif"
14205           if test "$no_cache" != 1; then
14206             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
14207           fi
14208
14209           if test x"$enablestring" = xdisable; then
14210             if test $wxUSE_GIF = yes; then
14211               result=no
14212             else
14213               result=yes
14214             fi
14215           else
14216             result=$wxUSE_GIF
14217           fi
14218
14219           echo "$as_me:$LINENO: result: $result" >&5
14220 echo "${ECHO_T}$result" >&6
14221
14222
14223           enablestring=
14224           defaultval=$wxUSE_ALL_FEATURES
14225           if test -z"$defaultval"; then
14226               if test x"$enablestring" = xdisable; then
14227                   defaultval=yes
14228               else
14229                   defaultval=no
14230               fi
14231           fi
14232
14233           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14234 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
14235           no_cache=0
14236           # Check whether --enable-pcx or --disable-pcx was given.
14237 if test "${enable_pcx+set}" = set; then
14238   enableval="$enable_pcx"
14239
14240                           if test "$enableval" = yes; then
14241                             ac_cv_use_pcx='wxUSE_PCX=yes'
14242                           else
14243                             ac_cv_use_pcx='wxUSE_PCX=no'
14244                           fi
14245
14246 else
14247
14248                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
14249                           if test "x$LINE" != x ; then
14250                             eval "DEFAULT_$LINE"
14251                           else
14252                             no_cache=1
14253                           fi
14254
14255                           ac_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14256
14257 fi;
14258
14259           eval "$ac_cv_use_pcx"
14260           if test "$no_cache" != 1; then
14261             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
14262           fi
14263
14264           if test x"$enablestring" = xdisable; then
14265             if test $wxUSE_PCX = yes; then
14266               result=no
14267             else
14268               result=yes
14269             fi
14270           else
14271             result=$wxUSE_PCX
14272           fi
14273
14274           echo "$as_me:$LINENO: result: $result" >&5
14275 echo "${ECHO_T}$result" >&6
14276
14277
14278           enablestring=
14279           defaultval=$wxUSE_ALL_FEATURES
14280           if test -z"$defaultval"; then
14281               if test x"$enablestring" = xdisable; then
14282                   defaultval=yes
14283               else
14284                   defaultval=no
14285               fi
14286           fi
14287
14288           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14289 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
14290           no_cache=0
14291           # Check whether --enable-tga or --disable-tga was given.
14292 if test "${enable_tga+set}" = set; then
14293   enableval="$enable_tga"
14294
14295                           if test "$enableval" = yes; then
14296                             ac_cv_use_tga='wxUSE_TGA=yes'
14297                           else
14298                             ac_cv_use_tga='wxUSE_TGA=no'
14299                           fi
14300
14301 else
14302
14303                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
14304                           if test "x$LINE" != x ; then
14305                             eval "DEFAULT_$LINE"
14306                           else
14307                             no_cache=1
14308                           fi
14309
14310                           ac_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
14311
14312 fi;
14313
14314           eval "$ac_cv_use_tga"
14315           if test "$no_cache" != 1; then
14316             echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
14317           fi
14318
14319           if test x"$enablestring" = xdisable; then
14320             if test $wxUSE_TGA = yes; then
14321               result=no
14322             else
14323               result=yes
14324             fi
14325           else
14326             result=$wxUSE_TGA
14327           fi
14328
14329           echo "$as_me:$LINENO: result: $result" >&5
14330 echo "${ECHO_T}$result" >&6
14331
14332
14333           enablestring=
14334           defaultval=$wxUSE_ALL_FEATURES
14335           if test -z"$defaultval"; then
14336               if test x"$enablestring" = xdisable; then
14337                   defaultval=yes
14338               else
14339                   defaultval=no
14340               fi
14341           fi
14342
14343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
14344 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
14345           no_cache=0
14346           # Check whether --enable-iff or --disable-iff was given.
14347 if test "${enable_iff+set}" = set; then
14348   enableval="$enable_iff"
14349
14350                           if test "$enableval" = yes; then
14351                             ac_cv_use_iff='wxUSE_IFF=yes'
14352                           else
14353                             ac_cv_use_iff='wxUSE_IFF=no'
14354                           fi
14355
14356 else
14357
14358                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
14359                           if test "x$LINE" != x ; then
14360                             eval "DEFAULT_$LINE"
14361                           else
14362                             no_cache=1
14363                           fi
14364
14365                           ac_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
14366
14367 fi;
14368
14369           eval "$ac_cv_use_iff"
14370           if test "$no_cache" != 1; then
14371             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
14372           fi
14373
14374           if test x"$enablestring" = xdisable; then
14375             if test $wxUSE_IFF = yes; then
14376               result=no
14377             else
14378               result=yes
14379             fi
14380           else
14381             result=$wxUSE_IFF
14382           fi
14383
14384           echo "$as_me:$LINENO: result: $result" >&5
14385 echo "${ECHO_T}$result" >&6
14386
14387
14388           enablestring=
14389           defaultval=$wxUSE_ALL_FEATURES
14390           if test -z"$defaultval"; then
14391               if test x"$enablestring" = xdisable; then
14392                   defaultval=yes
14393               else
14394                   defaultval=no
14395               fi
14396           fi
14397
14398           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
14399 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
14400           no_cache=0
14401           # Check whether --enable-pnm or --disable-pnm was given.
14402 if test "${enable_pnm+set}" = set; then
14403   enableval="$enable_pnm"
14404
14405                           if test "$enableval" = yes; then
14406                             ac_cv_use_pnm='wxUSE_PNM=yes'
14407                           else
14408                             ac_cv_use_pnm='wxUSE_PNM=no'
14409                           fi
14410
14411 else
14412
14413                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
14414                           if test "x$LINE" != x ; then
14415                             eval "DEFAULT_$LINE"
14416                           else
14417                             no_cache=1
14418                           fi
14419
14420                           ac_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
14421
14422 fi;
14423
14424           eval "$ac_cv_use_pnm"
14425           if test "$no_cache" != 1; then
14426             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
14427           fi
14428
14429           if test x"$enablestring" = xdisable; then
14430             if test $wxUSE_PNM = yes; then
14431               result=no
14432             else
14433               result=yes
14434             fi
14435           else
14436             result=$wxUSE_PNM
14437           fi
14438
14439           echo "$as_me:$LINENO: result: $result" >&5
14440 echo "${ECHO_T}$result" >&6
14441
14442
14443           enablestring=
14444           defaultval=$wxUSE_ALL_FEATURES
14445           if test -z"$defaultval"; then
14446               if test x"$enablestring" = xdisable; then
14447                   defaultval=yes
14448               else
14449                   defaultval=no
14450               fi
14451           fi
14452
14453           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
14454 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
14455           no_cache=0
14456           # Check whether --enable-xpm or --disable-xpm was given.
14457 if test "${enable_xpm+set}" = set; then
14458   enableval="$enable_xpm"
14459
14460                           if test "$enableval" = yes; then
14461                             ac_cv_use_xpm='wxUSE_XPM=yes'
14462                           else
14463                             ac_cv_use_xpm='wxUSE_XPM=no'
14464                           fi
14465
14466 else
14467
14468                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
14469                           if test "x$LINE" != x ; then
14470                             eval "DEFAULT_$LINE"
14471                           else
14472                             no_cache=1
14473                           fi
14474
14475                           ac_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
14476
14477 fi;
14478
14479           eval "$ac_cv_use_xpm"
14480           if test "$no_cache" != 1; then
14481             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
14482           fi
14483
14484           if test x"$enablestring" = xdisable; then
14485             if test $wxUSE_XPM = yes; then
14486               result=no
14487             else
14488               result=yes
14489             fi
14490           else
14491             result=$wxUSE_XPM
14492           fi
14493
14494           echo "$as_me:$LINENO: result: $result" >&5
14495 echo "${ECHO_T}$result" >&6
14496
14497
14498           enablestring=
14499           defaultval=$wxUSE_ALL_FEATURES
14500           if test -z"$defaultval"; then
14501               if test x"$enablestring" = xdisable; then
14502                   defaultval=yes
14503               else
14504                   defaultval=no
14505               fi
14506           fi
14507
14508           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
14509 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
14510           no_cache=0
14511           # Check whether --enable-ico_cur or --disable-ico_cur was given.
14512 if test "${enable_ico_cur+set}" = set; then
14513   enableval="$enable_ico_cur"
14514
14515                           if test "$enableval" = yes; then
14516                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
14517                           else
14518                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
14519                           fi
14520
14521 else
14522
14523                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
14524                           if test "x$LINE" != x ; then
14525                             eval "DEFAULT_$LINE"
14526                           else
14527                             no_cache=1
14528                           fi
14529
14530                           ac_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
14531
14532 fi;
14533
14534           eval "$ac_cv_use_ico_cur"
14535           if test "$no_cache" != 1; then
14536             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
14537           fi
14538
14539           if test x"$enablestring" = xdisable; then
14540             if test $wxUSE_ICO_CUR = yes; then
14541               result=no
14542             else
14543               result=yes
14544             fi
14545           else
14546             result=$wxUSE_ICO_CUR
14547           fi
14548
14549           echo "$as_me:$LINENO: result: $result" >&5
14550 echo "${ECHO_T}$result" >&6
14551
14552
14553 fi
14554
14555
14556           echo "saving argument cache $wx_arg_cache_file"
14557           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
14558
14559
14560
14561 echo "$as_me:$LINENO: checking for toolkit" >&5
14562 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
14563
14564 # In Wine, we need to default to MSW, not GTK or MOTIF
14565 if test "$wxUSE_WINE" = "yes"; then
14566     DEFAULT_DEFAULT_wxUSE_GTK=0
14567     DEFAULT_DEFAULT_wxUSE_MOTIF=0
14568     DEFAULT_DEFAULT_wxUSE_MSW=1
14569     wxUSE_SHARED=no
14570     CC=${CC:-winegcc}
14571     CXX=${CXX:-wineg++}
14572 fi
14573
14574
14575 if test "$wxUSE_GUI" = "yes"; then
14576
14577     if test "$USE_BEOS" = 1; then
14578         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
14579 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
14580    { (exit 1); exit 1; }; }
14581     fi
14582
14583     if test "$TOOLKIT_GIVEN" = 1; then
14584             for toolkit in `echo $ALL_TOOLKITS`; do
14585         var=wxUSE_$toolkit
14586         eval "value=\$${var}"
14587         if test "x$value" = "xno"; then
14588           eval "$var=0"
14589         elif test "x$value" != "x"; then
14590           eval "$var=1"
14591         fi
14592
14593         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
14594           eval "wx${toolkit}_VERSION=$value"
14595         fi
14596       done
14597     else
14598             for toolkit in `echo $ALL_TOOLKITS`; do
14599         if test "$has_toolkit_in_cache" != 1; then
14600           var=DEFAULT_DEFAULT_wxUSE_$toolkit
14601         else
14602           var=DEFAULT_wxUSE_$toolkit
14603
14604           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
14605           if test "x$version" != "x"; then
14606             eval "wx${toolkit}_VERSION=$version"
14607           fi
14608         fi
14609         eval "wxUSE_$toolkit=\$${var}"
14610       done
14611     fi
14612
14613             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
14614                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
14615                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
14616
14617         case "${host}" in
14618       *-pc-os2_emx | *-pc-os2-emx )
14619         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
14620     esac
14621
14622     case "$NUM_TOOLKITS" in
14623       1)
14624       ;;
14625       0)
14626         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
14627 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
14628    { (exit 1); exit 1; }; }
14629       ;;
14630       *)
14631         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
14632 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
14633    { (exit 1); exit 1; }; }
14634     esac
14635
14636     # to be removed when --disable-gtk2 isn't needed
14637     if test "x$wxUSE_GTK2" = "xyes"; then
14638         wxGTK_VERSION=2
14639     elif test "x$wxUSE_GTK2" = "xno"; then
14640         wxGTK_VERSION=1
14641     fi
14642
14643         for toolkit in `echo $ALL_TOOLKITS`; do
14644       var=wxUSE_$toolkit
14645       eval "value=\$${var}"
14646       if test "x$value" != x; then
14647         cache_var=CACHE_$toolkit
14648         eval "cache=\$${cache_var}"
14649         if test "$cache" = 1; then
14650           echo "$var=$value" >> ${wx_arg_cache_file}
14651           eval "version=\$wx${toolkit}_VERSION"
14652           if test "x$version" != "x"; then
14653             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
14654           fi
14655         fi
14656         if test "$value" = 1; then
14657           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
14658           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
14659 echo "${ECHO_T}$toolkit_echo" >&6
14660         fi
14661       fi
14662     done
14663 else
14664     if test "x$host_alias" != "x"; then
14665         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
14666 echo "${ECHO_T}base ($host_alias hosted) only" >&6
14667     else
14668         echo "$as_me:$LINENO: result: base only" >&5
14669 echo "${ECHO_T}base only" >&6
14670     fi
14671 fi
14672
14673
14674 cat >confcache <<\_ACEOF
14675 # This file is a shell script that caches the results of configure
14676 # tests run on this system so they can be shared between configure
14677 # scripts and configure runs, see configure's option --config-cache.
14678 # It is not useful on other systems.  If it contains results you don't
14679 # want to keep, you may remove or edit it.
14680 #
14681 # config.status only pays attention to the cache file if you give it
14682 # the --recheck option to rerun configure.
14683 #
14684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14686 # following values.
14687
14688 _ACEOF
14689
14690 # The following way of writing the cache mishandles newlines in values,
14691 # but we know of no workaround that is simple, portable, and efficient.
14692 # So, don't put newlines in cache variables' values.
14693 # Ultrix sh set writes to stderr and can't be redirected directly,
14694 # and sets the high bit in the cache file unless we assign to the vars.
14695 {
14696   (set) 2>&1 |
14697     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14698     *ac_space=\ *)
14699       # `set' does not quote correctly, so add quotes (double-quote
14700       # substitution turns \\\\ into \\, and sed turns \\ into \).
14701       sed -n \
14702         "s/'/'\\\\''/g;
14703           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14704       ;;
14705     *)
14706       # `set' quotes correctly as required by POSIX, so do not add quotes.
14707       sed -n \
14708         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14709       ;;
14710     esac;
14711 } |
14712   sed '
14713      t clear
14714      : clear
14715      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14716      t end
14717      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14718      : end' >>confcache
14719 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14720   if test -w $cache_file; then
14721     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14722     cat confcache >$cache_file
14723   else
14724     echo "not updating unwritable cache $cache_file"
14725   fi
14726 fi
14727 rm -f confcache
14728
14729 CFLAGS=${CFLAGS:=}
14730
14731
14732
14733     ac_ext=c
14734 ac_cpp='$CPP $CPPFLAGS'
14735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14738 if test -n "$ac_tool_prefix"; then
14739   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14741 echo "$as_me:$LINENO: checking for $ac_word" >&5
14742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14743 if test "${ac_cv_prog_CC+set}" = set; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746   if test -n "$CC"; then
14747   ac_cv_prog_CC="$CC" # Let the user override the test.
14748 else
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14751 do
14752   IFS=$as_save_IFS
14753   test -z "$as_dir" && as_dir=.
14754   for ac_exec_ext in '' $ac_executable_extensions; do
14755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14758     break 2
14759   fi
14760 done
14761 done
14762
14763 fi
14764 fi
14765 CC=$ac_cv_prog_CC
14766 if test -n "$CC"; then
14767   echo "$as_me:$LINENO: result: $CC" >&5
14768 echo "${ECHO_T}$CC" >&6
14769 else
14770   echo "$as_me:$LINENO: result: no" >&5
14771 echo "${ECHO_T}no" >&6
14772 fi
14773
14774 fi
14775 if test -z "$ac_cv_prog_CC"; then
14776   ac_ct_CC=$CC
14777   # Extract the first word of "gcc", so it can be a program name with args.
14778 set dummy gcc; ac_word=$2
14779 echo "$as_me:$LINENO: checking for $ac_word" >&5
14780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   if test -n "$ac_ct_CC"; then
14785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14786 else
14787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788 for as_dir in $PATH
14789 do
14790   IFS=$as_save_IFS
14791   test -z "$as_dir" && as_dir=.
14792   for ac_exec_ext in '' $ac_executable_extensions; do
14793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14794     ac_cv_prog_ac_ct_CC="gcc"
14795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14796     break 2
14797   fi
14798 done
14799 done
14800
14801 fi
14802 fi
14803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14804 if test -n "$ac_ct_CC"; then
14805   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14806 echo "${ECHO_T}$ac_ct_CC" >&6
14807 else
14808   echo "$as_me:$LINENO: result: no" >&5
14809 echo "${ECHO_T}no" >&6
14810 fi
14811
14812   CC=$ac_ct_CC
14813 else
14814   CC="$ac_cv_prog_CC"
14815 fi
14816
14817 if test -z "$CC"; then
14818   if test -n "$ac_tool_prefix"; then
14819   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14820 set dummy ${ac_tool_prefix}cc; ac_word=$2
14821 echo "$as_me:$LINENO: checking for $ac_word" >&5
14822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14823 if test "${ac_cv_prog_CC+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   if test -n "$CC"; then
14827   ac_cv_prog_CC="$CC" # Let the user override the test.
14828 else
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14831 do
14832   IFS=$as_save_IFS
14833   test -z "$as_dir" && as_dir=.
14834   for ac_exec_ext in '' $ac_executable_extensions; do
14835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14836     ac_cv_prog_CC="${ac_tool_prefix}cc"
14837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14838     break 2
14839   fi
14840 done
14841 done
14842
14843 fi
14844 fi
14845 CC=$ac_cv_prog_CC
14846 if test -n "$CC"; then
14847   echo "$as_me:$LINENO: result: $CC" >&5
14848 echo "${ECHO_T}$CC" >&6
14849 else
14850   echo "$as_me:$LINENO: result: no" >&5
14851 echo "${ECHO_T}no" >&6
14852 fi
14853
14854 fi
14855 if test -z "$ac_cv_prog_CC"; then
14856   ac_ct_CC=$CC
14857   # Extract the first word of "cc", so it can be a program name with args.
14858 set dummy cc; ac_word=$2
14859 echo "$as_me:$LINENO: checking for $ac_word" >&5
14860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14862   echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864   if test -n "$ac_ct_CC"; then
14865   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14869 do
14870   IFS=$as_save_IFS
14871   test -z "$as_dir" && as_dir=.
14872   for ac_exec_ext in '' $ac_executable_extensions; do
14873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14874     ac_cv_prog_ac_ct_CC="cc"
14875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14876     break 2
14877   fi
14878 done
14879 done
14880
14881 fi
14882 fi
14883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14884 if test -n "$ac_ct_CC"; then
14885   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14886 echo "${ECHO_T}$ac_ct_CC" >&6
14887 else
14888   echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6
14890 fi
14891
14892   CC=$ac_ct_CC
14893 else
14894   CC="$ac_cv_prog_CC"
14895 fi
14896
14897 fi
14898 if test -z "$CC"; then
14899   # Extract the first word of "cc", so it can be a program name with args.
14900 set dummy cc; ac_word=$2
14901 echo "$as_me:$LINENO: checking for $ac_word" >&5
14902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14903 if test "${ac_cv_prog_CC+set}" = set; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906   if test -n "$CC"; then
14907   ac_cv_prog_CC="$CC" # Let the user override the test.
14908 else
14909   ac_prog_rejected=no
14910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911 for as_dir in $PATH
14912 do
14913   IFS=$as_save_IFS
14914   test -z "$as_dir" && as_dir=.
14915   for ac_exec_ext in '' $ac_executable_extensions; do
14916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14917     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14918        ac_prog_rejected=yes
14919        continue
14920      fi
14921     ac_cv_prog_CC="cc"
14922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14923     break 2
14924   fi
14925 done
14926 done
14927
14928 if test $ac_prog_rejected = yes; then
14929   # We found a bogon in the path, so make sure we never use it.
14930   set dummy $ac_cv_prog_CC
14931   shift
14932   if test $# != 0; then
14933     # We chose a different compiler from the bogus one.
14934     # However, it has the same basename, so the bogon will be chosen
14935     # first if we set CC to just the basename; use the full file name.
14936     shift
14937     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14938   fi
14939 fi
14940 fi
14941 fi
14942 CC=$ac_cv_prog_CC
14943 if test -n "$CC"; then
14944   echo "$as_me:$LINENO: result: $CC" >&5
14945 echo "${ECHO_T}$CC" >&6
14946 else
14947   echo "$as_me:$LINENO: result: no" >&5
14948 echo "${ECHO_T}no" >&6
14949 fi
14950
14951 fi
14952 if test -z "$CC"; then
14953   if test -n "$ac_tool_prefix"; then
14954   for ac_prog in cl
14955   do
14956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14958 echo "$as_me:$LINENO: checking for $ac_word" >&5
14959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14960 if test "${ac_cv_prog_CC+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963   if test -n "$CC"; then
14964   ac_cv_prog_CC="$CC" # Let the user override the test.
14965 else
14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967 for as_dir in $PATH
14968 do
14969   IFS=$as_save_IFS
14970   test -z "$as_dir" && as_dir=.
14971   for ac_exec_ext in '' $ac_executable_extensions; do
14972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14973     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14975     break 2
14976   fi
14977 done
14978 done
14979
14980 fi
14981 fi
14982 CC=$ac_cv_prog_CC
14983 if test -n "$CC"; then
14984   echo "$as_me:$LINENO: result: $CC" >&5
14985 echo "${ECHO_T}$CC" >&6
14986 else
14987   echo "$as_me:$LINENO: result: no" >&5
14988 echo "${ECHO_T}no" >&6
14989 fi
14990
14991     test -n "$CC" && break
14992   done
14993 fi
14994 if test -z "$CC"; then
14995   ac_ct_CC=$CC
14996   for ac_prog in cl
14997 do
14998   # Extract the first word of "$ac_prog", so it can be a program name with args.
14999 set dummy $ac_prog; ac_word=$2
15000 echo "$as_me:$LINENO: checking for $ac_word" >&5
15001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   if test -n "$ac_ct_CC"; then
15006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15007 else
15008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15009 for as_dir in $PATH
15010 do
15011   IFS=$as_save_IFS
15012   test -z "$as_dir" && as_dir=.
15013   for ac_exec_ext in '' $ac_executable_extensions; do
15014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15015     ac_cv_prog_ac_ct_CC="$ac_prog"
15016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15017     break 2
15018   fi
15019 done
15020 done
15021
15022 fi
15023 fi
15024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15025 if test -n "$ac_ct_CC"; then
15026   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15027 echo "${ECHO_T}$ac_ct_CC" >&6
15028 else
15029   echo "$as_me:$LINENO: result: no" >&5
15030 echo "${ECHO_T}no" >&6
15031 fi
15032
15033   test -n "$ac_ct_CC" && break
15034 done
15035
15036   CC=$ac_ct_CC
15037 fi
15038
15039 fi
15040
15041
15042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15043 See \`config.log' for more details." >&5
15044 echo "$as_me: error: no acceptable C compiler found in \$PATH
15045 See \`config.log' for more details." >&2;}
15046    { (exit 1); exit 1; }; }
15047
15048 # Provide some information about the compiler.
15049 echo "$as_me:$LINENO:" \
15050      "checking for C compiler version" >&5
15051 ac_compiler=`set X $ac_compile; echo $2`
15052 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15053   (eval $ac_compiler --version </dev/null >&5) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }
15057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15058   (eval $ac_compiler -v </dev/null >&5) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); }
15062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15063   (eval $ac_compiler -V </dev/null >&5) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }
15067
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h.  */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h.  */
15074
15075 int
15076 main ()
15077 {
15078
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 ac_clean_files_save=$ac_clean_files
15084 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15085 # Try to create an executable without -o first, disregard a.out.
15086 # It will help us diagnose broken compilers, and finding out an intuition
15087 # of exeext.
15088 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15089 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
15090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
15092   (eval $ac_link_default) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; then
15096   # Find the output, starting from the most likely.  This scheme is
15097 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
15098 # resort.
15099
15100 # Be careful to initialize this variable, since it used to be cached.
15101 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
15102 ac_cv_exeext=
15103 # b.out is created by i960 compilers.
15104 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
15105 do
15106   test -f "$ac_file" || continue
15107   case $ac_file in
15108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
15109         ;;
15110     conftest.$ac_ext )
15111         # This is the source file.
15112         ;;
15113     [ab].out )
15114         # We found the default executable, but exeext='' is most
15115         # certainly right.
15116         break;;
15117     *.* )
15118         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15119         # FIXME: I believe we export ac_cv_exeext for Libtool,
15120         # but it would be cool to find out if it's true.  Does anybody
15121         # maintain Libtool? --akim.
15122         export ac_cv_exeext
15123         break;;
15124     * )
15125         break;;
15126   esac
15127 done
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
15133 See \`config.log' for more details." >&5
15134 echo "$as_me: error: C compiler cannot create executables
15135 See \`config.log' for more details." >&2;}
15136    { (exit 77); exit 77; }; }
15137 fi
15138
15139 ac_exeext=$ac_cv_exeext
15140 echo "$as_me:$LINENO: result: $ac_file" >&5
15141 echo "${ECHO_T}$ac_file" >&6
15142
15143 # Check the compiler produces executables we can run.  If not, either
15144 # the compiler is broken, or we cross compile.
15145 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
15146 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
15147 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
15148 # If not cross compiling, check that we can run a simple program.
15149 if test "$cross_compiling" != yes; then
15150   if { ac_try='./$ac_file'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156     cross_compiling=no
15157   else
15158     if test "$cross_compiling" = maybe; then
15159         cross_compiling=yes
15160     else
15161         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
15162 If you meant to cross compile, use \`--host'.
15163 See \`config.log' for more details." >&5
15164 echo "$as_me: error: cannot run C compiled programs.
15165 If you meant to cross compile, use \`--host'.
15166 See \`config.log' for more details." >&2;}
15167    { (exit 1); exit 1; }; }
15168     fi
15169   fi
15170 fi
15171 echo "$as_me:$LINENO: result: yes" >&5
15172 echo "${ECHO_T}yes" >&6
15173
15174 rm -f a.out a.exe conftest$ac_cv_exeext b.out
15175 ac_clean_files=$ac_clean_files_save
15176 # Check the compiler produces executables we can run.  If not, either
15177 # the compiler is broken, or we cross compile.
15178 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
15179 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
15180 echo "$as_me:$LINENO: result: $cross_compiling" >&5
15181 echo "${ECHO_T}$cross_compiling" >&6
15182
15183 echo "$as_me:$LINENO: checking for suffix of executables" >&5
15184 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186   (eval $ac_link) 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); }; then
15190   # If both `conftest.exe' and `conftest' are `present' (well, observable)
15191 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
15192 # work properly (i.e., refer to `conftest.exe'), while it won't with
15193 # `rm'.
15194 for ac_file in conftest.exe conftest conftest.*; do
15195   test -f "$ac_file" || continue
15196   case $ac_file in
15197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
15198     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
15199           export ac_cv_exeext
15200           break;;
15201     * ) break;;
15202   esac
15203 done
15204 else
15205   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
15206 See \`config.log' for more details." >&5
15207 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
15208 See \`config.log' for more details." >&2;}
15209    { (exit 1); exit 1; }; }
15210 fi
15211
15212 rm -f conftest$ac_cv_exeext
15213 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
15214 echo "${ECHO_T}$ac_cv_exeext" >&6
15215
15216 rm -f conftest.$ac_ext
15217 EXEEXT=$ac_cv_exeext
15218 ac_exeext=$EXEEXT
15219 echo "$as_me:$LINENO: checking for suffix of object files" >&5
15220 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
15221 if test "${ac_cv_objext+set}" = set; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224   cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h.  */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h.  */
15230
15231 int
15232 main ()
15233 {
15234
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 rm -f conftest.o conftest.obj
15240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241   (eval $ac_compile) 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); }; then
15245   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
15246   case $ac_file in
15247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
15248     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
15249        break;;
15250   esac
15251 done
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
15257 See \`config.log' for more details." >&5
15258 echo "$as_me: error: cannot compute suffix of object files: cannot compile
15259 See \`config.log' for more details." >&2;}
15260    { (exit 1); exit 1; }; }
15261 fi
15262
15263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
15264 fi
15265 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
15266 echo "${ECHO_T}$ac_cv_objext" >&6
15267 OBJEXT=$ac_cv_objext
15268 ac_objext=$OBJEXT
15269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15272   echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274   cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280
15281 int
15282 main ()
15283 {
15284 #ifndef __GNUC__
15285        choke me
15286 #endif
15287
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 rm -f conftest.$ac_objext
15293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15294   (eval $ac_compile) 2>conftest.er1
15295   ac_status=$?
15296   grep -v '^ *+' conftest.er1 >conftest.err
15297   rm -f conftest.er1
15298   cat conftest.err >&5
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; } &&
15307          { ac_try='test -s conftest.$ac_objext'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313   ac_compiler_gnu=yes
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_compiler_gnu=no
15319 fi
15320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15322
15323 fi
15324 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15326 GCC=`test $ac_compiler_gnu = yes && echo yes`
15327 ac_test_CFLAGS=${CFLAGS+set}
15328 ac_save_CFLAGS=$CFLAGS
15329 CFLAGS="-g"
15330 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15331 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15332 if test "${ac_cv_prog_cc_g+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341
15342 int
15343 main ()
15344 {
15345
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352   (eval $ac_compile) 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } &&
15359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361   (eval $ac_try) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; } &&
15365          { ac_try='test -s conftest.$ac_objext'
15366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367   (eval $ac_try) 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); }; }; then
15371   ac_cv_prog_cc_g=yes
15372 else
15373   echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ac_cv_prog_cc_g=no
15377 fi
15378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15381 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15382 if test "$ac_test_CFLAGS" = set; then
15383   CFLAGS=$ac_save_CFLAGS
15384 elif test $ac_cv_prog_cc_g = yes; then
15385   if test "$GCC" = yes; then
15386     CFLAGS="-g -O2"
15387   else
15388     CFLAGS="-g"
15389   fi
15390 else
15391   if test "$GCC" = yes; then
15392     CFLAGS="-O2"
15393   else
15394     CFLAGS=
15395   fi
15396 fi
15397 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15398 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15399 if test "${ac_cv_prog_cc_stdc+set}" = set; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   ac_cv_prog_cc_stdc=no
15403 ac_save_CC=$CC
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410 #include <stdarg.h>
15411 #include <stdio.h>
15412 #include <sys/types.h>
15413 #include <sys/stat.h>
15414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15415 struct buf { int x; };
15416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15417 static char *e (p, i)
15418      char **p;
15419      int i;
15420 {
15421   return p[i];
15422 }
15423 static char *f (char * (*g) (char **, int), char **p, ...)
15424 {
15425   char *s;
15426   va_list v;
15427   va_start (v,p);
15428   s = g (p, va_arg (v,int));
15429   va_end (v);
15430   return s;
15431 }
15432
15433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15434    function prototypes and stuff, but not '\xHH' hex character constants.
15435    These don't provoke an error unfortunately, instead are silently treated
15436    as 'x'.  The following induces an error, until -std1 is added to get
15437    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15438    array size at least.  It's necessary to write '\x00'==0 to get something
15439    that's true only with -std1.  */
15440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15441
15442 int test (int i, double x);
15443 struct s1 {int (*f) (int a);};
15444 struct s2 {int (*f) (double a);};
15445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15446 int argc;
15447 char **argv;
15448 int
15449 main ()
15450 {
15451 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 # Don't try gcc -ansi; that turns off useful extensions and
15457 # breaks some systems' header files.
15458 # AIX                   -qlanglvl=ansi
15459 # Ultrix and OSF/1      -std1
15460 # HP-UX 10.20 and later -Ae
15461 # HP-UX older versions  -Aa -D_HPUX_SOURCE
15462 # SVR4                  -Xc -D__EXTENSIONS__
15463 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15464 do
15465   CC="$ac_save_CC $ac_arg"
15466   rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468   (eval $ac_compile) 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } &&
15475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477   (eval $ac_try) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; } &&
15481          { ac_try='test -s conftest.$ac_objext'
15482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483   (eval $ac_try) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }; }; then
15487   ac_cv_prog_cc_stdc=$ac_arg
15488 break
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 fi
15494 rm -f conftest.err conftest.$ac_objext
15495 done
15496 rm -f conftest.$ac_ext conftest.$ac_objext
15497 CC=$ac_save_CC
15498
15499 fi
15500
15501 case "x$ac_cv_prog_cc_stdc" in
15502   x|xno)
15503     echo "$as_me:$LINENO: result: none needed" >&5
15504 echo "${ECHO_T}none needed" >&6 ;;
15505   *)
15506     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
15507 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
15508     CC="$CC $ac_cv_prog_cc_stdc" ;;
15509 esac
15510
15511 # Some people use a C++ compiler to compile C.  Since we use `exit',
15512 # in C++ we need to declare it.  In case someone uses the same compiler
15513 # for both compiling C and C++ we need to have the C++ compiler decide
15514 # the declaration of exit, since it's the most demanding environment.
15515 cat >conftest.$ac_ext <<_ACEOF
15516 #ifndef __cplusplus
15517   choke me
15518 #endif
15519 _ACEOF
15520 rm -f conftest.$ac_objext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522   (eval $ac_compile) 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } &&
15529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531   (eval $ac_try) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; } &&
15535          { ac_try='test -s conftest.$ac_objext'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541   for ac_declaration in \
15542    '' \
15543    'extern "C" void std::exit (int) throw (); using std::exit;' \
15544    'extern "C" void std::exit (int); using std::exit;' \
15545    'extern "C" void exit (int) throw ();' \
15546    'extern "C" void exit (int);' \
15547    'void exit (int);'
15548 do
15549   cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555 $ac_declaration
15556 #include <stdlib.h>
15557 int
15558 main ()
15559 {
15560 exit (42);
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 rm -f conftest.$ac_objext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15567   (eval $ac_compile) 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; } &&
15580          { ac_try='test -s conftest.$ac_objext'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; }; then
15586   :
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15590
15591 continue
15592 fi
15593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15594   cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 $ac_declaration
15601 int
15602 main ()
15603 {
15604 exit (42);
15605   ;
15606   return 0;
15607 }
15608 _ACEOF
15609 rm -f conftest.$ac_objext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611   (eval $ac_compile) 2>conftest.er1
15612   ac_status=$?
15613   grep -v '^ *+' conftest.er1 >conftest.err
15614   rm -f conftest.er1
15615   cat conftest.err >&5
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); } &&
15618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620   (eval $ac_try) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; } &&
15624          { ac_try='test -s conftest.$ac_objext'
15625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626   (eval $ac_try) 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; }; then
15630   break
15631 else
15632   echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 fi
15636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15637 done
15638 rm -f conftest*
15639 if test -n "$ac_declaration"; then
15640   echo '#ifdef __cplusplus' >>confdefs.h
15641   echo $ac_declaration      >>confdefs.h
15642   echo '#endif'             >>confdefs.h
15643 fi
15644
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 fi
15650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15651 ac_ext=c
15652 ac_cpp='$CPP $CPPFLAGS'
15653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15656
15657
15658
15659
15660     ac_ext=c
15661 ac_cpp='$CPP $CPPFLAGS'
15662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15665
15666     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
15667 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
15668 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15669   echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671   cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677
15678 int
15679 main ()
15680 {
15681
15682              #ifndef __INTEL_COMPILER
15683                 choke me
15684              #endif
15685
15686   ;
15687   return 0;
15688 }
15689 _ACEOF
15690 rm -f conftest.$ac_objext
15691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15692   (eval $ac_compile) 2>conftest.er1
15693   ac_status=$?
15694   grep -v '^ *+' conftest.er1 >conftest.err
15695   rm -f conftest.er1
15696   cat conftest.err >&5
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } &&
15699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701   (eval $ac_try) 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; } &&
15705          { ac_try='test -s conftest.$ac_objext'
15706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707   (eval $ac_try) 2>&5
15708   ac_status=$?
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); }; }; then
15711   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15712 else
15713   echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716 bakefile_cv_c_compiler___INTEL_COMPILER=no
15717
15718 fi
15719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15720
15721
15722 fi
15723 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15724 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
15725     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15726         :; INTELCC=yes
15727     else
15728         :;
15729     fi
15730     ac_ext=c
15731 ac_cpp='$CPP $CPPFLAGS'
15732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15735
15736
15737
15738
15739         if test "x$GCC" != "xyes"; then
15740         if test "xCC" = "xC"; then
15741             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15742 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
15743 if test "${bakefile_cv_c_exto+set}" = set; then
15744   echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746   cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752
15753 int
15754 main ()
15755 {
15756
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest.$ac_objext conftest.$ac_ext.o
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763   (eval $ac_compile) 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; then
15767   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15768     case $ac_file in
15769         conftest.$ac_ext.o)
15770             bakefile_cv_c_exto="-ext o"
15771             ;;
15772         *)
15773             ;;
15774     esac
15775 done
15776 else
15777   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15778 See \`config.log' for more details." >&5
15779 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15780 See \`config.log' for more details." >&2;}
15781    { (exit 1); exit 1; }; }
15782
15783 fi
15784
15785 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15786
15787 fi
15788 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15789 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
15790 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15791     if test "c" = "c"; then
15792         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15793     fi
15794     if test "c" = "cxx"; then
15795         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15796     fi
15797 fi
15798
15799             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15800                 unset ac_cv_prog_cc_g
15801                 ac_test_CFLAGS=${CFLAGS+set}
15802 ac_save_CFLAGS=$CFLAGS
15803 CFLAGS="-g"
15804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15806 if test "${ac_cv_prog_cc_g+set}" = set; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815
15816 int
15817 main ()
15818 {
15819
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest.$ac_objext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15826   (eval $ac_compile) 2>conftest.er1
15827   ac_status=$?
15828   grep -v '^ *+' conftest.er1 >conftest.err
15829   rm -f conftest.er1
15830   cat conftest.err >&5
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } &&
15833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835   (eval $ac_try) 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; } &&
15839          { ac_try='test -s conftest.$ac_objext'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; }; then
15845   ac_cv_prog_cc_g=yes
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_cv_prog_cc_g=no
15851 fi
15852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15853 fi
15854 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15855 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15856 if test "$ac_test_CFLAGS" = set; then
15857   CFLAGS=$ac_save_CFLAGS
15858 elif test $ac_cv_prog_cc_g = yes; then
15859   if test "$GCC" = yes; then
15860     CFLAGS="-g -O2"
15861   else
15862     CFLAGS="-g"
15863   fi
15864 else
15865   if test "$GCC" = yes; then
15866     CFLAGS="-O2"
15867   else
15868     CFLAGS=
15869   fi
15870 fi
15871             fi
15872         fi
15873
15874                         case `uname -s` in
15875             AIX*)
15876
15877
15878     ac_ext=c
15879 ac_cpp='$CPP $CPPFLAGS'
15880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15883
15884     echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15885 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
15886 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895
15896 int
15897 main ()
15898 {
15899
15900              #ifndef __xlC__
15901                 choke me
15902              #endif
15903
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910   (eval $ac_compile) 2>conftest.er1
15911   ac_status=$?
15912   grep -v '^ *+' conftest.er1 >conftest.err
15913   rm -f conftest.er1
15914   cat conftest.err >&5
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); } &&
15917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest.$ac_objext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929   bakefile_cv_c_compiler___xlC__=yes
15930 else
15931   echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934 bakefile_cv_c_compiler___xlC__=no
15935
15936 fi
15937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15938
15939
15940 fi
15941 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15942 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6
15943     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15944         :; XLCC=yes
15945     else
15946         :;
15947     fi
15948     ac_ext=c
15949 ac_cpp='$CPP $CPPFLAGS'
15950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15953
15954
15955
15956                 ;;
15957
15958             Darwin)
15959
15960
15961     ac_ext=c
15962 ac_cpp='$CPP $CPPFLAGS'
15963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15966
15967     echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15968 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
15969 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978
15979 int
15980 main ()
15981 {
15982
15983              #ifndef __MWERKS__
15984                 choke me
15985              #endif
15986
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15993   (eval $ac_compile) 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } &&
16000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002   (eval $ac_try) 2>&5
16003   ac_status=$?
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); }; } &&
16006          { ac_try='test -s conftest.$ac_objext'
16007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008   (eval $ac_try) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); }; }; then
16012   bakefile_cv_c_compiler___MWERKS__=yes
16013 else
16014   echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017 bakefile_cv_c_compiler___MWERKS__=no
16018
16019 fi
16020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021
16022
16023 fi
16024 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16025 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6
16026     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16027         :; MWCC=yes
16028     else
16029         :;
16030     fi
16031     ac_ext=c
16032 ac_cpp='$CPP $CPPFLAGS'
16033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16036
16037
16038
16039
16040
16041     ac_ext=c
16042 ac_cpp='$CPP $CPPFLAGS'
16043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16046
16047     echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16048 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
16049 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16050   echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052   cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058
16059 int
16060 main ()
16061 {
16062
16063              #ifndef __xlC__
16064                 choke me
16065              #endif
16066
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073   (eval $ac_compile) 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082   (eval $ac_try) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; } &&
16086          { ac_try='test -s conftest.$ac_objext'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   bakefile_cv_c_compiler___xlC__=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 bakefile_cv_c_compiler___xlC__=no
16098
16099 fi
16100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16101
16102
16103 fi
16104 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16105 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6
16106     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16107         :; XLCC=yes
16108     else
16109         :;
16110     fi
16111     ac_ext=c
16112 ac_cpp='$CPP $CPPFLAGS'
16113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16116
16117
16118
16119                 ;;
16120
16121             IRIX*)
16122
16123
16124     ac_ext=c
16125 ac_cpp='$CPP $CPPFLAGS'
16126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16129
16130     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
16131 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
16132 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h.  */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h.  */
16141
16142 int
16143 main ()
16144 {
16145
16146              #ifndef _SGI_COMPILER_VERSION
16147                 choke me
16148              #endif
16149
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16156   (eval $ac_compile) 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } &&
16163          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165   (eval $ac_try) 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; } &&
16169          { ac_try='test -s conftest.$ac_objext'
16170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171   (eval $ac_try) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; }; then
16175   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
16176 else
16177   echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
16181
16182 fi
16183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16184
16185
16186 fi
16187 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
16188 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
16189     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16190         :; SGICC=yes
16191     else
16192         :;
16193     fi
16194     ac_ext=c
16195 ac_cpp='$CPP $CPPFLAGS'
16196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16199
16200
16201
16202                 ;;
16203
16204             Linux*)
16205
16206
16207     ac_ext=c
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16212
16213     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16214 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
16215 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16216   echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218   cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224
16225 int
16226 main ()
16227 {
16228
16229              #ifndef __SUNPRO_C
16230                 choke me
16231              #endif
16232
16233   ;
16234   return 0;
16235 }
16236 _ACEOF
16237 rm -f conftest.$ac_objext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239   (eval $ac_compile) 2>conftest.er1
16240   ac_status=$?
16241   grep -v '^ *+' conftest.er1 >conftest.err
16242   rm -f conftest.er1
16243   cat conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); } &&
16246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248   (eval $ac_try) 2>&5
16249   ac_status=$?
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); }; } &&
16252          { ac_try='test -s conftest.$ac_objext'
16253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254   (eval $ac_try) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; }; then
16258   bakefile_cv_c_compiler___SUNPRO_C=yes
16259 else
16260   echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 bakefile_cv_c_compiler___SUNPRO_C=no
16264
16265 fi
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267
16268
16269 fi
16270 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16271 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
16272     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16273         :; SUNCC=yes
16274     else
16275         :;
16276     fi
16277     ac_ext=c
16278 ac_cpp='$CPP $CPPFLAGS'
16279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16282
16283
16284
16285                 ;;
16286
16287             HP-UX*)
16288
16289
16290     ac_ext=c
16291 ac_cpp='$CPP $CPPFLAGS'
16292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16295
16296     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
16297 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
16298 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301   cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307
16308 int
16309 main ()
16310 {
16311
16312              #ifndef __HP_cc
16313                 choke me
16314              #endif
16315
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16322   (eval $ac_compile) 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; } &&
16335          { ac_try='test -s conftest.$ac_objext'
16336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337   (eval $ac_try) 2>&5
16338   ac_status=$?
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); }; }; then
16341   bakefile_cv_c_compiler___HP_cc=yes
16342 else
16343   echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16345
16346 bakefile_cv_c_compiler___HP_cc=no
16347
16348 fi
16349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16350
16351
16352 fi
16353 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
16354 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
16355     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
16356         :; HPCC=yes
16357     else
16358         :;
16359     fi
16360     ac_ext=c
16361 ac_cpp='$CPP $CPPFLAGS'
16362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16365
16366
16367
16368                 ;;
16369
16370             OSF1)
16371
16372
16373     ac_ext=c
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16378
16379     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
16380 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
16381 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384   cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390
16391 int
16392 main ()
16393 {
16394
16395              #ifndef __DECC
16396                 choke me
16397              #endif
16398
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405   (eval $ac_compile) 2>conftest.er1
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
16409   cat conftest.err >&5
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); } &&
16412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414   (eval $ac_try) 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; } &&
16418          { ac_try='test -s conftest.$ac_objext'
16419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420   (eval $ac_try) 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); }; }; then
16424   bakefile_cv_c_compiler___DECC=yes
16425 else
16426   echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 bakefile_cv_c_compiler___DECC=no
16430
16431 fi
16432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16433
16434
16435 fi
16436 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
16437 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
16438     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
16439         :; COMPAQCC=yes
16440     else
16441         :;
16442     fi
16443     ac_ext=c
16444 ac_cpp='$CPP $CPPFLAGS'
16445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16448
16449
16450
16451                 ;;
16452
16453             SunOS)
16454
16455
16456     ac_ext=c
16457 ac_cpp='$CPP $CPPFLAGS'
16458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16461
16462     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16463 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
16464 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473
16474 int
16475 main ()
16476 {
16477
16478              #ifndef __SUNPRO_C
16479                 choke me
16480              #endif
16481
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488   (eval $ac_compile) 2>conftest.er1
16489   ac_status=$?
16490   grep -v '^ *+' conftest.er1 >conftest.err
16491   rm -f conftest.er1
16492   cat conftest.err >&5
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); } &&
16495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; } &&
16501          { ac_try='test -s conftest.$ac_objext'
16502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503   (eval $ac_try) 2>&5
16504   ac_status=$?
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); }; }; then
16507   bakefile_cv_c_compiler___SUNPRO_C=yes
16508 else
16509   echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 bakefile_cv_c_compiler___SUNPRO_C=no
16513
16514 fi
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516
16517
16518 fi
16519 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16520 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
16521     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16522         :; SUNCC=yes
16523     else
16524         :;
16525     fi
16526     ac_ext=c
16527 ac_cpp='$CPP $CPPFLAGS'
16528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16531
16532
16533
16534                 ;;
16535         esac
16536     fi
16537
16538
16539
16540 ac_ext=c
16541 ac_cpp='$CPP $CPPFLAGS'
16542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16545 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16546 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
16547 # On Suns, sometimes $CPP names a directory.
16548 if test -n "$CPP" && test -d "$CPP"; then
16549   CPP=
16550 fi
16551 if test -z "$CPP"; then
16552   if test "${ac_cv_prog_CPP+set}" = set; then
16553   echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555       # Double quotes because CPP needs to be expanded
16556     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16557     do
16558       ac_preproc_ok=false
16559 for ac_c_preproc_warn_flag in '' yes
16560 do
16561   # Use a header file that comes with gcc, so configuring glibc
16562   # with a fresh cross-compiler works.
16563   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564   # <limits.h> exists even on freestanding compilers.
16565   # On the NeXT, cc -E runs the code through the compiler's parser,
16566   # not just through cpp. "Syntax error" is here to catch this case.
16567   cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573 #ifdef __STDC__
16574 # include <limits.h>
16575 #else
16576 # include <assert.h>
16577 #endif
16578                      Syntax error
16579 _ACEOF
16580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16582   ac_status=$?
16583   grep -v '^ *+' conftest.er1 >conftest.err
16584   rm -f conftest.er1
16585   cat conftest.err >&5
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } >/dev/null; then
16588   if test -s conftest.err; then
16589     ac_cpp_err=$ac_c_preproc_warn_flag
16590     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16591   else
16592     ac_cpp_err=
16593   fi
16594 else
16595   ac_cpp_err=yes
16596 fi
16597 if test -z "$ac_cpp_err"; then
16598   :
16599 else
16600   echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603   # Broken: fails on valid input.
16604 continue
16605 fi
16606 rm -f conftest.err conftest.$ac_ext
16607
16608   # OK, works on sane cases.  Now check whether non-existent headers
16609   # can be detected and how.
16610   cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616 #include <ac_nonexistent.h>
16617 _ACEOF
16618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } >/dev/null; then
16626   if test -s conftest.err; then
16627     ac_cpp_err=$ac_c_preproc_warn_flag
16628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16629   else
16630     ac_cpp_err=
16631   fi
16632 else
16633   ac_cpp_err=yes
16634 fi
16635 if test -z "$ac_cpp_err"; then
16636   # Broken: success on invalid input.
16637 continue
16638 else
16639   echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16641
16642   # Passes both tests.
16643 ac_preproc_ok=:
16644 break
16645 fi
16646 rm -f conftest.err conftest.$ac_ext
16647
16648 done
16649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16650 rm -f conftest.err conftest.$ac_ext
16651 if $ac_preproc_ok; then
16652   break
16653 fi
16654
16655     done
16656     ac_cv_prog_CPP=$CPP
16657
16658 fi
16659   CPP=$ac_cv_prog_CPP
16660 else
16661   ac_cv_prog_CPP=$CPP
16662 fi
16663 echo "$as_me:$LINENO: result: $CPP" >&5
16664 echo "${ECHO_T}$CPP" >&6
16665 ac_preproc_ok=false
16666 for ac_c_preproc_warn_flag in '' yes
16667 do
16668   # Use a header file that comes with gcc, so configuring glibc
16669   # with a fresh cross-compiler works.
16670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16671   # <limits.h> exists even on freestanding compilers.
16672   # On the NeXT, cc -E runs the code through the compiler's parser,
16673   # not just through cpp. "Syntax error" is here to catch this case.
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680 #ifdef __STDC__
16681 # include <limits.h>
16682 #else
16683 # include <assert.h>
16684 #endif
16685                      Syntax error
16686 _ACEOF
16687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16689   ac_status=$?
16690   grep -v '^ *+' conftest.er1 >conftest.err
16691   rm -f conftest.er1
16692   cat conftest.err >&5
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } >/dev/null; then
16695   if test -s conftest.err; then
16696     ac_cpp_err=$ac_c_preproc_warn_flag
16697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16698   else
16699     ac_cpp_err=
16700   fi
16701 else
16702   ac_cpp_err=yes
16703 fi
16704 if test -z "$ac_cpp_err"; then
16705   :
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710   # Broken: fails on valid input.
16711 continue
16712 fi
16713 rm -f conftest.err conftest.$ac_ext
16714
16715   # OK, works on sane cases.  Now check whether non-existent headers
16716   # can be detected and how.
16717   cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h.  */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h.  */
16723 #include <ac_nonexistent.h>
16724 _ACEOF
16725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16727   ac_status=$?
16728   grep -v '^ *+' conftest.er1 >conftest.err
16729   rm -f conftest.er1
16730   cat conftest.err >&5
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } >/dev/null; then
16733   if test -s conftest.err; then
16734     ac_cpp_err=$ac_c_preproc_warn_flag
16735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16736   else
16737     ac_cpp_err=
16738   fi
16739 else
16740   ac_cpp_err=yes
16741 fi
16742 if test -z "$ac_cpp_err"; then
16743   # Broken: success on invalid input.
16744 continue
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749   # Passes both tests.
16750 ac_preproc_ok=:
16751 break
16752 fi
16753 rm -f conftest.err conftest.$ac_ext
16754
16755 done
16756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16757 rm -f conftest.err conftest.$ac_ext
16758 if $ac_preproc_ok; then
16759   :
16760 else
16761   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16762 See \`config.log' for more details." >&5
16763 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16764 See \`config.log' for more details." >&2;}
16765    { (exit 1); exit 1; }; }
16766 fi
16767
16768 ac_ext=c
16769 ac_cpp='$CPP $CPPFLAGS'
16770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16773
16774
16775 echo "$as_me:$LINENO: checking for egrep" >&5
16776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
16777 if test "${ac_cv_prog_egrep+set}" = set; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
16781     then ac_cv_prog_egrep='grep -E'
16782     else ac_cv_prog_egrep='egrep'
16783     fi
16784 fi
16785 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
16786 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
16787  EGREP=$ac_cv_prog_egrep
16788
16789
16790 if test $ac_cv_c_compiler_gnu = yes; then
16791     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16792 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
16793 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796     ac_pattern="Autoconf.*'x'"
16797   cat >conftest.$ac_ext <<_ACEOF
16798 /* confdefs.h.  */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h.  */
16803 #include <sgtty.h>
16804 Autoconf TIOCGETP
16805 _ACEOF
16806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16807   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16808   ac_cv_prog_gcc_traditional=yes
16809 else
16810   ac_cv_prog_gcc_traditional=no
16811 fi
16812 rm -f conftest*
16813
16814
16815   if test $ac_cv_prog_gcc_traditional = no; then
16816     cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h.  */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h.  */
16822 #include <termio.h>
16823 Autoconf TCGETA
16824 _ACEOF
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16827   ac_cv_prog_gcc_traditional=yes
16828 fi
16829 rm -f conftest*
16830
16831   fi
16832 fi
16833 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16834 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
16835   if test $ac_cv_prog_gcc_traditional = yes; then
16836     CC="$CC -traditional"
16837   fi
16838 fi
16839
16840
16841 CXXFLAGS=${CXXFLAGS:=}
16842
16843
16844
16845     ac_ext=cc
16846 ac_cpp='$CXXCPP $CPPFLAGS'
16847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16850 if test -n "$ac_tool_prefix"; then
16851   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16852   do
16853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16855 echo "$as_me:$LINENO: checking for $ac_word" >&5
16856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16857 if test "${ac_cv_prog_CXX+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   if test -n "$CXX"; then
16861   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16862 else
16863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in $PATH
16865 do
16866   IFS=$as_save_IFS
16867   test -z "$as_dir" && as_dir=.
16868   for ac_exec_ext in '' $ac_executable_extensions; do
16869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16870     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16872     break 2
16873   fi
16874 done
16875 done
16876
16877 fi
16878 fi
16879 CXX=$ac_cv_prog_CXX
16880 if test -n "$CXX"; then
16881   echo "$as_me:$LINENO: result: $CXX" >&5
16882 echo "${ECHO_T}$CXX" >&6
16883 else
16884   echo "$as_me:$LINENO: result: no" >&5
16885 echo "${ECHO_T}no" >&6
16886 fi
16887
16888     test -n "$CXX" && break
16889   done
16890 fi
16891 if test -z "$CXX"; then
16892   ac_ct_CXX=$CXX
16893   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16894 do
16895   # Extract the first word of "$ac_prog", so it can be a program name with args.
16896 set dummy $ac_prog; ac_word=$2
16897 echo "$as_me:$LINENO: checking for $ac_word" >&5
16898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16899 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   if test -n "$ac_ct_CXX"; then
16903   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16904 else
16905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16906 for as_dir in $PATH
16907 do
16908   IFS=$as_save_IFS
16909   test -z "$as_dir" && as_dir=.
16910   for ac_exec_ext in '' $ac_executable_extensions; do
16911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16912     ac_cv_prog_ac_ct_CXX="$ac_prog"
16913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16914     break 2
16915   fi
16916 done
16917 done
16918
16919 fi
16920 fi
16921 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16922 if test -n "$ac_ct_CXX"; then
16923   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16924 echo "${ECHO_T}$ac_ct_CXX" >&6
16925 else
16926   echo "$as_me:$LINENO: result: no" >&5
16927 echo "${ECHO_T}no" >&6
16928 fi
16929
16930   test -n "$ac_ct_CXX" && break
16931 done
16932 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
16933
16934   CXX=$ac_ct_CXX
16935 fi
16936
16937
16938 # Provide some information about the compiler.
16939 echo "$as_me:$LINENO:" \
16940      "checking for C++ compiler version" >&5
16941 ac_compiler=`set X $ac_compile; echo $2`
16942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16943   (eval $ac_compiler --version </dev/null >&5) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }
16947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16948   (eval $ac_compiler -v </dev/null >&5) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }
16952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16953   (eval $ac_compiler -V </dev/null >&5) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }
16957
16958 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
16960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 else
16963   cat >conftest.$ac_ext <<_ACEOF
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969
16970 int
16971 main ()
16972 {
16973 #ifndef __GNUC__
16974        choke me
16975 #endif
16976
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 rm -f conftest.$ac_objext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983   (eval $ac_compile) 2>conftest.er1
16984   ac_status=$?
16985   grep -v '^ *+' conftest.er1 >conftest.err
16986   rm -f conftest.er1
16987   cat conftest.err >&5
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
16991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; } &&
16996          { ac_try='test -s conftest.$ac_objext'
16997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; }; then
17002   ac_compiler_gnu=yes
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 ac_compiler_gnu=no
17008 fi
17009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17011
17012 fi
17013 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17014 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
17015 GXX=`test $ac_compiler_gnu = yes && echo yes`
17016 ac_test_CXXFLAGS=${CXXFLAGS+set}
17017 ac_save_CXXFLAGS=$CXXFLAGS
17018 CXXFLAGS="-g"
17019 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17020 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
17021 if test "${ac_cv_prog_cxx_g+set}" = set; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h.  */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h.  */
17030
17031 int
17032 main ()
17033 {
17034
17035   ;
17036   return 0;
17037 }
17038 _ACEOF
17039 rm -f conftest.$ac_objext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17041   (eval $ac_compile) 2>conftest.er1
17042   ac_status=$?
17043   grep -v '^ *+' conftest.er1 >conftest.err
17044   rm -f conftest.er1
17045   cat conftest.err >&5
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); } &&
17048          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050   (eval $ac_try) 2>&5
17051   ac_status=$?
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); }; } &&
17054          { ac_try='test -s conftest.$ac_objext'
17055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056   (eval $ac_try) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; }; then
17060   ac_cv_prog_cxx_g=yes
17061 else
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_cv_prog_cxx_g=no
17066 fi
17067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17068 fi
17069 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17070 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
17071 if test "$ac_test_CXXFLAGS" = set; then
17072   CXXFLAGS=$ac_save_CXXFLAGS
17073 elif test $ac_cv_prog_cxx_g = yes; then
17074   if test "$GXX" = yes; then
17075     CXXFLAGS="-g -O2"
17076   else
17077     CXXFLAGS="-g"
17078   fi
17079 else
17080   if test "$GXX" = yes; then
17081     CXXFLAGS="-O2"
17082   else
17083     CXXFLAGS=
17084   fi
17085 fi
17086 for ac_declaration in \
17087    '' \
17088    'extern "C" void std::exit (int) throw (); using std::exit;' \
17089    'extern "C" void std::exit (int); using std::exit;' \
17090    'extern "C" void exit (int) throw ();' \
17091    'extern "C" void exit (int);' \
17092    'void exit (int);'
17093 do
17094   cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100 $ac_declaration
17101 #include <stdlib.h>
17102 int
17103 main ()
17104 {
17105 exit (42);
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17112   (eval $ac_compile) 2>conftest.er1
17113   ac_status=$?
17114   grep -v '^ *+' conftest.er1 >conftest.err
17115   rm -f conftest.er1
17116   cat conftest.err >&5
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } &&
17119          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; } &&
17125          { ac_try='test -s conftest.$ac_objext'
17126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127   (eval $ac_try) 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; }; then
17131   :
17132 else
17133   echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136 continue
17137 fi
17138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17139   cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h.  */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h.  */
17145 $ac_declaration
17146 int
17147 main ()
17148 {
17149 exit (42);
17150   ;
17151   return 0;
17152 }
17153 _ACEOF
17154 rm -f conftest.$ac_objext
17155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156   (eval $ac_compile) 2>conftest.er1
17157   ac_status=$?
17158   grep -v '^ *+' conftest.er1 >conftest.err
17159   rm -f conftest.er1
17160   cat conftest.err >&5
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); } &&
17163          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; } &&
17169          { ac_try='test -s conftest.$ac_objext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   break
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 fi
17181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17182 done
17183 rm -f conftest*
17184 if test -n "$ac_declaration"; then
17185   echo '#ifdef __cplusplus' >>confdefs.h
17186   echo $ac_declaration      >>confdefs.h
17187   echo '#endif'             >>confdefs.h
17188 fi
17189
17190 ac_ext=c
17191 ac_cpp='$CPP $CPPFLAGS'
17192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17195
17196
17197
17198
17199     ac_ext=cc
17200 ac_cpp='$CXXCPP $CPPFLAGS'
17201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17204
17205     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
17206 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
17207 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217 int
17218 main ()
17219 {
17220
17221              #ifndef __INTEL_COMPILER
17222                 choke me
17223              #endif
17224
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231   (eval $ac_compile) 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240   (eval $ac_try) 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; } &&
17244          { ac_try='test -s conftest.$ac_objext'
17245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246   (eval $ac_try) 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; }; then
17250   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
17256
17257 fi
17258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17259
17260
17261 fi
17262 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
17263 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
17264     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
17265         :; INTELCXX=yes
17266     else
17267         :;
17268     fi
17269     ac_ext=c
17270 ac_cpp='$CPP $CPPFLAGS'
17271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17274
17275
17276
17277
17278         if test "x$GCXX" != "xyes"; then
17279         if test "xCXX" = "xC"; then
17280             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17281 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
17282 if test "${bakefile_cv_c_exto+set}" = set; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285   cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291
17292 int
17293 main ()
17294 {
17295
17296   ;
17297   return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest.$ac_ext.o
17301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17302   (eval $ac_compile) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; then
17306   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17307     case $ac_file in
17308         conftest.$ac_ext.o)
17309             bakefile_cv_c_exto="-ext o"
17310             ;;
17311         *)
17312             ;;
17313     esac
17314 done
17315 else
17316   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17317 See \`config.log' for more details." >&5
17318 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17319 See \`config.log' for more details." >&2;}
17320    { (exit 1); exit 1; }; }
17321
17322 fi
17323
17324 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17325
17326 fi
17327 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17328 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
17329 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17330     if test "c" = "c"; then
17331         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17332     fi
17333     if test "c" = "cxx"; then
17334         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17335     fi
17336 fi
17337
17338             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17339                 unset ac_cv_prog_cc_g
17340                 ac_test_CFLAGS=${CFLAGS+set}
17341 ac_save_CFLAGS=$CFLAGS
17342 CFLAGS="-g"
17343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
17345 if test "${ac_cv_prog_cc_g+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354
17355 int
17356 main ()
17357 {
17358
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17365   (eval $ac_compile) 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } &&
17372          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374   (eval $ac_try) 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; } &&
17378          { ac_try='test -s conftest.$ac_objext'
17379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380   (eval $ac_try) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   ac_cv_prog_cc_g=yes
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389 ac_cv_prog_cc_g=no
17390 fi
17391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17392 fi
17393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17394 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
17395 if test "$ac_test_CFLAGS" = set; then
17396   CFLAGS=$ac_save_CFLAGS
17397 elif test $ac_cv_prog_cc_g = yes; then
17398   if test "$GCC" = yes; then
17399     CFLAGS="-g -O2"
17400   else
17401     CFLAGS="-g"
17402   fi
17403 else
17404   if test "$GCC" = yes; then
17405     CFLAGS="-O2"
17406   else
17407     CFLAGS=
17408   fi
17409 fi
17410             fi
17411         fi
17412
17413                         case `uname -s` in
17414             AIX*)
17415
17416
17417     ac_ext=cc
17418 ac_cpp='$CXXCPP $CPPFLAGS'
17419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17422
17423     echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17424 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
17425 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434
17435 int
17436 main ()
17437 {
17438
17439              #ifndef __xlC__
17440                 choke me
17441              #endif
17442
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17449   (eval $ac_compile) 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458   (eval $ac_try) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; } &&
17462          { ac_try='test -s conftest.$ac_objext'
17463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464   (eval $ac_try) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; }; then
17468   bakefile_cv_cxx_compiler___xlC__=yes
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473 bakefile_cv_cxx_compiler___xlC__=no
17474
17475 fi
17476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17477
17478
17479 fi
17480 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17481 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6
17482     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17483         :; XLCXX=yes
17484     else
17485         :;
17486     fi
17487     ac_ext=c
17488 ac_cpp='$CPP $CPPFLAGS'
17489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17492
17493
17494
17495                 ;;
17496
17497             Darwin)
17498
17499
17500     ac_ext=cc
17501 ac_cpp='$CXXCPP $CPPFLAGS'
17502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17505
17506     echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17507 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
17508 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17509   echo $ECHO_N "(cached) $ECHO_C" >&6
17510 else
17511   cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h.  */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h.  */
17517
17518 int
17519 main ()
17520 {
17521
17522              #ifndef __MWERKS__
17523                 choke me
17524              #endif
17525
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17532   (eval $ac_compile) 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } &&
17539          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; } &&
17545          { ac_try='test -s conftest.$ac_objext'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551   bakefile_cv_cxx_compiler___MWERKS__=yes
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 bakefile_cv_cxx_compiler___MWERKS__=no
17557
17558 fi
17559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17560
17561
17562 fi
17563 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17564 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6
17565     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17566         :; MWCXX=yes
17567     else
17568         :;
17569     fi
17570     ac_ext=c
17571 ac_cpp='$CPP $CPPFLAGS'
17572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17575
17576
17577
17578
17579
17580     ac_ext=cc
17581 ac_cpp='$CXXCPP $CPPFLAGS'
17582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17585
17586     echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17587 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
17588 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 int
17599 main ()
17600 {
17601
17602              #ifndef __xlC__
17603                 choke me
17604              #endif
17605
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17612   (eval $ac_compile) 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } &&
17619          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; } &&
17625          { ac_try='test -s conftest.$ac_objext'
17626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627   (eval $ac_try) 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; }; then
17631   bakefile_cv_cxx_compiler___xlC__=yes
17632 else
17633   echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636 bakefile_cv_cxx_compiler___xlC__=no
17637
17638 fi
17639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17640
17641
17642 fi
17643 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17644 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6
17645     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17646         :; XLCXX=yes
17647     else
17648         :;
17649     fi
17650     ac_ext=c
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17655
17656
17657
17658                 ;;
17659
17660             IRIX*)
17661
17662
17663     ac_ext=cc
17664 ac_cpp='$CXXCPP $CPPFLAGS'
17665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17668
17669     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17670 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
17671 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17672   echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674   cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h.  */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h.  */
17680
17681 int
17682 main ()
17683 {
17684
17685              #ifndef _SGI_COMPILER_VERSION
17686                 choke me
17687              #endif
17688
17689   ;
17690   return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17695   (eval $ac_compile) 2>conftest.er1
17696   ac_status=$?
17697   grep -v '^ *+' conftest.er1 >conftest.err
17698   rm -f conftest.er1
17699   cat conftest.err >&5
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); } &&
17702          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; } &&
17708          { ac_try='test -s conftest.$ac_objext'
17709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710   (eval $ac_try) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); }; }; then
17714   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17715 else
17716   echo "$as_me: failed program was:" >&5
17717 sed 's/^/| /' conftest.$ac_ext >&5
17718
17719 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17720
17721 fi
17722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17723
17724
17725 fi
17726 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17727 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
17728     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17729         :; SGICXX=yes
17730     else
17731         :;
17732     fi
17733     ac_ext=c
17734 ac_cpp='$CPP $CPPFLAGS'
17735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17738
17739
17740
17741                 ;;
17742
17743             Linux*)
17744
17745
17746     ac_ext=cc
17747 ac_cpp='$CXXCPP $CPPFLAGS'
17748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17751
17752     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17753 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
17754 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17755   echo $ECHO_N "(cached) $ECHO_C" >&6
17756 else
17757   cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h.  */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h.  */
17763
17764 int
17765 main ()
17766 {
17767
17768              #ifndef __SUNPRO_CC
17769                 choke me
17770              #endif
17771
17772   ;
17773   return 0;
17774 }
17775 _ACEOF
17776 rm -f conftest.$ac_objext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778   (eval $ac_compile) 2>conftest.er1
17779   ac_status=$?
17780   grep -v '^ *+' conftest.er1 >conftest.err
17781   rm -f conftest.er1
17782   cat conftest.err >&5
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } &&
17785          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787   (eval $ac_try) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; } &&
17791          { ac_try='test -s conftest.$ac_objext'
17792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793   (eval $ac_try) 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); }; }; then
17797   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17798 else
17799   echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17801
17802 bakefile_cv_cxx_compiler___SUNPRO_CC=no
17803
17804 fi
17805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17806
17807
17808 fi
17809 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17810 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
17811     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17812         :; SUNCXX=yes
17813     else
17814         :;
17815     fi
17816     ac_ext=c
17817 ac_cpp='$CPP $CPPFLAGS'
17818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17821
17822
17823
17824                 ;;
17825
17826             HP-UX*)
17827
17828
17829     ac_ext=cc
17830 ac_cpp='$CXXCPP $CPPFLAGS'
17831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17834
17835     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17836 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
17837 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17838   echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840   cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h.  */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h.  */
17846
17847 int
17848 main ()
17849 {
17850
17851              #ifndef __HP_aCC
17852                 choke me
17853              #endif
17854
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861   (eval $ac_compile) 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } &&
17868          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
17869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870   (eval $ac_try) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; } &&
17874          { ac_try='test -s conftest.$ac_objext'
17875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876   (eval $ac_try) 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; }; then
17880   bakefile_cv_cxx_compiler___HP_aCC=yes
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 bakefile_cv_cxx_compiler___HP_aCC=no
17886
17887 fi
17888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17889
17890
17891 fi
17892 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17893 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
17894     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17895         :; HPCXX=yes
17896     else
17897         :;
17898     fi
17899     ac_ext=c
17900 ac_cpp='$CPP $CPPFLAGS'
17901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17904
17905
17906
17907                 ;;
17908
17909             OSF1)
17910
17911
17912     ac_ext=cc
17913 ac_cpp='$CXXCPP $CPPFLAGS'
17914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17917
17918     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17919 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
17920 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17921   echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923   cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929
17930 int
17931 main ()
17932 {
17933
17934              #ifndef __DECCXX
17935                 choke me
17936              #endif
17937
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944   (eval $ac_compile) 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } &&
17951          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
17957          { ac_try='test -s conftest.$ac_objext'
17958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959   (eval $ac_try) 2>&5
17960   ac_status=$?
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; }; then
17963   bakefile_cv_cxx_compiler___DECCXX=yes
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 bakefile_cv_cxx_compiler___DECCXX=no
17969
17970 fi
17971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17972
17973
17974 fi
17975 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17976 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
17977     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17978         :; COMPAQCXX=yes
17979     else
17980         :;
17981     fi
17982     ac_ext=c
17983 ac_cpp='$CPP $CPPFLAGS'
17984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17987
17988
17989
17990                 ;;
17991
17992             SunOS)
17993
17994
17995     ac_ext=cc
17996 ac_cpp='$CXXCPP $CPPFLAGS'
17997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18000
18001     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18002 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
18003 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18004   echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006   cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012
18013 int
18014 main ()
18015 {
18016
18017              #ifndef __SUNPRO_CC
18018                 choke me
18019              #endif
18020
18021   ;
18022   return 0;
18023 }
18024 _ACEOF
18025 rm -f conftest.$ac_objext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18027   (eval $ac_compile) 2>conftest.er1
18028   ac_status=$?
18029   grep -v '^ *+' conftest.er1 >conftest.err
18030   rm -f conftest.er1
18031   cat conftest.err >&5
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); } &&
18034          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
18035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036   (eval $ac_try) 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; } &&
18040          { ac_try='test -s conftest.$ac_objext'
18041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042   (eval $ac_try) 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }; }; then
18046   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 bakefile_cv_cxx_compiler___SUNPRO_CC=no
18052
18053 fi
18054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18055
18056
18057 fi
18058 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18059 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
18060     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18061         :; SUNCXX=yes
18062     else
18063         :;
18064     fi
18065     ac_ext=c
18066 ac_cpp='$CPP $CPPFLAGS'
18067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18070
18071
18072
18073                 ;;
18074         esac
18075     fi
18076
18077
18078
18079 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18080     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18081 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18082    { (exit 1); exit 1; }; }
18083 fi
18084
18085 if test -n "$ac_tool_prefix"; then
18086   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18088 echo "$as_me:$LINENO: checking for $ac_word" >&5
18089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18090 if test "${ac_cv_prog_RANLIB+set}" = set; then
18091   echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093   if test -n "$RANLIB"; then
18094   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18095 else
18096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18098 do
18099   IFS=$as_save_IFS
18100   test -z "$as_dir" && as_dir=.
18101   for ac_exec_ext in '' $ac_executable_extensions; do
18102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18105     break 2
18106   fi
18107 done
18108 done
18109
18110 fi
18111 fi
18112 RANLIB=$ac_cv_prog_RANLIB
18113 if test -n "$RANLIB"; then
18114   echo "$as_me:$LINENO: result: $RANLIB" >&5
18115 echo "${ECHO_T}$RANLIB" >&6
18116 else
18117   echo "$as_me:$LINENO: result: no" >&5
18118 echo "${ECHO_T}no" >&6
18119 fi
18120
18121 fi
18122 if test -z "$ac_cv_prog_RANLIB"; then
18123   ac_ct_RANLIB=$RANLIB
18124   # Extract the first word of "ranlib", so it can be a program name with args.
18125 set dummy ranlib; ac_word=$2
18126 echo "$as_me:$LINENO: checking for $ac_word" >&5
18127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18128 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18129   echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131   if test -n "$ac_ct_RANLIB"; then
18132   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18133 else
18134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18135 for as_dir in $PATH
18136 do
18137   IFS=$as_save_IFS
18138   test -z "$as_dir" && as_dir=.
18139   for ac_exec_ext in '' $ac_executable_extensions; do
18140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18141     ac_cv_prog_ac_ct_RANLIB="ranlib"
18142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18143     break 2
18144   fi
18145 done
18146 done
18147
18148   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
18149 fi
18150 fi
18151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18152 if test -n "$ac_ct_RANLIB"; then
18153   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18154 echo "${ECHO_T}$ac_ct_RANLIB" >&6
18155 else
18156   echo "$as_me:$LINENO: result: no" >&5
18157 echo "${ECHO_T}no" >&6
18158 fi
18159
18160   RANLIB=$ac_ct_RANLIB
18161 else
18162   RANLIB="$ac_cv_prog_RANLIB"
18163 fi
18164
18165
18166 if test "x$SUNCXX" != xyes; then
18167     if test -n "$ac_tool_prefix"; then
18168   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18169 set dummy ${ac_tool_prefix}ar; ac_word=$2
18170 echo "$as_me:$LINENO: checking for $ac_word" >&5
18171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18172 if test "${ac_cv_prog_AR+set}" = set; then
18173   echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175   if test -n "$AR"; then
18176   ac_cv_prog_AR="$AR" # Let the user override the test.
18177 else
18178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18179 for as_dir in $PATH
18180 do
18181   IFS=$as_save_IFS
18182   test -z "$as_dir" && as_dir=.
18183   for ac_exec_ext in '' $ac_executable_extensions; do
18184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18185     ac_cv_prog_AR="${ac_tool_prefix}ar"
18186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18187     break 2
18188   fi
18189 done
18190 done
18191
18192 fi
18193 fi
18194 AR=$ac_cv_prog_AR
18195 if test -n "$AR"; then
18196   echo "$as_me:$LINENO: result: $AR" >&5
18197 echo "${ECHO_T}$AR" >&6
18198 else
18199   echo "$as_me:$LINENO: result: no" >&5
18200 echo "${ECHO_T}no" >&6
18201 fi
18202
18203 fi
18204 if test -z "$ac_cv_prog_AR"; then
18205   ac_ct_AR=$AR
18206   # Extract the first word of "ar", so it can be a program name with args.
18207 set dummy ar; ac_word=$2
18208 echo "$as_me:$LINENO: checking for $ac_word" >&5
18209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18210 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18211   echo $ECHO_N "(cached) $ECHO_C" >&6
18212 else
18213   if test -n "$ac_ct_AR"; then
18214   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18215 else
18216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18217 for as_dir in $PATH
18218 do
18219   IFS=$as_save_IFS
18220   test -z "$as_dir" && as_dir=.
18221   for ac_exec_ext in '' $ac_executable_extensions; do
18222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18223     ac_cv_prog_ac_ct_AR="ar"
18224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18225     break 2
18226   fi
18227 done
18228 done
18229
18230 fi
18231 fi
18232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18233 if test -n "$ac_ct_AR"; then
18234   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18235 echo "${ECHO_T}$ac_ct_AR" >&6
18236 else
18237   echo "$as_me:$LINENO: result: no" >&5
18238 echo "${ECHO_T}no" >&6
18239 fi
18240
18241   AR=$ac_ct_AR
18242 else
18243   AR="$ac_cv_prog_AR"
18244 fi
18245
18246     if test "x$AR" = "x" ; then
18247         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18248 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18249    { (exit 1); exit 1; }; }
18250     fi
18251 fi
18252
18253 # Find a good install program.  We prefer a C program (faster),
18254 # so one script is as good as another.  But avoid the broken or
18255 # incompatible versions:
18256 # SysV /etc/install, /usr/sbin/install
18257 # SunOS /usr/etc/install
18258 # IRIX /sbin/install
18259 # AIX /bin/install
18260 # AmigaOS /C/install, which installs bootblocks on floppy discs
18261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18264 # OS/2's system install, which has a completely different semantic
18265 # ./install, which can be erroneously created by make from ./install.sh.
18266 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18267 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18268 if test -z "$INSTALL"; then
18269 if test "${ac_cv_path_install+set}" = set; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18273 for as_dir in $PATH
18274 do
18275   IFS=$as_save_IFS
18276   test -z "$as_dir" && as_dir=.
18277   # Account for people who put trailing slashes in PATH elements.
18278 case $as_dir/ in
18279   ./ | .// | /cC/* | \
18280   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18281   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18282   /usr/ucb/* ) ;;
18283   *)
18284     # OSF1 and SCO ODT 3.0 have their own names for install.
18285     # Don't use installbsd from OSF since it installs stuff as root
18286     # by default.
18287     for ac_prog in ginstall scoinst install; do
18288       for ac_exec_ext in '' $ac_executable_extensions; do
18289         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18290           if test $ac_prog = install &&
18291             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18292             # AIX install.  It has an incompatible calling convention.
18293             :
18294           elif test $ac_prog = install &&
18295             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18296             # program-specific install script used by HP pwplus--don't use.
18297             :
18298           else
18299             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18300             break 3
18301           fi
18302         fi
18303       done
18304     done
18305     ;;
18306 esac
18307 done
18308
18309
18310 fi
18311   if test "${ac_cv_path_install+set}" = set; then
18312     INSTALL=$ac_cv_path_install
18313   else
18314     # As a last resort, use the slow shell script.  We don't cache a
18315     # path for INSTALL within a source directory, because that will
18316     # break other packages using the cache if that directory is
18317     # removed, or if the path is relative.
18318     INSTALL=$ac_install_sh
18319   fi
18320 fi
18321 echo "$as_me:$LINENO: result: $INSTALL" >&5
18322 echo "${ECHO_T}$INSTALL" >&6
18323
18324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18325 # It thinks the first close brace ends the variable substitution.
18326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18327
18328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18329
18330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18331
18332
18333 case ${INSTALL} in
18334   /* ) # Absolute
18335      ;;
18336   ?:* ) # Drive letter, considered as absolute.
18337      ;;
18338   *)
18339      INSTALL=`pwd`/${INSTALL} ;;
18340 esac
18341
18342
18343 case "${host}" in
18344
18345                 *-*-darwin* )
18346         INSTALL_PROGRAM="cp -fp"
18347         INSTALL_DATA="cp -fp"
18348         ;;
18349     *)
18350         ;;
18351 esac
18352
18353 if test -n "$ac_tool_prefix"; then
18354   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18355 set dummy ${ac_tool_prefix}strip; ac_word=$2
18356 echo "$as_me:$LINENO: checking for $ac_word" >&5
18357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18358 if test "${ac_cv_prog_STRIP+set}" = set; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361   if test -n "$STRIP"; then
18362   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18363 else
18364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18365 for as_dir in $PATH
18366 do
18367   IFS=$as_save_IFS
18368   test -z "$as_dir" && as_dir=.
18369   for ac_exec_ext in '' $ac_executable_extensions; do
18370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18371     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18373     break 2
18374   fi
18375 done
18376 done
18377
18378 fi
18379 fi
18380 STRIP=$ac_cv_prog_STRIP
18381 if test -n "$STRIP"; then
18382   echo "$as_me:$LINENO: result: $STRIP" >&5
18383 echo "${ECHO_T}$STRIP" >&6
18384 else
18385   echo "$as_me:$LINENO: result: no" >&5
18386 echo "${ECHO_T}no" >&6
18387 fi
18388
18389 fi
18390 if test -z "$ac_cv_prog_STRIP"; then
18391   ac_ct_STRIP=$STRIP
18392   # Extract the first word of "strip", so it can be a program name with args.
18393 set dummy strip; ac_word=$2
18394 echo "$as_me:$LINENO: checking for $ac_word" >&5
18395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
18397   echo $ECHO_N "(cached) $ECHO_C" >&6
18398 else
18399   if test -n "$ac_ct_STRIP"; then
18400   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18401 else
18402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18403 for as_dir in $PATH
18404 do
18405   IFS=$as_save_IFS
18406   test -z "$as_dir" && as_dir=.
18407   for ac_exec_ext in '' $ac_executable_extensions; do
18408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18409     ac_cv_prog_ac_ct_STRIP="strip"
18410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18411     break 2
18412   fi
18413 done
18414 done
18415
18416   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
18417 fi
18418 fi
18419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18420 if test -n "$ac_ct_STRIP"; then
18421   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
18422 echo "${ECHO_T}$ac_ct_STRIP" >&6
18423 else
18424   echo "$as_me:$LINENO: result: no" >&5
18425 echo "${ECHO_T}no" >&6
18426 fi
18427
18428   STRIP=$ac_ct_STRIP
18429 else
18430   STRIP="$ac_cv_prog_STRIP"
18431 fi
18432
18433
18434 if test "$wxUSE_WINE" = "yes"; then
18435     if test -n "$ac_tool_prefix"; then
18436   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
18437 set dummy ${ac_tool_prefix}wrc; ac_word=$2
18438 echo "$as_me:$LINENO: checking for $ac_word" >&5
18439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18440 if test "${ac_cv_prog_WINDRES+set}" = set; then
18441   echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443   if test -n "$WINDRES"; then
18444   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18445 else
18446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447 for as_dir in $PATH
18448 do
18449   IFS=$as_save_IFS
18450   test -z "$as_dir" && as_dir=.
18451   for ac_exec_ext in '' $ac_executable_extensions; do
18452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18453     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
18454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18455     break 2
18456   fi
18457 done
18458 done
18459
18460 fi
18461 fi
18462 WINDRES=$ac_cv_prog_WINDRES
18463 if test -n "$WINDRES"; then
18464   echo "$as_me:$LINENO: result: $WINDRES" >&5
18465 echo "${ECHO_T}$WINDRES" >&6
18466 else
18467   echo "$as_me:$LINENO: result: no" >&5
18468 echo "${ECHO_T}no" >&6
18469 fi
18470
18471 fi
18472 if test -z "$ac_cv_prog_WINDRES"; then
18473   ac_ct_WINDRES=$WINDRES
18474   # Extract the first word of "wrc", so it can be a program name with args.
18475 set dummy wrc; ac_word=$2
18476 echo "$as_me:$LINENO: checking for $ac_word" >&5
18477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18478 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   if test -n "$ac_ct_WINDRES"; then
18482   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18483 else
18484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485 for as_dir in $PATH
18486 do
18487   IFS=$as_save_IFS
18488   test -z "$as_dir" && as_dir=.
18489   for ac_exec_ext in '' $ac_executable_extensions; do
18490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18491     ac_cv_prog_ac_ct_WINDRES="wrc"
18492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18493     break 2
18494   fi
18495 done
18496 done
18497
18498 fi
18499 fi
18500 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18501 if test -n "$ac_ct_WINDRES"; then
18502   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
18503 echo "${ECHO_T}$ac_ct_WINDRES" >&6
18504 else
18505   echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6
18507 fi
18508
18509   WINDRES=$ac_ct_WINDRES
18510 else
18511   WINDRES="$ac_cv_prog_WINDRES"
18512 fi
18513
18514     RESCOMP="$WINDRES"
18515 else
18516     case "${host}" in
18517     *-*-cygwin* | *-*-mingw32* )
18518                                 if test -n "$ac_tool_prefix"; then
18519   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18520 set dummy ${ac_tool_prefix}windres; ac_word=$2
18521 echo "$as_me:$LINENO: checking for $ac_word" >&5
18522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18523 if test "${ac_cv_prog_WINDRES+set}" = set; then
18524   echo $ECHO_N "(cached) $ECHO_C" >&6
18525 else
18526   if test -n "$WINDRES"; then
18527   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18528 else
18529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18530 for as_dir in $PATH
18531 do
18532   IFS=$as_save_IFS
18533   test -z "$as_dir" && as_dir=.
18534   for ac_exec_ext in '' $ac_executable_extensions; do
18535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18536     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18538     break 2
18539   fi
18540 done
18541 done
18542
18543 fi
18544 fi
18545 WINDRES=$ac_cv_prog_WINDRES
18546 if test -n "$WINDRES"; then
18547   echo "$as_me:$LINENO: result: $WINDRES" >&5
18548 echo "${ECHO_T}$WINDRES" >&6
18549 else
18550   echo "$as_me:$LINENO: result: no" >&5
18551 echo "${ECHO_T}no" >&6
18552 fi
18553
18554 fi
18555 if test -z "$ac_cv_prog_WINDRES"; then
18556   ac_ct_WINDRES=$WINDRES
18557   # Extract the first word of "windres", so it can be a program name with args.
18558 set dummy windres; ac_word=$2
18559 echo "$as_me:$LINENO: checking for $ac_word" >&5
18560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18561 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
18562   echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564   if test -n "$ac_ct_WINDRES"; then
18565   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18566 else
18567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18568 for as_dir in $PATH
18569 do
18570   IFS=$as_save_IFS
18571   test -z "$as_dir" && as_dir=.
18572   for ac_exec_ext in '' $ac_executable_extensions; do
18573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18574     ac_cv_prog_ac_ct_WINDRES="windres"
18575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18576     break 2
18577   fi
18578 done
18579 done
18580
18581 fi
18582 fi
18583 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18584 if test -n "$ac_ct_WINDRES"; then
18585   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
18586 echo "${ECHO_T}$ac_ct_WINDRES" >&6
18587 else
18588   echo "$as_me:$LINENO: result: no" >&5
18589 echo "${ECHO_T}no" >&6
18590 fi
18591
18592   WINDRES=$ac_ct_WINDRES
18593 else
18594   WINDRES="$ac_cv_prog_WINDRES"
18595 fi
18596
18597         RESCOMP="$WINDRES"
18598         if test -n "$ac_tool_prefix"; then
18599   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
18600 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
18601 echo "$as_me:$LINENO: checking for $ac_word" >&5
18602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18603 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
18604   echo $ECHO_N "(cached) $ECHO_C" >&6
18605 else
18606   if test -n "$DLLTOOL"; then
18607   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
18608 else
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18611 do
18612   IFS=$as_save_IFS
18613   test -z "$as_dir" && as_dir=.
18614   for ac_exec_ext in '' $ac_executable_extensions; do
18615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
18617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618     break 2
18619   fi
18620 done
18621 done
18622
18623 fi
18624 fi
18625 DLLTOOL=$ac_cv_prog_DLLTOOL
18626 if test -n "$DLLTOOL"; then
18627   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
18628 echo "${ECHO_T}$DLLTOOL" >&6
18629 else
18630   echo "$as_me:$LINENO: result: no" >&5
18631 echo "${ECHO_T}no" >&6
18632 fi
18633
18634 fi
18635 if test -z "$ac_cv_prog_DLLTOOL"; then
18636   ac_ct_DLLTOOL=$DLLTOOL
18637   # Extract the first word of "dlltool", so it can be a program name with args.
18638 set dummy dlltool; ac_word=$2
18639 echo "$as_me:$LINENO: checking for $ac_word" >&5
18640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
18642   echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644   if test -n "$ac_ct_DLLTOOL"; then
18645   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
18646 else
18647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18649 do
18650   IFS=$as_save_IFS
18651   test -z "$as_dir" && as_dir=.
18652   for ac_exec_ext in '' $ac_executable_extensions; do
18653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
18655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18656     break 2
18657   fi
18658 done
18659 done
18660
18661 fi
18662 fi
18663 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
18664 if test -n "$ac_ct_DLLTOOL"; then
18665   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
18666 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
18667 else
18668   echo "$as_me:$LINENO: result: no" >&5
18669 echo "${ECHO_T}no" >&6
18670 fi
18671
18672   DLLTOOL=$ac_ct_DLLTOOL
18673 else
18674   DLLTOOL="$ac_cv_prog_DLLTOOL"
18675 fi
18676
18677         ;;
18678     esac
18679 fi
18680
18681 echo "$as_me:$LINENO: checking if make is GNU make" >&5
18682 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
18683 if test "${wx_cv_prog_makeisgnu+set}" = set; then
18684   echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686
18687     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
18688             $EGREP -s GNU > /dev/null); then
18689         wx_cv_prog_makeisgnu="yes"
18690     else
18691         wx_cv_prog_makeisgnu="no"
18692     fi
18693
18694 fi
18695 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
18696 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
18697
18698 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
18699     IF_GNU_MAKE=""
18700 else
18701     IF_GNU_MAKE="#"
18702 fi
18703
18704
18705
18706 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
18707 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
18708 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
18709 if test "${wx_cv_prog_makevpath+set}" = set; then
18710   echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712
18713 cat - << EOF > confMake
18714 check : file
18715         cp \$? \$@
18716         cp \$? final_file
18717 EOF
18718
18719 if test ! -d sub ; then
18720   mkdir sub
18721 fi
18722 echo dummy > sub/file
18723 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
18724 RESULT=$?
18725 rm -f sub/file check final_file confMake
18726 rmdir sub
18727 if test "$RESULT" = 0; then
18728   wx_cv_prog_makevpath="yes"
18729 else
18730   wx_cv_prog_makevpath="no"
18731 fi
18732
18733 fi
18734 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
18735 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
18736
18737 if test "x$wx_cv_prog_makevpath" != "xyes"; then
18738 { { echo "$as_me:$LINENO: error:
18739 You need a make-utility that is able to use the variable
18740 VPATH correctly.
18741 If your version of make does not support VPATH correctly,
18742 please install GNU-make (possibly as gmake), and start
18743 configure with the following command:
18744 export MAKE=gmake; ./configure  for sh-type shells
18745 setenv MAKE gmake; ./configure  for csh-type shells
18746 Also please do remember to use gmake in this case every time
18747 you are trying to compile.
18748 " >&5
18749 echo "$as_me: error:
18750 You need a make-utility that is able to use the variable
18751 VPATH correctly.
18752 If your version of make does not support VPATH correctly,
18753 please install GNU-make (possibly as gmake), and start
18754 configure with the following command:
18755 export MAKE=gmake; ./configure  for sh-type shells
18756 setenv MAKE gmake; ./configure  for csh-type shells
18757 Also please do remember to use gmake in this case every time
18758 you are trying to compile.
18759 " >&2;}
18760    { (exit 1); exit 1; }; }
18761 fi fi
18762 echo "$as_me:$LINENO: checking whether ln -s works" >&5
18763 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
18764 LN_S=$as_ln_s
18765 if test "$LN_S" = "ln -s"; then
18766   echo "$as_me:$LINENO: result: yes" >&5
18767 echo "${ECHO_T}yes" >&6
18768 else
18769   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
18770 echo "${ECHO_T}no, using $LN_S" >&6
18771 fi
18772
18773
18774
18775
18776 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18777     CXXFLAGS="-qunique $CXXFLAGS"
18778 fi
18779
18780 case "${host}" in
18781   powerpc-*-darwin* )
18782     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18783 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
18784     cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h.  */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h.  */
18790
18791 int
18792 main ()
18793 {
18794 #ifndef __POWERPC__
18795         choke me for lack of PowerPC
18796 #endif
18797
18798   ;
18799   return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804   (eval $ac_compile) 2>conftest.er1
18805   ac_status=$?
18806   grep -v '^ *+' conftest.er1 >conftest.err
18807   rm -f conftest.er1
18808   cat conftest.err >&5
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); } &&
18811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813   (eval $ac_try) 2>&5
18814   ac_status=$?
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); }; } &&
18817          { ac_try='test -s conftest.$ac_objext'
18818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819   (eval $ac_try) 2>&5
18820   ac_status=$?
18821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822   (exit $ac_status); }; }; then
18823   echo "$as_me:$LINENO: result: yes" >&5
18824 echo "${ECHO_T}yes" >&6
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829 echo "$as_me:$LINENO: result: no" >&5
18830 echo "${ECHO_T}no" >&6
18831         cat >>confdefs.h <<\_ACEOF
18832 #define __POWERPC__ 1
18833 _ACEOF
18834
18835
18836 fi
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838   ;;
18839 esac
18840
18841 case "${host}" in
18842   *-*-darwin* )
18843     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18844 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
18845     cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h.  */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h.  */
18851 #include <CoreFoundation/CFBase.h>
18852
18853 int
18854 main ()
18855 {
18856
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 rm -f conftest.$ac_objext
18862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18863   (eval $ac_compile) 2>conftest.er1
18864   ac_status=$?
18865   grep -v '^ *+' conftest.er1 >conftest.err
18866   rm -f conftest.er1
18867   cat conftest.err >&5
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } &&
18870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872   (eval $ac_try) 2>&5
18873   ac_status=$?
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); }; } &&
18876          { ac_try='test -s conftest.$ac_objext'
18877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878   (eval $ac_try) 2>&5
18879   ac_status=$?
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); }; }; then
18882   echo "$as_me:$LINENO: result: yes" >&5
18883 echo "${ECHO_T}yes" >&6
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888 echo "$as_me:$LINENO: result: no" >&5
18889 echo "${ECHO_T}no" >&6
18890         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18891 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
18892         cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h.  */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h.  */
18898 #define __CF_USE_FRAMEWORK_INCLUDES__
18899 #include <CoreFoundation/CFBase.h>
18900
18901 int
18902 main ()
18903 {
18904
18905   ;
18906   return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext
18910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18911   (eval $ac_compile) 2>conftest.er1
18912   ac_status=$?
18913   grep -v '^ *+' conftest.er1 >conftest.err
18914   rm -f conftest.er1
18915   cat conftest.err >&5
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); } &&
18918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920   (eval $ac_try) 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest.$ac_objext'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; }; then
18930   echo "$as_me:$LINENO: result: yes" >&5
18931 echo "${ECHO_T}yes" >&6
18932                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18933 else
18934   echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18938 See \`config.log' for more details." >&5
18939 echo "$as_me: error: no.  CoreFoundation not available.
18940 See \`config.log' for more details." >&2;}
18941    { (exit 1); exit 1; }; }
18942
18943 fi
18944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18945
18946
18947 fi
18948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18949   ;;
18950 esac
18951
18952 wants_win32=0
18953 doesnt_want_win32=0
18954 case "${host}" in
18955   *-*-cygwin*)
18956       if test "$wxUSE_MSW" = 1 ; then
18957         wants_win32=1
18958       else
18959                         echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18960 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
18961 if test "${wx_cv_nocygwin+set}" = set; then
18962   echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964
18965                 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971
18972 int
18973 main ()
18974 {
18975
18976                         #ifdef __MINGW32__
18977                             choke me
18978                         #endif
18979
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18986   (eval $ac_compile) 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } &&
18993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995   (eval $ac_try) 2>&5
18996   ac_status=$?
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); }; } &&
18999          { ac_try='test -s conftest.$ac_objext'
19000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001   (eval $ac_try) 2>&5
19002   ac_status=$?
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); }; }; then
19005   wx_cv_nocygwin=no
19006 else
19007   echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 wx_cv_nocygwin=yes
19011
19012 fi
19013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19014
19015
19016 fi
19017 echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
19018 echo "${ECHO_T}$wx_cv_nocygwin" >&6
19019
19020         if test "$wx_cv_nocygwin" = "yes"; then
19021             wants_win32=1
19022         else
19023             doesnt_want_win32=1
19024         fi
19025       fi
19026       if test "$wants_win32" = 1 ; then
19027         BAKEFILE_FORCE_PLATFORM=win32
19028       fi
19029   ;;
19030   *-*-mingw*)
19031       wants_win32=1
19032   ;;
19033 esac
19034
19035 if test "$wxUSE_WINE" = "yes"; then
19036     wants_win32=1
19037     LDFLAGS_GUI="-mwindows"
19038 fi
19039
19040 if test "$wants_win32" = 1 ; then
19041     USE_UNIX=0
19042     USE_WIN32=1
19043     cat >>confdefs.h <<\_ACEOF
19044 #define __WIN32__ 1
19045 _ACEOF
19046
19047     cat >>confdefs.h <<\_ACEOF
19048 #define __WIN95__ 1
19049 _ACEOF
19050
19051     cat >>confdefs.h <<\_ACEOF
19052 #define __WINDOWS__ 1
19053 _ACEOF
19054
19055     cat >>confdefs.h <<\_ACEOF
19056 #define __GNUWIN32__ 1
19057 _ACEOF
19058
19059     cat >>confdefs.h <<\_ACEOF
19060 #define STRICT 1
19061 _ACEOF
19062
19063 fi
19064 if test "$doesnt_want_win32" = 1 ; then
19065     USE_UNIX=1
19066     USE_WIN32=0
19067 fi
19068
19069 if test "$USE_UNIX" = 1 ; then
19070     wxUSE_UNIX=yes
19071     cat >>confdefs.h <<\_ACEOF
19072 #define __UNIX__ 1
19073 _ACEOF
19074
19075 fi
19076
19077 case "${host}" in
19078   *-pc-os2_emx | *-pc-os2-emx )
19079                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
19080                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
19081 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
19082 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
19083   echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085   ac_check_lib_save_LIBS=$LIBS
19086 LIBS="-lcExt  $LIBS"
19087 cat >conftest.$ac_ext <<_ACEOF
19088 /* confdefs.h.  */
19089 _ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h.  */
19093
19094 /* Override any gcc2 internal prototype to avoid an error.  */
19095 #ifdef __cplusplus
19096 extern "C"
19097 #endif
19098 /* We use char because int might match the return type of a gcc2
19099    builtin and then its argument prototype would still apply.  */
19100 char drand48 ();
19101 int
19102 main ()
19103 {
19104 drand48 ();
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111   (eval $ac_link) 2>conftest.er1
19112   ac_status=$?
19113   grep -v '^ *+' conftest.er1 >conftest.err
19114   rm -f conftest.er1
19115   cat conftest.err >&5
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } &&
19118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; } &&
19124          { ac_try='test -s conftest$ac_exeext'
19125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126   (eval $ac_try) 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; }; then
19130   ac_cv_lib_cExt_drand48=yes
19131 else
19132   echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 ac_cv_lib_cExt_drand48=no
19136 fi
19137 rm -f conftest.err conftest.$ac_objext \
19138       conftest$ac_exeext conftest.$ac_ext
19139 LIBS=$ac_check_lib_save_LIBS
19140 fi
19141 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
19142 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
19143 if test $ac_cv_lib_cExt_drand48 = yes; then
19144   LIBS="$LIBS -lcExt"
19145 fi
19146
19147       else
19148                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
19149       fi
19150                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
19151 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
19152 if test "${wx_cv_gccversion+set}" = set; then
19153   echo $ECHO_N "(cached) $ECHO_C" >&6
19154 else
19155
19156           if test "$cross_compiling" = yes; then
19157                 wx_cv_gccversion="EMX2"
19158
19159 else
19160   cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166
19167                   #include <stdio.h>
19168
19169                   int main()
19170                   {
19171                       FILE *f=fopen("conftestval", "w");
19172                       if (!f) exit(1);
19173                       fprintf(f,
19174                   #if (__GNUC__ < 3)
19175                               "EMX2"
19176                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
19177                               "EMX3"
19178                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
19179                               "Innotek5"
19180                   #else
19181                               "Innotek6"
19182                   #endif
19183                       );
19184                       exit(0);
19185                   }
19186
19187 _ACEOF
19188 rm -f conftest$ac_exeext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190   (eval $ac_link) 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; }; then
19199   wx_cv_gccversion=`cat conftestval`
19200 else
19201   echo "$as_me: program exited with status $ac_status" >&5
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205 ( exit $ac_status )
19206 wx_cv_gccversion="EMX2"
19207 fi
19208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19209 fi
19210
19211 fi
19212 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
19213 echo "${ECHO_T}$wx_cv_gccversion" >&6
19214       if test "$wx_cv_gccversion" = "EMX2"; then
19215           LIBS="$LIBS -lstdcpp"
19216           LDFLAGS="$LDFLAGS -Zsysv-signals"
19217       else
19218           if test "$wx_cv_gccversion" = "EMX3"; then
19219               LIBS="$LIBS -lstdcxx -lgcc"
19220               LDFLAGS="$LDFLAGS -Zsysv-signals"
19221           else
19222               LIBS="$LIBS -lstdc++"
19223           fi
19224       fi
19225       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
19226         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
19227 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
19228         wxUSE_OMF=yes
19229         enable_omf=yes
19230       fi
19231         ;;
19232   *)
19233
19234       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
19235 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
19236 if test "${ac_cv_string_strcasecmp+set}" = set; then
19237   echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239
19240           cat >conftest.$ac_ext <<_ACEOF
19241 /* confdefs.h.  */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h.  */
19246
19247               #include <string.h>
19248
19249 int
19250 main ()
19251 {
19252
19253                   strcasecmp("foo", "bar");
19254
19255   ;
19256   return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261   (eval $ac_link) 2>conftest.er1
19262   ac_status=$?
19263   grep -v '^ *+' conftest.er1 >conftest.err
19264   rm -f conftest.er1
19265   cat conftest.err >&5
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); } &&
19268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270   (eval $ac_try) 2>&5
19271   ac_status=$?
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); }; } &&
19274          { ac_try='test -s conftest$ac_exeext'
19275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276   (eval $ac_try) 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; }; then
19280   ac_cv_string_strcasecmp=yes
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285 ac_cv_string_strcasecmp=no
19286
19287 fi
19288 rm -f conftest.err conftest.$ac_objext \
19289       conftest$ac_exeext conftest.$ac_ext
19290
19291 fi
19292 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
19293 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
19294
19295       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
19296           cat >>confdefs.h <<\_ACEOF
19297 #define HAVE_STRCASECMP_IN_STRING_H 1
19298 _ACEOF
19299
19300       else
19301           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
19302 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
19303 if test "${ac_cv_strings_strcasecmp+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306
19307               cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313
19314                   #include <strings.h>
19315
19316 int
19317 main ()
19318 {
19319
19320                       strcasecmp("foo", "bar");
19321
19322   ;
19323   return 0;
19324 }
19325 _ACEOF
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19328   (eval $ac_link) 2>conftest.er1
19329   ac_status=$?
19330   grep -v '^ *+' conftest.er1 >conftest.err
19331   rm -f conftest.er1
19332   cat conftest.err >&5
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); } &&
19335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337   (eval $ac_try) 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; } &&
19341          { ac_try='test -s conftest$ac_exeext'
19342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343   (eval $ac_try) 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347   ac_cv_strings_strcasecmp=yes
19348 else
19349   echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 ac_cv_strings_strcasecmp=no
19353
19354 fi
19355 rm -f conftest.err conftest.$ac_objext \
19356       conftest$ac_exeext conftest.$ac_ext
19357
19358 fi
19359 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
19360 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
19361
19362           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
19363               cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_STRCASECMP_IN_STRINGS_H 1
19365 _ACEOF
19366
19367           else
19368               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
19369 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
19370    { (exit 1); exit 1; }; }
19371           fi
19372       fi
19373
19374         ;;
19375 esac
19376
19377
19378 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19379 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19380 if test "${ac_cv_header_stdc+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389 #include <stdlib.h>
19390 #include <stdarg.h>
19391 #include <string.h>
19392 #include <float.h>
19393
19394 int
19395 main ()
19396 {
19397
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_c_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_header_stdc=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_cv_header_stdc=no
19429 fi
19430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431
19432 if test $ac_cv_header_stdc = yes; then
19433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19434   cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440 #include <string.h>
19441
19442 _ACEOF
19443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19444   $EGREP "memchr" >/dev/null 2>&1; then
19445   :
19446 else
19447   ac_cv_header_stdc=no
19448 fi
19449 rm -f conftest*
19450
19451 fi
19452
19453 if test $ac_cv_header_stdc = yes; then
19454   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19455   cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461 #include <stdlib.h>
19462
19463 _ACEOF
19464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19465   $EGREP "free" >/dev/null 2>&1; then
19466   :
19467 else
19468   ac_cv_header_stdc=no
19469 fi
19470 rm -f conftest*
19471
19472 fi
19473
19474 if test $ac_cv_header_stdc = yes; then
19475   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19476   if test "$cross_compiling" = yes; then
19477   :
19478 else
19479   cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485 #include <ctype.h>
19486 #if ((' ' & 0x0FF) == 0x020)
19487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19489 #else
19490 # define ISLOWER(c) \
19491                    (('a' <= (c) && (c) <= 'i') \
19492                      || ('j' <= (c) && (c) <= 'r') \
19493                      || ('s' <= (c) && (c) <= 'z'))
19494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19495 #endif
19496
19497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19498 int
19499 main ()
19500 {
19501   int i;
19502   for (i = 0; i < 256; i++)
19503     if (XOR (islower (i), ISLOWER (i))
19504         || toupper (i) != TOUPPER (i))
19505       exit(2);
19506   exit (0);
19507 }
19508 _ACEOF
19509 rm -f conftest$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511   (eval $ac_link) 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516   (eval $ac_try) 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   :
19521 else
19522   echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ( exit $ac_status )
19527 ac_cv_header_stdc=no
19528 fi
19529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19530 fi
19531 fi
19532 fi
19533 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19534 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19535 if test $ac_cv_header_stdc = yes; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define STDC_HEADERS 1
19539 _ACEOF
19540
19541 fi
19542
19543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19554                   inttypes.h stdint.h unistd.h
19555 do
19556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19557 echo "$as_me:$LINENO: checking for $ac_header" >&5
19558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560   echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562   cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 $ac_includes_default
19569
19570 #include <$ac_header>
19571 _ACEOF
19572 rm -f conftest.$ac_objext
19573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19574   (eval $ac_compile) 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } &&
19581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest.$ac_objext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593   eval "$as_ac_Header=yes"
19594 else
19595   echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 eval "$as_ac_Header=no"
19599 fi
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 fi
19602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19605   cat >>confdefs.h <<_ACEOF
19606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19607 _ACEOF
19608
19609 fi
19610
19611 done
19612
19613
19614
19615
19616
19617
19618
19619
19620 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
19621 do
19622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19623 echo "$as_me:$LINENO: checking for $ac_header" >&5
19624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 $ac_includes_default
19635
19636 #include <$ac_header>
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640   (eval $ac_compile) 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } &&
19647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649   (eval $ac_try) 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; } &&
19653          { ac_try='test -s conftest.$ac_objext'
19654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655   (eval $ac_try) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; }; then
19659   eval "$as_ac_Header=yes"
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 eval "$as_ac_Header=no"
19665 fi
19666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19667 fi
19668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19671   cat >>confdefs.h <<_ACEOF
19672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19673 _ACEOF
19674
19675 fi
19676
19677 done
19678
19679
19680 if test "$ac_cv_header_wchar_h" != "yes"; then
19681     echo "$as_me:$LINENO: checking for wcstr.h" >&5
19682 echo $ECHO_N "checking for wcstr.h... $ECHO_C" >&6
19683 if test "${ac_cv_header_wcstr_h+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 $ac_includes_default
19693
19694 #include <wcstr.h>
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698   (eval $ac_compile) 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } &&
19705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707   (eval $ac_try) 2>&5
19708   ac_status=$?
19709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710   (exit $ac_status); }; } &&
19711          { ac_try='test -s conftest.$ac_objext'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; }; then
19717   ac_cv_header_wcstr_h=yes
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722 ac_cv_header_wcstr_h=no
19723 fi
19724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19725 fi
19726 echo "$as_me:$LINENO: result: $ac_cv_header_wcstr_h" >&5
19727 echo "${ECHO_T}$ac_cv_header_wcstr_h" >&6
19728
19729
19730 fi
19731
19732 case "${host}" in
19733   *-pc-os2_emx | *-pc-os2-emx )
19734                   if test $ac_cv_header_langinfo_h = "yes" \
19735                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19736                      -o "$wx_cv_gccversion" = "EMX3" \
19737                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19738           LIBS="$LIBS -lintl"
19739       fi
19740   ;;
19741 esac
19742
19743 if test "$USE_UNIX" = 1 ; then
19744     echo "$as_me:$LINENO: checking for sys/select.h" >&5
19745 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
19746 if test "${ac_cv_header_sys_select_h+set}" = set; then
19747   echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749   cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755 $ac_includes_default
19756
19757 #include <sys/select.h>
19758 _ACEOF
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761   (eval $ac_compile) 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } &&
19768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770   (eval $ac_try) 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; } &&
19774          { ac_try='test -s conftest.$ac_objext'
19775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776   (eval $ac_try) 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; }; then
19780   ac_cv_header_sys_select_h=yes
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785 ac_cv_header_sys_select_h=no
19786 fi
19787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19788 fi
19789 echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
19790 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
19791
19792
19793 fi
19794
19795
19796 for ac_header in sys/epoll.h
19797 do
19798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19800   echo "$as_me:$LINENO: checking for $ac_header" >&5
19801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19803   echo $ECHO_N "(cached) $ECHO_C" >&6
19804 fi
19805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19807 else
19808   # Is the header compilable?
19809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817 $ac_includes_default
19818 #include <$ac_header>
19819 _ACEOF
19820 rm -f conftest.$ac_objext
19821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19822   (eval $ac_compile) 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } &&
19829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831   (eval $ac_try) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; } &&
19835          { ac_try='test -s conftest.$ac_objext'
19836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837   (eval $ac_try) 2>&5
19838   ac_status=$?
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); }; }; then
19841   ac_header_compiler=yes
19842 else
19843   echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 ac_header_compiler=no
19847 fi
19848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19850 echo "${ECHO_T}$ac_header_compiler" >&6
19851
19852 # Is the header present?
19853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 #include <$ac_header>
19862 _ACEOF
19863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } >/dev/null; then
19871   if test -s conftest.err; then
19872     ac_cpp_err=$ac_c_preproc_warn_flag
19873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19874   else
19875     ac_cpp_err=
19876   fi
19877 else
19878   ac_cpp_err=yes
19879 fi
19880 if test -z "$ac_cpp_err"; then
19881   ac_header_preproc=yes
19882 else
19883   echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886   ac_header_preproc=no
19887 fi
19888 rm -f conftest.err conftest.$ac_ext
19889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19890 echo "${ECHO_T}$ac_header_preproc" >&6
19891
19892 # So?  What about this header?
19893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19894   yes:no: )
19895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19899     ac_header_preproc=yes
19900     ;;
19901   no:yes:* )
19902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19914     (
19915       cat <<\_ASBOX
19916 ## ----------------------------------------- ##
19917 ## Report this to wx-dev@lists.wxwidgets.org ##
19918 ## ----------------------------------------- ##
19919 _ASBOX
19920     ) |
19921       sed "s/^/$as_me: WARNING:     /" >&2
19922     ;;
19923 esac
19924 echo "$as_me:$LINENO: checking for $ac_header" >&5
19925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19927   echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929   eval "$as_ac_Header=\$ac_header_preproc"
19930 fi
19931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19933
19934 fi
19935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19936   cat >>confdefs.h <<_ACEOF
19937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19938 _ACEOF
19939
19940 fi
19941
19942 done
19943
19944
19945
19946 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19948 if test "${ac_cv_c_const+set}" = set; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951   cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957
19958 int
19959 main ()
19960 {
19961 /* FIXME: Include the comments suggested by Paul. */
19962 #ifndef __cplusplus
19963   /* Ultrix mips cc rejects this.  */
19964   typedef int charset[2];
19965   const charset x;
19966   /* SunOS 4.1.1 cc rejects this.  */
19967   char const *const *ccp;
19968   char **p;
19969   /* NEC SVR4.0.2 mips cc rejects this.  */
19970   struct point {int x, y;};
19971   static struct point const zero = {0,0};
19972   /* AIX XL C 1.02.0.0 rejects this.
19973      It does not let you subtract one const X* pointer from another in
19974      an arm of an if-expression whose if-part is not a constant
19975      expression */
19976   const char *g = "string";
19977   ccp = &g + (g ? g-g : 0);
19978   /* HPUX 7.0 cc rejects these. */
19979   ++ccp;
19980   p = (char**) ccp;
19981   ccp = (char const *const *) p;
19982   { /* SCO 3.2v4 cc rejects this.  */
19983     char *t;
19984     char const *s = 0 ? (char *) 0 : (char const *) 0;
19985
19986     *t++ = 0;
19987   }
19988   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19989     int x[] = {25, 17};
19990     const int *foo = &x[0];
19991     ++foo;
19992   }
19993   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19994     typedef const int *iptr;
19995     iptr p = 0;
19996     ++p;
19997   }
19998   { /* AIX XL C 1.02.0.0 rejects this saying
19999        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20000     struct s { int j; const int *ap[3]; };
20001     struct s *b; b->j = 5;
20002   }
20003   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20004     const int foo = 10;
20005   }
20006 #endif
20007
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20014   (eval $ac_compile) 2>conftest.er1
20015   ac_status=$?
20016   grep -v '^ *+' conftest.er1 >conftest.err
20017   rm -f conftest.er1
20018   cat conftest.err >&5
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); } &&
20021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
20027          { ac_try='test -s conftest.$ac_objext'
20028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029   (eval $ac_try) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); }; }; then
20033   ac_cv_c_const=yes
20034 else
20035   echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ac_cv_c_const=no
20039 fi
20040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20041 fi
20042 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20043 echo "${ECHO_T}$ac_cv_c_const" >&6
20044 if test $ac_cv_c_const = no; then
20045
20046 cat >>confdefs.h <<\_ACEOF
20047 #define const
20048 _ACEOF
20049
20050 fi
20051
20052 echo "$as_me:$LINENO: checking for inline" >&5
20053 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20054 if test "${ac_cv_c_inline+set}" = set; then
20055   echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057   ac_cv_c_inline=no
20058 for ac_kw in inline __inline__ __inline; do
20059   cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 #ifndef __cplusplus
20066 typedef int foo_t;
20067 static $ac_kw foo_t static_foo () {return 0; }
20068 $ac_kw foo_t foo () {return 0; }
20069 #endif
20070
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074   (eval $ac_compile) 2>conftest.er1
20075   ac_status=$?
20076   grep -v '^ *+' conftest.er1 >conftest.err
20077   rm -f conftest.er1
20078   cat conftest.err >&5
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } &&
20081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083   (eval $ac_try) 2>&5
20084   ac_status=$?
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); }; } &&
20087          { ac_try='test -s conftest.$ac_objext'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093   ac_cv_c_inline=$ac_kw; break
20094 else
20095   echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098 fi
20099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20100 done
20101
20102 fi
20103 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20104 echo "${ECHO_T}$ac_cv_c_inline" >&6
20105
20106
20107 case $ac_cv_c_inline in
20108   inline | yes) ;;
20109   *)
20110     case $ac_cv_c_inline in
20111       no) ac_val=;;
20112       *) ac_val=$ac_cv_c_inline;;
20113     esac
20114     cat >>confdefs.h <<_ACEOF
20115 #ifndef __cplusplus
20116 #define inline $ac_val
20117 #endif
20118 _ACEOF
20119     ;;
20120 esac
20121
20122
20123 echo "$as_me:$LINENO: checking for short" >&5
20124 echo $ECHO_N "checking for short... $ECHO_C" >&6
20125 if test "${ac_cv_type_short+set}" = set; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 $ac_includes_default
20135 int
20136 main ()
20137 {
20138 if ((short *) 0)
20139   return 0;
20140 if (sizeof (short))
20141   return 0;
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20148   (eval $ac_compile) 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } &&
20155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; } &&
20161          { ac_try='test -s conftest.$ac_objext'
20162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163   (eval $ac_try) 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; }; then
20167   ac_cv_type_short=yes
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_type_short=no
20173 fi
20174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20175 fi
20176 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20177 echo "${ECHO_T}$ac_cv_type_short" >&6
20178
20179 echo "$as_me:$LINENO: checking size of short" >&5
20180 echo $ECHO_N "checking size of short... $ECHO_C" >&6
20181 if test "${ac_cv_sizeof_short+set}" = set; then
20182   echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184   if test "$ac_cv_type_short" = yes; then
20185   # The cast to unsigned long works around a bug in the HP C Compiler
20186   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20187   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20188   # This bug is HP SR number 8606223364.
20189   if test "$cross_compiling" = yes; then
20190   # Depending upon the size, compute the lo and hi bounds.
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 $ac_includes_default
20198 int
20199 main ()
20200 {
20201 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
20202 test_array [0] = 0
20203
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210   (eval $ac_compile) 2>conftest.er1
20211   ac_status=$?
20212   grep -v '^ *+' conftest.er1 >conftest.err
20213   rm -f conftest.er1
20214   cat conftest.err >&5
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } &&
20217          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; } &&
20223          { ac_try='test -s conftest.$ac_objext'
20224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225   (eval $ac_try) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; }; then
20229   ac_lo=0 ac_mid=0
20230   while :; do
20231     cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h.  */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h.  */
20237 $ac_includes_default
20238 int
20239 main ()
20240 {
20241 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20242 test_array [0] = 0
20243
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250   (eval $ac_compile) 2>conftest.er1
20251   ac_status=$?
20252   grep -v '^ *+' conftest.er1 >conftest.err
20253   rm -f conftest.er1
20254   cat conftest.err >&5
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } &&
20257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259   (eval $ac_try) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; } &&
20263          { ac_try='test -s conftest.$ac_objext'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_hi=$ac_mid; break
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 ac_lo=`expr $ac_mid + 1`
20275                     if test $ac_lo -le $ac_mid; then
20276                       ac_lo= ac_hi=
20277                       break
20278                     fi
20279                     ac_mid=`expr 2 '*' $ac_mid + 1`
20280 fi
20281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20282   done
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 $ac_includes_default
20294 int
20295 main ()
20296 {
20297 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
20298 test_array [0] = 0
20299
20300   ;
20301   return 0;
20302 }
20303 _ACEOF
20304 rm -f conftest.$ac_objext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20306   (eval $ac_compile) 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315   (eval $ac_try) 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); }; } &&
20319          { ac_try='test -s conftest.$ac_objext'
20320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321   (eval $ac_try) 2>&5
20322   ac_status=$?
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); }; }; then
20325   ac_hi=-1 ac_mid=-1
20326   while :; do
20327     cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333 $ac_includes_default
20334 int
20335 main ()
20336 {
20337 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
20338 test_array [0] = 0
20339
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346   (eval $ac_compile) 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; } &&
20359          { ac_try='test -s conftest.$ac_objext'
20360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361   (eval $ac_try) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; }; then
20365   ac_lo=$ac_mid; break
20366 else
20367   echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20369
20370 ac_hi=`expr '(' $ac_mid ')' - 1`
20371                        if test $ac_mid -le $ac_hi; then
20372                          ac_lo= ac_hi=
20373                          break
20374                        fi
20375                        ac_mid=`expr 2 '*' $ac_mid`
20376 fi
20377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20378   done
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 ac_lo= ac_hi=
20384 fi
20385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386 fi
20387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 # Binary search between lo and hi bounds.
20389 while test "x$ac_lo" != "x$ac_hi"; do
20390   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20391   cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 $ac_includes_default
20398 int
20399 main ()
20400 {
20401 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20402 test_array [0] = 0
20403
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410   (eval $ac_compile) 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } &&
20417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419   (eval $ac_try) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; } &&
20423          { ac_try='test -s conftest.$ac_objext'
20424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425   (eval $ac_try) 2>&5
20426   ac_status=$?
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); }; }; then
20429   ac_hi=$ac_mid
20430 else
20431   echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ac_lo=`expr '(' $ac_mid ')' + 1`
20435 fi
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 done
20438 case $ac_lo in
20439 ?*) ac_cv_sizeof_short=$ac_lo;;
20440 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20441 See \`config.log' for more details." >&5
20442 echo "$as_me: error: cannot compute sizeof (short), 77
20443 See \`config.log' for more details." >&2;}
20444    { (exit 1); exit 1; }; } ;;
20445 esac
20446 else
20447   if test "$cross_compiling" = yes; then
20448   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20449 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20450    { (exit 1); exit 1; }; }
20451 else
20452   cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 $ac_includes_default
20459 long longval () { return (long) (sizeof (short)); }
20460 unsigned long ulongval () { return (long) (sizeof (short)); }
20461 #include <stdio.h>
20462 #include <stdlib.h>
20463 int
20464 main ()
20465 {
20466
20467   FILE *f = fopen ("conftest.val", "w");
20468   if (! f)
20469     exit (1);
20470   if (((long) (sizeof (short))) < 0)
20471     {
20472       long i = longval ();
20473       if (i != ((long) (sizeof (short))))
20474         exit (1);
20475       fprintf (f, "%ld\n", i);
20476     }
20477   else
20478     {
20479       unsigned long i = ulongval ();
20480       if (i != ((long) (sizeof (short))))
20481         exit (1);
20482       fprintf (f, "%lu\n", i);
20483     }
20484   exit (ferror (f) || fclose (f) != 0);
20485
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest$ac_exeext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492   (eval $ac_link) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497   (eval $ac_try) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   ac_cv_sizeof_short=`cat conftest.val`
20502 else
20503   echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 ( exit $ac_status )
20508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20509 See \`config.log' for more details." >&5
20510 echo "$as_me: error: cannot compute sizeof (short), 77
20511 See \`config.log' for more details." >&2;}
20512    { (exit 1); exit 1; }; }
20513 fi
20514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 fi
20517 rm -f conftest.val
20518 else
20519   ac_cv_sizeof_short=0
20520 fi
20521 fi
20522 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20523 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
20524 cat >>confdefs.h <<_ACEOF
20525 #define SIZEOF_SHORT $ac_cv_sizeof_short
20526 _ACEOF
20527
20528
20529 echo "$as_me:$LINENO: checking for void *" >&5
20530 echo $ECHO_N "checking for void *... $ECHO_C" >&6
20531 if test "${ac_cv_type_void_p+set}" = set; then
20532   echo $ECHO_N "(cached) $ECHO_C" >&6
20533 else
20534   cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 $ac_includes_default
20541 int
20542 main ()
20543 {
20544 if ((void * *) 0)
20545   return 0;
20546 if (sizeof (void *))
20547   return 0;
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554   (eval $ac_compile) 2>conftest.er1
20555   ac_status=$?
20556   grep -v '^ *+' conftest.er1 >conftest.err
20557   rm -f conftest.er1
20558   cat conftest.err >&5
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } &&
20561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; } &&
20567          { ac_try='test -s conftest.$ac_objext'
20568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569   (eval $ac_try) 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; }; then
20573   ac_cv_type_void_p=yes
20574 else
20575   echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_cv_type_void_p=no
20579 fi
20580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20581 fi
20582 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20583 echo "${ECHO_T}$ac_cv_type_void_p" >&6
20584
20585 echo "$as_me:$LINENO: checking size of void *" >&5
20586 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
20587 if test "${ac_cv_sizeof_void_p+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   if test "$ac_cv_type_void_p" = yes; then
20591   # The cast to unsigned long works around a bug in the HP C Compiler
20592   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20593   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20594   # This bug is HP SR number 8606223364.
20595   if test "$cross_compiling" = yes; then
20596   # Depending upon the size, compute the lo and hi bounds.
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 $ac_includes_default
20604 int
20605 main ()
20606 {
20607 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
20608 test_array [0] = 0
20609
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616   (eval $ac_compile) 2>conftest.er1
20617   ac_status=$?
20618   grep -v '^ *+' conftest.er1 >conftest.err
20619   rm -f conftest.er1
20620   cat conftest.err >&5
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } &&
20623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625   (eval $ac_try) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; } &&
20629          { ac_try='test -s conftest.$ac_objext'
20630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631   (eval $ac_try) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_lo=0 ac_mid=0
20636   while :; do
20637     cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 $ac_includes_default
20644 int
20645 main ()
20646 {
20647 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
20648 test_array [0] = 0
20649
20650   ;
20651   return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext
20655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20656   (eval $ac_compile) 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } &&
20663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; } &&
20669          { ac_try='test -s conftest.$ac_objext'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675   ac_hi=$ac_mid; break
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_lo=`expr $ac_mid + 1`
20681                     if test $ac_lo -le $ac_mid; then
20682                       ac_lo= ac_hi=
20683                       break
20684                     fi
20685                     ac_mid=`expr 2 '*' $ac_mid + 1`
20686 fi
20687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20688   done
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h.  */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h.  */
20699 $ac_includes_default
20700 int
20701 main ()
20702 {
20703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
20704 test_array [0] = 0
20705
20706   ;
20707   return 0;
20708 }
20709 _ACEOF
20710 rm -f conftest.$ac_objext
20711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20712   (eval $ac_compile) 2>conftest.er1
20713   ac_status=$?
20714   grep -v '^ *+' conftest.er1 >conftest.err
20715   rm -f conftest.er1
20716   cat conftest.err >&5
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); } &&
20719          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721   (eval $ac_try) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; } &&
20725          { ac_try='test -s conftest.$ac_objext'
20726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727   (eval $ac_try) 2>&5
20728   ac_status=$?
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); }; }; then
20731   ac_hi=-1 ac_mid=-1
20732   while :; do
20733     cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739 $ac_includes_default
20740 int
20741 main ()
20742 {
20743 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
20744 test_array [0] = 0
20745
20746   ;
20747   return 0;
20748 }
20749 _ACEOF
20750 rm -f conftest.$ac_objext
20751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20752   (eval $ac_compile) 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } &&
20759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761   (eval $ac_try) 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); }; } &&
20765          { ac_try='test -s conftest.$ac_objext'
20766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767   (eval $ac_try) 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; }; then
20771   ac_lo=$ac_mid; break
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 ac_hi=`expr '(' $ac_mid ')' - 1`
20777                        if test $ac_mid -le $ac_hi; then
20778                          ac_lo= ac_hi=
20779                          break
20780                        fi
20781                        ac_mid=`expr 2 '*' $ac_mid`
20782 fi
20783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20784   done
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 ac_lo= ac_hi=
20790 fi
20791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20792 fi
20793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20794 # Binary search between lo and hi bounds.
20795 while test "x$ac_lo" != "x$ac_hi"; do
20796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20797   cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 $ac_includes_default
20804 int
20805 main ()
20806 {
20807 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
20808 test_array [0] = 0
20809
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 rm -f conftest.$ac_objext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20816   (eval $ac_compile) 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825   (eval $ac_try) 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; } &&
20829          { ac_try='test -s conftest.$ac_objext'
20830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831   (eval $ac_try) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; }; then
20835   ac_hi=$ac_mid
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840 ac_lo=`expr '(' $ac_mid ')' + 1`
20841 fi
20842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20843 done
20844 case $ac_lo in
20845 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20846 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
20847 See \`config.log' for more details." >&5
20848 echo "$as_me: error: cannot compute sizeof (void *), 77
20849 See \`config.log' for more details." >&2;}
20850    { (exit 1); exit 1; }; } ;;
20851 esac
20852 else
20853   if test "$cross_compiling" = yes; then
20854   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20855 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20856    { (exit 1); exit 1; }; }
20857 else
20858   cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 $ac_includes_default
20865 long longval () { return (long) (sizeof (void *)); }
20866 unsigned long ulongval () { return (long) (sizeof (void *)); }
20867 #include <stdio.h>
20868 #include <stdlib.h>
20869 int
20870 main ()
20871 {
20872
20873   FILE *f = fopen ("conftest.val", "w");
20874   if (! f)
20875     exit (1);
20876   if (((long) (sizeof (void *))) < 0)
20877     {
20878       long i = longval ();
20879       if (i != ((long) (sizeof (void *))))
20880         exit (1);
20881       fprintf (f, "%ld\n", i);
20882     }
20883   else
20884     {
20885       unsigned long i = ulongval ();
20886       if (i != ((long) (sizeof (void *))))
20887         exit (1);
20888       fprintf (f, "%lu\n", i);
20889     }
20890   exit (ferror (f) || fclose (f) != 0);
20891
20892   ;
20893   return 0;
20894 }
20895 _ACEOF
20896 rm -f conftest$ac_exeext
20897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20898   (eval $ac_link) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903   (eval $ac_try) 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; }; then
20907   ac_cv_sizeof_void_p=`cat conftest.val`
20908 else
20909   echo "$as_me: program exited with status $ac_status" >&5
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 ( exit $ac_status )
20914 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
20915 See \`config.log' for more details." >&5
20916 echo "$as_me: error: cannot compute sizeof (void *), 77
20917 See \`config.log' for more details." >&2;}
20918    { (exit 1); exit 1; }; }
20919 fi
20920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20921 fi
20922 fi
20923 rm -f conftest.val
20924 else
20925   ac_cv_sizeof_void_p=0
20926 fi
20927 fi
20928 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20929 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
20930 cat >>confdefs.h <<_ACEOF
20931 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20932 _ACEOF
20933
20934
20935 echo "$as_me:$LINENO: checking for int" >&5
20936 echo $ECHO_N "checking for int... $ECHO_C" >&6
20937 if test "${ac_cv_type_int+set}" = set; then
20938   echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940   cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 $ac_includes_default
20947 int
20948 main ()
20949 {
20950 if ((int *) 0)
20951   return 0;
20952 if (sizeof (int))
20953   return 0;
20954   ;
20955   return 0;
20956 }
20957 _ACEOF
20958 rm -f conftest.$ac_objext
20959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960   (eval $ac_compile) 2>conftest.er1
20961   ac_status=$?
20962   grep -v '^ *+' conftest.er1 >conftest.err
20963   rm -f conftest.er1
20964   cat conftest.err >&5
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } &&
20967          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969   (eval $ac_try) 2>&5
20970   ac_status=$?
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); }; } &&
20973          { ac_try='test -s conftest.$ac_objext'
20974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975   (eval $ac_try) 2>&5
20976   ac_status=$?
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); }; }; then
20979   ac_cv_type_int=yes
20980 else
20981   echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984 ac_cv_type_int=no
20985 fi
20986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20987 fi
20988 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20989 echo "${ECHO_T}$ac_cv_type_int" >&6
20990
20991 echo "$as_me:$LINENO: checking size of int" >&5
20992 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20993 if test "${ac_cv_sizeof_int+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   if test "$ac_cv_type_int" = yes; then
20997   # The cast to unsigned long works around a bug in the HP C Compiler
20998   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20999   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21000   # This bug is HP SR number 8606223364.
21001   if test "$cross_compiling" = yes; then
21002   # Depending upon the size, compute the lo and hi bounds.
21003 cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h.  */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h.  */
21009 $ac_includes_default
21010 int
21011 main ()
21012 {
21013 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
21014 test_array [0] = 0
21015
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022   (eval $ac_compile) 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; } &&
21035          { ac_try='test -s conftest.$ac_objext'
21036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037   (eval $ac_try) 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; }; then
21041   ac_lo=0 ac_mid=0
21042   while :; do
21043     cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049 $ac_includes_default
21050 int
21051 main ()
21052 {
21053 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21054 test_array [0] = 0
21055
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062   (eval $ac_compile) 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; } &&
21075          { ac_try='test -s conftest.$ac_objext'
21076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077   (eval $ac_try) 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; }; then
21081   ac_hi=$ac_mid; break
21082 else
21083   echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21085
21086 ac_lo=`expr $ac_mid + 1`
21087                     if test $ac_lo -le $ac_mid; then
21088                       ac_lo= ac_hi=
21089                       break
21090                     fi
21091                     ac_mid=`expr 2 '*' $ac_mid + 1`
21092 fi
21093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21094   done
21095 else
21096   echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 $ac_includes_default
21106 int
21107 main ()
21108 {
21109 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
21110 test_array [0] = 0
21111
21112   ;
21113   return 0;
21114 }
21115 _ACEOF
21116 rm -f conftest.$ac_objext
21117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21118   (eval $ac_compile) 2>conftest.er1
21119   ac_status=$?
21120   grep -v '^ *+' conftest.er1 >conftest.err
21121   rm -f conftest.er1
21122   cat conftest.err >&5
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); } &&
21125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127   (eval $ac_try) 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); }; } &&
21131          { ac_try='test -s conftest.$ac_objext'
21132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133   (eval $ac_try) 2>&5
21134   ac_status=$?
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); }; }; then
21137   ac_hi=-1 ac_mid=-1
21138   while :; do
21139     cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 $ac_includes_default
21146 int
21147 main ()
21148 {
21149 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
21150 test_array [0] = 0
21151
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21158   (eval $ac_compile) 2>conftest.er1
21159   ac_status=$?
21160   grep -v '^ *+' conftest.er1 >conftest.err
21161   rm -f conftest.er1
21162   cat conftest.err >&5
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } &&
21165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; } &&
21171          { ac_try='test -s conftest.$ac_objext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_lo=$ac_mid; break
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182 ac_hi=`expr '(' $ac_mid ')' - 1`
21183                        if test $ac_mid -le $ac_hi; then
21184                          ac_lo= ac_hi=
21185                          break
21186                        fi
21187                        ac_mid=`expr 2 '*' $ac_mid`
21188 fi
21189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21190   done
21191 else
21192   echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195 ac_lo= ac_hi=
21196 fi
21197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21198 fi
21199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21200 # Binary search between lo and hi bounds.
21201 while test "x$ac_lo" != "x$ac_hi"; do
21202   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 $ac_includes_default
21210 int
21211 main ()
21212 {
21213 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
21214 test_array [0] = 0
21215
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 rm -f conftest.$ac_objext
21221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21222   (eval $ac_compile) 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } &&
21229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; } &&
21235          { ac_try='test -s conftest.$ac_objext'
21236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   ac_hi=$ac_mid
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 ac_lo=`expr '(' $ac_mid ')' + 1`
21247 fi
21248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21249 done
21250 case $ac_lo in
21251 ?*) ac_cv_sizeof_int=$ac_lo;;
21252 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21253 See \`config.log' for more details." >&5
21254 echo "$as_me: error: cannot compute sizeof (int), 77
21255 See \`config.log' for more details." >&2;}
21256    { (exit 1); exit 1; }; } ;;
21257 esac
21258 else
21259   if test "$cross_compiling" = yes; then
21260   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21261 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21262    { (exit 1); exit 1; }; }
21263 else
21264   cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 $ac_includes_default
21271 long longval () { return (long) (sizeof (int)); }
21272 unsigned long ulongval () { return (long) (sizeof (int)); }
21273 #include <stdio.h>
21274 #include <stdlib.h>
21275 int
21276 main ()
21277 {
21278
21279   FILE *f = fopen ("conftest.val", "w");
21280   if (! f)
21281     exit (1);
21282   if (((long) (sizeof (int))) < 0)
21283     {
21284       long i = longval ();
21285       if (i != ((long) (sizeof (int))))
21286         exit (1);
21287       fprintf (f, "%ld\n", i);
21288     }
21289   else
21290     {
21291       unsigned long i = ulongval ();
21292       if (i != ((long) (sizeof (int))))
21293         exit (1);
21294       fprintf (f, "%lu\n", i);
21295     }
21296   exit (ferror (f) || fclose (f) != 0);
21297
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest$ac_exeext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304   (eval $ac_link) 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
21313   ac_cv_sizeof_int=`cat conftest.val`
21314 else
21315   echo "$as_me: program exited with status $ac_status" >&5
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21318
21319 ( exit $ac_status )
21320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21321 See \`config.log' for more details." >&5
21322 echo "$as_me: error: cannot compute sizeof (int), 77
21323 See \`config.log' for more details." >&2;}
21324    { (exit 1); exit 1; }; }
21325 fi
21326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21327 fi
21328 fi
21329 rm -f conftest.val
21330 else
21331   ac_cv_sizeof_int=0
21332 fi
21333 fi
21334 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21335 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
21336 cat >>confdefs.h <<_ACEOF
21337 #define SIZEOF_INT $ac_cv_sizeof_int
21338 _ACEOF
21339
21340
21341 echo "$as_me:$LINENO: checking for long" >&5
21342 echo $ECHO_N "checking for long... $ECHO_C" >&6
21343 if test "${ac_cv_type_long+set}" = set; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 $ac_includes_default
21353 int
21354 main ()
21355 {
21356 if ((long *) 0)
21357   return 0;
21358 if (sizeof (long))
21359   return 0;
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21366   (eval $ac_compile) 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } &&
21373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375   (eval $ac_try) 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; } &&
21379          { ac_try='test -s conftest.$ac_objext'
21380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381   (eval $ac_try) 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; }; then
21385   ac_cv_type_long=yes
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390 ac_cv_type_long=no
21391 fi
21392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21393 fi
21394 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21395 echo "${ECHO_T}$ac_cv_type_long" >&6
21396
21397 echo "$as_me:$LINENO: checking size of long" >&5
21398 echo $ECHO_N "checking size of long... $ECHO_C" >&6
21399 if test "${ac_cv_sizeof_long+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402   if test "$ac_cv_type_long" = yes; then
21403   # The cast to unsigned long works around a bug in the HP C Compiler
21404   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21405   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21406   # This bug is HP SR number 8606223364.
21407   if test "$cross_compiling" = yes; then
21408   # Depending upon the size, compute the lo and hi bounds.
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415 $ac_includes_default
21416 int
21417 main ()
21418 {
21419 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21420 test_array [0] = 0
21421
21422   ;
21423   return 0;
21424 }
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21428   (eval $ac_compile) 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } &&
21435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437   (eval $ac_try) 2>&5
21438   ac_status=$?
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); }; } &&
21441          { ac_try='test -s conftest.$ac_objext'
21442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443   (eval $ac_try) 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); }; }; then
21447   ac_lo=0 ac_mid=0
21448   while :; do
21449     cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h.  */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h.  */
21455 $ac_includes_default
21456 int
21457 main ()
21458 {
21459 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21460 test_array [0] = 0
21461
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468   (eval $ac_compile) 2>conftest.er1
21469   ac_status=$?
21470   grep -v '^ *+' conftest.er1 >conftest.err
21471   rm -f conftest.er1
21472   cat conftest.err >&5
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } &&
21475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; } &&
21481          { ac_try='test -s conftest.$ac_objext'
21482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483   (eval $ac_try) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; }; then
21487   ac_hi=$ac_mid; break
21488 else
21489   echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 ac_lo=`expr $ac_mid + 1`
21493                     if test $ac_lo -le $ac_mid; then
21494                       ac_lo= ac_hi=
21495                       break
21496                     fi
21497                     ac_mid=`expr 2 '*' $ac_mid + 1`
21498 fi
21499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21500   done
21501 else
21502   echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 $ac_includes_default
21512 int
21513 main ()
21514 {
21515 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21516 test_array [0] = 0
21517
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 rm -f conftest.$ac_objext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524   (eval $ac_compile) 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } &&
21531          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533   (eval $ac_try) 2>&5
21534   ac_status=$?
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); }; } &&
21537          { ac_try='test -s conftest.$ac_objext'
21538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539   (eval $ac_try) 2>&5
21540   ac_status=$?
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); }; }; then
21543   ac_hi=-1 ac_mid=-1
21544   while :; do
21545     cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 $ac_includes_default
21552 int
21553 main ()
21554 {
21555 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21556 test_array [0] = 0
21557
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 rm -f conftest.$ac_objext
21563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21564   (eval $ac_compile) 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } &&
21571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573   (eval $ac_try) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); }; } &&
21577          { ac_try='test -s conftest.$ac_objext'
21578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579   (eval $ac_try) 2>&5
21580   ac_status=$?
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); }; }; then
21583   ac_lo=$ac_mid; break
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588 ac_hi=`expr '(' $ac_mid ')' - 1`
21589                        if test $ac_mid -le $ac_hi; then
21590                          ac_lo= ac_hi=
21591                          break
21592                        fi
21593                        ac_mid=`expr 2 '*' $ac_mid`
21594 fi
21595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596   done
21597 else
21598   echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ac_lo= ac_hi=
21602 fi
21603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21604 fi
21605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21606 # Binary search between lo and hi bounds.
21607 while test "x$ac_lo" != "x$ac_hi"; do
21608   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21609   cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h.  */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h.  */
21615 $ac_includes_default
21616 int
21617 main ()
21618 {
21619 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21620 test_array [0] = 0
21621
21622   ;
21623   return 0;
21624 }
21625 _ACEOF
21626 rm -f conftest.$ac_objext
21627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21628   (eval $ac_compile) 2>conftest.er1
21629   ac_status=$?
21630   grep -v '^ *+' conftest.er1 >conftest.err
21631   rm -f conftest.er1
21632   cat conftest.err >&5
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } &&
21635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637   (eval $ac_try) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); }; } &&
21641          { ac_try='test -s conftest.$ac_objext'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; }; then
21647   ac_hi=$ac_mid
21648 else
21649   echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21651
21652 ac_lo=`expr '(' $ac_mid ')' + 1`
21653 fi
21654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21655 done
21656 case $ac_lo in
21657 ?*) ac_cv_sizeof_long=$ac_lo;;
21658 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21659 See \`config.log' for more details." >&5
21660 echo "$as_me: error: cannot compute sizeof (long), 77
21661 See \`config.log' for more details." >&2;}
21662    { (exit 1); exit 1; }; } ;;
21663 esac
21664 else
21665   if test "$cross_compiling" = yes; then
21666   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21667 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21668    { (exit 1); exit 1; }; }
21669 else
21670   cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676 $ac_includes_default
21677 long longval () { return (long) (sizeof (long)); }
21678 unsigned long ulongval () { return (long) (sizeof (long)); }
21679 #include <stdio.h>
21680 #include <stdlib.h>
21681 int
21682 main ()
21683 {
21684
21685   FILE *f = fopen ("conftest.val", "w");
21686   if (! f)
21687     exit (1);
21688   if (((long) (sizeof (long))) < 0)
21689     {
21690       long i = longval ();
21691       if (i != ((long) (sizeof (long))))
21692         exit (1);
21693       fprintf (f, "%ld\n", i);
21694     }
21695   else
21696     {
21697       unsigned long i = ulongval ();
21698       if (i != ((long) (sizeof (long))))
21699         exit (1);
21700       fprintf (f, "%lu\n", i);
21701     }
21702   exit (ferror (f) || fclose (f) != 0);
21703
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest$ac_exeext
21709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21710   (eval $ac_link) 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715   (eval $ac_try) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); }; }; then
21719   ac_cv_sizeof_long=`cat conftest.val`
21720 else
21721   echo "$as_me: program exited with status $ac_status" >&5
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21724
21725 ( exit $ac_status )
21726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21727 See \`config.log' for more details." >&5
21728 echo "$as_me: error: cannot compute sizeof (long), 77
21729 See \`config.log' for more details." >&2;}
21730    { (exit 1); exit 1; }; }
21731 fi
21732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21733 fi
21734 fi
21735 rm -f conftest.val
21736 else
21737   ac_cv_sizeof_long=0
21738 fi
21739 fi
21740 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21741 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
21742 cat >>confdefs.h <<_ACEOF
21743 #define SIZEOF_LONG $ac_cv_sizeof_long
21744 _ACEOF
21745
21746
21747 echo "$as_me:$LINENO: checking for size_t" >&5
21748 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21749 if test "${ac_cv_type_size_t+set}" = set; then
21750   echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752   cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758 $ac_includes_default
21759 int
21760 main ()
21761 {
21762 if ((size_t *) 0)
21763   return 0;
21764 if (sizeof (size_t))
21765   return 0;
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext
21771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21772   (eval $ac_compile) 2>conftest.er1
21773   ac_status=$?
21774   grep -v '^ *+' conftest.er1 >conftest.err
21775   rm -f conftest.er1
21776   cat conftest.err >&5
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); } &&
21779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; } &&
21785          { ac_try='test -s conftest.$ac_objext'
21786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787   (eval $ac_try) 2>&5
21788   ac_status=$?
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); }; }; then
21791   ac_cv_type_size_t=yes
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796 ac_cv_type_size_t=no
21797 fi
21798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21799 fi
21800 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21801 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21802
21803 echo "$as_me:$LINENO: checking size of size_t" >&5
21804 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
21805 if test "${ac_cv_sizeof_size_t+set}" = set; then
21806   echo $ECHO_N "(cached) $ECHO_C" >&6
21807 else
21808   if test "$ac_cv_type_size_t" = yes; then
21809   # The cast to unsigned long works around a bug in the HP C Compiler
21810   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21811   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21812   # This bug is HP SR number 8606223364.
21813   if test "$cross_compiling" = yes; then
21814   # Depending upon the size, compute the lo and hi bounds.
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 $ac_includes_default
21822 int
21823 main ()
21824 {
21825 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
21826 test_array [0] = 0
21827
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest.$ac_objext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21834   (eval $ac_compile) 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; } &&
21847          { ac_try='test -s conftest.$ac_objext'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   ac_lo=0 ac_mid=0
21854   while :; do
21855     cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h.  */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h.  */
21861 $ac_includes_default
21862 int
21863 main ()
21864 {
21865 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21866 test_array [0] = 0
21867
21868   ;
21869   return 0;
21870 }
21871 _ACEOF
21872 rm -f conftest.$ac_objext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21874   (eval $ac_compile) 2>conftest.er1
21875   ac_status=$?
21876   grep -v '^ *+' conftest.er1 >conftest.err
21877   rm -f conftest.er1
21878   cat conftest.err >&5
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); } &&
21881          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883   (eval $ac_try) 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); }; } &&
21887          { ac_try='test -s conftest.$ac_objext'
21888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889   (eval $ac_try) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); }; }; then
21893   ac_hi=$ac_mid; break
21894 else
21895   echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21897
21898 ac_lo=`expr $ac_mid + 1`
21899                     if test $ac_lo -le $ac_mid; then
21900                       ac_lo= ac_hi=
21901                       break
21902                     fi
21903                     ac_mid=`expr 2 '*' $ac_mid + 1`
21904 fi
21905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21906   done
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 $ac_includes_default
21918 int
21919 main ()
21920 {
21921 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
21922 test_array [0] = 0
21923
21924   ;
21925   return 0;
21926 }
21927 _ACEOF
21928 rm -f conftest.$ac_objext
21929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930   (eval $ac_compile) 2>conftest.er1
21931   ac_status=$?
21932   grep -v '^ *+' conftest.er1 >conftest.err
21933   rm -f conftest.er1
21934   cat conftest.err >&5
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); } &&
21937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939   (eval $ac_try) 2>&5
21940   ac_status=$?
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); }; } &&
21943          { ac_try='test -s conftest.$ac_objext'
21944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945   (eval $ac_try) 2>&5
21946   ac_status=$?
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); }; }; then
21949   ac_hi=-1 ac_mid=-1
21950   while :; do
21951     cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h.  */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h.  */
21957 $ac_includes_default
21958 int
21959 main ()
21960 {
21961 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
21962 test_array [0] = 0
21963
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext
21969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21970   (eval $ac_compile) 2>conftest.er1
21971   ac_status=$?
21972   grep -v '^ *+' conftest.er1 >conftest.err
21973   rm -f conftest.er1
21974   cat conftest.err >&5
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); } &&
21977          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979   (eval $ac_try) 2>&5
21980   ac_status=$?
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); }; } &&
21983          { ac_try='test -s conftest.$ac_objext'
21984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985   (eval $ac_try) 2>&5
21986   ac_status=$?
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); }; }; then
21989   ac_lo=$ac_mid; break
21990 else
21991   echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994 ac_hi=`expr '(' $ac_mid ')' - 1`
21995                        if test $ac_mid -le $ac_hi; then
21996                          ac_lo= ac_hi=
21997                          break
21998                        fi
21999                        ac_mid=`expr 2 '*' $ac_mid`
22000 fi
22001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22002   done
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007 ac_lo= ac_hi=
22008 fi
22009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22010 fi
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22012 # Binary search between lo and hi bounds.
22013 while test "x$ac_lo" != "x$ac_hi"; do
22014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22015   cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021 $ac_includes_default
22022 int
22023 main ()
22024 {
22025 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
22026 test_array [0] = 0
22027
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22034   (eval $ac_compile) 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; } &&
22047          { ac_try='test -s conftest.$ac_objext'
22048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; }; then
22053   ac_hi=$ac_mid
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 ac_lo=`expr '(' $ac_mid ')' + 1`
22059 fi
22060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22061 done
22062 case $ac_lo in
22063 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22064 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
22065 See \`config.log' for more details." >&5
22066 echo "$as_me: error: cannot compute sizeof (size_t), 77
22067 See \`config.log' for more details." >&2;}
22068    { (exit 1); exit 1; }; } ;;
22069 esac
22070 else
22071   if test "$cross_compiling" = yes; then
22072   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22073 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22074    { (exit 1); exit 1; }; }
22075 else
22076   cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h.  */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h.  */
22082 $ac_includes_default
22083 long longval () { return (long) (sizeof (size_t)); }
22084 unsigned long ulongval () { return (long) (sizeof (size_t)); }
22085 #include <stdio.h>
22086 #include <stdlib.h>
22087 int
22088 main ()
22089 {
22090
22091   FILE *f = fopen ("conftest.val", "w");
22092   if (! f)
22093     exit (1);
22094   if (((long) (sizeof (size_t))) < 0)
22095     {
22096       long i = longval ();
22097       if (i != ((long) (sizeof (size_t))))
22098         exit (1);
22099       fprintf (f, "%ld\n", i);
22100     }
22101   else
22102     {
22103       unsigned long i = ulongval ();
22104       if (i != ((long) (sizeof (size_t))))
22105         exit (1);
22106       fprintf (f, "%lu\n", i);
22107     }
22108   exit (ferror (f) || fclose (f) != 0);
22109
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 rm -f conftest$ac_exeext
22115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22116   (eval $ac_link) 2>&5
22117   ac_status=$?
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121   (eval $ac_try) 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }; }; then
22125   ac_cv_sizeof_size_t=`cat conftest.val`
22126 else
22127   echo "$as_me: program exited with status $ac_status" >&5
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131 ( exit $ac_status )
22132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
22133 See \`config.log' for more details." >&5
22134 echo "$as_me: error: cannot compute sizeof (size_t), 77
22135 See \`config.log' for more details." >&2;}
22136    { (exit 1); exit 1; }; }
22137 fi
22138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22139 fi
22140 fi
22141 rm -f conftest.val
22142 else
22143   ac_cv_sizeof_size_t=0
22144 fi
22145 fi
22146 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22147 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
22148 cat >>confdefs.h <<_ACEOF
22149 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22150 _ACEOF
22151
22152
22153
22154 case "${host}" in
22155     arm-*-linux* )
22156         echo "$as_me:$LINENO: checking for long long" >&5
22157 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22158 if test "${ac_cv_type_long_long+set}" = set; then
22159   echo $ECHO_N "(cached) $ECHO_C" >&6
22160 else
22161   cat >conftest.$ac_ext <<_ACEOF
22162 /* confdefs.h.  */
22163 _ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h.  */
22167 $ac_includes_default
22168 int
22169 main ()
22170 {
22171 if ((long long *) 0)
22172   return 0;
22173 if (sizeof (long long))
22174   return 0;
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 rm -f conftest.$ac_objext
22180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22181   (eval $ac_compile) 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } &&
22188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190   (eval $ac_try) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); }; } &&
22194          { ac_try='test -s conftest.$ac_objext'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; }; then
22200   ac_cv_type_long_long=yes
22201 else
22202   echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205 ac_cv_type_long_long=no
22206 fi
22207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22208 fi
22209 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22210 echo "${ECHO_T}$ac_cv_type_long_long" >&6
22211
22212 echo "$as_me:$LINENO: checking size of long long" >&5
22213 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
22214 if test "${ac_cv_sizeof_long_long+set}" = set; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   if test "$ac_cv_type_long_long" = yes; then
22218   # The cast to unsigned long works around a bug in the HP C Compiler
22219   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22220   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22221   # This bug is HP SR number 8606223364.
22222   if test "$cross_compiling" = yes; then
22223   # Depending upon the size, compute the lo and hi bounds.
22224 cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 $ac_includes_default
22231 int
22232 main ()
22233 {
22234 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
22235 test_array [0] = 0
22236
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext
22242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22243   (eval $ac_compile) 2>conftest.er1
22244   ac_status=$?
22245   grep -v '^ *+' conftest.er1 >conftest.err
22246   rm -f conftest.er1
22247   cat conftest.err >&5
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); } &&
22250          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; } &&
22256          { ac_try='test -s conftest.$ac_objext'
22257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258   (eval $ac_try) 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }; }; then
22262   ac_lo=0 ac_mid=0
22263   while :; do
22264     cat >conftest.$ac_ext <<_ACEOF
22265 /* confdefs.h.  */
22266 _ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h.  */
22270 $ac_includes_default
22271 int
22272 main ()
22273 {
22274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22275 test_array [0] = 0
22276
22277   ;
22278   return 0;
22279 }
22280 _ACEOF
22281 rm -f conftest.$ac_objext
22282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22283   (eval $ac_compile) 2>conftest.er1
22284   ac_status=$?
22285   grep -v '^ *+' conftest.er1 >conftest.err
22286   rm -f conftest.er1
22287   cat conftest.err >&5
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } &&
22290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; } &&
22296          { ac_try='test -s conftest.$ac_objext'
22297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298   (eval $ac_try) 2>&5
22299   ac_status=$?
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); }; }; then
22302   ac_hi=$ac_mid; break
22303 else
22304   echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307 ac_lo=`expr $ac_mid + 1`
22308                     if test $ac_lo -le $ac_mid; then
22309                       ac_lo= ac_hi=
22310                       break
22311                     fi
22312                     ac_mid=`expr 2 '*' $ac_mid + 1`
22313 fi
22314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22315   done
22316 else
22317   echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320 cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 $ac_includes_default
22327 int
22328 main ()
22329 {
22330 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
22331 test_array [0] = 0
22332
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339   (eval $ac_compile) 2>conftest.er1
22340   ac_status=$?
22341   grep -v '^ *+' conftest.er1 >conftest.err
22342   rm -f conftest.er1
22343   cat conftest.err >&5
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); } &&
22346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; } &&
22352          { ac_try='test -s conftest.$ac_objext'
22353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354   (eval $ac_try) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); }; }; then
22358   ac_hi=-1 ac_mid=-1
22359   while :; do
22360     cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h.  */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h.  */
22366 $ac_includes_default
22367 int
22368 main ()
22369 {
22370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22371 test_array [0] = 0
22372
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379   (eval $ac_compile) 2>conftest.er1
22380   ac_status=$?
22381   grep -v '^ *+' conftest.er1 >conftest.err
22382   rm -f conftest.er1
22383   cat conftest.err >&5
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); } &&
22386          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388   (eval $ac_try) 2>&5
22389   ac_status=$?
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); }; } &&
22392          { ac_try='test -s conftest.$ac_objext'
22393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394   (eval $ac_try) 2>&5
22395   ac_status=$?
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); }; }; then
22398   ac_lo=$ac_mid; break
22399 else
22400   echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403 ac_hi=`expr '(' $ac_mid ')' - 1`
22404                        if test $ac_mid -le $ac_hi; then
22405                          ac_lo= ac_hi=
22406                          break
22407                        fi
22408                        ac_mid=`expr 2 '*' $ac_mid`
22409 fi
22410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22411   done
22412 else
22413   echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416 ac_lo= ac_hi=
22417 fi
22418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22419 fi
22420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22421 # Binary search between lo and hi bounds.
22422 while test "x$ac_lo" != "x$ac_hi"; do
22423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22424   cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430 $ac_includes_default
22431 int
22432 main ()
22433 {
22434 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22435 test_array [0] = 0
22436
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443   (eval $ac_compile) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); }; } &&
22456          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22462   ac_hi=$ac_mid
22463 else
22464   echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 ac_lo=`expr '(' $ac_mid ')' + 1`
22468 fi
22469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22470 done
22471 case $ac_lo in
22472 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22474 See \`config.log' for more details." >&5
22475 echo "$as_me: error: cannot compute sizeof (long long), 77
22476 See \`config.log' for more details." >&2;}
22477    { (exit 1); exit 1; }; } ;;
22478 esac
22479 else
22480   if test "$cross_compiling" = yes; then
22481   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22482 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22483    { (exit 1); exit 1; }; }
22484 else
22485   cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 $ac_includes_default
22492 long longval () { return (long) (sizeof (long long)); }
22493 unsigned long ulongval () { return (long) (sizeof (long long)); }
22494 #include <stdio.h>
22495 #include <stdlib.h>
22496 int
22497 main ()
22498 {
22499
22500   FILE *f = fopen ("conftest.val", "w");
22501   if (! f)
22502     exit (1);
22503   if (((long) (sizeof (long long))) < 0)
22504     {
22505       long i = longval ();
22506       if (i != ((long) (sizeof (long long))))
22507         exit (1);
22508       fprintf (f, "%ld\n", i);
22509     }
22510   else
22511     {
22512       unsigned long i = ulongval ();
22513       if (i != ((long) (sizeof (long long))))
22514         exit (1);
22515       fprintf (f, "%lu\n", i);
22516     }
22517   exit (ferror (f) || fclose (f) != 0);
22518
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest$ac_exeext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22525   (eval $ac_link) 2>&5
22526   ac_status=$?
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
22534   ac_cv_sizeof_long_long=`cat conftest.val`
22535 else
22536   echo "$as_me: program exited with status $ac_status" >&5
22537 echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22539
22540 ( exit $ac_status )
22541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22542 See \`config.log' for more details." >&5
22543 echo "$as_me: error: cannot compute sizeof (long long), 77
22544 See \`config.log' for more details." >&2;}
22545    { (exit 1); exit 1; }; }
22546 fi
22547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22548 fi
22549 fi
22550 rm -f conftest.val
22551 else
22552   ac_cv_sizeof_long_long=0
22553 fi
22554 fi
22555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22556 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22557 cat >>confdefs.h <<_ACEOF
22558 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22559 _ACEOF
22560
22561
22562     ;;
22563     *-hp-hpux* )
22564         echo "$as_me:$LINENO: checking for long long" >&5
22565 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22566 if test "${ac_cv_type_long_long+set}" = set; then
22567   echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569   cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 $ac_includes_default
22576 int
22577 main ()
22578 {
22579 if ((long long *) 0)
22580   return 0;
22581 if (sizeof (long long))
22582   return 0;
22583   ;
22584   return 0;
22585 }
22586 _ACEOF
22587 rm -f conftest.$ac_objext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22589   (eval $ac_compile) 2>conftest.er1
22590   ac_status=$?
22591   grep -v '^ *+' conftest.er1 >conftest.err
22592   rm -f conftest.er1
22593   cat conftest.err >&5
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); } &&
22596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598   (eval $ac_try) 2>&5
22599   ac_status=$?
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); }; } &&
22602          { ac_try='test -s conftest.$ac_objext'
22603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); }; }; then
22608   ac_cv_type_long_long=yes
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_cv_type_long_long=no
22614 fi
22615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616 fi
22617 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22618 echo "${ECHO_T}$ac_cv_type_long_long" >&6
22619
22620 echo "$as_me:$LINENO: checking size of long long" >&5
22621 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
22622 if test "${ac_cv_sizeof_long_long+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   if test "$ac_cv_type_long_long" = yes; then
22626   # The cast to unsigned long works around a bug in the HP C Compiler
22627   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22628   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22629   # This bug is HP SR number 8606223364.
22630   if test "$cross_compiling" = yes; then
22631   # Depending upon the size, compute the lo and hi bounds.
22632 cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 $ac_includes_default
22639 int
22640 main ()
22641 {
22642 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
22643 test_array [0] = 0
22644
22645   ;
22646   return 0;
22647 }
22648 _ACEOF
22649 rm -f conftest.$ac_objext
22650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22651   (eval $ac_compile) 2>conftest.er1
22652   ac_status=$?
22653   grep -v '^ *+' conftest.er1 >conftest.err
22654   rm -f conftest.er1
22655   cat conftest.err >&5
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); } &&
22658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660   (eval $ac_try) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); }; } &&
22664          { ac_try='test -s conftest.$ac_objext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   ac_lo=0 ac_mid=0
22671   while :; do
22672     cat >conftest.$ac_ext <<_ACEOF
22673 /* confdefs.h.  */
22674 _ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h.  */
22678 $ac_includes_default
22679 int
22680 main ()
22681 {
22682 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22683 test_array [0] = 0
22684
22685   ;
22686   return 0;
22687 }
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_c_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_hi=$ac_mid; break
22711 else
22712   echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22714
22715 ac_lo=`expr $ac_mid + 1`
22716                     if test $ac_lo -le $ac_mid; then
22717                       ac_lo= ac_hi=
22718                       break
22719                     fi
22720                     ac_mid=`expr 2 '*' $ac_mid + 1`
22721 fi
22722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22723   done
22724 else
22725   echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728 cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734 $ac_includes_default
22735 int
22736 main ()
22737 {
22738 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
22739 test_array [0] = 0
22740
22741   ;
22742   return 0;
22743 }
22744 _ACEOF
22745 rm -f conftest.$ac_objext
22746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22747   (eval $ac_compile) 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } &&
22754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; } &&
22760          { ac_try='test -s conftest.$ac_objext'
22761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762   (eval $ac_try) 2>&5
22763   ac_status=$?
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); }; }; then
22766   ac_hi=-1 ac_mid=-1
22767   while :; do
22768     cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 $ac_includes_default
22775 int
22776 main ()
22777 {
22778 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22779 test_array [0] = 0
22780
22781   ;
22782   return 0;
22783 }
22784 _ACEOF
22785 rm -f conftest.$ac_objext
22786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22787   (eval $ac_compile) 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } &&
22794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796   (eval $ac_try) 2>&5
22797   ac_status=$?
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); }; } &&
22800          { ac_try='test -s conftest.$ac_objext'
22801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802   (eval $ac_try) 2>&5
22803   ac_status=$?
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); }; }; then
22806   ac_lo=$ac_mid; break
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 ac_hi=`expr '(' $ac_mid ')' - 1`
22812                        if test $ac_mid -le $ac_hi; then
22813                          ac_lo= ac_hi=
22814                          break
22815                        fi
22816                        ac_mid=`expr 2 '*' $ac_mid`
22817 fi
22818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22819   done
22820 else
22821   echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 ac_lo= ac_hi=
22825 fi
22826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22827 fi
22828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22829 # Binary search between lo and hi bounds.
22830 while test "x$ac_lo" != "x$ac_hi"; do
22831   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22832   cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h.  */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h.  */
22838 $ac_includes_default
22839 int
22840 main ()
22841 {
22842 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22843 test_array [0] = 0
22844
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 rm -f conftest.$ac_objext
22850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22851   (eval $ac_compile) 2>conftest.er1
22852   ac_status=$?
22853   grep -v '^ *+' conftest.er1 >conftest.err
22854   rm -f conftest.er1
22855   cat conftest.err >&5
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); } &&
22858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860   (eval $ac_try) 2>&5
22861   ac_status=$?
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); }; } &&
22864          { ac_try='test -s conftest.$ac_objext'
22865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866   (eval $ac_try) 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; }; then
22870   ac_hi=$ac_mid
22871 else
22872   echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22874
22875 ac_lo=`expr '(' $ac_mid ')' + 1`
22876 fi
22877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22878 done
22879 case $ac_lo in
22880 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22882 See \`config.log' for more details." >&5
22883 echo "$as_me: error: cannot compute sizeof (long long), 77
22884 See \`config.log' for more details." >&2;}
22885    { (exit 1); exit 1; }; } ;;
22886 esac
22887 else
22888   if test "$cross_compiling" = yes; then
22889   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22890 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22891    { (exit 1); exit 1; }; }
22892 else
22893   cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 $ac_includes_default
22900 long longval () { return (long) (sizeof (long long)); }
22901 unsigned long ulongval () { return (long) (sizeof (long long)); }
22902 #include <stdio.h>
22903 #include <stdlib.h>
22904 int
22905 main ()
22906 {
22907
22908   FILE *f = fopen ("conftest.val", "w");
22909   if (! f)
22910     exit (1);
22911   if (((long) (sizeof (long long))) < 0)
22912     {
22913       long i = longval ();
22914       if (i != ((long) (sizeof (long long))))
22915         exit (1);
22916       fprintf (f, "%ld\n", i);
22917     }
22918   else
22919     {
22920       unsigned long i = ulongval ();
22921       if (i != ((long) (sizeof (long long))))
22922         exit (1);
22923       fprintf (f, "%lu\n", i);
22924     }
22925   exit (ferror (f) || fclose (f) != 0);
22926
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest$ac_exeext
22932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22933   (eval $ac_link) 2>&5
22934   ac_status=$?
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938   (eval $ac_try) 2>&5
22939   ac_status=$?
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); }; }; then
22942   ac_cv_sizeof_long_long=`cat conftest.val`
22943 else
22944   echo "$as_me: program exited with status $ac_status" >&5
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948 ( exit $ac_status )
22949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22950 See \`config.log' for more details." >&5
22951 echo "$as_me: error: cannot compute sizeof (long long), 77
22952 See \`config.log' for more details." >&2;}
22953    { (exit 1); exit 1; }; }
22954 fi
22955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22956 fi
22957 fi
22958 rm -f conftest.val
22959 else
22960   ac_cv_sizeof_long_long=0
22961 fi
22962 fi
22963 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22964 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22965 cat >>confdefs.h <<_ACEOF
22966 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22967 _ACEOF
22968
22969
22970         if test "$ac_cv_sizeof_long_long" != "0"; then
22971                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22972         fi
22973     ;;
22974     * )
22975         echo "$as_me:$LINENO: checking for long long" >&5
22976 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22977 if test "${ac_cv_type_long_long+set}" = set; then
22978   echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980   cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 $ac_includes_default
22987 int
22988 main ()
22989 {
22990 if ((long long *) 0)
22991   return 0;
22992 if (sizeof (long long))
22993   return 0;
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23000   (eval $ac_compile) 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } &&
23007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23009   (eval $ac_try) 2>&5
23010   ac_status=$?
23011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012   (exit $ac_status); }; } &&
23013          { ac_try='test -s conftest.$ac_objext'
23014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015   (eval $ac_try) 2>&5
23016   ac_status=$?
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); }; }; then
23019   ac_cv_type_long_long=yes
23020 else
23021   echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23023
23024 ac_cv_type_long_long=no
23025 fi
23026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027 fi
23028 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23029 echo "${ECHO_T}$ac_cv_type_long_long" >&6
23030
23031 echo "$as_me:$LINENO: checking size of long long" >&5
23032 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
23033 if test "${ac_cv_sizeof_long_long+set}" = set; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   if test "$ac_cv_type_long_long" = yes; then
23037   # The cast to unsigned long works around a bug in the HP C Compiler
23038   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23039   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23040   # This bug is HP SR number 8606223364.
23041   if test "$cross_compiling" = yes; then
23042   # Depending upon the size, compute the lo and hi bounds.
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h.  */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h.  */
23049 $ac_includes_default
23050 int
23051 main ()
23052 {
23053 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
23054 test_array [0] = 0
23055
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 rm -f conftest.$ac_objext
23061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23062   (eval $ac_compile) 2>conftest.er1
23063   ac_status=$?
23064   grep -v '^ *+' conftest.er1 >conftest.err
23065   rm -f conftest.er1
23066   cat conftest.err >&5
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); } &&
23069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071   (eval $ac_try) 2>&5
23072   ac_status=$?
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); }; } &&
23075          { ac_try='test -s conftest.$ac_objext'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ac_lo=0 ac_mid=0
23082   while :; do
23083     cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089 $ac_includes_default
23090 int
23091 main ()
23092 {
23093 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
23094 test_array [0] = 0
23095
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23102   (eval $ac_compile) 2>conftest.er1
23103   ac_status=$?
23104   grep -v '^ *+' conftest.er1 >conftest.err
23105   rm -f conftest.er1
23106   cat conftest.err >&5
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); } &&
23109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; } &&
23115          { ac_try='test -s conftest.$ac_objext'
23116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117   (eval $ac_try) 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; }; then
23121   ac_hi=$ac_mid; break
23122 else
23123   echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_lo=`expr $ac_mid + 1`
23127                     if test $ac_lo -le $ac_mid; then
23128                       ac_lo= ac_hi=
23129                       break
23130                     fi
23131                     ac_mid=`expr 2 '*' $ac_mid + 1`
23132 fi
23133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23134   done
23135 else
23136   echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 $ac_includes_default
23146 int
23147 main ()
23148 {
23149 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
23150 test_array [0] = 0
23151
23152   ;
23153   return 0;
23154 }
23155 _ACEOF
23156 rm -f conftest.$ac_objext
23157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23158   (eval $ac_compile) 2>conftest.er1
23159   ac_status=$?
23160   grep -v '^ *+' conftest.er1 >conftest.err
23161   rm -f conftest.er1
23162   cat conftest.err >&5
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); } &&
23165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; } &&
23171          { ac_try='test -s conftest.$ac_objext'
23172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173   (eval $ac_try) 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); }; }; then
23177   ac_hi=-1 ac_mid=-1
23178   while :; do
23179     cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 $ac_includes_default
23186 int
23187 main ()
23188 {
23189 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
23190 test_array [0] = 0
23191
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198   (eval $ac_compile) 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } &&
23205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; } &&
23211          { ac_try='test -s conftest.$ac_objext'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; }; then
23217   ac_lo=$ac_mid; break
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 ac_hi=`expr '(' $ac_mid ')' - 1`
23223                        if test $ac_mid -le $ac_hi; then
23224                          ac_lo= ac_hi=
23225                          break
23226                        fi
23227                        ac_mid=`expr 2 '*' $ac_mid`
23228 fi
23229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23230   done
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235 ac_lo= ac_hi=
23236 fi
23237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23238 fi
23239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23240 # Binary search between lo and hi bounds.
23241 while test "x$ac_lo" != "x$ac_hi"; do
23242   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23243   cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249 $ac_includes_default
23250 int
23251 main ()
23252 {
23253 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
23254 test_array [0] = 0
23255
23256   ;
23257   return 0;
23258 }
23259 _ACEOF
23260 rm -f conftest.$ac_objext
23261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23262   (eval $ac_compile) 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } &&
23269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest.$ac_objext'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   ac_hi=$ac_mid
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_lo=`expr '(' $ac_mid ')' + 1`
23287 fi
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23289 done
23290 case $ac_lo in
23291 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
23293 See \`config.log' for more details." >&5
23294 echo "$as_me: error: cannot compute sizeof (long long), 77
23295 See \`config.log' for more details." >&2;}
23296    { (exit 1); exit 1; }; } ;;
23297 esac
23298 else
23299   if test "$cross_compiling" = yes; then
23300   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23301 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23302    { (exit 1); exit 1; }; }
23303 else
23304   cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 $ac_includes_default
23311 long longval () { return (long) (sizeof (long long)); }
23312 unsigned long ulongval () { return (long) (sizeof (long long)); }
23313 #include <stdio.h>
23314 #include <stdlib.h>
23315 int
23316 main ()
23317 {
23318
23319   FILE *f = fopen ("conftest.val", "w");
23320   if (! f)
23321     exit (1);
23322   if (((long) (sizeof (long long))) < 0)
23323     {
23324       long i = longval ();
23325       if (i != ((long) (sizeof (long long))))
23326         exit (1);
23327       fprintf (f, "%ld\n", i);
23328     }
23329   else
23330     {
23331       unsigned long i = ulongval ();
23332       if (i != ((long) (sizeof (long long))))
23333         exit (1);
23334       fprintf (f, "%lu\n", i);
23335     }
23336   exit (ferror (f) || fclose (f) != 0);
23337
23338   ;
23339   return 0;
23340 }
23341 _ACEOF
23342 rm -f conftest$ac_exeext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23344   (eval $ac_link) 2>&5
23345   ac_status=$?
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349   (eval $ac_try) 2>&5
23350   ac_status=$?
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); }; }; then
23353   ac_cv_sizeof_long_long=`cat conftest.val`
23354 else
23355   echo "$as_me: program exited with status $ac_status" >&5
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 ( exit $ac_status )
23360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
23361 See \`config.log' for more details." >&5
23362 echo "$as_me: error: cannot compute sizeof (long long), 77
23363 See \`config.log' for more details." >&2;}
23364    { (exit 1); exit 1; }; }
23365 fi
23366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23367 fi
23368 fi
23369 rm -f conftest.val
23370 else
23371   ac_cv_sizeof_long_long=0
23372 fi
23373 fi
23374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23375 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
23376 cat >>confdefs.h <<_ACEOF
23377 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23378 _ACEOF
23379
23380
23381 esac
23382
23383 echo "$as_me:$LINENO: checking for wchar_t" >&5
23384 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
23385 if test "${ac_cv_type_wchar_t+set}" = set; then
23386   echo $ECHO_N "(cached) $ECHO_C" >&6
23387 else
23388   cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394
23395         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23396         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23397         #  error "fake wchar_t"
23398         #endif
23399         #ifdef HAVE_WCHAR_H
23400         #  ifdef __CYGWIN__
23401         #    include <stddef.h>
23402         #  endif
23403         #  include <wchar.h>
23404         #endif
23405         #ifdef HAVE_STDLIB_H
23406         #  include <stdlib.h>
23407         #endif
23408         #include <stdio.h>
23409
23410
23411
23412 int
23413 main ()
23414 {
23415 if ((wchar_t *) 0)
23416   return 0;
23417 if (sizeof (wchar_t))
23418   return 0;
23419   ;
23420   return 0;
23421 }
23422 _ACEOF
23423 rm -f conftest.$ac_objext
23424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23425   (eval $ac_compile) 2>conftest.er1
23426   ac_status=$?
23427   grep -v '^ *+' conftest.er1 >conftest.err
23428   rm -f conftest.er1
23429   cat conftest.err >&5
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); } &&
23432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; } &&
23438          { ac_try='test -s conftest.$ac_objext'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; }; then
23444   ac_cv_type_wchar_t=yes
23445 else
23446   echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449 ac_cv_type_wchar_t=no
23450 fi
23451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23452 fi
23453 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23454 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
23455
23456 echo "$as_me:$LINENO: checking size of wchar_t" >&5
23457 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
23458 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23459   echo $ECHO_N "(cached) $ECHO_C" >&6
23460 else
23461   if test "$ac_cv_type_wchar_t" = yes; then
23462   # The cast to unsigned long works around a bug in the HP C Compiler
23463   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23464   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23465   # This bug is HP SR number 8606223364.
23466   if test "$cross_compiling" = yes; then
23467   # Depending upon the size, compute the lo and hi bounds.
23468 cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474
23475         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23476         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23477         #  error "fake wchar_t"
23478         #endif
23479         #ifdef HAVE_WCHAR_H
23480         #  ifdef __CYGWIN__
23481         #    include <stddef.h>
23482         #  endif
23483         #  include <wchar.h>
23484         #endif
23485         #ifdef HAVE_STDLIB_H
23486         #  include <stdlib.h>
23487         #endif
23488         #include <stdio.h>
23489
23490
23491
23492 int
23493 main ()
23494 {
23495 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
23496 test_array [0] = 0
23497
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23504   (eval $ac_compile) 2>conftest.er1
23505   ac_status=$?
23506   grep -v '^ *+' conftest.er1 >conftest.err
23507   rm -f conftest.er1
23508   cat conftest.err >&5
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); } &&
23511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513   (eval $ac_try) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); }; } &&
23517          { ac_try='test -s conftest.$ac_objext'
23518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; }; then
23523   ac_lo=0 ac_mid=0
23524   while :; do
23525     cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h.  */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h.  */
23531
23532         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23533         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23534         #  error "fake wchar_t"
23535         #endif
23536         #ifdef HAVE_WCHAR_H
23537         #  ifdef __CYGWIN__
23538         #    include <stddef.h>
23539         #  endif
23540         #  include <wchar.h>
23541         #endif
23542         #ifdef HAVE_STDLIB_H
23543         #  include <stdlib.h>
23544         #endif
23545         #include <stdio.h>
23546
23547
23548
23549 int
23550 main ()
23551 {
23552 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
23553 test_array [0] = 0
23554
23555   ;
23556   return 0;
23557 }
23558 _ACEOF
23559 rm -f conftest.$ac_objext
23560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23561   (eval $ac_compile) 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } &&
23568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570   (eval $ac_try) 2>&5
23571   ac_status=$?
23572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573   (exit $ac_status); }; } &&
23574          { ac_try='test -s conftest.$ac_objext'
23575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576   (eval $ac_try) 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; }; then
23580   ac_hi=$ac_mid; break
23581 else
23582   echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585 ac_lo=`expr $ac_mid + 1`
23586                     if test $ac_lo -le $ac_mid; then
23587                       ac_lo= ac_hi=
23588                       break
23589                     fi
23590                     ac_mid=`expr 2 '*' $ac_mid + 1`
23591 fi
23592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23593   done
23594 else
23595   echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23597
23598 cat >conftest.$ac_ext <<_ACEOF
23599 /* confdefs.h.  */
23600 _ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h.  */
23604
23605         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23606         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23607         #  error "fake wchar_t"
23608         #endif
23609         #ifdef HAVE_WCHAR_H
23610         #  ifdef __CYGWIN__
23611         #    include <stddef.h>
23612         #  endif
23613         #  include <wchar.h>
23614         #endif
23615         #ifdef HAVE_STDLIB_H
23616         #  include <stdlib.h>
23617         #endif
23618         #include <stdio.h>
23619
23620
23621
23622 int
23623 main ()
23624 {
23625 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
23626 test_array [0] = 0
23627
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_c_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   ac_hi=-1 ac_mid=-1
23654   while :; do
23655     cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661
23662         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23663         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23664         #  error "fake wchar_t"
23665         #endif
23666         #ifdef HAVE_WCHAR_H
23667         #  ifdef __CYGWIN__
23668         #    include <stddef.h>
23669         #  endif
23670         #  include <wchar.h>
23671         #endif
23672         #ifdef HAVE_STDLIB_H
23673         #  include <stdlib.h>
23674         #endif
23675         #include <stdio.h>
23676
23677
23678
23679 int
23680 main ()
23681 {
23682 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
23683 test_array [0] = 0
23684
23685   ;
23686   return 0;
23687 }
23688 _ACEOF
23689 rm -f conftest.$ac_objext
23690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23691   (eval $ac_compile) 2>conftest.er1
23692   ac_status=$?
23693   grep -v '^ *+' conftest.er1 >conftest.err
23694   rm -f conftest.er1
23695   cat conftest.err >&5
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); } &&
23698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700   (eval $ac_try) 2>&5
23701   ac_status=$?
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); }; } &&
23704          { ac_try='test -s conftest.$ac_objext'
23705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706   (eval $ac_try) 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); }; }; then
23710   ac_lo=$ac_mid; break
23711 else
23712   echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715 ac_hi=`expr '(' $ac_mid ')' - 1`
23716                        if test $ac_mid -le $ac_hi; then
23717                          ac_lo= ac_hi=
23718                          break
23719                        fi
23720                        ac_mid=`expr 2 '*' $ac_mid`
23721 fi
23722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23723   done
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728 ac_lo= ac_hi=
23729 fi
23730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23731 fi
23732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23733 # Binary search between lo and hi bounds.
23734 while test "x$ac_lo" != "x$ac_hi"; do
23735   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23736   cat >conftest.$ac_ext <<_ACEOF
23737 /* confdefs.h.  */
23738 _ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h.  */
23742
23743         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23744         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23745         #  error "fake wchar_t"
23746         #endif
23747         #ifdef HAVE_WCHAR_H
23748         #  ifdef __CYGWIN__
23749         #    include <stddef.h>
23750         #  endif
23751         #  include <wchar.h>
23752         #endif
23753         #ifdef HAVE_STDLIB_H
23754         #  include <stdlib.h>
23755         #endif
23756         #include <stdio.h>
23757
23758
23759
23760 int
23761 main ()
23762 {
23763 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
23764 test_array [0] = 0
23765
23766   ;
23767   return 0;
23768 }
23769 _ACEOF
23770 rm -f conftest.$ac_objext
23771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23772   (eval $ac_compile) 2>conftest.er1
23773   ac_status=$?
23774   grep -v '^ *+' conftest.er1 >conftest.err
23775   rm -f conftest.er1
23776   cat conftest.err >&5
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); } &&
23779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781   (eval $ac_try) 2>&5
23782   ac_status=$?
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); }; } &&
23785          { ac_try='test -s conftest.$ac_objext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   ac_hi=$ac_mid
23792 else
23793   echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 ac_lo=`expr '(' $ac_mid ')' + 1`
23797 fi
23798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23799 done
23800 case $ac_lo in
23801 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23802 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
23803 See \`config.log' for more details." >&5
23804 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
23805 See \`config.log' for more details." >&2;}
23806    { (exit 1); exit 1; }; } ;;
23807 esac
23808 else
23809   if test "$cross_compiling" = yes; then
23810   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23811 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23812    { (exit 1); exit 1; }; }
23813 else
23814   cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h.  */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h.  */
23820
23821         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23822         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23823         #  error "fake wchar_t"
23824         #endif
23825         #ifdef HAVE_WCHAR_H
23826         #  ifdef __CYGWIN__
23827         #    include <stddef.h>
23828         #  endif
23829         #  include <wchar.h>
23830         #endif
23831         #ifdef HAVE_STDLIB_H
23832         #  include <stdlib.h>
23833         #endif
23834         #include <stdio.h>
23835
23836
23837
23838 long longval () { return (long) (sizeof (wchar_t)); }
23839 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
23840 #include <stdio.h>
23841 #include <stdlib.h>
23842 int
23843 main ()
23844 {
23845
23846   FILE *f = fopen ("conftest.val", "w");
23847   if (! f)
23848     exit (1);
23849   if (((long) (sizeof (wchar_t))) < 0)
23850     {
23851       long i = longval ();
23852       if (i != ((long) (sizeof (wchar_t))))
23853         exit (1);
23854       fprintf (f, "%ld\n", i);
23855     }
23856   else
23857     {
23858       unsigned long i = ulongval ();
23859       if (i != ((long) (sizeof (wchar_t))))
23860         exit (1);
23861       fprintf (f, "%lu\n", i);
23862     }
23863   exit (ferror (f) || fclose (f) != 0);
23864
23865   ;
23866   return 0;
23867 }
23868 _ACEOF
23869 rm -f conftest$ac_exeext
23870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23871   (eval $ac_link) 2>&5
23872   ac_status=$?
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876   (eval $ac_try) 2>&5
23877   ac_status=$?
23878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879   (exit $ac_status); }; }; then
23880   ac_cv_sizeof_wchar_t=`cat conftest.val`
23881 else
23882   echo "$as_me: program exited with status $ac_status" >&5
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 ( exit $ac_status )
23887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
23888 See \`config.log' for more details." >&5
23889 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
23890 See \`config.log' for more details." >&2;}
23891    { (exit 1); exit 1; }; }
23892 fi
23893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23894 fi
23895 fi
23896 rm -f conftest.val
23897 else
23898   ac_cv_sizeof_wchar_t=0
23899 fi
23900 fi
23901 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23902 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
23903 cat >>confdefs.h <<_ACEOF
23904 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23905 _ACEOF
23906
23907
23908 if test "$ac_cv_sizeof_wchar_t" != "0"; then
23909     wxUSE_WCHAR_T=yes
23910 else
23911     wxUSE_WCHAR_T=no
23912 fi
23913
23914 echo "$as_me:$LINENO: checking for va_copy" >&5
23915 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23916 if test "${wx_cv_func_va_copy+set}" = set; then
23917   echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919
23920         ac_ext=cc
23921 ac_cpp='$CXXCPP $CPPFLAGS'
23922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23925
23926         cat >conftest.$ac_ext <<_ACEOF
23927
23928             #include <stdarg.h>
23929             void foo(char *f, ...)
23930             {
23931                 va_list ap1, ap2;
23932                 va_start(ap1, f);
23933                 va_copy(ap2, ap1);
23934                 va_end(ap2);
23935                 va_end(ap1);
23936             }
23937             int main()
23938             {
23939                 foo("hi", 17);
23940                 return 0;
23941             }
23942 _ACEOF
23943 rm -f conftest.$ac_objext conftest$ac_exeext
23944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23945   (eval $ac_link) 2>conftest.er1
23946   ac_status=$?
23947   grep -v '^ *+' conftest.er1 >conftest.err
23948   rm -f conftest.er1
23949   cat conftest.err >&5
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); } &&
23952          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954   (eval $ac_try) 2>&5
23955   ac_status=$?
23956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); }; } &&
23958          { ac_try='test -s conftest$ac_exeext'
23959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960   (eval $ac_try) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); }; }; then
23964   wx_cv_func_va_copy=yes
23965 else
23966   echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23968
23969 wx_cv_func_va_copy=no
23970
23971 fi
23972 rm -f conftest.err conftest.$ac_objext \
23973       conftest$ac_exeext conftest.$ac_ext
23974         ac_ext=c
23975 ac_cpp='$CPP $CPPFLAGS'
23976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23979
23980
23981
23982 fi
23983 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23984 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
23985
23986 if test $wx_cv_func_va_copy = "yes"; then
23987     cat >>confdefs.h <<\_ACEOF
23988 #define HAVE_VA_COPY 1
23989 _ACEOF
23990
23991 else
23992         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23993 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
23994 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23995   echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997
23998             if test "$cross_compiling" = yes; then
23999                   wx_cv_type_va_list_lvalue=yes
24000
24001 else
24002   cat >conftest.$ac_ext <<_ACEOF
24003
24004                 #include <stdarg.h>
24005                 int foo(char *f, ...)
24006                 {
24007                     va_list ap1, ap2;
24008                     va_start(ap1, f);
24009                     ap2 = ap1;
24010                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24011                         return 1;
24012                     va_end(ap2);
24013                     va_end(ap1);
24014                     return 0;
24015                 }
24016                 int main()
24017                 {
24018                     return foo("hi", 17);
24019                 }
24020 _ACEOF
24021 rm -f conftest$ac_exeext
24022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24023   (eval $ac_link) 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028   (eval $ac_try) 2>&5
24029   ac_status=$?
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); }; }; then
24032   wx_cv_type_va_list_lvalue=yes
24033 else
24034   echo "$as_me: program exited with status $ac_status" >&5
24035 echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038 ( exit $ac_status )
24039 wx_cv_type_va_list_lvalue=no
24040 fi
24041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24042 fi
24043
24044
24045 fi
24046 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24047 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
24048
24049     if test $wx_cv_type_va_list_lvalue != "yes"; then
24050                         cat >>confdefs.h <<\_ACEOF
24051 #define VA_LIST_IS_ARRAY 1
24052 _ACEOF
24053
24054     fi
24055 fi
24056
24057 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24058
24059 echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24060 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
24061 if test "${wx_cv_have_variadic_macros+set}" = set; then
24062   echo $ECHO_N "(cached) $ECHO_C" >&6
24063 else
24064
24065                         ac_ext=cc
24066 ac_cpp='$CXXCPP $CPPFLAGS'
24067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24070
24071         cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077
24078                     #include <stdio.h>
24079                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24080
24081 int
24082 main ()
24083 {
24084
24085                     test("%s %d %p", "test", 1, 0);
24086
24087
24088   ;
24089   return 0;
24090 }
24091 _ACEOF
24092 rm -f conftest.$ac_objext
24093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24094   (eval $ac_compile) 2>conftest.er1
24095   ac_status=$?
24096   grep -v '^ *+' conftest.er1 >conftest.err
24097   rm -f conftest.er1
24098   cat conftest.err >&5
24099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); } &&
24101          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103   (eval $ac_try) 2>&5
24104   ac_status=$?
24105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106   (exit $ac_status); }; } &&
24107          { ac_try='test -s conftest.$ac_objext'
24108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109   (eval $ac_try) 2>&5
24110   ac_status=$?
24111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); }; }; then
24113   wx_cv_have_variadic_macros=yes
24114 else
24115   echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118 wx_cv_have_variadic_macros=no
24119
24120 fi
24121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24122         ac_ext=c
24123 ac_cpp='$CPP $CPPFLAGS'
24124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24127
24128
24129
24130 fi
24131 echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24132 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
24133
24134 if test $wx_cv_have_variadic_macros = "yes"; then
24135     cat >>confdefs.h <<\_ACEOF
24136 #define HAVE_VARIADIC_MACROS 1
24137 _ACEOF
24138
24139 fi
24140
24141 fi
24142 # Check whether --enable-largefile or --disable-largefile was given.
24143 if test "${enable_largefile+set}" = set; then
24144   enableval="$enable_largefile"
24145
24146 fi;
24147 if test "$enable_largefile" != no; then
24148             wx_largefile=no
24149
24150     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24151 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
24152 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24153   echo $ECHO_N "(cached) $ECHO_C" >&6
24154 else
24155
24156           cat >conftest.$ac_ext <<_ACEOF
24157 /* confdefs.h.  */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h.  */
24162 #define _FILE_OFFSET_BITS 64
24163                           #include <sys/types.h>
24164 int
24165 main ()
24166 {
24167 typedef struct {
24168     unsigned int field: sizeof(off_t) == 8;
24169 } wxlf;
24170
24171   ;
24172   return 0;
24173 }
24174 _ACEOF
24175 rm -f conftest.$ac_objext
24176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24177   (eval $ac_compile) 2>conftest.er1
24178   ac_status=$?
24179   grep -v '^ *+' conftest.er1 >conftest.err
24180   rm -f conftest.er1
24181   cat conftest.err >&5
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); } &&
24184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186   (eval $ac_try) 2>&5
24187   ac_status=$?
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); }; } &&
24190          { ac_try='test -s conftest.$ac_objext'
24191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192   (eval $ac_try) 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; }; then
24196   ac_cv_sys_file_offset_bits=64
24197 else
24198   echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24200
24201 ac_cv_sys_file_offset_bits=no
24202 fi
24203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24204
24205
24206 fi
24207 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24208 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
24209
24210     if test "$ac_cv_sys_file_offset_bits" != no; then
24211         wx_largefile=yes
24212         cat >>confdefs.h <<_ACEOF
24213 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24214 _ACEOF
24215
24216     fi
24217
24218     if test "x$wx_largefile" != "xyes"; then
24219
24220     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24221 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
24222 if test "${ac_cv_sys_large_files+set}" = set; then
24223   echo $ECHO_N "(cached) $ECHO_C" >&6
24224 else
24225
24226           cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232 #define _LARGE_FILES 1
24233                           #include <sys/types.h>
24234 int
24235 main ()
24236 {
24237 typedef struct {
24238     unsigned int field: sizeof(off_t) == 8;
24239 } wxlf;
24240
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247   (eval $ac_compile) 2>conftest.er1
24248   ac_status=$?
24249   grep -v '^ *+' conftest.er1 >conftest.err
24250   rm -f conftest.er1
24251   cat conftest.err >&5
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); } &&
24254          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256   (eval $ac_try) 2>&5
24257   ac_status=$?
24258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259   (exit $ac_status); }; } &&
24260          { ac_try='test -s conftest.$ac_objext'
24261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262   (eval $ac_try) 2>&5
24263   ac_status=$?
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); }; }; then
24266   ac_cv_sys_large_files=1
24267 else
24268   echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24270
24271 ac_cv_sys_large_files=no
24272 fi
24273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24274
24275
24276 fi
24277 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24278 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
24279
24280     if test "$ac_cv_sys_large_files" != no; then
24281         wx_largefile=yes
24282         cat >>confdefs.h <<_ACEOF
24283 #define _LARGE_FILES $ac_cv_sys_large_files
24284 _ACEOF
24285
24286     fi
24287
24288     fi
24289
24290     echo "$as_me:$LINENO: checking if large file support is available" >&5
24291 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
24292     if test "x$wx_largefile" = "xyes"; then
24293         cat >>confdefs.h <<\_ACEOF
24294 #define HAVE_LARGEFILE_SUPPORT 1
24295 _ACEOF
24296
24297     fi
24298     echo "$as_me:$LINENO: result: $wx_largefile" >&5
24299 echo "${ECHO_T}$wx_largefile" >&6
24300 fi
24301
24302
24303 if test "x$wx_largefile" = "xyes"; then
24304     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
24305         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
24306
24307                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24308             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24309 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
24310 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24311   echo $ECHO_N "(cached) $ECHO_C" >&6
24312 else
24313
24314                     ac_ext=cc
24315 ac_cpp='$CXXCPP $CPPFLAGS'
24316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24319
24320                     cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h.  */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h.  */
24326
24327 int
24328 main ()
24329 {
24330
24331                             #ifndef __STDC_EXT__
24332                                 choke me
24333                             #endif
24334
24335   ;
24336   return 0;
24337 }
24338 _ACEOF
24339 rm -f conftest.$ac_objext
24340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24341   (eval $ac_compile) 2>conftest.er1
24342   ac_status=$?
24343   grep -v '^ *+' conftest.er1 >conftest.err
24344   rm -f conftest.er1
24345   cat conftest.err >&5
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); } &&
24348          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350   (eval $ac_try) 2>&5
24351   ac_status=$?
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); }; } &&
24354          { ac_try='test -s conftest.$ac_objext'
24355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356   (eval $ac_try) 2>&5
24357   ac_status=$?
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); }; }; then
24360   wx_cv_STDC_EXT_required=no
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365 wx_cv_STDC_EXT_required=yes
24366
24367 fi
24368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24369                     ac_ext=c
24370 ac_cpp='$CPP $CPPFLAGS'
24371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24374
24375
24376
24377 fi
24378 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24379 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
24380             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24381                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24382             fi
24383         fi
24384     else
24385         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
24386     fi
24387         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24388 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
24389 if test "${ac_cv_sys_largefile_source+set}" = set; then
24390   echo $ECHO_N "(cached) $ECHO_C" >&6
24391 else
24392   while :; do
24393   ac_cv_sys_largefile_source=no
24394   cat >conftest.$ac_ext <<_ACEOF
24395 /* confdefs.h.  */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h.  */
24400 #include <stdio.h>
24401 int
24402 main ()
24403 {
24404 return !fseeko;
24405   ;
24406   return 0;
24407 }
24408 _ACEOF
24409 rm -f conftest.$ac_objext
24410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24411   (eval $ac_compile) 2>conftest.er1
24412   ac_status=$?
24413   grep -v '^ *+' conftest.er1 >conftest.err
24414   rm -f conftest.er1
24415   cat conftest.err >&5
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); } &&
24418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420   (eval $ac_try) 2>&5
24421   ac_status=$?
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; } &&
24424          { ac_try='test -s conftest.$ac_objext'
24425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426   (eval $ac_try) 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); }; }; then
24430   break
24431 else
24432   echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24434
24435 fi
24436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24437   cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h.  */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h.  */
24443 #define _LARGEFILE_SOURCE 1
24444 #include <stdio.h>
24445 int
24446 main ()
24447 {
24448 return !fseeko;
24449   ;
24450   return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext
24454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24455   (eval $ac_compile) 2>conftest.er1
24456   ac_status=$?
24457   grep -v '^ *+' conftest.er1 >conftest.err
24458   rm -f conftest.er1
24459   cat conftest.err >&5
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } &&
24462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464   (eval $ac_try) 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; } &&
24468          { ac_try='test -s conftest.$ac_objext'
24469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); }; }; then
24474   ac_cv_sys_largefile_source=1; break
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 fi
24480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24481   break
24482 done
24483 fi
24484 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
24485 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
24486 if test "$ac_cv_sys_largefile_source" != no; then
24487
24488 cat >>confdefs.h <<_ACEOF
24489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24490 _ACEOF
24491
24492 fi
24493 rm -f conftest*
24494
24495 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24496 # in glibc 2.1.3, but that breaks too many other things.
24497 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24498 echo "$as_me:$LINENO: checking for fseeko" >&5
24499 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
24500 if test "${ac_cv_func_fseeko+set}" = set; then
24501   echo $ECHO_N "(cached) $ECHO_C" >&6
24502 else
24503   cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h.  */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h.  */
24509 #include <stdio.h>
24510 int
24511 main ()
24512 {
24513 return fseeko && fseeko (stdin, 0, 0);
24514   ;
24515   return 0;
24516 }
24517 _ACEOF
24518 rm -f conftest.$ac_objext conftest$ac_exeext
24519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24520   (eval $ac_link) 2>conftest.er1
24521   ac_status=$?
24522   grep -v '^ *+' conftest.er1 >conftest.err
24523   rm -f conftest.er1
24524   cat conftest.err >&5
24525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526   (exit $ac_status); } &&
24527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529   (eval $ac_try) 2>&5
24530   ac_status=$?
24531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532   (exit $ac_status); }; } &&
24533          { ac_try='test -s conftest$ac_exeext'
24534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535   (eval $ac_try) 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); }; }; then
24539   ac_cv_func_fseeko=yes
24540 else
24541   echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24543
24544 ac_cv_func_fseeko=no
24545 fi
24546 rm -f conftest.err conftest.$ac_objext \
24547       conftest$ac_exeext conftest.$ac_ext
24548 fi
24549 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
24550 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
24551 if test $ac_cv_func_fseeko = yes; then
24552
24553 cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_FSEEKO 1
24555 _ACEOF
24556
24557 fi
24558
24559     if test "$ac_cv_sys_largefile_source" != no; then
24560         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
24561     fi
24562 fi
24563
24564 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24565 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
24566 if test "${ac_cv_c_bigendian+set}" = set; then
24567   echo $ECHO_N "(cached) $ECHO_C" >&6
24568 else
24569   ac_cv_c_bigendian=unknown
24570 # See if sys/param.h defines the BYTE_ORDER macro.
24571 cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577 #include <sys/types.h>
24578 #include <sys/param.h>
24579 int
24580 main ()
24581 {
24582
24583 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24584  bogus endian macros
24585 #endif
24586   ;
24587   return 0;
24588 }
24589 _ACEOF
24590 rm -f conftest.$ac_objext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24592   (eval $ac_compile) 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } &&
24599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601   (eval $ac_try) 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); }; } &&
24605          { ac_try='test -s conftest.$ac_objext'
24606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607   (eval $ac_try) 2>&5
24608   ac_status=$?
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); }; }; then
24611   # It does; now see whether it defined to BIG_ENDIAN or not.
24612 cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 #include <sys/types.h>
24619 #include <sys/param.h>
24620 int
24621 main ()
24622 {
24623
24624 #if BYTE_ORDER != BIG_ENDIAN
24625  not big endian
24626 #endif
24627   ;
24628   return 0;
24629 }
24630 _ACEOF
24631 rm -f conftest.$ac_objext
24632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24633   (eval $ac_compile) 2>conftest.er1
24634   ac_status=$?
24635   grep -v '^ *+' conftest.er1 >conftest.err
24636   rm -f conftest.er1
24637   cat conftest.err >&5
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); } &&
24640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642   (eval $ac_try) 2>&5
24643   ac_status=$?
24644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); }; } &&
24646          { ac_try='test -s conftest.$ac_objext'
24647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648   (eval $ac_try) 2>&5
24649   ac_status=$?
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); }; }; then
24652   ac_cv_c_bigendian=yes
24653 else
24654   echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24656
24657 ac_cv_c_bigendian=no
24658 fi
24659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24660 else
24661   echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24663
24664 fi
24665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24666 if test $ac_cv_c_bigendian = unknown; then
24667 if test "$cross_compiling" = yes; then
24668   ac_cv_c_bigendian=unknown
24669 else
24670   cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h.  */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h.  */
24676 main () {
24677   /* Are we little or big endian?  From Harbison&Steele.  */
24678   union
24679   {
24680     long l;
24681     char c[sizeof (long)];
24682   } u;
24683   u.l = 1;
24684   exit (u.c[sizeof (long) - 1] == 1);
24685 }
24686 _ACEOF
24687 rm -f conftest$ac_exeext
24688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24689   (eval $ac_link) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694   (eval $ac_try) 2>&5
24695   ac_status=$?
24696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697   (exit $ac_status); }; }; then
24698   ac_cv_c_bigendian=no
24699 else
24700   echo "$as_me: program exited with status $ac_status" >&5
24701 echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704 ( exit $ac_status )
24705 ac_cv_c_bigendian=yes
24706 fi
24707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24708 fi
24709 fi
24710 fi
24711 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24712 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
24713 if test $ac_cv_c_bigendian = unknown; then
24714   { 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
24715 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;}
24716 fi
24717 if test $ac_cv_c_bigendian = yes; then
24718   cat >>confdefs.h <<\_ACEOF
24719 #define WORDS_BIGENDIAN 1
24720 _ACEOF
24721
24722 fi
24723
24724
24725
24726
24727
24728     ac_ext=cc
24729 ac_cpp='$CXXCPP $CPPFLAGS'
24730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24733
24734
24735     echo "$as_me:$LINENO: checking for iostream" >&5
24736 echo $ECHO_N "checking for iostream... $ECHO_C" >&6
24737 if test "${ac_cv_header_iostream+set}" = set; then
24738   echo $ECHO_N "(cached) $ECHO_C" >&6
24739 else
24740   cat >conftest.$ac_ext <<_ACEOF
24741 /* confdefs.h.  */
24742 _ACEOF
24743 cat confdefs.h >>conftest.$ac_ext
24744 cat >>conftest.$ac_ext <<_ACEOF
24745 /* end confdefs.h.  */
24746
24747
24748 #include <iostream>
24749 _ACEOF
24750 rm -f conftest.$ac_objext
24751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24752   (eval $ac_compile) 2>conftest.er1
24753   ac_status=$?
24754   grep -v '^ *+' conftest.er1 >conftest.err
24755   rm -f conftest.er1
24756   cat conftest.err >&5
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); } &&
24759          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761   (eval $ac_try) 2>&5
24762   ac_status=$?
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); }; } &&
24765          { ac_try='test -s conftest.$ac_objext'
24766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767   (eval $ac_try) 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); }; }; then
24771   ac_cv_header_iostream=yes
24772 else
24773   echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776 ac_cv_header_iostream=no
24777 fi
24778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24779 fi
24780 echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
24781 echo "${ECHO_T}$ac_cv_header_iostream" >&6
24782
24783
24784
24785     if test "$ac_cv_header_iostream" = "yes" ; then
24786       :
24787     else
24788       cat >>confdefs.h <<\_ACEOF
24789 #define wxUSE_IOSTREAMH 1
24790 _ACEOF
24791
24792     fi
24793
24794     ac_ext=c
24795 ac_cpp='$CPP $CPPFLAGS'
24796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24799
24800
24801
24802
24803   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
24804 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
24805 if test "${wx_cv_cpp_bool+set}" = set; then
24806   echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808
24809
24810
24811     ac_ext=cc
24812 ac_cpp='$CXXCPP $CPPFLAGS'
24813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24816
24817
24818     cat >conftest.$ac_ext <<_ACEOF
24819 /* confdefs.h.  */
24820 _ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h.  */
24824
24825
24826 int
24827 main ()
24828 {
24829
24830         bool b = true;
24831
24832         return 0;
24833
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 rm -f conftest.$ac_objext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24840   (eval $ac_compile) 2>conftest.er1
24841   ac_status=$?
24842   grep -v '^ *+' conftest.er1 >conftest.err
24843   rm -f conftest.er1
24844   cat conftest.err >&5
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); } &&
24847          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849   (eval $ac_try) 2>&5
24850   ac_status=$?
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); }; } &&
24853          { ac_try='test -s conftest.$ac_objext'
24854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855   (eval $ac_try) 2>&5
24856   ac_status=$?
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); }; }; then
24859
24860         wx_cv_cpp_bool=yes
24861
24862 else
24863   echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866
24867         wx_cv_cpp_bool=no
24868
24869
24870 fi
24871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24872
24873     ac_ext=c
24874 ac_cpp='$CPP $CPPFLAGS'
24875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24878
24879
24880 fi
24881 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
24882 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
24883
24884   if test "$wx_cv_cpp_bool" = "yes"; then
24885     cat >>confdefs.h <<\_ACEOF
24886 #define HAVE_BOOL 1
24887 _ACEOF
24888
24889   fi
24890
24891
24892
24893   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24894 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
24895 if test "${wx_cv_explicit+set}" = set; then
24896   echo $ECHO_N "(cached) $ECHO_C" >&6
24897 else
24898
24899
24900
24901     ac_ext=cc
24902 ac_cpp='$CXXCPP $CPPFLAGS'
24903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24906
24907
24908             cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914
24915         class Foo { public: explicit Foo(int) {} };
24916
24917 int
24918 main ()
24919 {
24920
24921         return 0;
24922
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24929   (eval $ac_compile) 2>conftest.er1
24930   ac_status=$?
24931   grep -v '^ *+' conftest.er1 >conftest.err
24932   rm -f conftest.er1
24933   cat conftest.err >&5
24934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); } &&
24936          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938   (eval $ac_try) 2>&5
24939   ac_status=$?
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); }; } &&
24942          { ac_try='test -s conftest.$ac_objext'
24943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944   (eval $ac_try) 2>&5
24945   ac_status=$?
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); }; }; then
24948
24949         cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h.  */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h.  */
24955
24956                 class Foo { public: explicit Foo(int) {} };
24957                 static void TakeFoo(const Foo& foo) { }
24958
24959 int
24960 main ()
24961 {
24962
24963                 TakeFoo(17);
24964                 return 0;
24965
24966   ;
24967   return 0;
24968 }
24969 _ACEOF
24970 rm -f conftest.$ac_objext
24971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24972   (eval $ac_compile) 2>conftest.er1
24973   ac_status=$?
24974   grep -v '^ *+' conftest.er1 >conftest.err
24975   rm -f conftest.er1
24976   cat conftest.err >&5
24977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); } &&
24979          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24981   (eval $ac_try) 2>&5
24982   ac_status=$?
24983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984   (exit $ac_status); }; } &&
24985          { ac_try='test -s conftest.$ac_objext'
24986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987   (eval $ac_try) 2>&5
24988   ac_status=$?
24989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990   (exit $ac_status); }; }; then
24991   wx_cv_explicit=no
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996 wx_cv_explicit=yes
24997
24998 fi
24999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25000
25001 else
25002   echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005 wx_cv_explicit=no
25006
25007 fi
25008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25009
25010     ac_ext=c
25011 ac_cpp='$CPP $CPPFLAGS'
25012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25015
25016
25017 fi
25018 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
25019 echo "${ECHO_T}$wx_cv_explicit" >&6
25020
25021   if test "$wx_cv_explicit" = "yes"; then
25022     cat >>confdefs.h <<\_ACEOF
25023 #define HAVE_EXPLICIT 1
25024 _ACEOF
25025
25026   fi
25027
25028
25029 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
25030 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
25031 if test "${ac_cv_cxx_const_cast+set}" = set; then
25032   echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034
25035
25036  ac_ext=cc
25037 ac_cpp='$CXXCPP $CPPFLAGS'
25038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25041
25042  cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h.  */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h.  */
25048
25049 int
25050 main ()
25051 {
25052 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
25053   ;
25054   return 0;
25055 }
25056 _ACEOF
25057 rm -f conftest.$ac_objext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25059   (eval $ac_compile) 2>conftest.er1
25060   ac_status=$?
25061   grep -v '^ *+' conftest.er1 >conftest.err
25062   rm -f conftest.er1
25063   cat conftest.err >&5
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } &&
25066          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068   (eval $ac_try) 2>&5
25069   ac_status=$?
25070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071   (exit $ac_status); }; } &&
25072          { ac_try='test -s conftest.$ac_objext'
25073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074   (eval $ac_try) 2>&5
25075   ac_status=$?
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); }; }; then
25078   ac_cv_cxx_const_cast=yes
25079 else
25080   echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083 ac_cv_cxx_const_cast=no
25084 fi
25085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25086  ac_ext=c
25087 ac_cpp='$CPP $CPPFLAGS'
25088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25091
25092
25093 fi
25094 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
25095 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
25096 if test "$ac_cv_cxx_const_cast" = yes; then
25097
25098 cat >>confdefs.h <<\_ACEOF
25099 #define HAVE_CONST_CAST
25100 _ACEOF
25101
25102 fi
25103
25104 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
25105 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
25106 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
25107   echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109
25110
25111  ac_ext=cc
25112 ac_cpp='$CXXCPP $CPPFLAGS'
25113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25116
25117  cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 #include <typeinfo>
25124 class Base { public : Base () {} virtual void f () = 0;};
25125 class Derived : public Base { public : Derived () {} virtual void f () {} };
25126 class Unrelated { public : Unrelated () {} };
25127 int g (Unrelated&) { return 0; }
25128 int
25129 main ()
25130 {
25131
25132 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
25133   ;
25134   return 0;
25135 }
25136 _ACEOF
25137 rm -f conftest.$ac_objext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25139   (eval $ac_compile) 2>conftest.er1
25140   ac_status=$?
25141   grep -v '^ *+' conftest.er1 >conftest.err
25142   rm -f conftest.er1
25143   cat conftest.err >&5
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } &&
25146          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; } &&
25152          { ac_try='test -s conftest.$ac_objext'
25153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); }; }; then
25158   ac_cv_cxx_reinterpret_cast=yes
25159 else
25160   echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 ac_cv_cxx_reinterpret_cast=no
25164 fi
25165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25166  ac_ext=c
25167 ac_cpp='$CPP $CPPFLAGS'
25168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25171
25172
25173 fi
25174 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
25175 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
25176 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
25177
25178 cat >>confdefs.h <<\_ACEOF
25179 #define HAVE_REINTERPRET_CAST
25180 _ACEOF
25181
25182 fi
25183
25184 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
25185 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
25186 if test "${ac_cv_cxx_static_cast+set}" = set; then
25187   echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189
25190
25191  ac_ext=cc
25192 ac_cpp='$CXXCPP $CPPFLAGS'
25193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25196
25197  cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h.  */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h.  */
25203 #include <typeinfo>
25204 class Base { public : Base () {} virtual void f () = 0; };
25205 class Derived : public Base { public : Derived () {} virtual void f () {} };
25206 int g (Derived&) { return 0; }
25207 int
25208 main ()
25209 {
25210
25211 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
25212   ;
25213   return 0;
25214 }
25215 _ACEOF
25216 rm -f conftest.$ac_objext
25217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25218   (eval $ac_compile) 2>conftest.er1
25219   ac_status=$?
25220   grep -v '^ *+' conftest.er1 >conftest.err
25221   rm -f conftest.er1
25222   cat conftest.err >&5
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); } &&
25225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227   (eval $ac_try) 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; } &&
25231          { ac_try='test -s conftest.$ac_objext'
25232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233   (eval $ac_try) 2>&5
25234   ac_status=$?
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); }; }; then
25237   ac_cv_cxx_static_cast=yes
25238 else
25239   echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242 ac_cv_cxx_static_cast=no
25243 fi
25244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25245  ac_ext=c
25246 ac_cpp='$CPP $CPPFLAGS'
25247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25250
25251
25252 fi
25253 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
25254 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
25255 if test "$ac_cv_cxx_static_cast" = yes; then
25256
25257 cat >>confdefs.h <<\_ACEOF
25258 #define HAVE_STATIC_CAST
25259 _ACEOF
25260
25261 fi
25262
25263
25264 if test "x$SUNCXX" = xyes; then
25265     CXXFLAGS="-features=tmplife $CXXFLAGS"
25266 fi
25267
25268 if test "x$SUNCC" = xyes; then
25269     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
25270 fi
25271
25272 if test "x$SGICC" = "xyes"; then
25273     CFLAGS="-woff 3970 $CFLAGS"
25274 fi
25275 if test "x$SGICXX" = "xyes"; then
25276     CXXFLAGS="-woff 3970 $CXXFLAGS"
25277 fi
25278
25279 if test "x$HPCC" = "xyes"; then
25280                     CFLAGS="+W 2011,2450 $CFLAGS"
25281 fi
25282 if test "x$HPCXX" = "xyes"; then
25283             CXXFLAGS="+W 2340 $CXXFLAGS"
25284 fi
25285
25286 if test "x$COMPAQCXX" = "xyes"; then
25287                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
25288 fi
25289
25290 ac_ext=cc
25291 ac_cpp='$CXXCPP $CPPFLAGS'
25292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25295
25296
25297 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
25298     if test "$wxUSE_UNICODE" = "yes"; then
25299         std_string="std::wstring"
25300         char_type="wchar_t"
25301     else
25302         std_string="std::string"
25303         char_type="char"
25304     fi
25305
25306         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
25307 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
25308 if test "${wx_cv_class_stdstring+set}" = set; then
25309   echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311
25312             cat >conftest.$ac_ext <<_ACEOF
25313 /* confdefs.h.  */
25314 _ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h.  */
25318 #include <string>
25319 int
25320 main ()
25321 {
25322 $std_string foo;
25323   ;
25324   return 0;
25325 }
25326 _ACEOF
25327 rm -f conftest.$ac_objext
25328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25329   (eval $ac_compile) 2>conftest.er1
25330   ac_status=$?
25331   grep -v '^ *+' conftest.er1 >conftest.err
25332   rm -f conftest.er1
25333   cat conftest.err >&5
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); } &&
25336          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338   (eval $ac_try) 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; } &&
25342          { ac_try='test -s conftest.$ac_objext'
25343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344   (eval $ac_try) 2>&5
25345   ac_status=$?
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); }; }; then
25348   wx_cv_class_stdstring=yes
25349 else
25350   echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 wx_cv_class_stdstring=no
25354
25355 fi
25356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25357
25358
25359 fi
25360 echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
25361 echo "${ECHO_T}$wx_cv_class_stdstring" >&6
25362
25363     if test "$wx_cv_class_stdstring" = yes; then
25364         if test "$wxUSE_UNICODE" = "yes"; then
25365             cat >>confdefs.h <<\_ACEOF
25366 #define HAVE_STD_WSTRING 1
25367 _ACEOF
25368
25369         fi
25370                     else
25371         echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
25372 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
25373 if test "${wx_cv_class_stdbasicstring+set}" = set; then
25374   echo $ECHO_N "(cached) $ECHO_C" >&6
25375 else
25376
25377                 cat >conftest.$ac_ext <<_ACEOF
25378 /* confdefs.h.  */
25379 _ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h.  */
25383
25384                     #ifdef HAVE_WCHAR_H
25385                     #  ifdef __CYGWIN__
25386                     #    include <stddef.h>
25387                     #  endif
25388                     #  include <wchar.h>
25389                     #endif
25390                     #ifdef HAVE_STDLIB_H
25391                     #  include <stdlib.h>
25392                     #endif
25393                     #include <stdio.h>
25394                     #include <string>
25395
25396 int
25397 main ()
25398 {
25399 std::basic_string<$char_type> foo;
25400                      const $char_type* dummy = foo.c_str();
25401   ;
25402   return 0;
25403 }
25404 _ACEOF
25405 rm -f conftest.$ac_objext
25406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25407   (eval $ac_compile) 2>conftest.er1
25408   ac_status=$?
25409   grep -v '^ *+' conftest.er1 >conftest.err
25410   rm -f conftest.er1
25411   cat conftest.err >&5
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); } &&
25414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; } &&
25420          { ac_try='test -s conftest.$ac_objext'
25421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422   (eval $ac_try) 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; }; then
25426   wx_cv_class_stdbasicstring=yes
25427 else
25428   echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431 wx_cv_class_stdbasicstring=no
25432
25433 fi
25434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25435
25436
25437 fi
25438 echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
25439 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6
25440
25441         if test "$wx_cv_class_stdbasicstring" != yes; then
25442             if test "$wxUSE_STL" = "yes"; then
25443                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
25444 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
25445    { (exit 1); exit 1; }; }
25446             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
25447                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
25448 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
25449    { (exit 1); exit 1; }; }
25450             else
25451                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
25452 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
25453                 wxUSE_STD_STRING=no
25454             fi
25455         fi
25456     fi
25457 fi
25458
25459 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
25460     echo "$as_me:$LINENO: checking for std::istream" >&5
25461 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
25462 if test "${ac_cv_type_std__istream+set}" = set; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   cat >conftest.$ac_ext <<_ACEOF
25466 /* confdefs.h.  */
25467 _ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h.  */
25471 #include <iostream>
25472
25473 int
25474 main ()
25475 {
25476 if ((std::istream *) 0)
25477   return 0;
25478 if (sizeof (std::istream))
25479   return 0;
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext
25485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25486   (eval $ac_compile) 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } &&
25493          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495   (eval $ac_try) 2>&5
25496   ac_status=$?
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); }; } &&
25499          { ac_try='test -s conftest.$ac_objext'
25500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501   (eval $ac_try) 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); }; }; then
25505   ac_cv_type_std__istream=yes
25506 else
25507   echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510 ac_cv_type_std__istream=no
25511 fi
25512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25513 fi
25514 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
25515 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
25516 if test $ac_cv_type_std__istream = yes; then
25517
25518 cat >>confdefs.h <<_ACEOF
25519 #define HAVE_STD__ISTREAM 1
25520 _ACEOF
25521
25522
25523 else
25524   wxUSE_STD_IOSTREAM=no
25525 fi
25526 echo "$as_me:$LINENO: checking for std::ostream" >&5
25527 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
25528 if test "${ac_cv_type_std__ostream+set}" = set; then
25529   echo $ECHO_N "(cached) $ECHO_C" >&6
25530 else
25531   cat >conftest.$ac_ext <<_ACEOF
25532 /* confdefs.h.  */
25533 _ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h.  */
25537 #include <iostream>
25538
25539 int
25540 main ()
25541 {
25542 if ((std::ostream *) 0)
25543   return 0;
25544 if (sizeof (std::ostream))
25545   return 0;
25546   ;
25547   return 0;
25548 }
25549 _ACEOF
25550 rm -f conftest.$ac_objext
25551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25552   (eval $ac_compile) 2>conftest.er1
25553   ac_status=$?
25554   grep -v '^ *+' conftest.er1 >conftest.err
25555   rm -f conftest.er1
25556   cat conftest.err >&5
25557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558   (exit $ac_status); } &&
25559          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25561   (eval $ac_try) 2>&5
25562   ac_status=$?
25563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564   (exit $ac_status); }; } &&
25565          { ac_try='test -s conftest.$ac_objext'
25566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567   (eval $ac_try) 2>&5
25568   ac_status=$?
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); }; }; then
25571   ac_cv_type_std__ostream=yes
25572 else
25573   echo "$as_me: failed program was:" >&5
25574 sed 's/^/| /' conftest.$ac_ext >&5
25575
25576 ac_cv_type_std__ostream=no
25577 fi
25578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25579 fi
25580 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
25581 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
25582 if test $ac_cv_type_std__ostream = yes; then
25583
25584 cat >>confdefs.h <<_ACEOF
25585 #define HAVE_STD__OSTREAM 1
25586 _ACEOF
25587
25588
25589 else
25590   wxUSE_STD_IOSTREAM=no
25591 fi
25592
25593
25594     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
25595         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
25596             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
25597 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
25598    { (exit 1); exit 1; }; }
25599         else
25600             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
25601 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
25602         fi
25603     fi
25604 fi
25605
25606 if test "$wxUSE_STL" = "yes"; then
25607         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
25608 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
25609 if test "${wx_cv_lib_stl+set}" = set; then
25610   echo $ECHO_N "(cached) $ECHO_C" >&6
25611 else
25612   cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h.  */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h.  */
25618 #include <string>
25619             #include <functional>
25620             #include <algorithm>
25621             #include <vector>
25622             #include <list>
25623 int
25624 main ()
25625 {
25626 std::vector<int> moo;
25627              std::list<int> foo;
25628              std::vector<int>::iterator it =
25629                  std::find_if(moo.begin(), moo.end(),
25630                               std::bind2nd(std::less<int>(), 3));
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 rm -f conftest.$ac_objext
25636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25637   (eval $ac_compile) 2>conftest.er1
25638   ac_status=$?
25639   grep -v '^ *+' conftest.er1 >conftest.err
25640   rm -f conftest.er1
25641   cat conftest.err >&5
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); } &&
25644          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646   (eval $ac_try) 2>&5
25647   ac_status=$?
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); }; } &&
25650          { ac_try='test -s conftest.$ac_objext'
25651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652   (eval $ac_try) 2>&5
25653   ac_status=$?
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); }; }; then
25656   wx_cv_lib_stl=yes
25657 else
25658   echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25660
25661 wx_cv_lib_stl=no
25662
25663 fi
25664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25665
25666 fi
25667 echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
25668 echo "${ECHO_T}$wx_cv_lib_stl" >&6
25669
25670     if test "$wx_cv_lib_stl" != yes; then
25671          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
25672 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
25673    { (exit 1); exit 1; }; }
25674     fi
25675
25676         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
25677 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
25678 if test "${wx_cv_func_stdstring_compare+set}" = set; then
25679   echo $ECHO_N "(cached) $ECHO_C" >&6
25680 else
25681   cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687 #include <string>
25688 int
25689 main ()
25690 {
25691 std::string foo, bar;
25692             foo.compare(bar);
25693             foo.compare(1, 1, bar);
25694             foo.compare(1, 1, bar, 1, 1);
25695             foo.compare("");
25696             foo.compare(1, 1, "");
25697             foo.compare(1, 1, "", 2);
25698   ;
25699   return 0;
25700 }
25701 _ACEOF
25702 rm -f conftest.$ac_objext
25703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25704   (eval $ac_compile) 2>conftest.er1
25705   ac_status=$?
25706   grep -v '^ *+' conftest.er1 >conftest.err
25707   rm -f conftest.er1
25708   cat conftest.err >&5
25709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710   (exit $ac_status); } &&
25711          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25713   (eval $ac_try) 2>&5
25714   ac_status=$?
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); }; } &&
25717          { ac_try='test -s conftest.$ac_objext'
25718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; }; then
25723   wx_cv_func_stdstring_compare=yes
25724 else
25725   echo "$as_me: failed program was:" >&5
25726 sed 's/^/| /' conftest.$ac_ext >&5
25727
25728 wx_cv_func_stdstring_compare=no
25729
25730 fi
25731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25732
25733 fi
25734 echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
25735 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6
25736
25737     if test "$wx_cv_func_stdstring_compare" = yes; then
25738         cat >>confdefs.h <<\_ACEOF
25739 #define HAVE_STD_STRING_COMPARE 1
25740 _ACEOF
25741
25742     fi
25743
25744         echo "$as_me:$LINENO: checking for hash_map" >&5
25745 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
25746 if test "${ac_cv_header_hash_map+set}" = set; then
25747   echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25749   cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755
25756
25757
25758 #include <hash_map>
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762   (eval $ac_compile) 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } &&
25769          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771   (eval $ac_try) 2>&5
25772   ac_status=$?
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); }; } &&
25775          { ac_try='test -s conftest.$ac_objext'
25776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777   (eval $ac_try) 2>&5
25778   ac_status=$?
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); }; }; then
25781   ac_cv_header_hash_map=yes
25782 else
25783   echo "$as_me: failed program was:" >&5
25784 sed 's/^/| /' conftest.$ac_ext >&5
25785
25786 ac_cv_header_hash_map=no
25787 fi
25788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25789 fi
25790 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25791 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
25792 if test $ac_cv_header_hash_map = yes; then
25793   echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
25794 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6
25795 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798   cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804 #include <hash_map>
25805                 #include <hash_set>
25806 int
25807 main ()
25808 {
25809 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25810                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25811   ;
25812   return 0;
25813 }
25814 _ACEOF
25815 rm -f conftest.$ac_objext
25816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25817   (eval $ac_compile) 2>conftest.er1
25818   ac_status=$?
25819   grep -v '^ *+' conftest.er1 >conftest.err
25820   rm -f conftest.er1
25821   cat conftest.err >&5
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); } &&
25824          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826   (eval $ac_try) 2>&5
25827   ac_status=$?
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); }; } &&
25830          { ac_try='test -s conftest.$ac_objext'
25831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832   (eval $ac_try) 2>&5
25833   ac_status=$?
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); }; }; then
25836   wx_cv_class_stdhashmapset=yes
25837 else
25838   echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25840
25841 wx_cv_class_stdhashmapset=no
25842 fi
25843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25844
25845
25846 fi
25847 echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25848 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
25849 fi
25850
25851
25852
25853     if test "$wx_cv_class_stdhashmapset" = yes; then
25854         cat >>confdefs.h <<\_ACEOF
25855 #define HAVE_HASH_MAP 1
25856 _ACEOF
25857
25858         cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_STD_HASH_MAP 1
25860 _ACEOF
25861
25862     fi
25863
25864     echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25865 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
25866 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25867   echo $ECHO_N "(cached) $ECHO_C" >&6
25868 else
25869   cat >conftest.$ac_ext <<_ACEOF
25870 /* confdefs.h.  */
25871 _ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h.  */
25875
25876
25877
25878 #include <ext/hash_map>
25879 _ACEOF
25880 rm -f conftest.$ac_objext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25882   (eval $ac_compile) 2>conftest.er1
25883   ac_status=$?
25884   grep -v '^ *+' conftest.er1 >conftest.err
25885   rm -f conftest.er1
25886   cat conftest.err >&5
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); } &&
25889          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891   (eval $ac_try) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); }; } &&
25895          { ac_try='test -s conftest.$ac_objext'
25896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897   (eval $ac_try) 2>&5
25898   ac_status=$?
25899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900   (exit $ac_status); }; }; then
25901   ac_cv_header_ext_hash_map=yes
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906 ac_cv_header_ext_hash_map=no
25907 fi
25908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25909 fi
25910 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25911 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
25912 if test $ac_cv_header_ext_hash_map = yes; then
25913   echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25914 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
25915 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 #include <ext/hash_map>
25925                 #include <ext/hash_set>
25926 int
25927 main ()
25928 {
25929 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25930                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25931   ;
25932   return 0;
25933 }
25934 _ACEOF
25935 rm -f conftest.$ac_objext
25936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25937   (eval $ac_compile) 2>conftest.er1
25938   ac_status=$?
25939   grep -v '^ *+' conftest.er1 >conftest.err
25940   rm -f conftest.er1
25941   cat conftest.err >&5
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); } &&
25944          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
25945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946   (eval $ac_try) 2>&5
25947   ac_status=$?
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); }; } &&
25950          { ac_try='test -s conftest.$ac_objext'
25951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952   (eval $ac_try) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956   wx_cv_class_gnuhashmapset=yes
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961 wx_cv_class_gnuhashmapset=no
25962 fi
25963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25964
25965
25966 fi
25967 echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25968 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
25969 fi
25970
25971
25972
25973     if test "$wx_cv_class_gnuhashmapset" = yes; then
25974          cat >>confdefs.h <<\_ACEOF
25975 #define HAVE_EXT_HASH_MAP 1
25976 _ACEOF
25977
25978          cat >>confdefs.h <<\_ACEOF
25979 #define HAVE_GNU_CXX_HASH_MAP 1
25980 _ACEOF
25981
25982     fi
25983 fi
25984
25985 ac_ext=c
25986 ac_cpp='$CPP $CPPFLAGS'
25987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25990
25991
25992
25993 SEARCH_INCLUDE="\
25994     /usr/local/include        \
25995                               \
25996     /usr/Motif-2.1/include    \
25997     /usr/Motif-1.2/include    \
25998     /usr/include/Motif1.2     \
25999                               \
26000     /usr/dt/include           \
26001     /usr/openwin/include      \
26002                               \
26003     /usr/include/Xm           \
26004                               \
26005     /usr/X11R6/include        \
26006     /usr/X11R6.4/include      \
26007     /usr/X11R5/include        \
26008     /usr/X11R4/include        \
26009                               \
26010     /usr/include/X11R6        \
26011     /usr/include/X11R5        \
26012     /usr/include/X11R4        \
26013                               \
26014     /usr/local/X11R6/include  \
26015     /usr/local/X11R5/include  \
26016     /usr/local/X11R4/include  \
26017                               \
26018     /usr/local/include/X11R6  \
26019     /usr/local/include/X11R5  \
26020     /usr/local/include/X11R4  \
26021                               \
26022     /usr/X11/include          \
26023     /usr/include/X11          \
26024     /usr/local/X11/include    \
26025     /usr/local/include/X11    \
26026                               \
26027     /usr/XFree86/include/X11  \
26028     /usr/pkg/include          \
26029                               \
26030     /usr/openwin/share/include"
26031
26032 echo "$as_me:$LINENO: checking for libraries directory" >&5
26033 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
26034
26035 case "${host}" in
26036     *-*-irix6* )
26037         if test "${wx_cv_std_libpath+set}" = set; then
26038   echo $ECHO_N "(cached) $ECHO_C" >&6
26039 else
26040
26041                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
26042                     for e in a so sl dylib dll.a; do
26043                         libc="$d/libc.$e"
26044                         if test -f $libc; then
26045                             save_LIBS="$LIBS"
26046                             LIBS="$libc"
26047                             cat >conftest.$ac_ext <<_ACEOF
26048 int main() { return 0; }
26049 _ACEOF
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26052   (eval $ac_link) 2>conftest.er1
26053   ac_status=$?
26054   grep -v '^ *+' conftest.er1 >conftest.err
26055   rm -f conftest.er1
26056   cat conftest.err >&5
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } &&
26059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061   (eval $ac_try) 2>&5
26062   ac_status=$?
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); }; } &&
26065          { ac_try='test -s conftest$ac_exeext'
26066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067   (eval $ac_try) 2>&5
26068   ac_status=$?
26069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070   (exit $ac_status); }; }; then
26071   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
26072 else
26073   echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26075
26076 fi
26077 rm -f conftest.err conftest.$ac_objext \
26078       conftest$ac_exeext conftest.$ac_ext
26079                             LIBS="$save_LIBS"
26080                             if test "x$wx_cv_std_libpath" != "x"; then
26081                                 break 2
26082                             fi
26083                         fi
26084                     done
26085                 done
26086                 if test "x$wx_cv_std_libpath" = "x"; then
26087                     wx_cv_std_libpath="lib"
26088                 fi
26089
26090
26091 fi
26092
26093         ;;
26094
26095     *-*-solaris2* )
26096                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
26097             wx_cv_std_libpath="lib/64"
26098         else
26099             wx_cv_std_libpath="lib"
26100         fi
26101         ;;
26102
26103     *-*-linux* )
26104                 if test "$ac_cv_sizeof_void_p" = 8 -a \
26105                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
26106             wx_cv_std_libpath="lib64"
26107         else
26108             wx_cv_std_libpath="lib"
26109         fi
26110         ;;
26111
26112     *)
26113         wx_cv_std_libpath="lib";
26114         ;;
26115 esac
26116
26117 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
26118 echo "${ECHO_T}$wx_cv_std_libpath" >&6
26119
26120 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
26121
26122 if test "$build" != "$host" -a "$GCC" = yes; then
26123                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
26124         cross_root=`dirname $cross_root`
26125         cross_root=`dirname $cross_root`
26126
26127                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26128         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
26129         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
26130
26131                 if test -z "$PKG_CONFIG_PATH"; then
26132             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
26133             export PKG_CONFIG_PATH
26134         fi
26135
26136                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
26137
26138 ac_find_includes=
26139 for ac_dir in $SEARCH_INCLUDE /usr/include;
26140   do
26141     if test -f "$ac_dir/X11/Intrinsic.h"; then
26142       ac_find_includes=$ac_dir
26143       break
26144     fi
26145   done
26146
26147             x_includes=$ac_find_includes
26148         fi
26149         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
26150
26151   ac_find_libraries=
26152   for ac_dir in $SEARCH_LIB;
26153   do
26154     for ac_extension in a so sl dylib dll.a; do
26155       if test -f "$ac_dir/libXt.$ac_extension"; then
26156         ac_find_libraries=$ac_dir
26157         break 2
26158       fi
26159     done
26160   done
26161
26162             x_libraries=$ac_find_libraries
26163         fi
26164     fi
26165 fi
26166
26167
26168 cat >confcache <<\_ACEOF
26169 # This file is a shell script that caches the results of configure
26170 # tests run on this system so they can be shared between configure
26171 # scripts and configure runs, see configure's option --config-cache.
26172 # It is not useful on other systems.  If it contains results you don't
26173 # want to keep, you may remove or edit it.
26174 #
26175 # config.status only pays attention to the cache file if you give it
26176 # the --recheck option to rerun configure.
26177 #
26178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26180 # following values.
26181
26182 _ACEOF
26183
26184 # The following way of writing the cache mishandles newlines in values,
26185 # but we know of no workaround that is simple, portable, and efficient.
26186 # So, don't put newlines in cache variables' values.
26187 # Ultrix sh set writes to stderr and can't be redirected directly,
26188 # and sets the high bit in the cache file unless we assign to the vars.
26189 {
26190   (set) 2>&1 |
26191     case `(ac_space=' '; set | grep ac_space) 2>&1` in
26192     *ac_space=\ *)
26193       # `set' does not quote correctly, so add quotes (double-quote
26194       # substitution turns \\\\ into \\, and sed turns \\ into \).
26195       sed -n \
26196         "s/'/'\\\\''/g;
26197           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26198       ;;
26199     *)
26200       # `set' quotes correctly as required by POSIX, so do not add quotes.
26201       sed -n \
26202         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26203       ;;
26204     esac;
26205 } |
26206   sed '
26207      t clear
26208      : clear
26209      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26210      t end
26211      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26212      : end' >>confcache
26213 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26214   if test -w $cache_file; then
26215     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26216     cat confcache >$cache_file
26217   else
26218     echo "not updating unwritable cache $cache_file"
26219   fi
26220 fi
26221 rm -f confcache
26222
26223 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
26224     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
26225 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
26226 if test "${wx_cv_lib_glibc21+set}" = set; then
26227   echo $ECHO_N "(cached) $ECHO_C" >&6
26228 else
26229
26230         cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h.  */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h.  */
26236 #include <features.h>
26237 int
26238 main ()
26239 {
26240
26241                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
26242                 not glibc 2.1
26243                 #endif
26244
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251   (eval $ac_compile) 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } &&
26258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260   (eval $ac_try) 2>&5
26261   ac_status=$?
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); }; } &&
26264          { ac_try='test -s conftest.$ac_objext'
26265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); }; }; then
26270
26271                 wx_cv_lib_glibc21=yes
26272
26273 else
26274   echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26276
26277
26278                 wx_cv_lib_glibc21=no
26279
26280
26281 fi
26282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26283
26284 fi
26285 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
26286 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
26287     if test "$wx_cv_lib_glibc21" = "yes"; then
26288         cat >>confdefs.h <<\_ACEOF
26289 #define wxHAVE_GLIBC2 1
26290 _ACEOF
26291
26292     fi
26293 fi
26294
26295 if test "x$wx_cv_lib_glibc21" = "xyes"; then
26296     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
26297         cat >>confdefs.h <<\_ACEOF
26298 #define _GNU_SOURCE 1
26299 _ACEOF
26300
26301     fi
26302 fi
26303
26304 have_cos=0
26305 have_floor=0
26306
26307 for ac_func in cos
26308 do
26309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26310 echo "$as_me:$LINENO: checking for $ac_func" >&5
26311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26312 if eval "test \"\${$as_ac_var+set}\" = set"; then
26313   echo $ECHO_N "(cached) $ECHO_C" >&6
26314 else
26315   cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26323 #define $ac_func innocuous_$ac_func
26324
26325 /* System header to define __stub macros and hopefully few prototypes,
26326     which can conflict with char $ac_func (); below.
26327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26328     <limits.h> exists even on freestanding compilers.  */
26329
26330 #ifdef __STDC__
26331 # include <limits.h>
26332 #else
26333 # include <assert.h>
26334 #endif
26335
26336 #undef $ac_func
26337
26338 /* Override any gcc2 internal prototype to avoid an error.  */
26339 #ifdef __cplusplus
26340 extern "C"
26341 {
26342 #endif
26343 /* We use char because int might match the return type of a gcc2
26344    builtin and then its argument prototype would still apply.  */
26345 char $ac_func ();
26346 /* The GNU C library defines this for functions which it implements
26347     to always fail with ENOSYS.  Some functions are actually named
26348     something starting with __ and the normal name is an alias.  */
26349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26350 choke me
26351 #else
26352 char (*f) () = $ac_func;
26353 #endif
26354 #ifdef __cplusplus
26355 }
26356 #endif
26357
26358 int
26359 main ()
26360 {
26361 return f != $ac_func;
26362   ;
26363   return 0;
26364 }
26365 _ACEOF
26366 rm -f conftest.$ac_objext conftest$ac_exeext
26367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26368   (eval $ac_link) 2>conftest.er1
26369   ac_status=$?
26370   grep -v '^ *+' conftest.er1 >conftest.err
26371   rm -f conftest.er1
26372   cat conftest.err >&5
26373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); } &&
26375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377   (eval $ac_try) 2>&5
26378   ac_status=$?
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); }; } &&
26381          { ac_try='test -s conftest$ac_exeext'
26382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26383   (eval $ac_try) 2>&5
26384   ac_status=$?
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); }; }; then
26387   eval "$as_ac_var=yes"
26388 else
26389   echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26391
26392 eval "$as_ac_var=no"
26393 fi
26394 rm -f conftest.err conftest.$ac_objext \
26395       conftest$ac_exeext conftest.$ac_ext
26396 fi
26397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26399 if test `eval echo '${'$as_ac_var'}'` = yes; then
26400   cat >>confdefs.h <<_ACEOF
26401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26402 _ACEOF
26403  have_cos=1
26404 fi
26405 done
26406
26407
26408 for ac_func in floor
26409 do
26410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26411 echo "$as_me:$LINENO: checking for $ac_func" >&5
26412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26413 if eval "test \"\${$as_ac_var+set}\" = set"; then
26414   echo $ECHO_N "(cached) $ECHO_C" >&6
26415 else
26416   cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26424 #define $ac_func innocuous_$ac_func
26425
26426 /* System header to define __stub macros and hopefully few prototypes,
26427     which can conflict with char $ac_func (); below.
26428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26429     <limits.h> exists even on freestanding compilers.  */
26430
26431 #ifdef __STDC__
26432 # include <limits.h>
26433 #else
26434 # include <assert.h>
26435 #endif
26436
26437 #undef $ac_func
26438
26439 /* Override any gcc2 internal prototype to avoid an error.  */
26440 #ifdef __cplusplus
26441 extern "C"
26442 {
26443 #endif
26444 /* We use char because int might match the return type of a gcc2
26445    builtin and then its argument prototype would still apply.  */
26446 char $ac_func ();
26447 /* The GNU C library defines this for functions which it implements
26448     to always fail with ENOSYS.  Some functions are actually named
26449     something starting with __ and the normal name is an alias.  */
26450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26451 choke me
26452 #else
26453 char (*f) () = $ac_func;
26454 #endif
26455 #ifdef __cplusplus
26456 }
26457 #endif
26458
26459 int
26460 main ()
26461 {
26462 return f != $ac_func;
26463   ;
26464   return 0;
26465 }
26466 _ACEOF
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26469   (eval $ac_link) 2>conftest.er1
26470   ac_status=$?
26471   grep -v '^ *+' conftest.er1 >conftest.err
26472   rm -f conftest.er1
26473   cat conftest.err >&5
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } &&
26476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478   (eval $ac_try) 2>&5
26479   ac_status=$?
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); }; } &&
26482          { ac_try='test -s conftest$ac_exeext'
26483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484   (eval $ac_try) 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); }; }; then
26488   eval "$as_ac_var=yes"
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 eval "$as_ac_var=no"
26494 fi
26495 rm -f conftest.err conftest.$ac_objext \
26496       conftest$ac_exeext conftest.$ac_ext
26497 fi
26498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26500 if test `eval echo '${'$as_ac_var'}'` = yes; then
26501   cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26503 _ACEOF
26504  have_floor=1
26505 fi
26506 done
26507
26508 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
26509 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
26510 if test "$have_cos" = 1 -a "$have_floor" = 1; then
26511     echo "$as_me:$LINENO: result: yes" >&5
26512 echo "${ECHO_T}yes" >&6
26513 else
26514     echo "$as_me:$LINENO: result: no" >&5
26515 echo "${ECHO_T}no" >&6
26516     LIBS="$LIBS -lm"
26517     # use different functions to avoid configure caching
26518     have_sin=0
26519     have_ceil=0
26520
26521 for ac_func in sin
26522 do
26523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26524 echo "$as_me:$LINENO: checking for $ac_func" >&5
26525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26526 if eval "test \"\${$as_ac_var+set}\" = set"; then
26527   echo $ECHO_N "(cached) $ECHO_C" >&6
26528 else
26529   cat >conftest.$ac_ext <<_ACEOF
26530 /* confdefs.h.  */
26531 _ACEOF
26532 cat confdefs.h >>conftest.$ac_ext
26533 cat >>conftest.$ac_ext <<_ACEOF
26534 /* end confdefs.h.  */
26535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26537 #define $ac_func innocuous_$ac_func
26538
26539 /* System header to define __stub macros and hopefully few prototypes,
26540     which can conflict with char $ac_func (); below.
26541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26542     <limits.h> exists even on freestanding compilers.  */
26543
26544 #ifdef __STDC__
26545 # include <limits.h>
26546 #else
26547 # include <assert.h>
26548 #endif
26549
26550 #undef $ac_func
26551
26552 /* Override any gcc2 internal prototype to avoid an error.  */
26553 #ifdef __cplusplus
26554 extern "C"
26555 {
26556 #endif
26557 /* We use char because int might match the return type of a gcc2
26558    builtin and then its argument prototype would still apply.  */
26559 char $ac_func ();
26560 /* The GNU C library defines this for functions which it implements
26561     to always fail with ENOSYS.  Some functions are actually named
26562     something starting with __ and the normal name is an alias.  */
26563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26564 choke me
26565 #else
26566 char (*f) () = $ac_func;
26567 #endif
26568 #ifdef __cplusplus
26569 }
26570 #endif
26571
26572 int
26573 main ()
26574 {
26575 return f != $ac_func;
26576   ;
26577   return 0;
26578 }
26579 _ACEOF
26580 rm -f conftest.$ac_objext conftest$ac_exeext
26581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26582   (eval $ac_link) 2>conftest.er1
26583   ac_status=$?
26584   grep -v '^ *+' conftest.er1 >conftest.err
26585   rm -f conftest.er1
26586   cat conftest.err >&5
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); } &&
26589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591   (eval $ac_try) 2>&5
26592   ac_status=$?
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); }; } &&
26595          { ac_try='test -s conftest$ac_exeext'
26596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597   (eval $ac_try) 2>&5
26598   ac_status=$?
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); }; }; then
26601   eval "$as_ac_var=yes"
26602 else
26603   echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26605
26606 eval "$as_ac_var=no"
26607 fi
26608 rm -f conftest.err conftest.$ac_objext \
26609       conftest$ac_exeext conftest.$ac_ext
26610 fi
26611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26613 if test `eval echo '${'$as_ac_var'}'` = yes; then
26614   cat >>confdefs.h <<_ACEOF
26615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26616 _ACEOF
26617  have_sin=1
26618 fi
26619 done
26620
26621
26622 for ac_func in ceil
26623 do
26624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26625 echo "$as_me:$LINENO: checking for $ac_func" >&5
26626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26627 if eval "test \"\${$as_ac_var+set}\" = set"; then
26628   echo $ECHO_N "(cached) $ECHO_C" >&6
26629 else
26630   cat >conftest.$ac_ext <<_ACEOF
26631 /* confdefs.h.  */
26632 _ACEOF
26633 cat confdefs.h >>conftest.$ac_ext
26634 cat >>conftest.$ac_ext <<_ACEOF
26635 /* end confdefs.h.  */
26636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26638 #define $ac_func innocuous_$ac_func
26639
26640 /* System header to define __stub macros and hopefully few prototypes,
26641     which can conflict with char $ac_func (); below.
26642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26643     <limits.h> exists even on freestanding compilers.  */
26644
26645 #ifdef __STDC__
26646 # include <limits.h>
26647 #else
26648 # include <assert.h>
26649 #endif
26650
26651 #undef $ac_func
26652
26653 /* Override any gcc2 internal prototype to avoid an error.  */
26654 #ifdef __cplusplus
26655 extern "C"
26656 {
26657 #endif
26658 /* We use char because int might match the return type of a gcc2
26659    builtin and then its argument prototype would still apply.  */
26660 char $ac_func ();
26661 /* The GNU C library defines this for functions which it implements
26662     to always fail with ENOSYS.  Some functions are actually named
26663     something starting with __ and the normal name is an alias.  */
26664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26665 choke me
26666 #else
26667 char (*f) () = $ac_func;
26668 #endif
26669 #ifdef __cplusplus
26670 }
26671 #endif
26672
26673 int
26674 main ()
26675 {
26676 return f != $ac_func;
26677   ;
26678   return 0;
26679 }
26680 _ACEOF
26681 rm -f conftest.$ac_objext conftest$ac_exeext
26682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26683   (eval $ac_link) 2>conftest.er1
26684   ac_status=$?
26685   grep -v '^ *+' conftest.er1 >conftest.err
26686   rm -f conftest.er1
26687   cat conftest.err >&5
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); } &&
26690          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; } &&
26696          { ac_try='test -s conftest$ac_exeext'
26697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698   (eval $ac_try) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   eval "$as_ac_var=yes"
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 eval "$as_ac_var=no"
26708 fi
26709 rm -f conftest.err conftest.$ac_objext \
26710       conftest$ac_exeext conftest.$ac_ext
26711 fi
26712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26714 if test `eval echo '${'$as_ac_var'}'` = yes; then
26715   cat >>confdefs.h <<_ACEOF
26716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26717 _ACEOF
26718  have_ceil=1
26719 fi
26720 done
26721
26722     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26723 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
26724     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26725         echo "$as_me:$LINENO: result: yes" >&5
26726 echo "${ECHO_T}yes" >&6
26727     else
26728         echo "$as_me:$LINENO: result: no" >&5
26729 echo "${ECHO_T}no" >&6
26730         # not sure we should warn the user, crash, etc.
26731     fi
26732 fi
26733
26734 ac_ext=cc
26735 ac_cpp='$CXXCPP $CPPFLAGS'
26736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26739
26740 if test "wxUSE_UNICODE" = "yes"; then
26741
26742   for wx_func in wcstoull
26743   do
26744     echo "$as_me:$LINENO: checking for $wx_func" >&5
26745 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
26746 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
26747   echo $ECHO_N "(cached) $ECHO_C" >&6
26748 else
26749
26750         cat >conftest.$ac_ext <<_ACEOF
26751
26752             /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757
26758
26759                 $ac_includes_default
26760
26761 int
26762 main ()
26763 {
26764
26765                 #ifndef $wx_func
26766                   &$wx_func;
26767                 #endif
26768
26769
26770   ;
26771   return 0;
26772 }
26773
26774 _ACEOF
26775 rm -f conftest.$ac_objext conftest$ac_exeext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26777   (eval $ac_link) 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); } &&
26784          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786   (eval $ac_try) 2>&5
26787   ac_status=$?
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); }; } &&
26790          { ac_try='test -s conftest$ac_exeext'
26791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792   (eval $ac_try) 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; }; then
26796   eval wx_cv_func_$wx_func=yes
26797 else
26798   echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26800
26801 eval wx_cv_func_$wx_func=no
26802 fi
26803 rm -f conftest.err conftest.$ac_objext \
26804       conftest$ac_exeext conftest.$ac_ext
26805
26806 fi
26807 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
26808 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
26809
26810     if eval test \$wx_cv_func_$wx_func = yes
26811     then
26812       cat >>confdefs.h <<_ACEOF
26813 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
26814 _ACEOF
26815
26816
26817     else
26818       :
26819
26820     fi
26821   done
26822
26823 else
26824
26825   for wx_func in strtoull
26826   do
26827     echo "$as_me:$LINENO: checking for $wx_func" >&5
26828 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
26829 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
26830   echo $ECHO_N "(cached) $ECHO_C" >&6
26831 else
26832
26833         cat >conftest.$ac_ext <<_ACEOF
26834
26835             /* confdefs.h.  */
26836 _ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h.  */
26840
26841
26842                 $ac_includes_default
26843
26844 int
26845 main ()
26846 {
26847
26848                 #ifndef $wx_func
26849                   &$wx_func;
26850                 #endif
26851
26852
26853   ;
26854   return 0;
26855 }
26856
26857 _ACEOF
26858 rm -f conftest.$ac_objext conftest$ac_exeext
26859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26860   (eval $ac_link) 2>conftest.er1
26861   ac_status=$?
26862   grep -v '^ *+' conftest.er1 >conftest.err
26863   rm -f conftest.er1
26864   cat conftest.err >&5
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); } &&
26867          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26869   (eval $ac_try) 2>&5
26870   ac_status=$?
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); }; } &&
26873          { ac_try='test -s conftest$ac_exeext'
26874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875   (eval $ac_try) 2>&5
26876   ac_status=$?
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); }; }; then
26879   eval wx_cv_func_$wx_func=yes
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 eval wx_cv_func_$wx_func=no
26885 fi
26886 rm -f conftest.err conftest.$ac_objext \
26887       conftest$ac_exeext conftest.$ac_ext
26888
26889 fi
26890 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
26891 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
26892
26893     if eval test \$wx_cv_func_$wx_func = yes
26894     then
26895       cat >>confdefs.h <<_ACEOF
26896 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
26897 _ACEOF
26898
26899
26900     else
26901       :
26902
26903     fi
26904   done
26905
26906 fi
26907 ac_ext=c
26908 ac_cpp='$CPP $CPPFLAGS'
26909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26912
26913
26914
26915
26916 if test "$wxUSE_REGEX" != "no"; then
26917     cat >>confdefs.h <<\_ACEOF
26918 #define wxUSE_REGEX 1
26919 _ACEOF
26920
26921
26922     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26923         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
26924 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
26925         wxUSE_REGEX=builtin
26926     fi
26927
26928     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26929                         echo "$as_me:$LINENO: checking for regex.h" >&5
26930 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
26931 if test "${ac_cv_header_regex_h+set}" = set; then
26932   echo $ECHO_N "(cached) $ECHO_C" >&6
26933 else
26934   cat >conftest.$ac_ext <<_ACEOF
26935 /* confdefs.h.  */
26936 _ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h.  */
26940
26941
26942 #include <regex.h>
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946   (eval $ac_compile) 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } &&
26953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955   (eval $ac_try) 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; } &&
26959          { ac_try='test -s conftest.$ac_objext'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; }; then
26965   ac_cv_header_regex_h=yes
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970 ac_cv_header_regex_h=no
26971 fi
26972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26973 fi
26974 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26975 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
26976 if test $ac_cv_header_regex_h = yes; then
26977
26978
26979 for ac_func in regcomp re_search
26980 do
26981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26982 echo "$as_me:$LINENO: checking for $ac_func" >&5
26983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26984 if eval "test \"\${$as_ac_var+set}\" = set"; then
26985   echo $ECHO_N "(cached) $ECHO_C" >&6
26986 else
26987   cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h.  */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h.  */
26993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26995 #define $ac_func innocuous_$ac_func
26996
26997 /* System header to define __stub macros and hopefully few prototypes,
26998     which can conflict with char $ac_func (); below.
26999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27000     <limits.h> exists even on freestanding compilers.  */
27001
27002 #ifdef __STDC__
27003 # include <limits.h>
27004 #else
27005 # include <assert.h>
27006 #endif
27007
27008 #undef $ac_func
27009
27010 /* Override any gcc2 internal prototype to avoid an error.  */
27011 #ifdef __cplusplus
27012 extern "C"
27013 {
27014 #endif
27015 /* We use char because int might match the return type of a gcc2
27016    builtin and then its argument prototype would still apply.  */
27017 char $ac_func ();
27018 /* The GNU C library defines this for functions which it implements
27019     to always fail with ENOSYS.  Some functions are actually named
27020     something starting with __ and the normal name is an alias.  */
27021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27022 choke me
27023 #else
27024 char (*f) () = $ac_func;
27025 #endif
27026 #ifdef __cplusplus
27027 }
27028 #endif
27029
27030 int
27031 main ()
27032 {
27033 return f != $ac_func;
27034   ;
27035   return 0;
27036 }
27037 _ACEOF
27038 rm -f conftest.$ac_objext conftest$ac_exeext
27039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27040   (eval $ac_link) 2>conftest.er1
27041   ac_status=$?
27042   grep -v '^ *+' conftest.er1 >conftest.err
27043   rm -f conftest.er1
27044   cat conftest.err >&5
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); } &&
27047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049   (eval $ac_try) 2>&5
27050   ac_status=$?
27051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); }; } &&
27053          { ac_try='test -s conftest$ac_exeext'
27054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055   (eval $ac_try) 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; }; then
27059   eval "$as_ac_var=yes"
27060 else
27061   echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27063
27064 eval "$as_ac_var=no"
27065 fi
27066 rm -f conftest.err conftest.$ac_objext \
27067       conftest$ac_exeext conftest.$ac_ext
27068 fi
27069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27071 if test `eval echo '${'$as_ac_var'}'` = yes; then
27072   cat >>confdefs.h <<_ACEOF
27073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27074 _ACEOF
27075
27076 fi
27077 done
27078
27079 fi
27080
27081
27082
27083         if test "x$ac_cv_func_regcomp" != "xyes"; then
27084             if test "$wxUSE_REGEX" = "sys" ; then
27085                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
27086 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
27087    { (exit 1); exit 1; }; }
27088             else
27089                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
27090 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
27091                 wxUSE_REGEX=builtin
27092             fi
27093         else
27094                         wxUSE_REGEX=sys
27095                         cat >>confdefs.h <<\_ACEOF
27096 #define WX_NO_REGEX_ADVANCED 1
27097 _ACEOF
27098
27099         fi
27100     fi
27101 fi
27102
27103
27104 ZLIB_LINK=
27105 if test "$wxUSE_ZLIB" != "no" ; then
27106     cat >>confdefs.h <<\_ACEOF
27107 #define wxUSE_ZLIB 1
27108 _ACEOF
27109
27110
27111     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
27112                                                 if test "$USE_DARWIN" = 1; then
27113             system_zlib_h_ok="yes"
27114         else
27115                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
27116 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
27117 if test "${ac_cv_header_zlib_h+set}" = set; then
27118   echo $ECHO_N "(cached) $ECHO_C" >&6
27119 else
27120   if test "$cross_compiling" = yes; then
27121                       unset ac_cv_header_zlib_h
27122
27123 else
27124   cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130
27131                         #include <zlib.h>
27132                         #include <stdio.h>
27133
27134                         int main()
27135                         {
27136                             FILE *f=fopen("conftestval", "w");
27137                             if (!f) exit(1);
27138                             fprintf(f, "%s",
27139                                     ZLIB_VERSION[0] == '1' &&
27140                                     (ZLIB_VERSION[2] > '1' ||
27141                                     (ZLIB_VERSION[2] == '1' &&
27142                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
27143                             exit(0);
27144                         }
27145
27146 _ACEOF
27147 rm -f conftest$ac_exeext
27148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27149   (eval $ac_link) 2>&5
27150   ac_status=$?
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154   (eval $ac_try) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); }; }; then
27158   ac_cv_header_zlib_h=`cat conftestval`
27159 else
27160   echo "$as_me: program exited with status $ac_status" >&5
27161 echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164 ( exit $ac_status )
27165 ac_cv_header_zlib_h=no
27166 fi
27167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27168 fi
27169
27170 fi
27171 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27172 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
27173                                     echo "$as_me:$LINENO: checking for zlib.h" >&5
27174 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
27175 if test "${ac_cv_header_zlib_h+set}" = set; then
27176   echo $ECHO_N "(cached) $ECHO_C" >&6
27177 else
27178   cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184
27185
27186 #include <zlib.h>
27187 _ACEOF
27188 rm -f conftest.$ac_objext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27190   (eval $ac_compile) 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } &&
27197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; } &&
27203          { ac_try='test -s conftest.$ac_objext'
27204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205   (eval $ac_try) 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; }; then
27209   ac_cv_header_zlib_h=yes
27210 else
27211   echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214 ac_cv_header_zlib_h=no
27215 fi
27216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27217 fi
27218 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27219 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
27220
27221
27222
27223             system_zlib_h_ok=$ac_cv_header_zlib_h
27224         fi
27225
27226         if test "$system_zlib_h_ok" = "yes"; then
27227             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
27228 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
27229 if test "${ac_cv_lib_z_deflate+set}" = set; then
27230   echo $ECHO_N "(cached) $ECHO_C" >&6
27231 else
27232   ac_check_lib_save_LIBS=$LIBS
27233 LIBS="-lz  $LIBS"
27234 cat >conftest.$ac_ext <<_ACEOF
27235 /* confdefs.h.  */
27236 _ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h.  */
27240
27241 /* Override any gcc2 internal prototype to avoid an error.  */
27242 #ifdef __cplusplus
27243 extern "C"
27244 #endif
27245 /* We use char because int might match the return type of a gcc2
27246    builtin and then its argument prototype would still apply.  */
27247 char deflate ();
27248 int
27249 main ()
27250 {
27251 deflate ();
27252   ;
27253   return 0;
27254 }
27255 _ACEOF
27256 rm -f conftest.$ac_objext conftest$ac_exeext
27257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27258   (eval $ac_link) 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } &&
27265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27267   (eval $ac_try) 2>&5
27268   ac_status=$?
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); }; } &&
27271          { ac_try='test -s conftest$ac_exeext'
27272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27273   (eval $ac_try) 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); }; }; then
27277   ac_cv_lib_z_deflate=yes
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282 ac_cv_lib_z_deflate=no
27283 fi
27284 rm -f conftest.err conftest.$ac_objext \
27285       conftest$ac_exeext conftest.$ac_ext
27286 LIBS=$ac_check_lib_save_LIBS
27287 fi
27288 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
27289 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
27290 if test $ac_cv_lib_z_deflate = yes; then
27291   ZLIB_LINK=" -lz"
27292 fi
27293
27294         fi
27295
27296         if test "x$ZLIB_LINK" = "x" ; then
27297             if test "$wxUSE_ZLIB" = "sys" ; then
27298                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
27299 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
27300    { (exit 1); exit 1; }; }
27301             else
27302                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
27303 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
27304                 wxUSE_ZLIB=builtin
27305             fi
27306         else
27307                         wxUSE_ZLIB=sys
27308         fi
27309     fi
27310 fi
27311
27312
27313 PNG_LINK=
27314 if test "$wxUSE_LIBPNG" != "no" ; then
27315     cat >>confdefs.h <<\_ACEOF
27316 #define wxUSE_LIBPNG 1
27317 _ACEOF
27318
27319
27320     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
27321         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
27322 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
27323         wxUSE_LIBPNG=sys
27324     fi
27325
27326                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
27327         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
27328 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
27329         wxUSE_LIBPNG=builtin
27330     fi
27331
27332     if test "$wxUSE_MGL" != 1 ; then
27333                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
27334                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
27335 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
27336 if test "${ac_cv_header_png_h+set}" = set; then
27337   echo $ECHO_N "(cached) $ECHO_C" >&6
27338 else
27339   if test "$cross_compiling" = yes; then
27340                       unset ac_cv_header_png_h
27341
27342 else
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349
27350                         #include <png.h>
27351                         #include <stdio.h>
27352
27353                         int main()
27354                         {
27355                             FILE *f=fopen("conftestval", "w");
27356                             if (!f) exit(1);
27357                             fprintf(f, "%s",
27358                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
27359                             exit(0);
27360                         }
27361
27362 _ACEOF
27363 rm -f conftest$ac_exeext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27365   (eval $ac_link) 2>&5
27366   ac_status=$?
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
27374   ac_cv_header_png_h=`cat conftestval`
27375 else
27376   echo "$as_me: program exited with status $ac_status" >&5
27377 echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380 ( exit $ac_status )
27381 ac_cv_header_png_h=no
27382 fi
27383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27384 fi
27385
27386 fi
27387 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27388 echo "${ECHO_T}$ac_cv_header_png_h" >&6
27389             echo "$as_me:$LINENO: checking for png.h" >&5
27390 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
27391 if test "${ac_cv_header_png_h+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   cat >conftest.$ac_ext <<_ACEOF
27395 /* confdefs.h.  */
27396 _ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h.  */
27400
27401
27402 #include <png.h>
27403 _ACEOF
27404 rm -f conftest.$ac_objext
27405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27406   (eval $ac_compile) 2>conftest.er1
27407   ac_status=$?
27408   grep -v '^ *+' conftest.er1 >conftest.err
27409   rm -f conftest.er1
27410   cat conftest.err >&5
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); } &&
27413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415   (eval $ac_try) 2>&5
27416   ac_status=$?
27417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); }; } &&
27419          { ac_try='test -s conftest.$ac_objext'
27420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27421   (eval $ac_try) 2>&5
27422   ac_status=$?
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); }; }; then
27425   ac_cv_header_png_h=yes
27426 else
27427   echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27429
27430 ac_cv_header_png_h=no
27431 fi
27432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27433 fi
27434 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27435 echo "${ECHO_T}$ac_cv_header_png_h" >&6
27436
27437
27438
27439             if test "$ac_cv_header_png_h" = "yes"; then
27440                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
27441 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
27442 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
27443   echo $ECHO_N "(cached) $ECHO_C" >&6
27444 else
27445   ac_check_lib_save_LIBS=$LIBS
27446 LIBS="-lpng -lz -lm $LIBS"
27447 cat >conftest.$ac_ext <<_ACEOF
27448 /* confdefs.h.  */
27449 _ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h.  */
27453
27454 /* Override any gcc2 internal prototype to avoid an error.  */
27455 #ifdef __cplusplus
27456 extern "C"
27457 #endif
27458 /* We use char because int might match the return type of a gcc2
27459    builtin and then its argument prototype would still apply.  */
27460 char png_check_sig ();
27461 int
27462 main ()
27463 {
27464 png_check_sig ();
27465   ;
27466   return 0;
27467 }
27468 _ACEOF
27469 rm -f conftest.$ac_objext conftest$ac_exeext
27470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27471   (eval $ac_link) 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } &&
27478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480   (eval $ac_try) 2>&5
27481   ac_status=$?
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); }; } &&
27484          { ac_try='test -s conftest$ac_exeext'
27485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486   (eval $ac_try) 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; }; then
27490   ac_cv_lib_png_png_check_sig=yes
27491 else
27492   echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495 ac_cv_lib_png_png_check_sig=no
27496 fi
27497 rm -f conftest.err conftest.$ac_objext \
27498       conftest$ac_exeext conftest.$ac_ext
27499 LIBS=$ac_check_lib_save_LIBS
27500 fi
27501 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
27502 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
27503 if test $ac_cv_lib_png_png_check_sig = yes; then
27504   PNG_LINK=" -lpng -lz"
27505 fi
27506
27507             fi
27508
27509             if test "x$PNG_LINK" = "x" ; then
27510                 if test "$wxUSE_LIBPNG" = "sys" ; then
27511                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
27512 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
27513    { (exit 1); exit 1; }; }
27514                 else
27515                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
27516 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
27517                     wxUSE_LIBPNG=builtin
27518                 fi
27519             else
27520                                 wxUSE_LIBPNG=sys
27521             fi
27522         fi
27523     fi
27524
27525     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
27526 fi
27527
27528
27529 JPEG_LINK=
27530 if test "$wxUSE_LIBJPEG" != "no" ; then
27531     cat >>confdefs.h <<\_ACEOF
27532 #define wxUSE_LIBJPEG 1
27533 _ACEOF
27534
27535
27536     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
27537         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
27538 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
27539         wxUSE_LIBJPEG=sys
27540     fi
27541
27542     if test "$wxUSE_MGL" != 1 ; then
27543                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
27544                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
27545 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
27546             if test "${ac_cv_header_jpeglib_h+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555
27556                         #undef HAVE_STDLIB_H
27557                         #include <stdio.h>
27558                         #include <jpeglib.h>
27559
27560 int
27561 main ()
27562 {
27563
27564
27565   ;
27566   return 0;
27567 }
27568 _ACEOF
27569 rm -f conftest.$ac_objext
27570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27571   (eval $ac_compile) 2>conftest.er1
27572   ac_status=$?
27573   grep -v '^ *+' conftest.er1 >conftest.err
27574   rm -f conftest.er1
27575   cat conftest.err >&5
27576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577   (exit $ac_status); } &&
27578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580   (eval $ac_try) 2>&5
27581   ac_status=$?
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); }; } &&
27584          { ac_try='test -s conftest.$ac_objext'
27585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586   (eval $ac_try) 2>&5
27587   ac_status=$?
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); }; }; then
27590   ac_cv_header_jpeglib_h=yes
27591 else
27592   echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27594
27595 ac_cv_header_jpeglib_h=no
27596
27597 fi
27598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27599
27600 fi
27601
27602             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
27603 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
27604
27605             if test "$ac_cv_header_jpeglib_h" = "yes"; then
27606                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
27607 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
27608 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
27609   echo $ECHO_N "(cached) $ECHO_C" >&6
27610 else
27611   ac_check_lib_save_LIBS=$LIBS
27612 LIBS="-ljpeg  $LIBS"
27613 cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619
27620 /* Override any gcc2 internal prototype to avoid an error.  */
27621 #ifdef __cplusplus
27622 extern "C"
27623 #endif
27624 /* We use char because int might match the return type of a gcc2
27625    builtin and then its argument prototype would still apply.  */
27626 char jpeg_read_header ();
27627 int
27628 main ()
27629 {
27630 jpeg_read_header ();
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 rm -f conftest.$ac_objext conftest$ac_exeext
27636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27637   (eval $ac_link) 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } &&
27644          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27646   (eval $ac_try) 2>&5
27647   ac_status=$?
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); }; } &&
27650          { ac_try='test -s conftest$ac_exeext'
27651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652   (eval $ac_try) 2>&5
27653   ac_status=$?
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); }; }; then
27656   ac_cv_lib_jpeg_jpeg_read_header=yes
27657 else
27658   echo "$as_me: failed program was:" >&5
27659 sed 's/^/| /' conftest.$ac_ext >&5
27660
27661 ac_cv_lib_jpeg_jpeg_read_header=no
27662 fi
27663 rm -f conftest.err conftest.$ac_objext \
27664       conftest$ac_exeext conftest.$ac_ext
27665 LIBS=$ac_check_lib_save_LIBS
27666 fi
27667 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27668 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
27669 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27670   JPEG_LINK=" -ljpeg"
27671 fi
27672
27673             fi
27674
27675             if test "x$JPEG_LINK" = "x" ; then
27676                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27677                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27678 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27679    { (exit 1); exit 1; }; }
27680                 else
27681                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27682 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27683                     wxUSE_LIBJPEG=builtin
27684                 fi
27685             else
27686                                 wxUSE_LIBJPEG=sys
27687
27688                 if test "$wxUSE_MSW" = 1; then
27689                                                                                                     echo "$as_me:$LINENO: checking for boolean" >&5
27690 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27691 if test "${ac_cv_type_boolean+set}" = set; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694   cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700 #include <windows.h>
27701
27702 int
27703 main ()
27704 {
27705 if ((boolean *) 0)
27706   return 0;
27707 if (sizeof (boolean))
27708   return 0;
27709   ;
27710   return 0;
27711 }
27712 _ACEOF
27713 rm -f conftest.$ac_objext
27714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27715   (eval $ac_compile) 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } &&
27722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724   (eval $ac_try) 2>&5
27725   ac_status=$?
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); }; } &&
27728          { ac_try='test -s conftest.$ac_objext'
27729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730   (eval $ac_try) 2>&5
27731   ac_status=$?
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); }; }; then
27734   ac_cv_type_boolean=yes
27735 else
27736   echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739 ac_cv_type_boolean=no
27740 fi
27741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27742 fi
27743 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27744 echo "${ECHO_T}$ac_cv_type_boolean" >&6
27745 if test $ac_cv_type_boolean = yes; then
27746
27747 cat >>confdefs.h <<_ACEOF
27748 #define HAVE_BOOLEAN 1
27749 _ACEOF
27750
27751
27752                             echo "$as_me:$LINENO: checking for boolean" >&5
27753 echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27754 if test "${ac_cv_type_boolean+set}" = set; then
27755   echo $ECHO_N "(cached) $ECHO_C" >&6
27756 else
27757   cat >conftest.$ac_ext <<_ACEOF
27758 /* confdefs.h.  */
27759 _ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h.  */
27763
27764                                     #undef HAVE_BOOLEAN
27765                                     #include <stdio.h>
27766                                     #include <jpeglib.h>
27767
27768
27769 int
27770 main ()
27771 {
27772 if ((boolean *) 0)
27773   return 0;
27774 if (sizeof (boolean))
27775   return 0;
27776   ;
27777   return 0;
27778 }
27779 _ACEOF
27780 rm -f conftest.$ac_objext
27781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27782   (eval $ac_compile) 2>conftest.er1
27783   ac_status=$?
27784   grep -v '^ *+' conftest.er1 >conftest.err
27785   rm -f conftest.er1
27786   cat conftest.err >&5
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); } &&
27789          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791   (eval $ac_try) 2>&5
27792   ac_status=$?
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); }; } &&
27795          { ac_try='test -s conftest.$ac_objext'
27796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797   (eval $ac_try) 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; }; then
27801   ac_cv_type_boolean=yes
27802 else
27803   echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27805
27806 ac_cv_type_boolean=no
27807 fi
27808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27809 fi
27810 echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27811 echo "${ECHO_T}$ac_cv_type_boolean" >&6
27812
27813 echo "$as_me:$LINENO: checking size of boolean" >&5
27814 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6
27815 if test "${ac_cv_sizeof_boolean+set}" = set; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   if test "$ac_cv_type_boolean" = yes; then
27819   # The cast to unsigned long works around a bug in the HP C Compiler
27820   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27821   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27822   # This bug is HP SR number 8606223364.
27823   if test "$cross_compiling" = yes; then
27824   # Depending upon the size, compute the lo and hi bounds.
27825 cat >conftest.$ac_ext <<_ACEOF
27826 /* confdefs.h.  */
27827 _ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h.  */
27831
27832                                     #undef HAVE_BOOLEAN
27833                                     #include <stdio.h>
27834                                     #include <jpeglib.h>
27835
27836
27837 int
27838 main ()
27839 {
27840 static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= 0)];
27841 test_array [0] = 0
27842
27843   ;
27844   return 0;
27845 }
27846 _ACEOF
27847 rm -f conftest.$ac_objext
27848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27849   (eval $ac_compile) 2>conftest.er1
27850   ac_status=$?
27851   grep -v '^ *+' conftest.er1 >conftest.err
27852   rm -f conftest.er1
27853   cat conftest.err >&5
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); } &&
27856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858   (eval $ac_try) 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; } &&
27862          { ac_try='test -s conftest.$ac_objext'
27863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864   (eval $ac_try) 2>&5
27865   ac_status=$?
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); }; }; then
27868   ac_lo=0 ac_mid=0
27869   while :; do
27870     cat >conftest.$ac_ext <<_ACEOF
27871 /* confdefs.h.  */
27872 _ACEOF
27873 cat confdefs.h >>conftest.$ac_ext
27874 cat >>conftest.$ac_ext <<_ACEOF
27875 /* end confdefs.h.  */
27876
27877                                     #undef HAVE_BOOLEAN
27878                                     #include <stdio.h>
27879                                     #include <jpeglib.h>
27880
27881
27882 int
27883 main ()
27884 {
27885 static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
27886 test_array [0] = 0
27887
27888   ;
27889   return 0;
27890 }
27891 _ACEOF
27892 rm -f conftest.$ac_objext
27893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27894   (eval $ac_compile) 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } &&
27901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903   (eval $ac_try) 2>&5
27904   ac_status=$?
27905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906   (exit $ac_status); }; } &&
27907          { ac_try='test -s conftest.$ac_objext'
27908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909   (eval $ac_try) 2>&5
27910   ac_status=$?
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); }; }; then
27913   ac_hi=$ac_mid; break
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918 ac_lo=`expr $ac_mid + 1`
27919                     if test $ac_lo -le $ac_mid; then
27920                       ac_lo= ac_hi=
27921                       break
27922                     fi
27923                     ac_mid=`expr 2 '*' $ac_mid + 1`
27924 fi
27925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27926   done
27927 else
27928   echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27930
27931 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937
27938                                     #undef HAVE_BOOLEAN
27939                                     #include <stdio.h>
27940                                     #include <jpeglib.h>
27941
27942
27943 int
27944 main ()
27945 {
27946 static int test_array [1 - 2 * !(((long) (sizeof (boolean))) < 0)];
27947 test_array [0] = 0
27948
27949   ;
27950   return 0;
27951 }
27952 _ACEOF
27953 rm -f conftest.$ac_objext
27954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27955   (eval $ac_compile) 2>conftest.er1
27956   ac_status=$?
27957   grep -v '^ *+' conftest.er1 >conftest.err
27958   rm -f conftest.er1
27959   cat conftest.err >&5
27960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); } &&
27962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964   (eval $ac_try) 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; } &&
27968          { ac_try='test -s conftest.$ac_objext'
27969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970   (eval $ac_try) 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; }; then
27974   ac_hi=-1 ac_mid=-1
27975   while :; do
27976     cat >conftest.$ac_ext <<_ACEOF
27977 /* confdefs.h.  */
27978 _ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h.  */
27982
27983                                     #undef HAVE_BOOLEAN
27984                                     #include <stdio.h>
27985                                     #include <jpeglib.h>
27986
27987
27988 int
27989 main ()
27990 {
27991 static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= $ac_mid)];
27992 test_array [0] = 0
27993
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28000   (eval $ac_compile) 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } &&
28007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28009   (eval $ac_try) 2>&5
28010   ac_status=$?
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); }; } &&
28013          { ac_try='test -s conftest.$ac_objext'
28014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28015   (eval $ac_try) 2>&5
28016   ac_status=$?
28017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); }; }; then
28019   ac_lo=$ac_mid; break
28020 else
28021   echo "$as_me: failed program was:" >&5
28022 sed 's/^/| /' conftest.$ac_ext >&5
28023
28024 ac_hi=`expr '(' $ac_mid ')' - 1`
28025                        if test $ac_mid -le $ac_hi; then
28026                          ac_lo= ac_hi=
28027                          break
28028                        fi
28029                        ac_mid=`expr 2 '*' $ac_mid`
28030 fi
28031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28032   done
28033 else
28034   echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28036
28037 ac_lo= ac_hi=
28038 fi
28039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28040 fi
28041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28042 # Binary search between lo and hi bounds.
28043 while test "x$ac_lo" != "x$ac_hi"; do
28044   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28045   cat >conftest.$ac_ext <<_ACEOF
28046 /* confdefs.h.  */
28047 _ACEOF
28048 cat confdefs.h >>conftest.$ac_ext
28049 cat >>conftest.$ac_ext <<_ACEOF
28050 /* end confdefs.h.  */
28051
28052                                     #undef HAVE_BOOLEAN
28053                                     #include <stdio.h>
28054                                     #include <jpeglib.h>
28055
28056
28057 int
28058 main ()
28059 {
28060 static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
28061 test_array [0] = 0
28062
28063   ;
28064   return 0;
28065 }
28066 _ACEOF
28067 rm -f conftest.$ac_objext
28068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28069   (eval $ac_compile) 2>conftest.er1
28070   ac_status=$?
28071   grep -v '^ *+' conftest.er1 >conftest.err
28072   rm -f conftest.er1
28073   cat conftest.err >&5
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); } &&
28076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078   (eval $ac_try) 2>&5
28079   ac_status=$?
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); }; } &&
28082          { ac_try='test -s conftest.$ac_objext'
28083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084   (eval $ac_try) 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; }; then
28088   ac_hi=$ac_mid
28089 else
28090   echo "$as_me: failed program was:" >&5
28091 sed 's/^/| /' conftest.$ac_ext >&5
28092
28093 ac_lo=`expr '(' $ac_mid ')' + 1`
28094 fi
28095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28096 done
28097 case $ac_lo in
28098 ?*) ac_cv_sizeof_boolean=$ac_lo;;
28099 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
28100 See \`config.log' for more details." >&5
28101 echo "$as_me: error: cannot compute sizeof (boolean), 77
28102 See \`config.log' for more details." >&2;}
28103    { (exit 1); exit 1; }; } ;;
28104 esac
28105 else
28106   if test "$cross_compiling" = yes; then
28107   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28108 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28109    { (exit 1); exit 1; }; }
28110 else
28111   cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117
28118                                     #undef HAVE_BOOLEAN
28119                                     #include <stdio.h>
28120                                     #include <jpeglib.h>
28121
28122
28123 long longval () { return (long) (sizeof (boolean)); }
28124 unsigned long ulongval () { return (long) (sizeof (boolean)); }
28125 #include <stdio.h>
28126 #include <stdlib.h>
28127 int
28128 main ()
28129 {
28130
28131   FILE *f = fopen ("conftest.val", "w");
28132   if (! f)
28133     exit (1);
28134   if (((long) (sizeof (boolean))) < 0)
28135     {
28136       long i = longval ();
28137       if (i != ((long) (sizeof (boolean))))
28138         exit (1);
28139       fprintf (f, "%ld\n", i);
28140     }
28141   else
28142     {
28143       unsigned long i = ulongval ();
28144       if (i != ((long) (sizeof (boolean))))
28145         exit (1);
28146       fprintf (f, "%lu\n", i);
28147     }
28148   exit (ferror (f) || fclose (f) != 0);
28149
28150   ;
28151   return 0;
28152 }
28153 _ACEOF
28154 rm -f conftest$ac_exeext
28155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28156   (eval $ac_link) 2>&5
28157   ac_status=$?
28158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161   (eval $ac_try) 2>&5
28162   ac_status=$?
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); }; }; then
28165   ac_cv_sizeof_boolean=`cat conftest.val`
28166 else
28167   echo "$as_me: program exited with status $ac_status" >&5
28168 echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28170
28171 ( exit $ac_status )
28172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
28173 See \`config.log' for more details." >&5
28174 echo "$as_me: error: cannot compute sizeof (boolean), 77
28175 See \`config.log' for more details." >&2;}
28176    { (exit 1); exit 1; }; }
28177 fi
28178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28179 fi
28180 fi
28181 rm -f conftest.val
28182 else
28183   ac_cv_sizeof_boolean=0
28184 fi
28185 fi
28186 echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
28187 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6
28188 cat >>confdefs.h <<_ACEOF
28189 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
28190 _ACEOF
28191
28192
28193                             cat >>confdefs.h <<_ACEOF
28194 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
28195 _ACEOF
28196
28197
28198 fi
28199
28200                 fi
28201             fi
28202         fi
28203     fi
28204 fi
28205
28206
28207 TIFF_LINK=
28208 TIFF_PREREQ_LINKS=-lm
28209 if test "$wxUSE_LIBTIFF" != "no" ; then
28210     cat >>confdefs.h <<\_ACEOF
28211 #define wxUSE_LIBTIFF 1
28212 _ACEOF
28213
28214
28215     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
28216                         if test "$wxUSE_LIBJPEG" = "sys"; then
28217             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
28218         fi
28219         if test "$wxUSE_ZLIB" = "sys"; then
28220             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
28221         fi
28222         echo "$as_me:$LINENO: checking for tiffio.h" >&5
28223 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
28224 if test "${ac_cv_header_tiffio_h+set}" = set; then
28225   echo $ECHO_N "(cached) $ECHO_C" >&6
28226 else
28227   cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h.  */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h.  */
28233
28234
28235
28236 #include <tiffio.h>
28237 _ACEOF
28238 rm -f conftest.$ac_objext
28239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28240   (eval $ac_compile) 2>conftest.er1
28241   ac_status=$?
28242   grep -v '^ *+' conftest.er1 >conftest.err
28243   rm -f conftest.er1
28244   cat conftest.err >&5
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); } &&
28247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249   (eval $ac_try) 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; } &&
28253          { ac_try='test -s conftest.$ac_objext'
28254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255   (eval $ac_try) 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; }; then
28259   ac_cv_header_tiffio_h=yes
28260 else
28261   echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28263
28264 ac_cv_header_tiffio_h=no
28265 fi
28266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28267 fi
28268 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
28269 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
28270 if test $ac_cv_header_tiffio_h = yes; then
28271
28272                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
28273 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
28274 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
28275   echo $ECHO_N "(cached) $ECHO_C" >&6
28276 else
28277   ac_check_lib_save_LIBS=$LIBS
28278 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
28279 cat >conftest.$ac_ext <<_ACEOF
28280 /* confdefs.h.  */
28281 _ACEOF
28282 cat confdefs.h >>conftest.$ac_ext
28283 cat >>conftest.$ac_ext <<_ACEOF
28284 /* end confdefs.h.  */
28285
28286 /* Override any gcc2 internal prototype to avoid an error.  */
28287 #ifdef __cplusplus
28288 extern "C"
28289 #endif
28290 /* We use char because int might match the return type of a gcc2
28291    builtin and then its argument prototype would still apply.  */
28292 char TIFFError ();
28293 int
28294 main ()
28295 {
28296 TIFFError ();
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest.$ac_objext conftest$ac_exeext
28302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28303   (eval $ac_link) 2>conftest.er1
28304   ac_status=$?
28305   grep -v '^ *+' conftest.er1 >conftest.err
28306   rm -f conftest.er1
28307   cat conftest.err >&5
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); } &&
28310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312   (eval $ac_try) 2>&5
28313   ac_status=$?
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); }; } &&
28316          { ac_try='test -s conftest$ac_exeext'
28317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28318   (eval $ac_try) 2>&5
28319   ac_status=$?
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); }; }; then
28322   ac_cv_lib_tiff_TIFFError=yes
28323 else
28324   echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28326
28327 ac_cv_lib_tiff_TIFFError=no
28328 fi
28329 rm -f conftest.err conftest.$ac_objext \
28330       conftest$ac_exeext conftest.$ac_ext
28331 LIBS=$ac_check_lib_save_LIBS
28332 fi
28333 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
28334 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
28335 if test $ac_cv_lib_tiff_TIFFError = yes; then
28336   TIFF_LINK=" -ltiff"
28337 fi
28338
28339
28340 fi
28341
28342
28343
28344         if test "x$TIFF_LINK" = "x" ; then
28345             if test "$wxUSE_LIBTIFF" = "sys" ; then
28346                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
28347 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
28348    { (exit 1); exit 1; }; }
28349             else
28350                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
28351 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
28352                 wxUSE_LIBTIFF=builtin
28353             fi
28354         else
28355                         wxUSE_LIBTIFF=sys
28356         fi
28357     fi
28358 fi
28359
28360
28361 if test "$wxUSE_WCHAR_T" != "yes"; then
28362     if test "$wxUSE_EXPAT" != "no"; then
28363         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
28364 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
28365         wxUSE_EXPAT=no
28366     fi
28367     if test "$wxUSE_XML" != "no"; then
28368         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
28369 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
28370         wxUSE_XML=no
28371     fi
28372 fi
28373
28374 if test "$wxUSE_EXPAT" != "no"; then
28375     wxUSE_XML=yes
28376     cat >>confdefs.h <<\_ACEOF
28377 #define wxUSE_EXPAT 1
28378 _ACEOF
28379
28380     cat >>confdefs.h <<\_ACEOF
28381 #define wxUSE_XML 1
28382 _ACEOF
28383
28384
28385     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
28386         echo "$as_me:$LINENO: checking for expat.h" >&5
28387 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
28388 if test "${ac_cv_header_expat_h+set}" = set; then
28389   echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28391   cat >conftest.$ac_ext <<_ACEOF
28392 /* confdefs.h.  */
28393 _ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h.  */
28397
28398
28399 #include <expat.h>
28400 _ACEOF
28401 rm -f conftest.$ac_objext
28402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28403   (eval $ac_compile) 2>conftest.er1
28404   ac_status=$?
28405   grep -v '^ *+' conftest.er1 >conftest.err
28406   rm -f conftest.er1
28407   cat conftest.err >&5
28408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409   (exit $ac_status); } &&
28410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412   (eval $ac_try) 2>&5
28413   ac_status=$?
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); }; } &&
28416          { ac_try='test -s conftest.$ac_objext'
28417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418   (eval $ac_try) 2>&5
28419   ac_status=$?
28420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421   (exit $ac_status); }; }; then
28422   ac_cv_header_expat_h=yes
28423 else
28424   echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427 ac_cv_header_expat_h=no
28428 fi
28429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28430 fi
28431 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
28432 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
28433 if test $ac_cv_header_expat_h = yes; then
28434   found_expat_h=1
28435 fi
28436
28437
28438         if test "x$found_expat_h" = "x1"; then
28439                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
28440 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
28441 if test "${wx_cv_expat_is_not_broken+set}" = set; then
28442   echo $ECHO_N "(cached) $ECHO_C" >&6
28443 else
28444
28445                 ac_ext=cc
28446 ac_cpp='$CXXCPP $CPPFLAGS'
28447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28450
28451                 cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h.  */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h.  */
28457 #include <expat.h>
28458 int
28459 main ()
28460 {
28461
28462   ;
28463   return 0;
28464 }
28465 _ACEOF
28466 rm -f conftest.$ac_objext
28467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28468   (eval $ac_compile) 2>conftest.er1
28469   ac_status=$?
28470   grep -v '^ *+' conftest.er1 >conftest.err
28471   rm -f conftest.er1
28472   cat conftest.err >&5
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); } &&
28475          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
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); }; } &&
28481          { ac_try='test -s conftest.$ac_objext'
28482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483   (eval $ac_try) 2>&5
28484   ac_status=$?
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); }; }; then
28487   wx_cv_expat_is_not_broken=yes
28488 else
28489   echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28491
28492 wx_cv_expat_is_not_broken=no
28493
28494 fi
28495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28496                 ac_ext=c
28497 ac_cpp='$CPP $CPPFLAGS'
28498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28501
28502
28503
28504 fi
28505 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
28506 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
28507             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
28508                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
28509 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
28510 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
28511   echo $ECHO_N "(cached) $ECHO_C" >&6
28512 else
28513   ac_check_lib_save_LIBS=$LIBS
28514 LIBS="-lexpat  $LIBS"
28515 cat >conftest.$ac_ext <<_ACEOF
28516 /* confdefs.h.  */
28517 _ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h.  */
28521
28522 /* Override any gcc2 internal prototype to avoid an error.  */
28523 #ifdef __cplusplus
28524 extern "C"
28525 #endif
28526 /* We use char because int might match the return type of a gcc2
28527    builtin and then its argument prototype would still apply.  */
28528 char XML_ParserCreate ();
28529 int
28530 main ()
28531 {
28532 XML_ParserCreate ();
28533   ;
28534   return 0;
28535 }
28536 _ACEOF
28537 rm -f conftest.$ac_objext conftest$ac_exeext
28538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28539   (eval $ac_link) 2>conftest.er1
28540   ac_status=$?
28541   grep -v '^ *+' conftest.er1 >conftest.err
28542   rm -f conftest.er1
28543   cat conftest.err >&5
28544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545   (exit $ac_status); } &&
28546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28548   (eval $ac_try) 2>&5
28549   ac_status=$?
28550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551   (exit $ac_status); }; } &&
28552          { ac_try='test -s conftest$ac_exeext'
28553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554   (eval $ac_try) 2>&5
28555   ac_status=$?
28556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557   (exit $ac_status); }; }; then
28558   ac_cv_lib_expat_XML_ParserCreate=yes
28559 else
28560   echo "$as_me: failed program was:" >&5
28561 sed 's/^/| /' conftest.$ac_ext >&5
28562
28563 ac_cv_lib_expat_XML_ParserCreate=no
28564 fi
28565 rm -f conftest.err conftest.$ac_objext \
28566       conftest$ac_exeext conftest.$ac_ext
28567 LIBS=$ac_check_lib_save_LIBS
28568 fi
28569 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
28570 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
28571 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
28572   EXPAT_LINK=" -lexpat"
28573 fi
28574
28575             fi
28576         fi
28577         if test "x$EXPAT_LINK" = "x" ; then
28578             if test "$wxUSE_EXPAT" = "sys" ; then
28579                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
28580 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
28581    { (exit 1); exit 1; }; }
28582             else
28583                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
28584 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
28585                 wxUSE_EXPAT=builtin
28586             fi
28587         else
28588                         wxUSE_EXPAT=sys
28589         fi
28590     fi
28591     if test "$wxUSE_EXPAT" = "builtin" ; then
28592
28593
28594 subdirs="$subdirs src/expat"
28595
28596     fi
28597 fi
28598
28599
28600
28601 if test "$wxUSE_LIBMSPACK" != "no"; then
28602     echo "$as_me:$LINENO: checking for mspack.h" >&5
28603 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
28604 if test "${ac_cv_header_mspack_h+set}" = set; then
28605   echo $ECHO_N "(cached) $ECHO_C" >&6
28606 else
28607   cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h.  */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h.  */
28613
28614
28615 #include <mspack.h>
28616 _ACEOF
28617 rm -f conftest.$ac_objext
28618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28619   (eval $ac_compile) 2>conftest.er1
28620   ac_status=$?
28621   grep -v '^ *+' conftest.er1 >conftest.err
28622   rm -f conftest.er1
28623   cat conftest.err >&5
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); } &&
28626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28628   (eval $ac_try) 2>&5
28629   ac_status=$?
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); }; } &&
28632          { ac_try='test -s conftest.$ac_objext'
28633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634   (eval $ac_try) 2>&5
28635   ac_status=$?
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); }; }; then
28638   ac_cv_header_mspack_h=yes
28639 else
28640   echo "$as_me: failed program was:" >&5
28641 sed 's/^/| /' conftest.$ac_ext >&5
28642
28643 ac_cv_header_mspack_h=no
28644 fi
28645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28646 fi
28647 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
28648 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
28649 if test $ac_cv_header_mspack_h = yes; then
28650   found_mspack_h=1
28651 fi
28652
28653
28654     if test "x$found_mspack_h" = "x1"; then
28655         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
28656 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
28657 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   ac_check_lib_save_LIBS=$LIBS
28661 LIBS="-lmspack  $LIBS"
28662 cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h.  */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h.  */
28668
28669 /* Override any gcc2 internal prototype to avoid an error.  */
28670 #ifdef __cplusplus
28671 extern "C"
28672 #endif
28673 /* We use char because int might match the return type of a gcc2
28674    builtin and then its argument prototype would still apply.  */
28675 char mspack_create_chm_decompressor ();
28676 int
28677 main ()
28678 {
28679 mspack_create_chm_decompressor ();
28680   ;
28681   return 0;
28682 }
28683 _ACEOF
28684 rm -f conftest.$ac_objext conftest$ac_exeext
28685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28686   (eval $ac_link) 2>conftest.er1
28687   ac_status=$?
28688   grep -v '^ *+' conftest.er1 >conftest.err
28689   rm -f conftest.er1
28690   cat conftest.err >&5
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); } &&
28693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28695   (eval $ac_try) 2>&5
28696   ac_status=$?
28697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698   (exit $ac_status); }; } &&
28699          { ac_try='test -s conftest$ac_exeext'
28700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701   (eval $ac_try) 2>&5
28702   ac_status=$?
28703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704   (exit $ac_status); }; }; then
28705   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28711 fi
28712 rm -f conftest.err conftest.$ac_objext \
28713       conftest$ac_exeext conftest.$ac_ext
28714 LIBS=$ac_check_lib_save_LIBS
28715 fi
28716 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28717 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
28718 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28719   MSPACK_LINK=" -lmspack"
28720 fi
28721
28722     fi
28723     if test "x$MSPACK_LINK" = "x" ; then
28724         wxUSE_LIBMSPACK=no
28725     fi
28726 fi
28727
28728 if test "$wxUSE_LIBMSPACK" != "no"; then
28729     cat >>confdefs.h <<\_ACEOF
28730 #define wxUSE_LIBMSPACK 1
28731 _ACEOF
28732
28733 fi
28734
28735
28736
28737 AFMINSTALL=
28738 WIN32INSTALL=
28739
28740 TOOLKIT=
28741 TOOLKIT_INCLUDE=
28742 WIDGET_SET=
28743
28744 if test "$USE_WIN32" = 1 ; then
28745     echo "$as_me:$LINENO: checking for w32api.h" >&5
28746 echo $ECHO_N "checking for w32api.h... $ECHO_C" >&6
28747 if test "${ac_cv_header_w32api_h+set}" = set; then
28748   echo $ECHO_N "(cached) $ECHO_C" >&6
28749 else
28750   cat >conftest.$ac_ext <<_ACEOF
28751 /* confdefs.h.  */
28752 _ACEOF
28753 cat confdefs.h >>conftest.$ac_ext
28754 cat >>conftest.$ac_ext <<_ACEOF
28755 /* end confdefs.h.  */
28756
28757
28758 #include <w32api.h>
28759 _ACEOF
28760 rm -f conftest.$ac_objext
28761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28762   (eval $ac_compile) 2>conftest.er1
28763   ac_status=$?
28764   grep -v '^ *+' conftest.er1 >conftest.err
28765   rm -f conftest.er1
28766   cat conftest.err >&5
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); } &&
28769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771   (eval $ac_try) 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; } &&
28775          { ac_try='test -s conftest.$ac_objext'
28776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28777   (eval $ac_try) 2>&5
28778   ac_status=$?
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); }; }; then
28781   ac_cv_header_w32api_h=yes
28782 else
28783   echo "$as_me: failed program was:" >&5
28784 sed 's/^/| /' conftest.$ac_ext >&5
28785
28786 ac_cv_header_w32api_h=no
28787 fi
28788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28789 fi
28790 echo "$as_me:$LINENO: result: $ac_cv_header_w32api_h" >&5
28791 echo "${ECHO_T}$ac_cv_header_w32api_h" >&6
28792
28793
28794     echo "$as_me:$LINENO: checking for windows.h" >&5
28795 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
28796 if test "${ac_cv_header_windows_h+set}" = set; then
28797   echo $ECHO_N "(cached) $ECHO_C" >&6
28798 else
28799   cat >conftest.$ac_ext <<_ACEOF
28800 /* confdefs.h.  */
28801 _ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h.  */
28805
28806
28807 #include <windows.h>
28808 _ACEOF
28809 rm -f conftest.$ac_objext
28810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28811   (eval $ac_compile) 2>conftest.er1
28812   ac_status=$?
28813   grep -v '^ *+' conftest.er1 >conftest.err
28814   rm -f conftest.er1
28815   cat conftest.err >&5
28816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817   (exit $ac_status); } &&
28818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820   (eval $ac_try) 2>&5
28821   ac_status=$?
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); }; } &&
28824          { ac_try='test -s conftest.$ac_objext'
28825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826   (eval $ac_try) 2>&5
28827   ac_status=$?
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); }; }; then
28830   ac_cv_header_windows_h=yes
28831 else
28832   echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ac_cv_header_windows_h=no
28836 fi
28837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28838 fi
28839 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28840 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
28841 if test $ac_cv_header_windows_h = yes; then
28842   :
28843 else
28844
28845         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28846 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28847    { (exit 1); exit 1; }; }
28848
28849 fi
28850
28851
28852
28853             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28854
28855     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28856         LIBS="$LIBS -loleacc"
28857     fi
28858
28859     case "${host}" in
28860         *-*-cygwin* )
28861                         LIBS="$LIBS -lkernel32 -luser32"
28862     esac
28863
28864         if test "$wxUSE_ODBC" = "sys" ; then
28865         wxUSE_ODBC = "yes"
28866     fi
28867     if test "$wxUSE_ODBC" = "yes" ; then
28868         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
28869         cat >>confdefs.h <<\_ACEOF
28870 #define wxUSE_ODBC 1
28871 _ACEOF
28872
28873     fi
28874
28875         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28876     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28877
28878                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28879
28880         WIN32INSTALL=win32install
28881
28882         echo "$as_me:$LINENO: checking for pbt.h" >&5
28883 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6
28884 if test "${ac_cv_header_pbt_h+set}" = set; then
28885   echo $ECHO_N "(cached) $ECHO_C" >&6
28886 else
28887   cat >conftest.$ac_ext <<_ACEOF
28888 /* confdefs.h.  */
28889 _ACEOF
28890 cat confdefs.h >>conftest.$ac_ext
28891 cat >>conftest.$ac_ext <<_ACEOF
28892 /* end confdefs.h.  */
28893
28894
28895 #include <pbt.h>
28896 _ACEOF
28897 rm -f conftest.$ac_objext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28899   (eval $ac_compile) 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } &&
28906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908   (eval $ac_try) 2>&5
28909   ac_status=$?
28910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911   (exit $ac_status); }; } &&
28912          { ac_try='test -s conftest.$ac_objext'
28913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914   (eval $ac_try) 2>&5
28915   ac_status=$?
28916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); }; }; then
28918   ac_cv_header_pbt_h=yes
28919 else
28920   echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923 ac_cv_header_pbt_h=no
28924 fi
28925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28926 fi
28927 echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28928 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6
28929 if test $ac_cv_header_pbt_h = yes; then
28930   :
28931 else
28932   cat >>confdefs.h <<\_ACEOF
28933 #define NEED_PBT_H 1
28934 _ACEOF
28935
28936 fi
28937
28938
28939 fi
28940
28941 if test "$wxUSE_GUI" = "yes"; then
28942     USE_GUI=1
28943
28944     GUI_TK_LIBRARY=
28945
28946     WXGTK12=
28947     WXGTK127=
28948     WXGTK20=
28949     WXGPE=
28950
28951     if test "$wxUSE_COCOA" = 1 ; then
28952         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28953             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28954 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28955             wxUSE_PRINTING_ARCHITECTURE=no
28956         fi
28957         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28958             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28959 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28960             wxUSE_DRAG_AND_DROP=no
28961         fi
28962         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28963             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28964 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28965             wxUSE_DRAGIMAGE=no
28966         fi
28967     fi
28968
28969     if test "$wxUSE_MSW" = 1 ; then
28970         TOOLKIT=MSW
28971         GUIDIST=MSW_DIST
28972
28973                 case "${host}" in
28974             *-*-mingw32* )
28975                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28976         esac
28977     fi
28978
28979     if test "$wxUSE_GTK" = 1; then
28980                 echo "$as_me:$LINENO: checking for GTK+ version" >&5
28981 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
28982
28983         gtk_version_cached=1
28984         if test "${wx_cv_lib_gtk+set}" = set; then
28985   echo $ECHO_N "(cached) $ECHO_C" >&6
28986 else
28987
28988                                                 gtk_version_cached=0
28989                 echo "$as_me:$LINENO: result: " >&5
28990 echo "${ECHO_T}" >&6
28991
28992                                                 GTK_MODULES=
28993                 if test "$wxUSE_THREADS" = "yes"; then
28994                     GTK_MODULES=gthread
28995                 fi
28996
28997                                 wx_cv_lib_gtk=
28998                 if test "x$wxGTK_VERSION" != "x1"
28999                 then
29000                                                                                 case "${host}" in
29001                         *-*-solaris2* )
29002                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29003                                 enable_gtktest=no
29004                             fi
29005                     esac
29006
29007                     # Check whether --enable-gtktest or --disable-gtktest was given.
29008 if test "${enable_gtktest+set}" = set; then
29009   enableval="$enable_gtktest"
29010
29011 else
29012   enable_gtktest=yes
29013 fi;
29014
29015   pkg_config_args=gtk+-2.0
29016   for module in . $GTK_MODULES
29017   do
29018       case "$module" in
29019          gthread)
29020              pkg_config_args="$pkg_config_args gthread-2.0"
29021          ;;
29022       esac
29023   done
29024
29025   no_gtk=""
29026
29027   # Extract the first word of "pkg-config", so it can be a program name with args.
29028 set dummy pkg-config; ac_word=$2
29029 echo "$as_me:$LINENO: checking for $ac_word" >&5
29030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29032   echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034   case $PKG_CONFIG in
29035   [\\/]* | ?:[\\/]*)
29036   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29037   ;;
29038   *)
29039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29040 for as_dir in $PATH
29041 do
29042   IFS=$as_save_IFS
29043   test -z "$as_dir" && as_dir=.
29044   for ac_exec_ext in '' $ac_executable_extensions; do
29045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29046     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29048     break 2
29049   fi
29050 done
29051 done
29052
29053   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29054   ;;
29055 esac
29056 fi
29057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29058
29059 if test -n "$PKG_CONFIG"; then
29060   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29061 echo "${ECHO_T}$PKG_CONFIG" >&6
29062 else
29063   echo "$as_me:$LINENO: result: no" >&5
29064 echo "${ECHO_T}no" >&6
29065 fi
29066
29067
29068   if test x$PKG_CONFIG != xno ; then
29069     if pkg-config --atleast-pkgconfig-version 0.7 ; then
29070       :
29071     else
29072       echo "*** pkg-config too old; version 0.7 or better required."
29073       no_gtk=yes
29074       PKG_CONFIG=no
29075     fi
29076   else
29077     no_gtk=yes
29078   fi
29079
29080   min_gtk_version=2.0.0
29081   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
29082 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
29083
29084   if test x$PKG_CONFIG != xno ; then
29085     ## don't try to run the test against uninstalled libtool libs
29086     if $PKG_CONFIG --uninstalled $pkg_config_args; then
29087           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
29088           enable_gtktest=no
29089     fi
29090
29091     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
29092           :
29093     else
29094           no_gtk=yes
29095     fi
29096   fi
29097
29098   if test x"$no_gtk" = x ; then
29099     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
29100     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
29101     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29102            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29103     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29104            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29105     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
29106            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29107     if test "x$enable_gtktest" = "xyes" ; then
29108       ac_save_CFLAGS="$CFLAGS"
29109       ac_save_LIBS="$LIBS"
29110       CFLAGS="$CFLAGS $GTK_CFLAGS"
29111       LIBS="$GTK_LIBS $LIBS"
29112       rm -f conf.gtktest
29113       if test "$cross_compiling" = yes; then
29114   echo $ac_n "cross compiling; assumed OK... $ac_c"
29115 else
29116   cat >conftest.$ac_ext <<_ACEOF
29117 /* confdefs.h.  */
29118 _ACEOF
29119 cat confdefs.h >>conftest.$ac_ext
29120 cat >>conftest.$ac_ext <<_ACEOF
29121 /* end confdefs.h.  */
29122
29123 #include <gtk/gtk.h>
29124 #include <stdio.h>
29125 #include <stdlib.h>
29126
29127 int
29128 main ()
29129 {
29130   int major, minor, micro;
29131   char *tmp_version;
29132
29133   system ("touch conf.gtktest");
29134
29135   /* HP/UX 9 (%@#!) writes to sscanf strings */
29136   tmp_version = g_strdup("$min_gtk_version");
29137   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29138      printf("%s, bad version string\n", "$min_gtk_version");
29139      exit(1);
29140    }
29141
29142   if ((gtk_major_version != $gtk_config_major_version) ||
29143       (gtk_minor_version != $gtk_config_minor_version) ||
29144       (gtk_micro_version != $gtk_config_micro_version))
29145     {
29146       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29147              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29148              gtk_major_version, gtk_minor_version, gtk_micro_version);
29149       printf ("*** was found! If pkg-config was correct, then it is best\n");
29150       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29151       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29152       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29153       printf("*** required on your system.\n");
29154       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
29155       printf("*** to point to the correct configuration files\n");
29156     }
29157   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29158            (gtk_minor_version != GTK_MINOR_VERSION) ||
29159            (gtk_micro_version != GTK_MICRO_VERSION))
29160     {
29161       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29162              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29163       printf("*** library (version %d.%d.%d)\n",
29164              gtk_major_version, gtk_minor_version, gtk_micro_version);
29165     }
29166   else
29167     {
29168       if ((gtk_major_version > major) ||
29169         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29170         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29171       {
29172         return 0;
29173        }
29174      else
29175       {
29176         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29177                gtk_major_version, gtk_minor_version, gtk_micro_version);
29178         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29179                major, minor, micro);
29180         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29181         printf("***\n");
29182         printf("*** If you have already installed a sufficiently new version, this error\n");
29183         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
29184         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29185         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
29186         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
29187         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29188         printf("*** so that the correct libraries are found at run-time))\n");
29189       }
29190     }
29191   return 1;
29192 }
29193
29194 _ACEOF
29195 rm -f conftest$ac_exeext
29196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29197   (eval $ac_link) 2>&5
29198   ac_status=$?
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; }; then
29206   :
29207 else
29208   echo "$as_me: program exited with status $ac_status" >&5
29209 echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29211
29212 ( exit $ac_status )
29213 no_gtk=yes
29214 fi
29215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29216 fi
29217        CFLAGS="$ac_save_CFLAGS"
29218        LIBS="$ac_save_LIBS"
29219      fi
29220   fi
29221   if test "x$no_gtk" = x ; then
29222      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
29223 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
29224      wx_cv_lib_gtk=2.0
29225   else
29226      echo "$as_me:$LINENO: result: no" >&5
29227 echo "${ECHO_T}no" >&6
29228      if test "$PKG_CONFIG" = "no" ; then
29229        echo "*** A new enough version of pkg-config was not found."
29230        echo "*** See http://pkgconfig.sourceforge.net"
29231      else
29232        if test -f conf.gtktest ; then
29233         :
29234        else
29235           echo "*** Could not run GTK+ test program, checking why..."
29236           ac_save_CFLAGS="$CFLAGS"
29237           ac_save_LIBS="$LIBS"
29238           CFLAGS="$CFLAGS $GTK_CFLAGS"
29239           LIBS="$LIBS $GTK_LIBS"
29240           cat >conftest.$ac_ext <<_ACEOF
29241 /* confdefs.h.  */
29242 _ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h.  */
29246
29247 #include <gtk/gtk.h>
29248 #include <stdio.h>
29249
29250 int
29251 main ()
29252 {
29253  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29254   ;
29255   return 0;
29256 }
29257 _ACEOF
29258 rm -f conftest.$ac_objext conftest$ac_exeext
29259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29260   (eval $ac_link) 2>conftest.er1
29261   ac_status=$?
29262   grep -v '^ *+' conftest.er1 >conftest.err
29263   rm -f conftest.er1
29264   cat conftest.err >&5
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); } &&
29267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269   (eval $ac_try) 2>&5
29270   ac_status=$?
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); }; } &&
29273          { ac_try='test -s conftest$ac_exeext'
29274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275   (eval $ac_try) 2>&5
29276   ac_status=$?
29277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278   (exit $ac_status); }; }; then
29279    echo "*** The test program compiled, but did not run. This usually means"
29280           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
29281           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
29282           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29283           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29284           echo "*** is required on your system"
29285           echo "***"
29286           echo "*** If you have an old version installed, it is best to remove it, although"
29287           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29288 else
29289   echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29291
29292  echo "*** The test program failed to compile or link. See the file config.log for the"
29293           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
29294 fi
29295 rm -f conftest.err conftest.$ac_objext \
29296       conftest$ac_exeext conftest.$ac_ext
29297           CFLAGS="$ac_save_CFLAGS"
29298           LIBS="$ac_save_LIBS"
29299        fi
29300      fi
29301      GTK_CFLAGS=""
29302      GTK_LIBS=""
29303      :
29304   fi
29305
29306
29307   rm -f conf.gtktest
29308
29309
29310                                         case "${host}" in
29311                         *-*-solaris2* )
29312                             if test "$wxUSE_SHARED" != "yes"; then
29313                                 GTK_LIBS="$GTK_LIBS -lX11"
29314                             fi
29315                     esac
29316                 fi
29317
29318                                 if test -z "$wx_cv_lib_gtk"; then
29319                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
29320
29321 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
29322 if test "${with_gtk_prefix+set}" = set; then
29323   withval="$with_gtk_prefix"
29324   gtk_config_prefix="$withval"
29325 else
29326   gtk_config_prefix=""
29327 fi;
29328
29329 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
29330 if test "${with_gtk_exec_prefix+set}" = set; then
29331   withval="$with_gtk_exec_prefix"
29332   gtk_config_exec_prefix="$withval"
29333 else
29334   gtk_config_exec_prefix=""
29335 fi;
29336 # Check whether --enable-gtktest or --disable-gtktest was given.
29337 if test "${enable_gtktest+set}" = set; then
29338   enableval="$enable_gtktest"
29339
29340 else
29341   enable_gtktest=yes
29342 fi;
29343
29344   for module in . $GTK_MODULES
29345   do
29346       case "$module" in
29347          gthread)
29348              gtk_config_args="$gtk_config_args gthread"
29349          ;;
29350       esac
29351   done
29352
29353   if test x$gtk_config_exec_prefix != x ; then
29354      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29355      if test x${GTK_CONFIG+set} != xset ; then
29356         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29357      fi
29358   fi
29359   if test x$gtk_config_prefix != x ; then
29360      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29361      if test x${GTK_CONFIG+set} != xset ; then
29362         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29363      fi
29364   fi
29365
29366   # Extract the first word of "gtk-config", so it can be a program name with args.
29367 set dummy gtk-config; ac_word=$2
29368 echo "$as_me:$LINENO: checking for $ac_word" >&5
29369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29370 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29371   echo $ECHO_N "(cached) $ECHO_C" >&6
29372 else
29373   case $GTK_CONFIG in
29374   [\\/]* | ?:[\\/]*)
29375   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29376   ;;
29377   *)
29378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29379 for as_dir in $PATH
29380 do
29381   IFS=$as_save_IFS
29382   test -z "$as_dir" && as_dir=.
29383   for ac_exec_ext in '' $ac_executable_extensions; do
29384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29385     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29387     break 2
29388   fi
29389 done
29390 done
29391
29392   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29393   ;;
29394 esac
29395 fi
29396 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29397
29398 if test -n "$GTK_CONFIG"; then
29399   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29400 echo "${ECHO_T}$GTK_CONFIG" >&6
29401 else
29402   echo "$as_me:$LINENO: result: no" >&5
29403 echo "${ECHO_T}no" >&6
29404 fi
29405
29406   min_gtk_version=1.2.7
29407   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29408 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
29409   no_gtk=""
29410   if test "$GTK_CONFIG" = "no" ; then
29411     no_gtk=yes
29412   else
29413     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29414     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29415     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29416            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29417     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29418            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29419     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29420            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29421     if test "x$enable_gtktest" = "xyes" ; then
29422       ac_save_CFLAGS="$CFLAGS"
29423       ac_save_LIBS="$LIBS"
29424       CFLAGS="$CFLAGS $GTK_CFLAGS"
29425       LIBS="$GTK_LIBS $LIBS"
29426       rm -f conf.gtktest
29427       if test "$cross_compiling" = yes; then
29428   echo $ac_n "cross compiling; assumed OK... $ac_c"
29429 else
29430   cat >conftest.$ac_ext <<_ACEOF
29431 /* confdefs.h.  */
29432 _ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h.  */
29436
29437 #include <gtk/gtk.h>
29438 #include <stdio.h>
29439 #include <stdlib.h>
29440
29441 int
29442 main ()
29443 {
29444   int major, minor, micro;
29445   char *tmp_version;
29446
29447   system ("touch conf.gtktest");
29448
29449   /* HP/UX 9 (%@#!) writes to sscanf strings */
29450   tmp_version = g_strdup("$min_gtk_version");
29451   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29452      printf("%s, bad version string\n", "$min_gtk_version");
29453      exit(1);
29454    }
29455
29456   if ((gtk_major_version != $gtk_config_major_version) ||
29457       (gtk_minor_version != $gtk_config_minor_version) ||
29458       (gtk_micro_version != $gtk_config_micro_version))
29459     {
29460       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29461              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29462              gtk_major_version, gtk_minor_version, gtk_micro_version);
29463       printf ("*** was found! If gtk-config was correct, then it is best\n");
29464       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29465       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29466       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29467       printf("*** required on your system.\n");
29468       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29469       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29470       printf("*** before re-running configure\n");
29471     }
29472 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29473   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29474            (gtk_minor_version != GTK_MINOR_VERSION) ||
29475            (gtk_micro_version != GTK_MICRO_VERSION))
29476     {
29477       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29478              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29479       printf("*** library (version %d.%d.%d)\n",
29480              gtk_major_version, gtk_minor_version, gtk_micro_version);
29481     }
29482 #endif /* defined (GTK_MAJOR_VERSION) ... */
29483   else
29484     {
29485       if ((gtk_major_version > major) ||
29486         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29487         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29488       {
29489         return 0;
29490        }
29491      else
29492       {
29493         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29494                gtk_major_version, gtk_minor_version, gtk_micro_version);
29495         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29496                major, minor, micro);
29497         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29498         printf("***\n");
29499         printf("*** If you have already installed a sufficiently new version, this error\n");
29500         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29501         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29502         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29503         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29504         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29505         printf("*** so that the correct libraries are found at run-time))\n");
29506       }
29507     }
29508   return 1;
29509 }
29510
29511 _ACEOF
29512 rm -f conftest$ac_exeext
29513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29514   (eval $ac_link) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519   (eval $ac_try) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; }; then
29523   :
29524 else
29525   echo "$as_me: program exited with status $ac_status" >&5
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 ( exit $ac_status )
29530 no_gtk=yes
29531 fi
29532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29533 fi
29534        CFLAGS="$ac_save_CFLAGS"
29535        LIBS="$ac_save_LIBS"
29536      fi
29537   fi
29538   if test "x$no_gtk" = x ; then
29539      echo "$as_me:$LINENO: result: yes" >&5
29540 echo "${ECHO_T}yes" >&6
29541      wx_cv_lib_gtk=1.2.7
29542   else
29543      echo "$as_me:$LINENO: result: no" >&5
29544 echo "${ECHO_T}no" >&6
29545      if test "$GTK_CONFIG" = "no" ; then
29546        echo "*** The gtk-config script installed by GTK could not be found"
29547        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29548        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29549        echo "*** full path to gtk-config."
29550      else
29551        if test -f conf.gtktest ; then
29552         :
29553        else
29554           echo "*** Could not run GTK test program, checking why..."
29555           CFLAGS="$CFLAGS $GTK_CFLAGS"
29556           LIBS="$LIBS $GTK_LIBS"
29557           cat >conftest.$ac_ext <<_ACEOF
29558 /* confdefs.h.  */
29559 _ACEOF
29560 cat confdefs.h >>conftest.$ac_ext
29561 cat >>conftest.$ac_ext <<_ACEOF
29562 /* end confdefs.h.  */
29563
29564 #include <gtk/gtk.h>
29565 #include <stdio.h>
29566
29567 int
29568 main ()
29569 {
29570  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29571   ;
29572   return 0;
29573 }
29574 _ACEOF
29575 rm -f conftest.$ac_objext conftest$ac_exeext
29576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29577   (eval $ac_link) 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } &&
29584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586   (eval $ac_try) 2>&5
29587   ac_status=$?
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); }; } &&
29590          { ac_try='test -s conftest$ac_exeext'
29591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592   (eval $ac_try) 2>&5
29593   ac_status=$?
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); }; }; then
29596    echo "*** The test program compiled, but did not run. This usually means"
29597           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29598           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29599           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29600           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29601           echo "*** is required on your system"
29602           echo "***"
29603           echo "*** If you have an old version installed, it is best to remove it, although"
29604           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29605           echo "***"
29606           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29607           echo "*** came with the system with the command"
29608           echo "***"
29609           echo "***    rpm --erase --nodeps gtk gtk-devel"
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614  echo "*** The test program failed to compile or link. See the file config.log for the"
29615           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29616           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29617           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29618 fi
29619 rm -f conftest.err conftest.$ac_objext \
29620       conftest$ac_exeext conftest.$ac_ext
29621           CFLAGS="$ac_save_CFLAGS"
29622           LIBS="$ac_save_LIBS"
29623        fi
29624      fi
29625      GTK_CFLAGS=""
29626      GTK_LIBS=""
29627      :
29628   fi
29629
29630
29631   rm -f conf.gtktest
29632
29633
29634                         if test -z "$wx_cv_lib_gtk"; then
29635
29636 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
29637 if test "${with_gtk_prefix+set}" = set; then
29638   withval="$with_gtk_prefix"
29639   gtk_config_prefix="$withval"
29640 else
29641   gtk_config_prefix=""
29642 fi;
29643
29644 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
29645 if test "${with_gtk_exec_prefix+set}" = set; then
29646   withval="$with_gtk_exec_prefix"
29647   gtk_config_exec_prefix="$withval"
29648 else
29649   gtk_config_exec_prefix=""
29650 fi;
29651 # Check whether --enable-gtktest or --disable-gtktest was given.
29652 if test "${enable_gtktest+set}" = set; then
29653   enableval="$enable_gtktest"
29654
29655 else
29656   enable_gtktest=yes
29657 fi;
29658
29659   for module in . $GTK_MODULES
29660   do
29661       case "$module" in
29662          gthread)
29663              gtk_config_args="$gtk_config_args gthread"
29664          ;;
29665       esac
29666   done
29667
29668   if test x$gtk_config_exec_prefix != x ; then
29669      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29670      if test x${GTK_CONFIG+set} != xset ; then
29671         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29672      fi
29673   fi
29674   if test x$gtk_config_prefix != x ; then
29675      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29676      if test x${GTK_CONFIG+set} != xset ; then
29677         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29678      fi
29679   fi
29680
29681   # Extract the first word of "gtk-config", so it can be a program name with args.
29682 set dummy gtk-config; ac_word=$2
29683 echo "$as_me:$LINENO: checking for $ac_word" >&5
29684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29685 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29686   echo $ECHO_N "(cached) $ECHO_C" >&6
29687 else
29688   case $GTK_CONFIG in
29689   [\\/]* | ?:[\\/]*)
29690   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29691   ;;
29692   *)
29693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29694 for as_dir in $PATH
29695 do
29696   IFS=$as_save_IFS
29697   test -z "$as_dir" && as_dir=.
29698   for ac_exec_ext in '' $ac_executable_extensions; do
29699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29700     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29702     break 2
29703   fi
29704 done
29705 done
29706
29707   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29708   ;;
29709 esac
29710 fi
29711 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29712
29713 if test -n "$GTK_CONFIG"; then
29714   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29715 echo "${ECHO_T}$GTK_CONFIG" >&6
29716 else
29717   echo "$as_me:$LINENO: result: no" >&5
29718 echo "${ECHO_T}no" >&6
29719 fi
29720
29721   min_gtk_version=1.2.3
29722   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29723 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
29724   no_gtk=""
29725   if test "$GTK_CONFIG" = "no" ; then
29726     no_gtk=yes
29727   else
29728     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29729     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29730     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29731            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29732     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29733            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29734     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29735            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29736     if test "x$enable_gtktest" = "xyes" ; then
29737       ac_save_CFLAGS="$CFLAGS"
29738       ac_save_LIBS="$LIBS"
29739       CFLAGS="$CFLAGS $GTK_CFLAGS"
29740       LIBS="$GTK_LIBS $LIBS"
29741       rm -f conf.gtktest
29742       if test "$cross_compiling" = yes; then
29743   echo $ac_n "cross compiling; assumed OK... $ac_c"
29744 else
29745   cat >conftest.$ac_ext <<_ACEOF
29746 /* confdefs.h.  */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h.  */
29751
29752 #include <gtk/gtk.h>
29753 #include <stdio.h>
29754 #include <stdlib.h>
29755
29756 int
29757 main ()
29758 {
29759   int major, minor, micro;
29760   char *tmp_version;
29761
29762   system ("touch conf.gtktest");
29763
29764   /* HP/UX 9 (%@#!) writes to sscanf strings */
29765   tmp_version = g_strdup("$min_gtk_version");
29766   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29767      printf("%s, bad version string\n", "$min_gtk_version");
29768      exit(1);
29769    }
29770
29771   if ((gtk_major_version != $gtk_config_major_version) ||
29772       (gtk_minor_version != $gtk_config_minor_version) ||
29773       (gtk_micro_version != $gtk_config_micro_version))
29774     {
29775       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29776              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29777              gtk_major_version, gtk_minor_version, gtk_micro_version);
29778       printf ("*** was found! If gtk-config was correct, then it is best\n");
29779       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29780       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29781       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29782       printf("*** required on your system.\n");
29783       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29784       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29785       printf("*** before re-running configure\n");
29786     }
29787 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29788   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29789            (gtk_minor_version != GTK_MINOR_VERSION) ||
29790            (gtk_micro_version != GTK_MICRO_VERSION))
29791     {
29792       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29793              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29794       printf("*** library (version %d.%d.%d)\n",
29795              gtk_major_version, gtk_minor_version, gtk_micro_version);
29796     }
29797 #endif /* defined (GTK_MAJOR_VERSION) ... */
29798   else
29799     {
29800       if ((gtk_major_version > major) ||
29801         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29802         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29803       {
29804         return 0;
29805        }
29806      else
29807       {
29808         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29809                gtk_major_version, gtk_minor_version, gtk_micro_version);
29810         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29811                major, minor, micro);
29812         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29813         printf("***\n");
29814         printf("*** If you have already installed a sufficiently new version, this error\n");
29815         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29816         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29817         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29818         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29819         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29820         printf("*** so that the correct libraries are found at run-time))\n");
29821       }
29822     }
29823   return 1;
29824 }
29825
29826 _ACEOF
29827 rm -f conftest$ac_exeext
29828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29829   (eval $ac_link) 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834   (eval $ac_try) 2>&5
29835   ac_status=$?
29836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837   (exit $ac_status); }; }; then
29838   :
29839 else
29840   echo "$as_me: program exited with status $ac_status" >&5
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844 ( exit $ac_status )
29845 no_gtk=yes
29846 fi
29847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29848 fi
29849        CFLAGS="$ac_save_CFLAGS"
29850        LIBS="$ac_save_LIBS"
29851      fi
29852   fi
29853   if test "x$no_gtk" = x ; then
29854      echo "$as_me:$LINENO: result: yes" >&5
29855 echo "${ECHO_T}yes" >&6
29856      wx_cv_lib_gtk=1.2.3
29857   else
29858      echo "$as_me:$LINENO: result: no" >&5
29859 echo "${ECHO_T}no" >&6
29860      if test "$GTK_CONFIG" = "no" ; then
29861        echo "*** The gtk-config script installed by GTK could not be found"
29862        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29863        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29864        echo "*** full path to gtk-config."
29865      else
29866        if test -f conf.gtktest ; then
29867         :
29868        else
29869           echo "*** Could not run GTK test program, checking why..."
29870           CFLAGS="$CFLAGS $GTK_CFLAGS"
29871           LIBS="$LIBS $GTK_LIBS"
29872           cat >conftest.$ac_ext <<_ACEOF
29873 /* confdefs.h.  */
29874 _ACEOF
29875 cat confdefs.h >>conftest.$ac_ext
29876 cat >>conftest.$ac_ext <<_ACEOF
29877 /* end confdefs.h.  */
29878
29879 #include <gtk/gtk.h>
29880 #include <stdio.h>
29881
29882 int
29883 main ()
29884 {
29885  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29886   ;
29887   return 0;
29888 }
29889 _ACEOF
29890 rm -f conftest.$ac_objext conftest$ac_exeext
29891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29892   (eval $ac_link) 2>conftest.er1
29893   ac_status=$?
29894   grep -v '^ *+' conftest.er1 >conftest.err
29895   rm -f conftest.er1
29896   cat conftest.err >&5
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); } &&
29899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901   (eval $ac_try) 2>&5
29902   ac_status=$?
29903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); }; } &&
29905          { ac_try='test -s conftest$ac_exeext'
29906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907   (eval $ac_try) 2>&5
29908   ac_status=$?
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); }; }; then
29911    echo "*** The test program compiled, but did not run. This usually means"
29912           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29913           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29914           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29915           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29916           echo "*** is required on your system"
29917           echo "***"
29918           echo "*** If you have an old version installed, it is best to remove it, although"
29919           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29920           echo "***"
29921           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29922           echo "*** came with the system with the command"
29923           echo "***"
29924           echo "***    rpm --erase --nodeps gtk gtk-devel"
29925 else
29926   echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29928
29929  echo "*** The test program failed to compile or link. See the file config.log for the"
29930           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29931           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29932           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29933 fi
29934 rm -f conftest.err conftest.$ac_objext \
29935       conftest$ac_exeext conftest.$ac_ext
29936           CFLAGS="$ac_save_CFLAGS"
29937           LIBS="$ac_save_LIBS"
29938        fi
29939      fi
29940      GTK_CFLAGS=""
29941      GTK_LIBS=""
29942      :
29943   fi
29944
29945
29946   rm -f conf.gtktest
29947
29948                         fi
29949                     fi
29950                 fi
29951
29952                 if test -z "$wx_cv_lib_gtk"; then
29953                                         wx_cv_lib_gtk=none
29954                 else
29955                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29956                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29957                 fi
29958
29959
29960 fi
29961
29962
29963                         if test "$gtk_version_cached" = 1; then
29964             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29965 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
29966         fi
29967
29968         case "$wx_cv_lib_gtk" in
29969             2.0)    WXGTK20=1
29970                     TOOLKIT_VERSION=2
29971                     ;;
29972             1.2.7)  WXGTK127=1
29973                     WXGTK12=1
29974                     ;;
29975             1.2.3)  WXGTK12=1
29976                     ;;
29977             *)      { { echo "$as_me:$LINENO: error:
29978 The development files for GTK+ were not found. For GTK+ 2, please
29979 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29980 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29981 and that the version is 1.2.3 or above. Also check that the
29982 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29983 --libs' are in the LD_LIBRARY_PATH or equivalent.
29984                             " >&5
29985 echo "$as_me: error:
29986 The development files for GTK+ were not found. For GTK+ 2, please
29987 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29988 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29989 and that the version is 1.2.3 or above. Also check that the
29990 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29991 --libs' are in the LD_LIBRARY_PATH or equivalent.
29992                             " >&2;}
29993    { (exit 1); exit 1; }; }
29994                     ;;
29995         esac
29996
29997         if test "$WXGTK20" = 1; then
29998             save_CFLAGS="$CFLAGS"
29999             save_LIBS="$LIBS"
30000             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30001             LIBS="$LIBS $wx_cv_libs_gtk"
30002
30003                                                             echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
30004 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
30005 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
30006   echo $ECHO_N "(cached) $ECHO_C" >&6
30007 else
30008   cat >conftest.$ac_ext <<_ACEOF
30009 /* confdefs.h.  */
30010 _ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h.  */
30014 #include <gtk/gtk.h>
30015
30016 int
30017 main ()
30018 {
30019 #ifndef gtk_icon_size_lookup
30020   char *p = (char *) gtk_icon_size_lookup;
30021 #endif
30022
30023   ;
30024   return 0;
30025 }
30026 _ACEOF
30027 rm -f conftest.$ac_objext
30028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30029   (eval $ac_compile) 2>conftest.er1
30030   ac_status=$?
30031   grep -v '^ *+' conftest.er1 >conftest.err
30032   rm -f conftest.er1
30033   cat conftest.err >&5
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); } &&
30036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038   (eval $ac_try) 2>&5
30039   ac_status=$?
30040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041   (exit $ac_status); }; } &&
30042          { ac_try='test -s conftest.$ac_objext'
30043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044   (eval $ac_try) 2>&5
30045   ac_status=$?
30046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047   (exit $ac_status); }; }; then
30048   ac_cv_have_decl_gtk_icon_size_lookup=yes
30049 else
30050   echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30052
30053 ac_cv_have_decl_gtk_icon_size_lookup=no
30054 fi
30055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30056 fi
30057 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
30058 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
30059 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
30060
30061 cat >>confdefs.h <<_ACEOF
30062 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
30063 _ACEOF
30064
30065
30066 else
30067   cat >>confdefs.h <<_ACEOF
30068 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
30069 _ACEOF
30070
30071 cat >>confdefs.h <<\_ACEOF
30072 #define NEED_GTK_ICON_SIZE_LOOKUP 1
30073 _ACEOF
30074
30075 fi
30076
30077
30078
30079
30080                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
30081 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6
30082             cat >conftest.$ac_ext <<_ACEOF
30083 /* confdefs.h.  */
30084 _ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h.  */
30088
30089                             #include <gtk/gtk.h>
30090
30091 int
30092 main ()
30093 {
30094
30095                             #if !GTK_CHECK_VERSION(2,10,0)
30096                             Not GTK+ 2.10
30097                             #endif
30098
30099   ;
30100   return 0;
30101 }
30102 _ACEOF
30103 rm -f conftest.$ac_objext
30104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30105   (eval $ac_compile) 2>conftest.er1
30106   ac_status=$?
30107   grep -v '^ *+' conftest.er1 >conftest.err
30108   rm -f conftest.er1
30109   cat conftest.err >&5
30110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); } &&
30112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114   (eval $ac_try) 2>&5
30115   ac_status=$?
30116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117   (exit $ac_status); }; } &&
30118          { ac_try='test -s conftest.$ac_objext'
30119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30120   (eval $ac_try) 2>&5
30121   ac_status=$?
30122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123   (exit $ac_status); }; }; then
30124
30125                             cat >>confdefs.h <<\_ACEOF
30126 #define __WXGTK210__ 1
30127 _ACEOF
30128
30129                             cat >>confdefs.h <<\_ACEOF
30130 #define __WXGTK26__ 1
30131 _ACEOF
30132
30133                             cat >>confdefs.h <<\_ACEOF
30134 #define __WXGTK24__ 1
30135 _ACEOF
30136
30137                             echo "$as_me:$LINENO: result: yes" >&5
30138 echo "${ECHO_T}yes" >&6
30139                             ac_wxgtk210=1
30140
30141 else
30142   echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30144
30145
30146                             echo "$as_me:$LINENO: result: no" >&5
30147 echo "${ECHO_T}no" >&6
30148                             ac_wxgtk210=0
30149
30150 fi
30151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30152
30153             if test "$ac_wxgtk210" = 0; then
30154                                 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
30155 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
30156                 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h.  */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h.  */
30162
30163                                 #include <gtk/gtk.h>
30164
30165 int
30166 main ()
30167 {
30168
30169                                 #if !GTK_CHECK_VERSION(2,6,0)
30170                                 Not GTK+ 2.6
30171                                 #endif
30172
30173   ;
30174   return 0;
30175 }
30176 _ACEOF
30177 rm -f conftest.$ac_objext
30178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30179   (eval $ac_compile) 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } &&
30186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30188   (eval $ac_try) 2>&5
30189   ac_status=$?
30190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191   (exit $ac_status); }; } &&
30192          { ac_try='test -s conftest.$ac_objext'
30193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30194   (eval $ac_try) 2>&5
30195   ac_status=$?
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); }; }; then
30198
30199                                 cat >>confdefs.h <<\_ACEOF
30200 #define __WXGTK26__ 1
30201 _ACEOF
30202
30203                                 cat >>confdefs.h <<\_ACEOF
30204 #define __WXGTK24__ 1
30205 _ACEOF
30206
30207                                 echo "$as_me:$LINENO: result: yes" >&5
30208 echo "${ECHO_T}yes" >&6
30209                                 ac_wxgtk26=1
30210
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215
30216                                 echo "$as_me:$LINENO: result: no" >&5
30217 echo "${ECHO_T}no" >&6
30218                                 ac_wxgtk26=0
30219
30220 fi
30221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30222             fi
30223
30224             if test "$ac_wxgtk26" = 0; then
30225                                 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
30226 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
30227                 cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h.  */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h.  */
30233
30234                                 #include <gtk/gtk.h>
30235
30236 int
30237 main ()
30238 {
30239
30240                                 #if !GTK_CHECK_VERSION(2,4,0)
30241                                 Not GTK+ 2.4
30242                                 #endif
30243
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext
30249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30250   (eval $ac_compile) 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } &&
30257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; } &&
30263          { ac_try='test -s conftest.$ac_objext'
30264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30265   (eval $ac_try) 2>&5
30266   ac_status=$?
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); }; }; then
30269
30270                                 cat >>confdefs.h <<\_ACEOF
30271 #define __WXGTK24__ 1
30272 _ACEOF
30273
30274                                 echo "$as_me:$LINENO: result: yes" >&5
30275 echo "${ECHO_T}yes" >&6
30276
30277 else
30278   echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30280
30281
30282                                 echo "$as_me:$LINENO: result: no" >&5
30283 echo "${ECHO_T}no" >&6
30284
30285 fi
30286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30287             fi
30288
30289             CFLAGS="$save_CFLAGS"
30290             LIBS="$save_LIBS"
30291         else
30292             if test "$wxUSE_UNICODE" = "yes"; then
30293                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
30294 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
30295                 wxUSE_UNICODE=no
30296             fi
30297
30298                         echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
30299 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
30300 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   ac_check_lib_save_LIBS=$LIBS
30304 LIBS="-lgdk  $LIBS"
30305 cat >conftest.$ac_ext <<_ACEOF
30306 /* confdefs.h.  */
30307 _ACEOF
30308 cat confdefs.h >>conftest.$ac_ext
30309 cat >>conftest.$ac_ext <<_ACEOF
30310 /* end confdefs.h.  */
30311
30312 /* Override any gcc2 internal prototype to avoid an error.  */
30313 #ifdef __cplusplus
30314 extern "C"
30315 #endif
30316 /* We use char because int might match the return type of a gcc2
30317    builtin and then its argument prototype would still apply.  */
30318 char gdk_im_open ();
30319 int
30320 main ()
30321 {
30322 gdk_im_open ();
30323   ;
30324   return 0;
30325 }
30326 _ACEOF
30327 rm -f conftest.$ac_objext conftest$ac_exeext
30328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30329   (eval $ac_link) 2>conftest.er1
30330   ac_status=$?
30331   grep -v '^ *+' conftest.er1 >conftest.err
30332   rm -f conftest.er1
30333   cat conftest.err >&5
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } &&
30336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338   (eval $ac_try) 2>&5
30339   ac_status=$?
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); }; } &&
30342          { ac_try='test -s conftest$ac_exeext'
30343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344   (eval $ac_try) 2>&5
30345   ac_status=$?
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); }; }; then
30348   ac_cv_lib_gdk_gdk_im_open=yes
30349 else
30350   echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30352
30353 ac_cv_lib_gdk_gdk_im_open=no
30354 fi
30355 rm -f conftest.err conftest.$ac_objext \
30356       conftest$ac_exeext conftest.$ac_ext
30357 LIBS=$ac_check_lib_save_LIBS
30358 fi
30359 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
30360 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
30361 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
30362   cat >>confdefs.h <<\_ACEOF
30363 #define HAVE_XIM 1
30364 _ACEOF
30365
30366 fi
30367
30368
30369                                     if test "$USE_DARWIN" != 1; then
30370
30371 for ac_func in poll
30372 do
30373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30374 echo "$as_me:$LINENO: checking for $ac_func" >&5
30375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30376 if eval "test \"\${$as_ac_var+set}\" = set"; then
30377   echo $ECHO_N "(cached) $ECHO_C" >&6
30378 else
30379   cat >conftest.$ac_ext <<_ACEOF
30380 /* confdefs.h.  */
30381 _ACEOF
30382 cat confdefs.h >>conftest.$ac_ext
30383 cat >>conftest.$ac_ext <<_ACEOF
30384 /* end confdefs.h.  */
30385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30387 #define $ac_func innocuous_$ac_func
30388
30389 /* System header to define __stub macros and hopefully few prototypes,
30390     which can conflict with char $ac_func (); below.
30391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30392     <limits.h> exists even on freestanding compilers.  */
30393
30394 #ifdef __STDC__
30395 # include <limits.h>
30396 #else
30397 # include <assert.h>
30398 #endif
30399
30400 #undef $ac_func
30401
30402 /* Override any gcc2 internal prototype to avoid an error.  */
30403 #ifdef __cplusplus
30404 extern "C"
30405 {
30406 #endif
30407 /* We use char because int might match the return type of a gcc2
30408    builtin and then its argument prototype would still apply.  */
30409 char $ac_func ();
30410 /* The GNU C library defines this for functions which it implements
30411     to always fail with ENOSYS.  Some functions are actually named
30412     something starting with __ and the normal name is an alias.  */
30413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30414 choke me
30415 #else
30416 char (*f) () = $ac_func;
30417 #endif
30418 #ifdef __cplusplus
30419 }
30420 #endif
30421
30422 int
30423 main ()
30424 {
30425 return f != $ac_func;
30426   ;
30427   return 0;
30428 }
30429 _ACEOF
30430 rm -f conftest.$ac_objext conftest$ac_exeext
30431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30432   (eval $ac_link) 2>conftest.er1
30433   ac_status=$?
30434   grep -v '^ *+' conftest.er1 >conftest.err
30435   rm -f conftest.er1
30436   cat conftest.err >&5
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); } &&
30439          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441   (eval $ac_try) 2>&5
30442   ac_status=$?
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); }; } &&
30445          { ac_try='test -s conftest$ac_exeext'
30446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447   (eval $ac_try) 2>&5
30448   ac_status=$?
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); }; }; then
30451   eval "$as_ac_var=yes"
30452 else
30453   echo "$as_me: failed program was:" >&5
30454 sed 's/^/| /' conftest.$ac_ext >&5
30455
30456 eval "$as_ac_var=no"
30457 fi
30458 rm -f conftest.err conftest.$ac_objext \
30459       conftest$ac_exeext conftest.$ac_ext
30460 fi
30461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30463 if test `eval echo '${'$as_ac_var'}'` = yes; then
30464   cat >>confdefs.h <<_ACEOF
30465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30466 _ACEOF
30467
30468 fi
30469 done
30470
30471             fi
30472         fi
30473
30474         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
30475         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
30476
30477         AFMINSTALL=afminstall
30478         TOOLKIT=GTK
30479         GUIDIST=GTK_DIST
30480
30481                 if test "$wxUSE_GPE" = "yes"; then
30482             echo "$as_me:$LINENO: checking for gpewidget library" >&5
30483 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
30484
30485   ac_find_libraries=
30486   for ac_dir in $SEARCH_LIB;
30487   do
30488     for ac_extension in a so sl dylib dll.a; do
30489       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
30490         ac_find_libraries=$ac_dir
30491         break 2
30492       fi
30493     done
30494   done
30495
30496             if test "$ac_find_libraries" != "" ; then
30497
30498     if test "$ac_find_libraries" = "default location"; then
30499     ac_path_to_link=""
30500   else
30501     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30502     result=$?
30503     if test $result = 0; then
30504       ac_path_to_link=""
30505     else
30506       ac_path_to_link=" -L$ac_find_libraries"
30507     fi
30508   fi
30509
30510                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
30511                 WXGPE=1
30512                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30513 echo "${ECHO_T}found in $ac_find_libraries" >&6
30514             else
30515                 echo "$as_me:$LINENO: result: not found" >&5
30516 echo "${ECHO_T}not found" >&6
30517             fi
30518
30519                                                                                                                     fi
30520     fi
30521
30522     if test "$wxUSE_MGL" = 1; then
30523        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
30524 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
30525         if test "x$MGL_ROOT" = x ; then
30526             echo "$as_me:$LINENO: result: not found" >&5
30527 echo "${ECHO_T}not found" >&6
30528             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
30529 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
30530    { (exit 1); exit 1; }; }
30531         else
30532             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
30533 echo "${ECHO_T}$MGL_ROOT" >&6
30534         fi
30535
30536         echo "$as_me:$LINENO: checking for libmgl location" >&5
30537 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
30538                                 case "${host}" in
30539             *-*-linux* )
30540                                           if test "x$wxUSE_SHARED" = xyes ; then
30541                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
30542               else
30543                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
30544               fi
30545               ;;
30546             *-pc-msdosdjgpp )
30547               mgl_os_candidates="dos32/dj2"
30548               ;;
30549             *)
30550               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
30551 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
30552    { (exit 1); exit 1; }; }
30553         esac
30554
30555         mgl_lib_type=""
30556         mgl_os=""
30557
30558         for mgl_os_i in $mgl_os_candidates ; do
30559             if test "x$mgl_os" = x ; then
30560                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
30561                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
30562                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
30563                         mgl_lib_type=debug
30564                         mgl_os=$mgl_os_i
30565                     fi
30566                 fi
30567                 if test "x$mgl_lib_type" = x ; then
30568                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
30569                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
30570                         mgl_lib_type=release
30571                         mgl_os=$mgl_os_i
30572                     fi
30573                 fi
30574             fi
30575         done
30576
30577         if test "x$mgl_os" = x ; then
30578             echo "$as_me:$LINENO: result: not found" >&5
30579 echo "${ECHO_T}not found" >&6
30580             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
30581 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
30582    { (exit 1); exit 1; }; }
30583         fi
30584         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
30585 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
30586
30587         wxUSE_UNIVERSAL="yes"
30588
30589         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
30590         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
30591
30592         AFMINSTALL=afminstall
30593         TOOLKIT=MGL
30594         GUIDIST=MGL_DIST
30595     fi
30596
30597     if test "$wxUSE_DFB" = 1; then
30598
30599
30600 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30601         if test -n "$ac_tool_prefix"; then
30602   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30603 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30604 echo "$as_me:$LINENO: checking for $ac_word" >&5
30605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609   case $PKG_CONFIG in
30610   [\\/]* | ?:[\\/]*)
30611   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30612   ;;
30613   *)
30614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30615 for as_dir in $PATH
30616 do
30617   IFS=$as_save_IFS
30618   test -z "$as_dir" && as_dir=.
30619   for ac_exec_ext in '' $ac_executable_extensions; do
30620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30621     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30623     break 2
30624   fi
30625 done
30626 done
30627
30628   ;;
30629 esac
30630 fi
30631 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30632
30633 if test -n "$PKG_CONFIG"; then
30634   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30635 echo "${ECHO_T}$PKG_CONFIG" >&6
30636 else
30637   echo "$as_me:$LINENO: result: no" >&5
30638 echo "${ECHO_T}no" >&6
30639 fi
30640
30641 fi
30642 if test -z "$ac_cv_path_PKG_CONFIG"; then
30643   ac_pt_PKG_CONFIG=$PKG_CONFIG
30644   # Extract the first word of "pkg-config", so it can be a program name with args.
30645 set dummy pkg-config; ac_word=$2
30646 echo "$as_me:$LINENO: checking for $ac_word" >&5
30647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30648 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30649   echo $ECHO_N "(cached) $ECHO_C" >&6
30650 else
30651   case $ac_pt_PKG_CONFIG in
30652   [\\/]* | ?:[\\/]*)
30653   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30654   ;;
30655   *)
30656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657 for as_dir in $PATH
30658 do
30659   IFS=$as_save_IFS
30660   test -z "$as_dir" && as_dir=.
30661   for ac_exec_ext in '' $ac_executable_extensions; do
30662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30663     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30665     break 2
30666   fi
30667 done
30668 done
30669
30670   ;;
30671 esac
30672 fi
30673 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30674
30675 if test -n "$ac_pt_PKG_CONFIG"; then
30676   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30677 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30678 else
30679   echo "$as_me:$LINENO: result: no" >&5
30680 echo "${ECHO_T}no" >&6
30681 fi
30682
30683   PKG_CONFIG=$ac_pt_PKG_CONFIG
30684 else
30685   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30686 fi
30687
30688 fi
30689 if test -n "$PKG_CONFIG"; then
30690         _pkg_min_version=0.9.0
30691         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30692 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30693         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30694                 echo "$as_me:$LINENO: result: yes" >&5
30695 echo "${ECHO_T}yes" >&6
30696         else
30697                 echo "$as_me:$LINENO: result: no" >&5
30698 echo "${ECHO_T}no" >&6
30699                 PKG_CONFIG=""
30700         fi
30701
30702 fi
30703
30704
30705 pkg_failed=no
30706 echo "$as_me:$LINENO: checking for DIRECTFB" >&5
30707 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
30708
30709 if test -n "$PKG_CONFIG"; then
30710     if test -n "$DIRECTFB_CFLAGS"; then
30711         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
30712     else
30713         if test -n "$PKG_CONFIG" && \
30714     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30715   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30716   ac_status=$?
30717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718   (exit $ac_status); }; then
30719   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
30720 else
30721   pkg_failed=yes
30722 fi
30723     fi
30724 else
30725         pkg_failed=untried
30726 fi
30727 if test -n "$PKG_CONFIG"; then
30728     if test -n "$DIRECTFB_LIBS"; then
30729         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
30730     else
30731         if test -n "$PKG_CONFIG" && \
30732     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
30733   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
30734   ac_status=$?
30735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736   (exit $ac_status); }; then
30737   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
30738 else
30739   pkg_failed=yes
30740 fi
30741     fi
30742 else
30743         pkg_failed=untried
30744 fi
30745
30746
30747
30748 if test $pkg_failed = yes; then
30749
30750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30751         _pkg_short_errors_supported=yes
30752 else
30753         _pkg_short_errors_supported=no
30754 fi
30755         if test $_pkg_short_errors_supported = yes; then
30756                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30757         else
30758                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
30759         fi
30760         # Put the nasty error message in config.log where it belongs
30761         echo "$DIRECTFB_PKG_ERRORS" >&5
30762
30763
30764                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30765 echo "$as_me: error: DirectFB not found." >&2;}
30766    { (exit 1); exit 1; }; }
30767
30768
30769 elif test $pkg_failed = untried; then
30770
30771                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
30772 echo "$as_me: error: DirectFB not found." >&2;}
30773    { (exit 1); exit 1; }; }
30774
30775
30776 else
30777         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
30778         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
30779         echo "$as_me:$LINENO: result: yes" >&5
30780 echo "${ECHO_T}yes" >&6
30781
30782                            wxUSE_UNIVERSAL="yes"
30783                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30784                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30785                            TOOLKIT=DFB
30786                            GUIDIST=DFB_DIST
30787
30788 fi
30789     fi
30790
30791     if test "$wxUSE_MICROWIN" = 1; then
30792         echo "$as_me:$LINENO: checking for MicroWindows" >&5
30793 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
30794         if test "x$MICROWINDOWS" = x ; then
30795             echo "$as_me:$LINENO: result: not found" >&5
30796 echo "${ECHO_T}not found" >&6
30797             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30798 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30799    { (exit 1); exit 1; }; }
30800         else
30801             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30802 echo "${ECHO_T}$MICROWINDOWS" >&6
30803         fi
30804
30805         if test -f $MICROWINDOWS/lib/libmwin.a; then
30806             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30807 echo "${ECHO_T}MicroWindows' libraries found." >&6
30808         else
30809             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30810 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30811    { (exit 1); exit 1; }; }
30812         fi
30813
30814         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30815         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30816
30817         wxUSE_UNIVERSAL="yes"
30818
30819         AFMINSTALL=afminstall
30820         TOOLKIT=MICROWIN
30821         GUIDIST=MICROWIN_DIST
30822
30823         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30824     fi
30825
30826         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30827
30828 if test "x$ac_path_x_has_been_run" != xyes; then
30829   echo "$as_me:$LINENO: checking for X" >&5
30830 echo $ECHO_N "checking for X... $ECHO_C" >&6
30831
30832 ac_path_x_has_been_run=yes
30833
30834 # Check whether --with-x or --without-x was given.
30835 if test "${with_x+set}" = set; then
30836   withval="$with_x"
30837
30838 fi;
30839 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30840 if test "x$with_x" = xno; then
30841   # The user explicitly disabled X.
30842   have_x=disabled
30843 else
30844   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
30845     # Both variables are already set.
30846     have_x=yes
30847   else
30848     if test "${ac_cv_have_x+set}" = set; then
30849   echo $ECHO_N "(cached) $ECHO_C" >&6
30850 else
30851   # One or both of the vars are not set, and there is no cached value.
30852 ac_x_includes=no ac_x_libraries=no
30853 rm -fr conftest.dir
30854 if mkdir conftest.dir; then
30855   cd conftest.dir
30856   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
30857   cat >Imakefile <<'_ACEOF'
30858 acfindx:
30859         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
30860 _ACEOF
30861   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
30862     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30863     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
30864     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30865     for ac_extension in a so sl; do
30866       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
30867          test -f $ac_im_libdir/libX11.$ac_extension; then
30868         ac_im_usrlibdir=$ac_im_libdir; break
30869       fi
30870     done
30871     # Screen out bogus values from the imake configuration.  They are
30872     # bogus both because they are the default anyway, and because
30873     # using them would break gcc on systems where it needs fixed includes.
30874     case $ac_im_incroot in
30875         /usr/include) ;;
30876         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30877     esac
30878     case $ac_im_usrlibdir in
30879         /usr/lib | /lib) ;;
30880         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30881     esac
30882   fi
30883   cd ..
30884   rm -fr conftest.dir
30885 fi
30886
30887 # Standard set of common directories for X headers.
30888 # Check X11 before X11Rn because it is often a symlink to the current release.
30889 ac_x_header_dirs='
30890 /usr/X11/include
30891 /usr/X11R6/include
30892 /usr/X11R5/include
30893 /usr/X11R4/include
30894
30895 /usr/include/X11
30896 /usr/include/X11R6
30897 /usr/include/X11R5
30898 /usr/include/X11R4
30899
30900 /usr/local/X11/include
30901 /usr/local/X11R6/include
30902 /usr/local/X11R5/include
30903 /usr/local/X11R4/include
30904
30905 /usr/local/include/X11
30906 /usr/local/include/X11R6
30907 /usr/local/include/X11R5
30908 /usr/local/include/X11R4
30909
30910 /usr/X386/include
30911 /usr/x386/include
30912 /usr/XFree86/include/X11
30913
30914 /usr/include
30915 /usr/local/include
30916 /usr/unsupported/include
30917 /usr/athena/include
30918 /usr/local/x11r5/include
30919 /usr/lpp/Xamples/include
30920
30921 /usr/openwin/include
30922 /usr/openwin/share/include'
30923
30924 if test "$ac_x_includes" = no; then
30925   # Guess where to find include files, by looking for a specified header file.
30926   # First, try using that file with no special directory specified.
30927   cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933 #include <X11/Xlib.h>
30934 _ACEOF
30935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30937   ac_status=$?
30938   grep -v '^ *+' conftest.er1 >conftest.err
30939   rm -f conftest.er1
30940   cat conftest.err >&5
30941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942   (exit $ac_status); } >/dev/null; then
30943   if test -s conftest.err; then
30944     ac_cpp_err=$ac_c_preproc_warn_flag
30945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30946   else
30947     ac_cpp_err=
30948   fi
30949 else
30950   ac_cpp_err=yes
30951 fi
30952 if test -z "$ac_cpp_err"; then
30953   # We can compile using X headers with no special include directory.
30954 ac_x_includes=
30955 else
30956   echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30958
30959   for ac_dir in $ac_x_header_dirs; do
30960   if test -r "$ac_dir/X11/Xlib.h"; then
30961     ac_x_includes=$ac_dir
30962     break
30963   fi
30964 done
30965 fi
30966 rm -f conftest.err conftest.$ac_ext
30967 fi # $ac_x_includes = no
30968
30969 if test "$ac_x_libraries" = no; then
30970   # Check for the libraries.
30971   # See if we find them without any special options.
30972   # Don't add to $LIBS permanently.
30973   ac_save_LIBS=$LIBS
30974   LIBS="-lX11 $LIBS"
30975   cat >conftest.$ac_ext <<_ACEOF
30976 /* confdefs.h.  */
30977 _ACEOF
30978 cat confdefs.h >>conftest.$ac_ext
30979 cat >>conftest.$ac_ext <<_ACEOF
30980 /* end confdefs.h.  */
30981 #include <X11/Xlib.h>
30982 int
30983 main ()
30984 {
30985 XrmInitialize ()
30986   ;
30987   return 0;
30988 }
30989 _ACEOF
30990 rm -f conftest.$ac_objext conftest$ac_exeext
30991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30992   (eval $ac_link) 2>conftest.er1
30993   ac_status=$?
30994   grep -v '^ *+' conftest.er1 >conftest.err
30995   rm -f conftest.er1
30996   cat conftest.err >&5
30997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); } &&
30999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31001   (eval $ac_try) 2>&5
31002   ac_status=$?
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); }; } &&
31005          { ac_try='test -s conftest$ac_exeext'
31006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31007   (eval $ac_try) 2>&5
31008   ac_status=$?
31009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010   (exit $ac_status); }; }; then
31011   LIBS=$ac_save_LIBS
31012 # We can link X programs with no special library path.
31013 ac_x_libraries=
31014 else
31015   echo "$as_me: failed program was:" >&5
31016 sed 's/^/| /' conftest.$ac_ext >&5
31017
31018 LIBS=$ac_save_LIBS
31019 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31020 do
31021   # Don't even attempt the hair of trying to link an X program!
31022   for ac_extension in a so sl; do
31023     if test -r $ac_dir/libX11.$ac_extension; then
31024       ac_x_libraries=$ac_dir
31025       break 2
31026     fi
31027   done
31028 done
31029 fi
31030 rm -f conftest.err conftest.$ac_objext \
31031       conftest$ac_exeext conftest.$ac_ext
31032 fi # $ac_x_libraries = no
31033
31034 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
31035   # Didn't find X anywhere.  Cache the known absence of X.
31036   ac_cv_have_x="have_x=no"
31037 else
31038   # Record where we found X for the cache.
31039   ac_cv_have_x="have_x=yes \
31040                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
31041 fi
31042 fi
31043
31044   fi
31045   eval "$ac_cv_have_x"
31046 fi # $with_x != no
31047
31048 if test "$have_x" != yes; then
31049   echo "$as_me:$LINENO: result: $have_x" >&5
31050 echo "${ECHO_T}$have_x" >&6
31051   no_x=yes
31052 else
31053   # If each of the values was on the command line, it overrides each guess.
31054   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31055   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31056   # Update the cache value to reflect the command line values.
31057   ac_cv_have_x="have_x=yes \
31058                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
31059   # It might be that x_includes is empty (headers are found in the
31060   # standard search path. Then output the corresponding message
31061   ac_out_x_includes=$x_includes
31062   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
31063   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
31064 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
31065 fi
31066
31067 fi
31068 if test "$no_x" = yes; then
31069   # Not all programs may use this symbol, but it does not hurt to define it.
31070
31071 cat >>confdefs.h <<\_ACEOF
31072 #define X_DISPLAY_MISSING 1
31073 _ACEOF
31074
31075   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
31076 else
31077   if test -n "$x_includes"; then
31078     X_CFLAGS="$X_CFLAGS -I$x_includes"
31079   fi
31080
31081   # It would also be nice to do this for all -L options, not just this one.
31082   if test -n "$x_libraries"; then
31083     X_LIBS="$X_LIBS -L$x_libraries"
31084     # For Solaris; some versions of Sun CC require a space after -R and
31085     # others require no space.  Words are not sufficient . . . .
31086     case `(uname -sr) 2>/dev/null` in
31087     "SunOS 5"*)
31088       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
31089 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
31090       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
31091       cat >conftest.$ac_ext <<_ACEOF
31092 /* confdefs.h.  */
31093 _ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h.  */
31097
31098 int
31099 main ()
31100 {
31101
31102   ;
31103   return 0;
31104 }
31105 _ACEOF
31106 rm -f conftest.$ac_objext conftest$ac_exeext
31107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31108   (eval $ac_link) 2>conftest.er1
31109   ac_status=$?
31110   grep -v '^ *+' conftest.er1 >conftest.err
31111   rm -f conftest.er1
31112   cat conftest.err >&5
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); } &&
31115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117   (eval $ac_try) 2>&5
31118   ac_status=$?
31119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120   (exit $ac_status); }; } &&
31121          { ac_try='test -s conftest$ac_exeext'
31122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123   (eval $ac_try) 2>&5
31124   ac_status=$?
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); }; }; then
31127   ac_R_nospace=yes
31128 else
31129   echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31131
31132 ac_R_nospace=no
31133 fi
31134 rm -f conftest.err conftest.$ac_objext \
31135       conftest$ac_exeext conftest.$ac_ext
31136       if test $ac_R_nospace = yes; then
31137         echo "$as_me:$LINENO: result: no" >&5
31138 echo "${ECHO_T}no" >&6
31139         X_LIBS="$X_LIBS -R$x_libraries"
31140       else
31141         LIBS="$ac_xsave_LIBS -R $x_libraries"
31142         cat >conftest.$ac_ext <<_ACEOF
31143 /* confdefs.h.  */
31144 _ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h.  */
31148
31149 int
31150 main ()
31151 {
31152
31153   ;
31154   return 0;
31155 }
31156 _ACEOF
31157 rm -f conftest.$ac_objext conftest$ac_exeext
31158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31159   (eval $ac_link) 2>conftest.er1
31160   ac_status=$?
31161   grep -v '^ *+' conftest.er1 >conftest.err
31162   rm -f conftest.er1
31163   cat conftest.err >&5
31164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165   (exit $ac_status); } &&
31166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168   (eval $ac_try) 2>&5
31169   ac_status=$?
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); }; } &&
31172          { ac_try='test -s conftest$ac_exeext'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; }; then
31178   ac_R_space=yes
31179 else
31180   echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31182
31183 ac_R_space=no
31184 fi
31185 rm -f conftest.err conftest.$ac_objext \
31186       conftest$ac_exeext conftest.$ac_ext
31187         if test $ac_R_space = yes; then
31188           echo "$as_me:$LINENO: result: yes" >&5
31189 echo "${ECHO_T}yes" >&6
31190           X_LIBS="$X_LIBS -R $x_libraries"
31191         else
31192           echo "$as_me:$LINENO: result: neither works" >&5
31193 echo "${ECHO_T}neither works" >&6
31194         fi
31195       fi
31196       LIBS=$ac_xsave_LIBS
31197     esac
31198   fi
31199
31200   # Check for system-dependent libraries X programs must link with.
31201   # Do this before checking for the system-independent R6 libraries
31202   # (-lICE), since we may need -lsocket or whatever for X linking.
31203
31204   if test "$ISC" = yes; then
31205     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
31206   else
31207     # Martyn Johnson says this is needed for Ultrix, if the X
31208     # libraries were built with DECnet support.  And Karl Berry says
31209     # the Alpha needs dnet_stub (dnet does not exist).
31210     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
31211     cat >conftest.$ac_ext <<_ACEOF
31212 /* confdefs.h.  */
31213 _ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h.  */
31217
31218 /* Override any gcc2 internal prototype to avoid an error.  */
31219 #ifdef __cplusplus
31220 extern "C"
31221 #endif
31222 /* We use char because int might match the return type of a gcc2
31223    builtin and then its argument prototype would still apply.  */
31224 char XOpenDisplay ();
31225 int
31226 main ()
31227 {
31228 XOpenDisplay ();
31229   ;
31230   return 0;
31231 }
31232 _ACEOF
31233 rm -f conftest.$ac_objext conftest$ac_exeext
31234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31235   (eval $ac_link) 2>conftest.er1
31236   ac_status=$?
31237   grep -v '^ *+' conftest.er1 >conftest.err
31238   rm -f conftest.er1
31239   cat conftest.err >&5
31240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241   (exit $ac_status); } &&
31242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31244   (eval $ac_try) 2>&5
31245   ac_status=$?
31246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247   (exit $ac_status); }; } &&
31248          { ac_try='test -s conftest$ac_exeext'
31249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31250   (eval $ac_try) 2>&5
31251   ac_status=$?
31252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253   (exit $ac_status); }; }; then
31254   :
31255 else
31256   echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31258
31259 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
31260 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
31261 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
31262   echo $ECHO_N "(cached) $ECHO_C" >&6
31263 else
31264   ac_check_lib_save_LIBS=$LIBS
31265 LIBS="-ldnet  $LIBS"
31266 cat >conftest.$ac_ext <<_ACEOF
31267 /* confdefs.h.  */
31268 _ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h.  */
31272
31273 /* Override any gcc2 internal prototype to avoid an error.  */
31274 #ifdef __cplusplus
31275 extern "C"
31276 #endif
31277 /* We use char because int might match the return type of a gcc2
31278    builtin and then its argument prototype would still apply.  */
31279 char dnet_ntoa ();
31280 int
31281 main ()
31282 {
31283 dnet_ntoa ();
31284   ;
31285   return 0;
31286 }
31287 _ACEOF
31288 rm -f conftest.$ac_objext conftest$ac_exeext
31289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31290   (eval $ac_link) 2>conftest.er1
31291   ac_status=$?
31292   grep -v '^ *+' conftest.er1 >conftest.err
31293   rm -f conftest.er1
31294   cat conftest.err >&5
31295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296   (exit $ac_status); } &&
31297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299   (eval $ac_try) 2>&5
31300   ac_status=$?
31301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302   (exit $ac_status); }; } &&
31303          { ac_try='test -s conftest$ac_exeext'
31304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31305   (eval $ac_try) 2>&5
31306   ac_status=$?
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); }; }; then
31309   ac_cv_lib_dnet_dnet_ntoa=yes
31310 else
31311   echo "$as_me: failed program was:" >&5
31312 sed 's/^/| /' conftest.$ac_ext >&5
31313
31314 ac_cv_lib_dnet_dnet_ntoa=no
31315 fi
31316 rm -f conftest.err conftest.$ac_objext \
31317       conftest$ac_exeext conftest.$ac_ext
31318 LIBS=$ac_check_lib_save_LIBS
31319 fi
31320 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
31321 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
31322 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
31323   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
31324 fi
31325
31326     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
31327       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
31328 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
31329 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
31330   echo $ECHO_N "(cached) $ECHO_C" >&6
31331 else
31332   ac_check_lib_save_LIBS=$LIBS
31333 LIBS="-ldnet_stub  $LIBS"
31334 cat >conftest.$ac_ext <<_ACEOF
31335 /* confdefs.h.  */
31336 _ACEOF
31337 cat confdefs.h >>conftest.$ac_ext
31338 cat >>conftest.$ac_ext <<_ACEOF
31339 /* end confdefs.h.  */
31340
31341 /* Override any gcc2 internal prototype to avoid an error.  */
31342 #ifdef __cplusplus
31343 extern "C"
31344 #endif
31345 /* We use char because int might match the return type of a gcc2
31346    builtin and then its argument prototype would still apply.  */
31347 char dnet_ntoa ();
31348 int
31349 main ()
31350 {
31351 dnet_ntoa ();
31352   ;
31353   return 0;
31354 }
31355 _ACEOF
31356 rm -f conftest.$ac_objext conftest$ac_exeext
31357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31358   (eval $ac_link) 2>conftest.er1
31359   ac_status=$?
31360   grep -v '^ *+' conftest.er1 >conftest.err
31361   rm -f conftest.er1
31362   cat conftest.err >&5
31363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364   (exit $ac_status); } &&
31365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31367   (eval $ac_try) 2>&5
31368   ac_status=$?
31369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370   (exit $ac_status); }; } &&
31371          { ac_try='test -s conftest$ac_exeext'
31372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31373   (eval $ac_try) 2>&5
31374   ac_status=$?
31375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376   (exit $ac_status); }; }; then
31377   ac_cv_lib_dnet_stub_dnet_ntoa=yes
31378 else
31379   echo "$as_me: failed program was:" >&5
31380 sed 's/^/| /' conftest.$ac_ext >&5
31381
31382 ac_cv_lib_dnet_stub_dnet_ntoa=no
31383 fi
31384 rm -f conftest.err conftest.$ac_objext \
31385       conftest$ac_exeext conftest.$ac_ext
31386 LIBS=$ac_check_lib_save_LIBS
31387 fi
31388 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
31389 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
31390 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
31391   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
31392 fi
31393
31394     fi
31395 fi
31396 rm -f conftest.err conftest.$ac_objext \
31397       conftest$ac_exeext conftest.$ac_ext
31398     LIBS="$ac_xsave_LIBS"
31399
31400     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
31401     # to get the SysV transport functions.
31402     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
31403     # needs -lnsl.
31404     # The nsl library prevents programs from opening the X display
31405     # on Irix 5.2, according to T.E. Dickey.
31406     # The functions gethostbyname, getservbyname, and inet_addr are
31407     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
31408     echo "$as_me:$LINENO: checking for gethostbyname" >&5
31409 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
31410 if test "${ac_cv_func_gethostbyname+set}" = set; then
31411   echo $ECHO_N "(cached) $ECHO_C" >&6
31412 else
31413   cat >conftest.$ac_ext <<_ACEOF
31414 /* confdefs.h.  */
31415 _ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h.  */
31419 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
31420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31421 #define gethostbyname innocuous_gethostbyname
31422
31423 /* System header to define __stub macros and hopefully few prototypes,
31424     which can conflict with char gethostbyname (); below.
31425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31426     <limits.h> exists even on freestanding compilers.  */
31427
31428 #ifdef __STDC__
31429 # include <limits.h>
31430 #else
31431 # include <assert.h>
31432 #endif
31433
31434 #undef gethostbyname
31435
31436 /* Override any gcc2 internal prototype to avoid an error.  */
31437 #ifdef __cplusplus
31438 extern "C"
31439 {
31440 #endif
31441 /* We use char because int might match the return type of a gcc2
31442    builtin and then its argument prototype would still apply.  */
31443 char gethostbyname ();
31444 /* The GNU C library defines this for functions which it implements
31445     to always fail with ENOSYS.  Some functions are actually named
31446     something starting with __ and the normal name is an alias.  */
31447 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
31448 choke me
31449 #else
31450 char (*f) () = gethostbyname;
31451 #endif
31452 #ifdef __cplusplus
31453 }
31454 #endif
31455
31456 int
31457 main ()
31458 {
31459 return f != gethostbyname;
31460   ;
31461   return 0;
31462 }
31463 _ACEOF
31464 rm -f conftest.$ac_objext conftest$ac_exeext
31465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31466   (eval $ac_link) 2>conftest.er1
31467   ac_status=$?
31468   grep -v '^ *+' conftest.er1 >conftest.err
31469   rm -f conftest.er1
31470   cat conftest.err >&5
31471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472   (exit $ac_status); } &&
31473          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475   (eval $ac_try) 2>&5
31476   ac_status=$?
31477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478   (exit $ac_status); }; } &&
31479          { ac_try='test -s conftest$ac_exeext'
31480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481   (eval $ac_try) 2>&5
31482   ac_status=$?
31483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484   (exit $ac_status); }; }; then
31485   ac_cv_func_gethostbyname=yes
31486 else
31487   echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31489
31490 ac_cv_func_gethostbyname=no
31491 fi
31492 rm -f conftest.err conftest.$ac_objext \
31493       conftest$ac_exeext conftest.$ac_ext
31494 fi
31495 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
31496 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
31497
31498     if test $ac_cv_func_gethostbyname = no; then
31499       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
31500 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
31501 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
31502   echo $ECHO_N "(cached) $ECHO_C" >&6
31503 else
31504   ac_check_lib_save_LIBS=$LIBS
31505 LIBS="-lnsl  $LIBS"
31506 cat >conftest.$ac_ext <<_ACEOF
31507 /* confdefs.h.  */
31508 _ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h.  */
31512
31513 /* Override any gcc2 internal prototype to avoid an error.  */
31514 #ifdef __cplusplus
31515 extern "C"
31516 #endif
31517 /* We use char because int might match the return type of a gcc2
31518    builtin and then its argument prototype would still apply.  */
31519 char gethostbyname ();
31520 int
31521 main ()
31522 {
31523 gethostbyname ();
31524   ;
31525   return 0;
31526 }
31527 _ACEOF
31528 rm -f conftest.$ac_objext conftest$ac_exeext
31529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31530   (eval $ac_link) 2>conftest.er1
31531   ac_status=$?
31532   grep -v '^ *+' conftest.er1 >conftest.err
31533   rm -f conftest.er1
31534   cat conftest.err >&5
31535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536   (exit $ac_status); } &&
31537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31539   (eval $ac_try) 2>&5
31540   ac_status=$?
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); }; } &&
31543          { ac_try='test -s conftest$ac_exeext'
31544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31545   (eval $ac_try) 2>&5
31546   ac_status=$?
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); }; }; then
31549   ac_cv_lib_nsl_gethostbyname=yes
31550 else
31551   echo "$as_me: failed program was:" >&5
31552 sed 's/^/| /' conftest.$ac_ext >&5
31553
31554 ac_cv_lib_nsl_gethostbyname=no
31555 fi
31556 rm -f conftest.err conftest.$ac_objext \
31557       conftest$ac_exeext conftest.$ac_ext
31558 LIBS=$ac_check_lib_save_LIBS
31559 fi
31560 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
31561 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
31562 if test $ac_cv_lib_nsl_gethostbyname = yes; then
31563   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
31564 fi
31565
31566       if test $ac_cv_lib_nsl_gethostbyname = no; then
31567         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
31568 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
31569 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
31570   echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572   ac_check_lib_save_LIBS=$LIBS
31573 LIBS="-lbsd  $LIBS"
31574 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h.  */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h.  */
31580
31581 /* Override any gcc2 internal prototype to avoid an error.  */
31582 #ifdef __cplusplus
31583 extern "C"
31584 #endif
31585 /* We use char because int might match the return type of a gcc2
31586    builtin and then its argument prototype would still apply.  */
31587 char gethostbyname ();
31588 int
31589 main ()
31590 {
31591 gethostbyname ();
31592   ;
31593   return 0;
31594 }
31595 _ACEOF
31596 rm -f conftest.$ac_objext conftest$ac_exeext
31597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31598   (eval $ac_link) 2>conftest.er1
31599   ac_status=$?
31600   grep -v '^ *+' conftest.er1 >conftest.err
31601   rm -f conftest.er1
31602   cat conftest.err >&5
31603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604   (exit $ac_status); } &&
31605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31607   (eval $ac_try) 2>&5
31608   ac_status=$?
31609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610   (exit $ac_status); }; } &&
31611          { ac_try='test -s conftest$ac_exeext'
31612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31613   (eval $ac_try) 2>&5
31614   ac_status=$?
31615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616   (exit $ac_status); }; }; then
31617   ac_cv_lib_bsd_gethostbyname=yes
31618 else
31619   echo "$as_me: failed program was:" >&5
31620 sed 's/^/| /' conftest.$ac_ext >&5
31621
31622 ac_cv_lib_bsd_gethostbyname=no
31623 fi
31624 rm -f conftest.err conftest.$ac_objext \
31625       conftest$ac_exeext conftest.$ac_ext
31626 LIBS=$ac_check_lib_save_LIBS
31627 fi
31628 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
31629 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
31630 if test $ac_cv_lib_bsd_gethostbyname = yes; then
31631   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
31632 fi
31633
31634       fi
31635     fi
31636
31637     # lieder@skyler.mavd.honeywell.com says without -lsocket,
31638     # socket/setsockopt and other routines are undefined under SCO ODT
31639     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
31640     # on later versions), says Simon Leinen: it contains gethostby*
31641     # variants that don't use the name server (or something).  -lsocket
31642     # must be given before -lnsl if both are needed.  We assume that
31643     # if connect needs -lnsl, so does gethostbyname.
31644     echo "$as_me:$LINENO: checking for connect" >&5
31645 echo $ECHO_N "checking for connect... $ECHO_C" >&6
31646 if test "${ac_cv_func_connect+set}" = set; then
31647   echo $ECHO_N "(cached) $ECHO_C" >&6
31648 else
31649   cat >conftest.$ac_ext <<_ACEOF
31650 /* confdefs.h.  */
31651 _ACEOF
31652 cat confdefs.h >>conftest.$ac_ext
31653 cat >>conftest.$ac_ext <<_ACEOF
31654 /* end confdefs.h.  */
31655 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
31656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31657 #define connect innocuous_connect
31658
31659 /* System header to define __stub macros and hopefully few prototypes,
31660     which can conflict with char connect (); below.
31661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31662     <limits.h> exists even on freestanding compilers.  */
31663
31664 #ifdef __STDC__
31665 # include <limits.h>
31666 #else
31667 # include <assert.h>
31668 #endif
31669
31670 #undef connect
31671
31672 /* Override any gcc2 internal prototype to avoid an error.  */
31673 #ifdef __cplusplus
31674 extern "C"
31675 {
31676 #endif
31677 /* We use char because int might match the return type of a gcc2
31678    builtin and then its argument prototype would still apply.  */
31679 char connect ();
31680 /* The GNU C library defines this for functions which it implements
31681     to always fail with ENOSYS.  Some functions are actually named
31682     something starting with __ and the normal name is an alias.  */
31683 #if defined (__stub_connect) || defined (__stub___connect)
31684 choke me
31685 #else
31686 char (*f) () = connect;
31687 #endif
31688 #ifdef __cplusplus
31689 }
31690 #endif
31691
31692 int
31693 main ()
31694 {
31695 return f != connect;
31696   ;
31697   return 0;
31698 }
31699 _ACEOF
31700 rm -f conftest.$ac_objext conftest$ac_exeext
31701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31702   (eval $ac_link) 2>conftest.er1
31703   ac_status=$?
31704   grep -v '^ *+' conftest.er1 >conftest.err
31705   rm -f conftest.er1
31706   cat conftest.err >&5
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); } &&
31709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711   (eval $ac_try) 2>&5
31712   ac_status=$?
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); }; } &&
31715          { ac_try='test -s conftest$ac_exeext'
31716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717   (eval $ac_try) 2>&5
31718   ac_status=$?
31719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720   (exit $ac_status); }; }; then
31721   ac_cv_func_connect=yes
31722 else
31723   echo "$as_me: failed program was:" >&5
31724 sed 's/^/| /' conftest.$ac_ext >&5
31725
31726 ac_cv_func_connect=no
31727 fi
31728 rm -f conftest.err conftest.$ac_objext \
31729       conftest$ac_exeext conftest.$ac_ext
31730 fi
31731 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
31732 echo "${ECHO_T}$ac_cv_func_connect" >&6
31733
31734     if test $ac_cv_func_connect = no; then
31735       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
31736 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
31737 if test "${ac_cv_lib_socket_connect+set}" = set; then
31738   echo $ECHO_N "(cached) $ECHO_C" >&6
31739 else
31740   ac_check_lib_save_LIBS=$LIBS
31741 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
31742 cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748
31749 /* Override any gcc2 internal prototype to avoid an error.  */
31750 #ifdef __cplusplus
31751 extern "C"
31752 #endif
31753 /* We use char because int might match the return type of a gcc2
31754    builtin and then its argument prototype would still apply.  */
31755 char connect ();
31756 int
31757 main ()
31758 {
31759 connect ();
31760   ;
31761   return 0;
31762 }
31763 _ACEOF
31764 rm -f conftest.$ac_objext conftest$ac_exeext
31765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31766   (eval $ac_link) 2>conftest.er1
31767   ac_status=$?
31768   grep -v '^ *+' conftest.er1 >conftest.err
31769   rm -f conftest.er1
31770   cat conftest.err >&5
31771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772   (exit $ac_status); } &&
31773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31775   (eval $ac_try) 2>&5
31776   ac_status=$?
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); }; } &&
31779          { ac_try='test -s conftest$ac_exeext'
31780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781   (eval $ac_try) 2>&5
31782   ac_status=$?
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); }; }; then
31785   ac_cv_lib_socket_connect=yes
31786 else
31787   echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31789
31790 ac_cv_lib_socket_connect=no
31791 fi
31792 rm -f conftest.err conftest.$ac_objext \
31793       conftest$ac_exeext conftest.$ac_ext
31794 LIBS=$ac_check_lib_save_LIBS
31795 fi
31796 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
31797 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
31798 if test $ac_cv_lib_socket_connect = yes; then
31799   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
31800 fi
31801
31802     fi
31803
31804     # Guillermo Gomez says -lposix is necessary on A/UX.
31805     echo "$as_me:$LINENO: checking for remove" >&5
31806 echo $ECHO_N "checking for remove... $ECHO_C" >&6
31807 if test "${ac_cv_func_remove+set}" = set; then
31808   echo $ECHO_N "(cached) $ECHO_C" >&6
31809 else
31810   cat >conftest.$ac_ext <<_ACEOF
31811 /* confdefs.h.  */
31812 _ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h.  */
31816 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
31817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31818 #define remove innocuous_remove
31819
31820 /* System header to define __stub macros and hopefully few prototypes,
31821     which can conflict with char remove (); below.
31822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31823     <limits.h> exists even on freestanding compilers.  */
31824
31825 #ifdef __STDC__
31826 # include <limits.h>
31827 #else
31828 # include <assert.h>
31829 #endif
31830
31831 #undef remove
31832
31833 /* Override any gcc2 internal prototype to avoid an error.  */
31834 #ifdef __cplusplus
31835 extern "C"
31836 {
31837 #endif
31838 /* We use char because int might match the return type of a gcc2
31839    builtin and then its argument prototype would still apply.  */
31840 char remove ();
31841 /* The GNU C library defines this for functions which it implements
31842     to always fail with ENOSYS.  Some functions are actually named
31843     something starting with __ and the normal name is an alias.  */
31844 #if defined (__stub_remove) || defined (__stub___remove)
31845 choke me
31846 #else
31847 char (*f) () = remove;
31848 #endif
31849 #ifdef __cplusplus
31850 }
31851 #endif
31852
31853 int
31854 main ()
31855 {
31856 return f != remove;
31857   ;
31858   return 0;
31859 }
31860 _ACEOF
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31863   (eval $ac_link) 2>conftest.er1
31864   ac_status=$?
31865   grep -v '^ *+' conftest.er1 >conftest.err
31866   rm -f conftest.er1
31867   cat conftest.err >&5
31868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869   (exit $ac_status); } &&
31870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31872   (eval $ac_try) 2>&5
31873   ac_status=$?
31874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875   (exit $ac_status); }; } &&
31876          { ac_try='test -s conftest$ac_exeext'
31877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31878   (eval $ac_try) 2>&5
31879   ac_status=$?
31880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881   (exit $ac_status); }; }; then
31882   ac_cv_func_remove=yes
31883 else
31884   echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.$ac_ext >&5
31886
31887 ac_cv_func_remove=no
31888 fi
31889 rm -f conftest.err conftest.$ac_objext \
31890       conftest$ac_exeext conftest.$ac_ext
31891 fi
31892 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31893 echo "${ECHO_T}$ac_cv_func_remove" >&6
31894
31895     if test $ac_cv_func_remove = no; then
31896       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31897 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
31898 if test "${ac_cv_lib_posix_remove+set}" = set; then
31899   echo $ECHO_N "(cached) $ECHO_C" >&6
31900 else
31901   ac_check_lib_save_LIBS=$LIBS
31902 LIBS="-lposix  $LIBS"
31903 cat >conftest.$ac_ext <<_ACEOF
31904 /* confdefs.h.  */
31905 _ACEOF
31906 cat confdefs.h >>conftest.$ac_ext
31907 cat >>conftest.$ac_ext <<_ACEOF
31908 /* end confdefs.h.  */
31909
31910 /* Override any gcc2 internal prototype to avoid an error.  */
31911 #ifdef __cplusplus
31912 extern "C"
31913 #endif
31914 /* We use char because int might match the return type of a gcc2
31915    builtin and then its argument prototype would still apply.  */
31916 char remove ();
31917 int
31918 main ()
31919 {
31920 remove ();
31921   ;
31922   return 0;
31923 }
31924 _ACEOF
31925 rm -f conftest.$ac_objext conftest$ac_exeext
31926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31927   (eval $ac_link) 2>conftest.er1
31928   ac_status=$?
31929   grep -v '^ *+' conftest.er1 >conftest.err
31930   rm -f conftest.er1
31931   cat conftest.err >&5
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); } &&
31934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936   (eval $ac_try) 2>&5
31937   ac_status=$?
31938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939   (exit $ac_status); }; } &&
31940          { ac_try='test -s conftest$ac_exeext'
31941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942   (eval $ac_try) 2>&5
31943   ac_status=$?
31944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945   (exit $ac_status); }; }; then
31946   ac_cv_lib_posix_remove=yes
31947 else
31948   echo "$as_me: failed program was:" >&5
31949 sed 's/^/| /' conftest.$ac_ext >&5
31950
31951 ac_cv_lib_posix_remove=no
31952 fi
31953 rm -f conftest.err conftest.$ac_objext \
31954       conftest$ac_exeext conftest.$ac_ext
31955 LIBS=$ac_check_lib_save_LIBS
31956 fi
31957 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31958 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
31959 if test $ac_cv_lib_posix_remove = yes; then
31960   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31961 fi
31962
31963     fi
31964
31965     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31966     echo "$as_me:$LINENO: checking for shmat" >&5
31967 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
31968 if test "${ac_cv_func_shmat+set}" = set; then
31969   echo $ECHO_N "(cached) $ECHO_C" >&6
31970 else
31971   cat >conftest.$ac_ext <<_ACEOF
31972 /* confdefs.h.  */
31973 _ACEOF
31974 cat confdefs.h >>conftest.$ac_ext
31975 cat >>conftest.$ac_ext <<_ACEOF
31976 /* end confdefs.h.  */
31977 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31979 #define shmat innocuous_shmat
31980
31981 /* System header to define __stub macros and hopefully few prototypes,
31982     which can conflict with char shmat (); below.
31983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31984     <limits.h> exists even on freestanding compilers.  */
31985
31986 #ifdef __STDC__
31987 # include <limits.h>
31988 #else
31989 # include <assert.h>
31990 #endif
31991
31992 #undef shmat
31993
31994 /* Override any gcc2 internal prototype to avoid an error.  */
31995 #ifdef __cplusplus
31996 extern "C"
31997 {
31998 #endif
31999 /* We use char because int might match the return type of a gcc2
32000    builtin and then its argument prototype would still apply.  */
32001 char shmat ();
32002 /* The GNU C library defines this for functions which it implements
32003     to always fail with ENOSYS.  Some functions are actually named
32004     something starting with __ and the normal name is an alias.  */
32005 #if defined (__stub_shmat) || defined (__stub___shmat)
32006 choke me
32007 #else
32008 char (*f) () = shmat;
32009 #endif
32010 #ifdef __cplusplus
32011 }
32012 #endif
32013
32014 int
32015 main ()
32016 {
32017 return f != shmat;
32018   ;
32019   return 0;
32020 }
32021 _ACEOF
32022 rm -f conftest.$ac_objext conftest$ac_exeext
32023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32024   (eval $ac_link) 2>conftest.er1
32025   ac_status=$?
32026   grep -v '^ *+' conftest.er1 >conftest.err
32027   rm -f conftest.er1
32028   cat conftest.err >&5
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); } &&
32031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32033   (eval $ac_try) 2>&5
32034   ac_status=$?
32035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036   (exit $ac_status); }; } &&
32037          { ac_try='test -s conftest$ac_exeext'
32038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32039   (eval $ac_try) 2>&5
32040   ac_status=$?
32041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); }; }; then
32043   ac_cv_func_shmat=yes
32044 else
32045   echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32047
32048 ac_cv_func_shmat=no
32049 fi
32050 rm -f conftest.err conftest.$ac_objext \
32051       conftest$ac_exeext conftest.$ac_ext
32052 fi
32053 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32054 echo "${ECHO_T}$ac_cv_func_shmat" >&6
32055
32056     if test $ac_cv_func_shmat = no; then
32057       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32058 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
32059 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32060   echo $ECHO_N "(cached) $ECHO_C" >&6
32061 else
32062   ac_check_lib_save_LIBS=$LIBS
32063 LIBS="-lipc  $LIBS"
32064 cat >conftest.$ac_ext <<_ACEOF
32065 /* confdefs.h.  */
32066 _ACEOF
32067 cat confdefs.h >>conftest.$ac_ext
32068 cat >>conftest.$ac_ext <<_ACEOF
32069 /* end confdefs.h.  */
32070
32071 /* Override any gcc2 internal prototype to avoid an error.  */
32072 #ifdef __cplusplus
32073 extern "C"
32074 #endif
32075 /* We use char because int might match the return type of a gcc2
32076    builtin and then its argument prototype would still apply.  */
32077 char shmat ();
32078 int
32079 main ()
32080 {
32081 shmat ();
32082   ;
32083   return 0;
32084 }
32085 _ACEOF
32086 rm -f conftest.$ac_objext conftest$ac_exeext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32088   (eval $ac_link) 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } &&
32095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097   (eval $ac_try) 2>&5
32098   ac_status=$?
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); }; } &&
32101          { ac_try='test -s conftest$ac_exeext'
32102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103   (eval $ac_try) 2>&5
32104   ac_status=$?
32105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106   (exit $ac_status); }; }; then
32107   ac_cv_lib_ipc_shmat=yes
32108 else
32109   echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112 ac_cv_lib_ipc_shmat=no
32113 fi
32114 rm -f conftest.err conftest.$ac_objext \
32115       conftest$ac_exeext conftest.$ac_ext
32116 LIBS=$ac_check_lib_save_LIBS
32117 fi
32118 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
32119 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
32120 if test $ac_cv_lib_ipc_shmat = yes; then
32121   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
32122 fi
32123
32124     fi
32125   fi
32126
32127   # Check for libraries that X11R6 Xt/Xaw programs need.
32128   ac_save_LDFLAGS=$LDFLAGS
32129   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
32130   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
32131   # check for ICE first), but we must link in the order -lSM -lICE or
32132   # we get undefined symbols.  So assume we have SM if we have ICE.
32133   # These have to be linked with before -lX11, unlike the other
32134   # libraries we check for below, so use a different variable.
32135   # John Interrante, Karl Berry
32136   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
32137 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
32138 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
32139   echo $ECHO_N "(cached) $ECHO_C" >&6
32140 else
32141   ac_check_lib_save_LIBS=$LIBS
32142 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
32143 cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h.  */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h.  */
32149
32150 /* Override any gcc2 internal prototype to avoid an error.  */
32151 #ifdef __cplusplus
32152 extern "C"
32153 #endif
32154 /* We use char because int might match the return type of a gcc2
32155    builtin and then its argument prototype would still apply.  */
32156 char IceConnectionNumber ();
32157 int
32158 main ()
32159 {
32160 IceConnectionNumber ();
32161   ;
32162   return 0;
32163 }
32164 _ACEOF
32165 rm -f conftest.$ac_objext conftest$ac_exeext
32166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32167   (eval $ac_link) 2>conftest.er1
32168   ac_status=$?
32169   grep -v '^ *+' conftest.er1 >conftest.err
32170   rm -f conftest.er1
32171   cat conftest.err >&5
32172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173   (exit $ac_status); } &&
32174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32176   (eval $ac_try) 2>&5
32177   ac_status=$?
32178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179   (exit $ac_status); }; } &&
32180          { ac_try='test -s conftest$ac_exeext'
32181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32182   (eval $ac_try) 2>&5
32183   ac_status=$?
32184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185   (exit $ac_status); }; }; then
32186   ac_cv_lib_ICE_IceConnectionNumber=yes
32187 else
32188   echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.$ac_ext >&5
32190
32191 ac_cv_lib_ICE_IceConnectionNumber=no
32192 fi
32193 rm -f conftest.err conftest.$ac_objext \
32194       conftest$ac_exeext conftest.$ac_ext
32195 LIBS=$ac_check_lib_save_LIBS
32196 fi
32197 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
32198 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
32199 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
32200   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
32201 fi
32202
32203   LDFLAGS=$ac_save_LDFLAGS
32204
32205 fi
32206
32207
32208         if test "$no_x" = "yes"; then
32209           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
32210 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
32211    { (exit 1); exit 1; }; }
32212         fi
32213
32214                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
32215         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
32216         AFMINSTALL=afminstall
32217         COMPILED_X_PROGRAM=0
32218
32219     fi
32220
32221     if test "$wxUSE_X11" = 1; then
32222         if test "$wxUSE_NANOX" = "yes"; then
32223             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
32224 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
32225             if test "x$MICROWIN" = x ; then
32226                 echo "$as_me:$LINENO: result: not found" >&5
32227 echo "${ECHO_T}not found" >&6
32228                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
32229 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
32230    { (exit 1); exit 1; }; }
32231             else
32232                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
32233 echo "${ECHO_T}$MICROWIN" >&6
32234                 cat >>confdefs.h <<\_ACEOF
32235 #define wxUSE_NANOX 1
32236 _ACEOF
32237
32238             fi
32239         fi
32240
32241         if test "$wxUSE_UNICODE" = "yes"; then
32242
32243
32244 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32245         if test -n "$ac_tool_prefix"; then
32246   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32247 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32248 echo "$as_me:$LINENO: checking for $ac_word" >&5
32249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32250 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32251   echo $ECHO_N "(cached) $ECHO_C" >&6
32252 else
32253   case $PKG_CONFIG in
32254   [\\/]* | ?:[\\/]*)
32255   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32256   ;;
32257   *)
32258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32259 for as_dir in $PATH
32260 do
32261   IFS=$as_save_IFS
32262   test -z "$as_dir" && as_dir=.
32263   for ac_exec_ext in '' $ac_executable_extensions; do
32264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32265     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32267     break 2
32268   fi
32269 done
32270 done
32271
32272   ;;
32273 esac
32274 fi
32275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32276
32277 if test -n "$PKG_CONFIG"; then
32278   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32279 echo "${ECHO_T}$PKG_CONFIG" >&6
32280 else
32281   echo "$as_me:$LINENO: result: no" >&5
32282 echo "${ECHO_T}no" >&6
32283 fi
32284
32285 fi
32286 if test -z "$ac_cv_path_PKG_CONFIG"; then
32287   ac_pt_PKG_CONFIG=$PKG_CONFIG
32288   # Extract the first word of "pkg-config", so it can be a program name with args.
32289 set dummy pkg-config; ac_word=$2
32290 echo "$as_me:$LINENO: checking for $ac_word" >&5
32291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32292 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32293   echo $ECHO_N "(cached) $ECHO_C" >&6
32294 else
32295   case $ac_pt_PKG_CONFIG in
32296   [\\/]* | ?:[\\/]*)
32297   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32298   ;;
32299   *)
32300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32301 for as_dir in $PATH
32302 do
32303   IFS=$as_save_IFS
32304   test -z "$as_dir" && as_dir=.
32305   for ac_exec_ext in '' $ac_executable_extensions; do
32306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32307     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32309     break 2
32310   fi
32311 done
32312 done
32313
32314   ;;
32315 esac
32316 fi
32317 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32318
32319 if test -n "$ac_pt_PKG_CONFIG"; then
32320   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32321 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
32322 else
32323   echo "$as_me:$LINENO: result: no" >&5
32324 echo "${ECHO_T}no" >&6
32325 fi
32326
32327   PKG_CONFIG=$ac_pt_PKG_CONFIG
32328 else
32329   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32330 fi
32331
32332 fi
32333 if test -n "$PKG_CONFIG"; then
32334         _pkg_min_version=0.9.0
32335         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32336 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
32337         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32338                 echo "$as_me:$LINENO: result: yes" >&5
32339 echo "${ECHO_T}yes" >&6
32340         else
32341                 echo "$as_me:$LINENO: result: no" >&5
32342 echo "${ECHO_T}no" >&6
32343                 PKG_CONFIG=""
32344         fi
32345
32346 fi
32347
32348
32349 pkg_failed=no
32350 echo "$as_me:$LINENO: checking for PANGOX" >&5
32351 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
32352
32353 if test -n "$PKG_CONFIG"; then
32354     if test -n "$PANGOX_CFLAGS"; then
32355         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
32356     else
32357         if test -n "$PKG_CONFIG" && \
32358     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32359   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32360   ac_status=$?
32361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362   (exit $ac_status); }; then
32363   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
32364 else
32365   pkg_failed=yes
32366 fi
32367     fi
32368 else
32369         pkg_failed=untried
32370 fi
32371 if test -n "$PKG_CONFIG"; then
32372     if test -n "$PANGOX_LIBS"; then
32373         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
32374     else
32375         if test -n "$PKG_CONFIG" && \
32376     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
32377   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
32378   ac_status=$?
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); }; then
32381   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
32382 else
32383   pkg_failed=yes
32384 fi
32385     fi
32386 else
32387         pkg_failed=untried
32388 fi
32389
32390
32391
32392 if test $pkg_failed = yes; then
32393
32394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32395         _pkg_short_errors_supported=yes
32396 else
32397         _pkg_short_errors_supported=no
32398 fi
32399         if test $_pkg_short_errors_supported = yes; then
32400                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
32401         else
32402                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
32403         fi
32404         # Put the nasty error message in config.log where it belongs
32405         echo "$PANGOX_PKG_ERRORS" >&5
32406
32407
32408                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32409 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32410    { (exit 1); exit 1; }; }
32411
32412
32413 elif test $pkg_failed = untried; then
32414
32415                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
32416 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
32417    { (exit 1); exit 1; }; }
32418
32419
32420 else
32421         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
32422         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
32423         echo "$as_me:$LINENO: result: yes" >&5
32424 echo "${ECHO_T}yes" >&6
32425
32426                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
32427                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
32428                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
32429
32430 fi
32431
32432 pkg_failed=no
32433 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
32434 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
32435
32436 if test -n "$PKG_CONFIG"; then
32437     if test -n "$PANGOFT2_CFLAGS"; then
32438         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
32439     else
32440         if test -n "$PKG_CONFIG" && \
32441     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32442   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32443   ac_status=$?
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); }; then
32446   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
32447 else
32448   pkg_failed=yes
32449 fi
32450     fi
32451 else
32452         pkg_failed=untried
32453 fi
32454 if test -n "$PKG_CONFIG"; then
32455     if test -n "$PANGOFT2_LIBS"; then
32456         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
32457     else
32458         if test -n "$PKG_CONFIG" && \
32459     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
32460   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
32461   ac_status=$?
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); }; then
32464   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
32465 else
32466   pkg_failed=yes
32467 fi
32468     fi
32469 else
32470         pkg_failed=untried
32471 fi
32472
32473
32474
32475 if test $pkg_failed = yes; then
32476
32477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32478         _pkg_short_errors_supported=yes
32479 else
32480         _pkg_short_errors_supported=no
32481 fi
32482         if test $_pkg_short_errors_supported = yes; then
32483                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
32484         else
32485                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
32486         fi
32487         # Put the nasty error message in config.log where it belongs
32488         echo "$PANGOFT2_PKG_ERRORS" >&5
32489
32490
32491                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32492 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32493                     wxUSE_PRINTING_ARCHITECTURE="no"
32494
32495
32496 elif test $pkg_failed = untried; then
32497
32498                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
32499 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
32500                     wxUSE_PRINTING_ARCHITECTURE="no"
32501
32502
32503 else
32504         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
32505         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
32506         echo "$as_me:$LINENO: result: yes" >&5
32507 echo "${ECHO_T}yes" >&6
32508
32509                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
32510                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
32511                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
32512
32513 fi
32514
32515 pkg_failed=no
32516 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
32517 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
32518
32519 if test -n "$PKG_CONFIG"; then
32520     if test -n "$PANGOXFT_CFLAGS"; then
32521         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
32522     else
32523         if test -n "$PKG_CONFIG" && \
32524     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32525   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32526   ac_status=$?
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); }; then
32529   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
32530 else
32531   pkg_failed=yes
32532 fi
32533     fi
32534 else
32535         pkg_failed=untried
32536 fi
32537 if test -n "$PKG_CONFIG"; then
32538     if test -n "$PANGOXFT_LIBS"; then
32539         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
32540     else
32541         if test -n "$PKG_CONFIG" && \
32542     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
32543   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
32544   ac_status=$?
32545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546   (exit $ac_status); }; then
32547   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
32548 else
32549   pkg_failed=yes
32550 fi
32551     fi
32552 else
32553         pkg_failed=untried
32554 fi
32555
32556
32557
32558 if test $pkg_failed = yes; then
32559
32560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32561         _pkg_short_errors_supported=yes
32562 else
32563         _pkg_short_errors_supported=no
32564 fi
32565         if test $_pkg_short_errors_supported = yes; then
32566                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
32567         else
32568                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
32569         fi
32570         # Put the nasty error message in config.log where it belongs
32571         echo "$PANGOXFT_PKG_ERRORS" >&5
32572
32573
32574                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32575 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32576
32577
32578 elif test $pkg_failed = untried; then
32579
32580                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
32581 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
32582
32583
32584 else
32585         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
32586         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
32587         echo "$as_me:$LINENO: result: yes" >&5
32588 echo "${ECHO_T}yes" >&6
32589
32590                     cat >>confdefs.h <<\_ACEOF
32591 #define HAVE_PANGO_XFT 1
32592 _ACEOF
32593
32594                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
32595                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
32596                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
32597
32598 fi
32599             save_LIBS="$LIBS"
32600             LIBS="$LIBS $PANGOX_LIBS"
32601
32602 for ac_func in pango_font_family_is_monospace
32603 do
32604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32605 echo "$as_me:$LINENO: checking for $ac_func" >&5
32606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32607 if eval "test \"\${$as_ac_var+set}\" = set"; then
32608   echo $ECHO_N "(cached) $ECHO_C" >&6
32609 else
32610   cat >conftest.$ac_ext <<_ACEOF
32611 /* confdefs.h.  */
32612 _ACEOF
32613 cat confdefs.h >>conftest.$ac_ext
32614 cat >>conftest.$ac_ext <<_ACEOF
32615 /* end confdefs.h.  */
32616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32618 #define $ac_func innocuous_$ac_func
32619
32620 /* System header to define __stub macros and hopefully few prototypes,
32621     which can conflict with char $ac_func (); below.
32622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32623     <limits.h> exists even on freestanding compilers.  */
32624
32625 #ifdef __STDC__
32626 # include <limits.h>
32627 #else
32628 # include <assert.h>
32629 #endif
32630
32631 #undef $ac_func
32632
32633 /* Override any gcc2 internal prototype to avoid an error.  */
32634 #ifdef __cplusplus
32635 extern "C"
32636 {
32637 #endif
32638 /* We use char because int might match the return type of a gcc2
32639    builtin and then its argument prototype would still apply.  */
32640 char $ac_func ();
32641 /* The GNU C library defines this for functions which it implements
32642     to always fail with ENOSYS.  Some functions are actually named
32643     something starting with __ and the normal name is an alias.  */
32644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32645 choke me
32646 #else
32647 char (*f) () = $ac_func;
32648 #endif
32649 #ifdef __cplusplus
32650 }
32651 #endif
32652
32653 int
32654 main ()
32655 {
32656 return f != $ac_func;
32657   ;
32658   return 0;
32659 }
32660 _ACEOF
32661 rm -f conftest.$ac_objext conftest$ac_exeext
32662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32663   (eval $ac_link) 2>conftest.er1
32664   ac_status=$?
32665   grep -v '^ *+' conftest.er1 >conftest.err
32666   rm -f conftest.er1
32667   cat conftest.err >&5
32668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669   (exit $ac_status); } &&
32670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32672   (eval $ac_try) 2>&5
32673   ac_status=$?
32674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675   (exit $ac_status); }; } &&
32676          { ac_try='test -s conftest$ac_exeext'
32677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32678   (eval $ac_try) 2>&5
32679   ac_status=$?
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); }; }; then
32682   eval "$as_ac_var=yes"
32683 else
32684   echo "$as_me: failed program was:" >&5
32685 sed 's/^/| /' conftest.$ac_ext >&5
32686
32687 eval "$as_ac_var=no"
32688 fi
32689 rm -f conftest.err conftest.$ac_objext \
32690       conftest$ac_exeext conftest.$ac_ext
32691 fi
32692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32694 if test `eval echo '${'$as_ac_var'}'` = yes; then
32695   cat >>confdefs.h <<_ACEOF
32696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32697 _ACEOF
32698
32699 fi
32700 done
32701
32702             LIBS="$save_LIBS"
32703         fi
32704
32705         wxUSE_UNIVERSAL="yes"
32706
32707         if test "$wxUSE_NANOX" = "yes"; then
32708             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
32709             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"
32710             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
32711         else
32712             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
32713         fi
32714
32715         TOOLKIT=X11
32716         GUIDIST=X11_DIST
32717     fi
32718
32719     if test "$wxUSE_MOTIF" = 1; then
32720         if test "$wxUSE_UNICODE" = "yes"; then
32721             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
32722 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
32723    { (exit 1); exit 1; }; }
32724         fi
32725
32726         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
32727 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
32728
32729 ac_find_includes=
32730 for ac_dir in $SEARCH_INCLUDE /usr/include;
32731   do
32732     if test -f "$ac_dir/Xm/Xm.h"; then
32733       ac_find_includes=$ac_dir
32734       break
32735     fi
32736   done
32737
32738         if test "$ac_find_includes" != "" ; then
32739             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32740 echo "${ECHO_T}found in $ac_find_includes" >&6
32741
32742     if test "x$ac_find_includes" = "x/usr/include"; then
32743     ac_path_to_include=""
32744   else
32745     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
32746     result=$?
32747     if test $result = 0; then
32748       ac_path_to_include=""
32749     else
32750       ac_path_to_include=" -I$ac_find_includes"
32751     fi
32752   fi
32753
32754             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
32755         else
32756             save_CFLAGS=$CFLAGS
32757             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32758
32759             cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765
32766                     #include <Xm/Xm.h>
32767
32768 int
32769 main ()
32770 {
32771
32772                     int version;
32773                     version = xmUseVersion;
32774
32775   ;
32776   return 0;
32777 }
32778 _ACEOF
32779 rm -f conftest.$ac_objext
32780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32781   (eval $ac_compile) 2>conftest.er1
32782   ac_status=$?
32783   grep -v '^ *+' conftest.er1 >conftest.err
32784   rm -f conftest.er1
32785   cat conftest.err >&5
32786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787   (exit $ac_status); } &&
32788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32790   (eval $ac_try) 2>&5
32791   ac_status=$?
32792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793   (exit $ac_status); }; } &&
32794          { ac_try='test -s conftest.$ac_objext'
32795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796   (eval $ac_try) 2>&5
32797   ac_status=$?
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); }; }; then
32800
32801                     echo "$as_me:$LINENO: result: found in default search path" >&5
32802 echo "${ECHO_T}found in default search path" >&6
32803                     COMPILED_X_PROGRAM=1
32804
32805 else
32806   echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.$ac_ext >&5
32808
32809
32810                     echo "$as_me:$LINENO: result: no" >&5
32811 echo "${ECHO_T}no" >&6
32812                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
32813 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
32814    { (exit 1); exit 1; }; }
32815
32816
32817 fi
32818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32819
32820             CFLAGS=$save_CFLAGS
32821         fi
32822
32823
32824         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
32825 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
32826
32827   ac_find_libraries=
32828   for ac_dir in $SEARCH_LIB;
32829   do
32830     for ac_extension in a so sl dylib dll.a; do
32831       if test -f "$ac_dir/libXm.$ac_extension"; then
32832         ac_find_libraries=$ac_dir
32833         break 2
32834       fi
32835     done
32836   done
32837
32838
32839         if test "x$ac_find_libraries" != "x" ; then
32840             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32841 echo "${ECHO_T}found in $ac_find_libraries" >&6
32842
32843
32844     if test "$ac_find_libraries" = "default location"; then
32845     ac_path_to_link=""
32846   else
32847     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32848     result=$?
32849     if test $result = 0; then
32850       ac_path_to_link=""
32851     else
32852       ac_path_to_link=" -L$ac_find_libraries"
32853     fi
32854   fi
32855
32856             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32857         else
32858                                                 save_CFLAGS=$CFLAGS
32859             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32860             save_LIBS="$LIBS"
32861             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32862
32863             cat >conftest.$ac_ext <<_ACEOF
32864 /* confdefs.h.  */
32865 _ACEOF
32866 cat confdefs.h >>conftest.$ac_ext
32867 cat >>conftest.$ac_ext <<_ACEOF
32868 /* end confdefs.h.  */
32869
32870                     #include <Xm/Xm.h>
32871
32872 int
32873 main ()
32874 {
32875
32876                     int version;
32877                     version = xmUseVersion;
32878
32879   ;
32880   return 0;
32881 }
32882 _ACEOF
32883 rm -f conftest.$ac_objext conftest$ac_exeext
32884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32885   (eval $ac_link) 2>conftest.er1
32886   ac_status=$?
32887   grep -v '^ *+' conftest.er1 >conftest.err
32888   rm -f conftest.er1
32889   cat conftest.err >&5
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); } &&
32892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32894   (eval $ac_try) 2>&5
32895   ac_status=$?
32896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897   (exit $ac_status); }; } &&
32898          { ac_try='test -s conftest$ac_exeext'
32899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32900   (eval $ac_try) 2>&5
32901   ac_status=$?
32902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903   (exit $ac_status); }; }; then
32904
32905                     echo "$as_me:$LINENO: result: found in default search path" >&5
32906 echo "${ECHO_T}found in default search path" >&6
32907                     COMPILED_X_PROGRAM=1
32908
32909 else
32910   echo "$as_me: failed program was:" >&5
32911 sed 's/^/| /' conftest.$ac_ext >&5
32912
32913
32914                     echo "$as_me:$LINENO: result: no" >&5
32915 echo "${ECHO_T}no" >&6
32916                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32917 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32918    { (exit 1); exit 1; }; }
32919
32920
32921 fi
32922 rm -f conftest.err conftest.$ac_objext \
32923       conftest$ac_exeext conftest.$ac_ext
32924
32925             CFLAGS=$save_CFLAGS
32926             LIBS="$save_LIBS"
32927         fi
32928
32929         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32930 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
32931         libp_link=""
32932         libsm_ice_link=""
32933         libs_found=0
32934         for libp in "" " -lXp"; do
32935             if test "$libs_found" = "0"; then
32936                 for libsm_ice in "" " -lSM -lICE"; do
32937                     if test "$libs_found" = "0"; then
32938                         save_LIBS="$LIBS"
32939                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32940                         save_CFLAGS=$CFLAGS
32941                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32942
32943                         cat >conftest.$ac_ext <<_ACEOF
32944 /* confdefs.h.  */
32945 _ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h.  */
32949
32950                                 #include <Xm/Xm.h>
32951                                 #include <Xm/List.h>
32952
32953 int
32954 main ()
32955 {
32956
32957                                 XmString string = NULL;
32958                                 Widget w = NULL;
32959                                 int position = 0;
32960                                 XmListAddItem(w, string, position);
32961
32962   ;
32963   return 0;
32964 }
32965 _ACEOF
32966 rm -f conftest.$ac_objext conftest$ac_exeext
32967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32968   (eval $ac_link) 2>conftest.er1
32969   ac_status=$?
32970   grep -v '^ *+' conftest.er1 >conftest.err
32971   rm -f conftest.er1
32972   cat conftest.err >&5
32973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974   (exit $ac_status); } &&
32975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32977   (eval $ac_try) 2>&5
32978   ac_status=$?
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); }; } &&
32981          { ac_try='test -s conftest$ac_exeext'
32982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32983   (eval $ac_try) 2>&5
32984   ac_status=$?
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); }; }; then
32987
32988                                 libp_link="$libp"
32989                                 libsm_ice_link="$libsm_ice"
32990                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32991 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
32992                                 libs_found=1
32993
32994 else
32995   echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32997
32998
32999
33000 fi
33001 rm -f conftest.err conftest.$ac_objext \
33002       conftest$ac_exeext conftest.$ac_ext
33003
33004                         LIBS="$save_LIBS"
33005                         CFLAGS=$save_CFLAGS
33006                     fi
33007                 done
33008             fi
33009         done
33010
33011         if test "$libs_found" = "0"; then
33012             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33013 echo "${ECHO_T}can't find the right libraries" >&6
33014             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33015 echo "$as_me: error: can't link a simple motif program" >&2;}
33016    { (exit 1); exit 1; }; }
33017         fi
33018
33019                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33020 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
33021 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33022   echo $ECHO_N "(cached) $ECHO_C" >&6
33023 else
33024   ac_check_lib_save_LIBS=$LIBS
33025 LIBS="-lSgm  $LIBS"
33026 cat >conftest.$ac_ext <<_ACEOF
33027 /* confdefs.h.  */
33028 _ACEOF
33029 cat confdefs.h >>conftest.$ac_ext
33030 cat >>conftest.$ac_ext <<_ACEOF
33031 /* end confdefs.h.  */
33032
33033 /* Override any gcc2 internal prototype to avoid an error.  */
33034 #ifdef __cplusplus
33035 extern "C"
33036 #endif
33037 /* We use char because int might match the return type of a gcc2
33038    builtin and then its argument prototype would still apply.  */
33039 char SgCreateList ();
33040 int
33041 main ()
33042 {
33043 SgCreateList ();
33044   ;
33045   return 0;
33046 }
33047 _ACEOF
33048 rm -f conftest.$ac_objext conftest$ac_exeext
33049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33050   (eval $ac_link) 2>conftest.er1
33051   ac_status=$?
33052   grep -v '^ *+' conftest.er1 >conftest.err
33053   rm -f conftest.er1
33054   cat conftest.err >&5
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); } &&
33057          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059   (eval $ac_try) 2>&5
33060   ac_status=$?
33061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062   (exit $ac_status); }; } &&
33063          { ac_try='test -s conftest$ac_exeext'
33064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065   (eval $ac_try) 2>&5
33066   ac_status=$?
33067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068   (exit $ac_status); }; }; then
33069   ac_cv_lib_Sgm_SgCreateList=yes
33070 else
33071   echo "$as_me: failed program was:" >&5
33072 sed 's/^/| /' conftest.$ac_ext >&5
33073
33074 ac_cv_lib_Sgm_SgCreateList=no
33075 fi
33076 rm -f conftest.err conftest.$ac_objext \
33077       conftest$ac_exeext conftest.$ac_ext
33078 LIBS=$ac_check_lib_save_LIBS
33079 fi
33080 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
33081 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
33082 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
33083   libsgm_link=" -lSgm"
33084 fi
33085
33086
33087         save_CFLAGS=$CFLAGS
33088         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33089
33090         echo "$as_me:$LINENO: checking for Motif 2" >&5
33091 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
33092 if test "${wx_cv_lib_motif2+set}" = set; then
33093   echo $ECHO_N "(cached) $ECHO_C" >&6
33094 else
33095   cat >conftest.$ac_ext <<_ACEOF
33096 /* confdefs.h.  */
33097 _ACEOF
33098 cat confdefs.h >>conftest.$ac_ext
33099 cat >>conftest.$ac_ext <<_ACEOF
33100 /* end confdefs.h.  */
33101
33102                             #include <Xm/Xm.h>
33103
33104 int
33105 main ()
33106 {
33107
33108                             #if XmVersion < 2000
33109                             Not Motif 2
33110                             #endif
33111
33112   ;
33113   return 0;
33114 }
33115 _ACEOF
33116 rm -f conftest.$ac_objext
33117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33118   (eval $ac_compile) 2>conftest.er1
33119   ac_status=$?
33120   grep -v '^ *+' conftest.er1 >conftest.err
33121   rm -f conftest.er1
33122   cat conftest.err >&5
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); } &&
33125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33127   (eval $ac_try) 2>&5
33128   ac_status=$?
33129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130   (exit $ac_status); }; } &&
33131          { ac_try='test -s conftest.$ac_objext'
33132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33133   (eval $ac_try) 2>&5
33134   ac_status=$?
33135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136   (exit $ac_status); }; }; then
33137   wx_cv_lib_motif2="yes"
33138 else
33139   echo "$as_me: failed program was:" >&5
33140 sed 's/^/| /' conftest.$ac_ext >&5
33141
33142 wx_cv_lib_motif2="no"
33143 fi
33144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33145 fi
33146 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
33147 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
33148         if test "$wx_cv_lib_motif2" = "yes"; then
33149             cat >>confdefs.h <<\_ACEOF
33150 #define __WXMOTIF20__ 1
33151 _ACEOF
33152
33153         else
33154             cat >>confdefs.h <<\_ACEOF
33155 #define __WXMOTIF20__ 0
33156 _ACEOF
33157
33158         fi
33159
33160         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
33161 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
33162 if test "${wx_cv_lib_lesstif+set}" = set; then
33163   echo $ECHO_N "(cached) $ECHO_C" >&6
33164 else
33165   cat >conftest.$ac_ext <<_ACEOF
33166 /* confdefs.h.  */
33167 _ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h.  */
33171
33172                             #include <Xm/Xm.h>
33173
33174 int
33175 main ()
33176 {
33177
33178                             #if !defined(LesstifVersion) || LesstifVersion <= 0
33179                             Not Lesstif
33180                             #endif
33181
33182   ;
33183   return 0;
33184 }
33185 _ACEOF
33186 rm -f conftest.$ac_objext
33187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33188   (eval $ac_compile) 2>conftest.er1
33189   ac_status=$?
33190   grep -v '^ *+' conftest.er1 >conftest.err
33191   rm -f conftest.er1
33192   cat conftest.err >&5
33193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194   (exit $ac_status); } &&
33195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197   (eval $ac_try) 2>&5
33198   ac_status=$?
33199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200   (exit $ac_status); }; } &&
33201          { ac_try='test -s conftest.$ac_objext'
33202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33203   (eval $ac_try) 2>&5
33204   ac_status=$?
33205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206   (exit $ac_status); }; }; then
33207   wx_cv_lib_lesstif="yes"
33208 else
33209   echo "$as_me: failed program was:" >&5
33210 sed 's/^/| /' conftest.$ac_ext >&5
33211
33212 wx_cv_lib_lesstif="no"
33213 fi
33214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33215
33216 fi
33217 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
33218 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
33219         if test "$wx_cv_lib_lesstif" = "yes"; then
33220             cat >>confdefs.h <<\_ACEOF
33221 #define __WXLESSTIF__ 1
33222 _ACEOF
33223
33224         else
33225             cat >>confdefs.h <<\_ACEOF
33226 #define __WXLESSTIF__ 0
33227 _ACEOF
33228
33229         fi
33230
33231         CFLAGS=$save_CFLAGS
33232
33233         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
33234         TOOLKIT=MOTIF
33235         GUIDIST=MOTIF_DIST
33236     fi
33237
33238         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33239                 if test "$wxUSE_LIBXPM" = "sys"; then
33240             echo "$as_me:$LINENO: checking for Xpm library" >&5
33241 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
33242
33243   ac_find_libraries=
33244   for ac_dir in $SEARCH_LIB;
33245   do
33246     for ac_extension in a so sl dylib dll.a; do
33247       if test -f "$ac_dir/libXpm.$ac_extension"; then
33248         ac_find_libraries=$ac_dir
33249         break 2
33250       fi
33251     done
33252   done
33253
33254             if test "$ac_find_libraries" != "" ; then
33255
33256     if test "$ac_find_libraries" = "default location"; then
33257     ac_path_to_link=""
33258   else
33259     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33260     result=$?
33261     if test $result = 0; then
33262       ac_path_to_link=""
33263     else
33264       ac_path_to_link=" -L$ac_find_libraries"
33265     fi
33266   fi
33267
33268                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33269                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33270 echo "${ECHO_T}found in $ac_find_libraries" >&6
33271
33272                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
33273 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
33274 if test "${wx_cv_x11_xpm_h+set}" = set; then
33275   echo $ECHO_N "(cached) $ECHO_C" >&6
33276 else
33277
33278                         save_CFLAGS=$CFLAGS
33279                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33280
33281                         cat >conftest.$ac_ext <<_ACEOF
33282 /* confdefs.h.  */
33283 _ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h.  */
33287
33288                                 #include <X11/xpm.h>
33289
33290 int
33291 main ()
33292 {
33293
33294                                 int version;
33295                                 version = XpmLibraryVersion();
33296
33297   ;
33298   return 0;
33299 }
33300 _ACEOF
33301 rm -f conftest.$ac_objext
33302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33303   (eval $ac_compile) 2>conftest.er1
33304   ac_status=$?
33305   grep -v '^ *+' conftest.er1 >conftest.err
33306   rm -f conftest.er1
33307   cat conftest.err >&5
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); } &&
33310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312   (eval $ac_try) 2>&5
33313   ac_status=$?
33314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315   (exit $ac_status); }; } &&
33316          { ac_try='test -s conftest.$ac_objext'
33317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318   (eval $ac_try) 2>&5
33319   ac_status=$?
33320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); }; }; then
33322   wx_cv_x11_xpm_h=yes
33323 else
33324   echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33326
33327 wx_cv_x11_xpm_h=no
33328
33329 fi
33330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33331
33332                         CFLAGS=$save_CFLAGS
33333
33334
33335 fi
33336 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
33337 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
33338
33339                 if test $wx_cv_x11_xpm_h = "yes"; then
33340                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
33341                     cat >>confdefs.h <<\_ACEOF
33342 #define wxHAVE_LIB_XPM 1
33343 _ACEOF
33344
33345                 else
33346                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
33347 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
33348                 fi
33349             fi
33350
33351         fi
33352
33353                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
33354 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
33355 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
33356   echo $ECHO_N "(cached) $ECHO_C" >&6
33357 else
33358   ac_check_lib_save_LIBS=$LIBS
33359 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
33360 cat >conftest.$ac_ext <<_ACEOF
33361 /* confdefs.h.  */
33362 _ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h.  */
33366
33367 /* Override any gcc2 internal prototype to avoid an error.  */
33368 #ifdef __cplusplus
33369 extern "C"
33370 #endif
33371 /* We use char because int might match the return type of a gcc2
33372    builtin and then its argument prototype would still apply.  */
33373 char XShapeQueryExtension ();
33374 int
33375 main ()
33376 {
33377 XShapeQueryExtension ();
33378   ;
33379   return 0;
33380 }
33381 _ACEOF
33382 rm -f conftest.$ac_objext conftest$ac_exeext
33383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33384   (eval $ac_link) 2>conftest.er1
33385   ac_status=$?
33386   grep -v '^ *+' conftest.er1 >conftest.err
33387   rm -f conftest.er1
33388   cat conftest.err >&5
33389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390   (exit $ac_status); } &&
33391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393   (eval $ac_try) 2>&5
33394   ac_status=$?
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); }; } &&
33397          { ac_try='test -s conftest$ac_exeext'
33398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33399   (eval $ac_try) 2>&5
33400   ac_status=$?
33401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402   (exit $ac_status); }; }; then
33403   ac_cv_lib_Xext_XShapeQueryExtension=yes
33404 else
33405   echo "$as_me: failed program was:" >&5
33406 sed 's/^/| /' conftest.$ac_ext >&5
33407
33408 ac_cv_lib_Xext_XShapeQueryExtension=no
33409 fi
33410 rm -f conftest.err conftest.$ac_objext \
33411       conftest$ac_exeext conftest.$ac_ext
33412 LIBS=$ac_check_lib_save_LIBS
33413 fi
33414 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
33415 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
33416 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
33417
33418                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
33419                       wxHAVE_XEXT_LIB=1
33420
33421 fi
33422
33423
33424         if test "$wxHAVE_XEXT_LIB" = 1; then
33425             save_CFLAGS="$CFLAGS"
33426             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33427
33428             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
33429 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
33430             cat >conftest.$ac_ext <<_ACEOF
33431 /* confdefs.h.  */
33432 _ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h.  */
33436
33437                             #include <X11/Xlib.h>
33438                             #include <X11/extensions/shape.h>
33439
33440 int
33441 main ()
33442 {
33443
33444                             int dummy1, dummy2;
33445                             XShapeQueryExtension((Display*)NULL,
33446                                                  (int*)NULL, (int*)NULL);
33447
33448   ;
33449   return 0;
33450 }
33451 _ACEOF
33452 rm -f conftest.$ac_objext
33453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33454   (eval $ac_compile) 2>conftest.er1
33455   ac_status=$?
33456   grep -v '^ *+' conftest.er1 >conftest.err
33457   rm -f conftest.er1
33458   cat conftest.err >&5
33459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460   (exit $ac_status); } &&
33461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33463   (eval $ac_try) 2>&5
33464   ac_status=$?
33465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466   (exit $ac_status); }; } &&
33467          { ac_try='test -s conftest.$ac_objext'
33468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33469   (eval $ac_try) 2>&5
33470   ac_status=$?
33471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472   (exit $ac_status); }; }; then
33473
33474                             cat >>confdefs.h <<\_ACEOF
33475 #define HAVE_XSHAPE 1
33476 _ACEOF
33477
33478                             echo "$as_me:$LINENO: result: found" >&5
33479 echo "${ECHO_T}found" >&6
33480
33481 else
33482   echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33484
33485
33486                             echo "$as_me:$LINENO: result: not found" >&5
33487 echo "${ECHO_T}not found" >&6
33488
33489 fi
33490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33491             CFLAGS="$save_CFLAGS"
33492
33493         fi
33494     fi
33495
33496     if test "$wxUSE_MAC" = 1; then
33497         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
33498 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
33499         if test "$GCC" = yes; then
33500             echo "$as_me:$LINENO: result: gcc" >&5
33501 echo "${ECHO_T}gcc" >&6
33502             CPPFLAGS_PASCAL="-fpascal-strings"
33503         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
33504             echo "$as_me:$LINENO: result: xlc" >&5
33505 echo "${ECHO_T}xlc" >&6
33506             CPPFLAGS_PASCAL="-qmacpstr"
33507         else
33508             echo "$as_me:$LINENO: result: none" >&5
33509 echo "${ECHO_T}none" >&6
33510         fi
33511
33512         if test "x$wxUSE_UNIX" = "xyes"; then
33513             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
33514         else
33515                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
33516         fi
33517
33518         TOOLKIT=MAC
33519                 GUIDIST=MACX_DIST
33520                         WXBASEPORT="_carbon"
33521     fi
33522
33523     if test "$wxUSE_COCOA" = 1; then
33524         TOOLKIT=COCOA
33525         GUIDIST=COCOA_DIST
33526     fi
33527
33528     if test "$wxUSE_PM" = 1; then
33529         TOOLKIT=PM
33530         GUIDIST=PM_DIST
33531         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
33532 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
33533 if test "${wx_cv_spbcdata+set}" = set; then
33534   echo $ECHO_N "(cached) $ECHO_C" >&6
33535 else
33536
33537                 cat >conftest.$ac_ext <<_ACEOF
33538 /* confdefs.h.  */
33539 _ACEOF
33540 cat confdefs.h >>conftest.$ac_ext
33541 cat >>conftest.$ac_ext <<_ACEOF
33542 /* end confdefs.h.  */
33543
33544                         #define INCL_PM
33545                         #include <os2.h>
33546
33547 int
33548 main ()
33549 {
33550
33551                         SPBCDATA test;
33552
33553   ;
33554   return 0;
33555 }
33556 _ACEOF
33557 rm -f conftest.$ac_objext
33558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33559   (eval $ac_compile) 2>conftest.er1
33560   ac_status=$?
33561   grep -v '^ *+' conftest.er1 >conftest.err
33562   rm -f conftest.er1
33563   cat conftest.err >&5
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); } &&
33566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568   (eval $ac_try) 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; } &&
33572          { ac_try='test -s conftest.$ac_objext'
33573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574   (eval $ac_try) 2>&5
33575   ac_status=$?
33576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577   (exit $ac_status); }; }; then
33578   wx_cv_spbcdata=yes
33579 else
33580   echo "$as_me: failed program was:" >&5
33581 sed 's/^/| /' conftest.$ac_ext >&5
33582
33583 wx_cv_spbcdata=no
33584
33585 fi
33586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33587
33588
33589 fi
33590 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
33591 echo "${ECHO_T}$wx_cv_spbcdata" >&6
33592
33593         if test $wx_cv_spbcdata = "yes"; then
33594             cat >>confdefs.h <<\_ACEOF
33595 #define HAVE_SPBCDATA 1
33596 _ACEOF
33597
33598         fi
33599     fi
33600
33601         if test "$TOOLKIT" = "PM" ; then
33602         TOOLKIT_DIR="os2"
33603     else
33604         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
33605     fi
33606
33607     if test "$wxUSE_UNIVERSAL" = "yes"; then
33608         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
33609         WIDGET_SET=univ
33610     fi
33611
33612         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
33613     DISTDIR="wx\$(TOOLKIT)"
33614 else
33615     USE_GUI=0
33616
33617             TOOLKIT_DIR="base"
33618
33619         if test "$USE_WIN32" = 1 ; then
33620                         TOOLKIT="MSW"
33621     fi
33622
33623         GUIDIST="BASE_DIST"
33624     DISTDIR="wxBase"
33625 fi
33626
33627
33628
33629 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
33630     if test "$TOOLKIT" = "DFB" ; then
33631         wxUSE_UNICODE_UTF8=yes
33632     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
33633         wxUSE_UNICODE_UTF8=yes
33634     elif test "$USE_OS2" = "1" ; then
33635                                 wxUSE_UNICODE_UTF8=yes
33636     else
33637         wxUSE_UNICODE_UTF8=no
33638     fi
33639 fi
33640
33641
33642 if test "$wxUSE_GUI" = "yes"; then
33643     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
33644                 echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
33645 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6
33646 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
33647   echo $ECHO_N "(cached) $ECHO_C" >&6
33648 else
33649   cat >conftest.$ac_ext <<_ACEOF
33650 /* confdefs.h.  */
33651 _ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h.  */
33655
33656
33657 #include <X11/Xlib.h>
33658 _ACEOF
33659 rm -f conftest.$ac_objext
33660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33661   (eval $ac_compile) 2>conftest.er1
33662   ac_status=$?
33663   grep -v '^ *+' conftest.er1 >conftest.err
33664   rm -f conftest.er1
33665   cat conftest.err >&5
33666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667   (exit $ac_status); } &&
33668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670   (eval $ac_try) 2>&5
33671   ac_status=$?
33672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673   (exit $ac_status); }; } &&
33674          { ac_try='test -s conftest.$ac_objext'
33675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676   (eval $ac_try) 2>&5
33677   ac_status=$?
33678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679   (exit $ac_status); }; }; then
33680   ac_cv_header_X11_Xlib_h=yes
33681 else
33682   echo "$as_me: failed program was:" >&5
33683 sed 's/^/| /' conftest.$ac_ext >&5
33684
33685 ac_cv_header_X11_Xlib_h=no
33686 fi
33687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33688 fi
33689 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
33690 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6
33691
33692
33693         echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
33694 echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6
33695 if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
33696   echo $ECHO_N "(cached) $ECHO_C" >&6
33697 else
33698   cat >conftest.$ac_ext <<_ACEOF
33699 /* confdefs.h.  */
33700 _ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h.  */
33704
33705                           #if HAVE_X11_XLIB_H
33706                             #include <X11/Xlib.h>
33707                           #endif
33708
33709
33710 #include <X11/XKBlib.h>
33711 _ACEOF
33712 rm -f conftest.$ac_objext
33713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33714   (eval $ac_compile) 2>conftest.er1
33715   ac_status=$?
33716   grep -v '^ *+' conftest.er1 >conftest.err
33717   rm -f conftest.er1
33718   cat conftest.err >&5
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); } &&
33721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723   (eval $ac_try) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); }; } &&
33727          { ac_try='test -s conftest.$ac_objext'
33728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729   (eval $ac_try) 2>&5
33730   ac_status=$?
33731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732   (exit $ac_status); }; }; then
33733   ac_cv_header_X11_XKBlib_h=yes
33734 else
33735   echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33737
33738 ac_cv_header_X11_XKBlib_h=no
33739 fi
33740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33741 fi
33742 echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
33743 echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6
33744
33745
33746     fi
33747 fi
33748
33749
33750
33751 IODBC_C_SRC=""
33752
33753
33754 if test "$TOOLKIT" != "MSW" ; then
33755
33756     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
33757
33758         echo "$as_me:$LINENO: checking for sql.h" >&5
33759 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
33760 if test "${ac_cv_header_sql_h+set}" = set; then
33761   echo $ECHO_N "(cached) $ECHO_C" >&6
33762 else
33763   cat >conftest.$ac_ext <<_ACEOF
33764 /* confdefs.h.  */
33765 _ACEOF
33766 cat confdefs.h >>conftest.$ac_ext
33767 cat >>conftest.$ac_ext <<_ACEOF
33768 /* end confdefs.h.  */
33769
33770
33771 #include <sql.h>
33772 _ACEOF
33773 rm -f conftest.$ac_objext
33774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33775   (eval $ac_compile) 2>conftest.er1
33776   ac_status=$?
33777   grep -v '^ *+' conftest.er1 >conftest.err
33778   rm -f conftest.er1
33779   cat conftest.err >&5
33780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781   (exit $ac_status); } &&
33782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33784   (eval $ac_try) 2>&5
33785   ac_status=$?
33786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787   (exit $ac_status); }; } &&
33788          { ac_try='test -s conftest.$ac_objext'
33789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790   (eval $ac_try) 2>&5
33791   ac_status=$?
33792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793   (exit $ac_status); }; }; then
33794   ac_cv_header_sql_h=yes
33795 else
33796   echo "$as_me: failed program was:" >&5
33797 sed 's/^/| /' conftest.$ac_ext >&5
33798
33799 ac_cv_header_sql_h=no
33800 fi
33801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33802 fi
33803 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
33804 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
33805 if test $ac_cv_header_sql_h = yes; then
33806   found_sql_h=1
33807 fi
33808
33809
33810         if test "x$found_sql_h" = "x1" ; then
33811             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
33812 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
33813 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
33814   echo $ECHO_N "(cached) $ECHO_C" >&6
33815 else
33816   ac_check_lib_save_LIBS=$LIBS
33817 LIBS="-liodbc  $LIBS"
33818 cat >conftest.$ac_ext <<_ACEOF
33819 /* confdefs.h.  */
33820 _ACEOF
33821 cat confdefs.h >>conftest.$ac_ext
33822 cat >>conftest.$ac_ext <<_ACEOF
33823 /* end confdefs.h.  */
33824
33825 /* Override any gcc2 internal prototype to avoid an error.  */
33826 #ifdef __cplusplus
33827 extern "C"
33828 #endif
33829 /* We use char because int might match the return type of a gcc2
33830    builtin and then its argument prototype would still apply.  */
33831 char SQLAllocEnv ();
33832 int
33833 main ()
33834 {
33835 SQLAllocEnv ();
33836   ;
33837   return 0;
33838 }
33839 _ACEOF
33840 rm -f conftest.$ac_objext conftest$ac_exeext
33841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33842   (eval $ac_link) 2>conftest.er1
33843   ac_status=$?
33844   grep -v '^ *+' conftest.er1 >conftest.err
33845   rm -f conftest.er1
33846   cat conftest.err >&5
33847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848   (exit $ac_status); } &&
33849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33851   (eval $ac_try) 2>&5
33852   ac_status=$?
33853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); }; } &&
33855          { ac_try='test -s conftest$ac_exeext'
33856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33857   (eval $ac_try) 2>&5
33858   ac_status=$?
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); }; }; then
33861   ac_cv_lib_iodbc_SQLAllocEnv=yes
33862 else
33863   echo "$as_me: failed program was:" >&5
33864 sed 's/^/| /' conftest.$ac_ext >&5
33865
33866 ac_cv_lib_iodbc_SQLAllocEnv=no
33867 fi
33868 rm -f conftest.err conftest.$ac_objext \
33869       conftest$ac_exeext conftest.$ac_ext
33870 LIBS=$ac_check_lib_save_LIBS
33871 fi
33872 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
33873 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
33874 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
33875   ODBC_LINK=" -liodbc"
33876 else
33877
33878                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
33879 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
33880 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
33881   echo $ECHO_N "(cached) $ECHO_C" >&6
33882 else
33883   ac_check_lib_save_LIBS=$LIBS
33884 LIBS="-lunixodbc  $LIBS"
33885 cat >conftest.$ac_ext <<_ACEOF
33886 /* confdefs.h.  */
33887 _ACEOF
33888 cat confdefs.h >>conftest.$ac_ext
33889 cat >>conftest.$ac_ext <<_ACEOF
33890 /* end confdefs.h.  */
33891
33892 /* Override any gcc2 internal prototype to avoid an error.  */
33893 #ifdef __cplusplus
33894 extern "C"
33895 #endif
33896 /* We use char because int might match the return type of a gcc2
33897    builtin and then its argument prototype would still apply.  */
33898 char SQLAllocEnv ();
33899 int
33900 main ()
33901 {
33902 SQLAllocEnv ();
33903   ;
33904   return 0;
33905 }
33906 _ACEOF
33907 rm -f conftest.$ac_objext conftest$ac_exeext
33908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33909   (eval $ac_link) 2>conftest.er1
33910   ac_status=$?
33911   grep -v '^ *+' conftest.er1 >conftest.err
33912   rm -f conftest.er1
33913   cat conftest.err >&5
33914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915   (exit $ac_status); } &&
33916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33918   (eval $ac_try) 2>&5
33919   ac_status=$?
33920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921   (exit $ac_status); }; } &&
33922          { ac_try='test -s conftest$ac_exeext'
33923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924   (eval $ac_try) 2>&5
33925   ac_status=$?
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); }; }; then
33928   ac_cv_lib_unixodbc_SQLAllocEnv=yes
33929 else
33930   echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33932
33933 ac_cv_lib_unixodbc_SQLAllocEnv=no
33934 fi
33935 rm -f conftest.err conftest.$ac_objext \
33936       conftest$ac_exeext conftest.$ac_ext
33937 LIBS=$ac_check_lib_save_LIBS
33938 fi
33939 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
33940 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
33941 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
33942   ODBC_LINK=" -lunixodbc"
33943 else
33944
33945                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
33946 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
33947 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
33948   echo $ECHO_N "(cached) $ECHO_C" >&6
33949 else
33950   ac_check_lib_save_LIBS=$LIBS
33951 LIBS="-lodbc  $LIBS"
33952 cat >conftest.$ac_ext <<_ACEOF
33953 /* confdefs.h.  */
33954 _ACEOF
33955 cat confdefs.h >>conftest.$ac_ext
33956 cat >>conftest.$ac_ext <<_ACEOF
33957 /* end confdefs.h.  */
33958
33959 /* Override any gcc2 internal prototype to avoid an error.  */
33960 #ifdef __cplusplus
33961 extern "C"
33962 #endif
33963 /* We use char because int might match the return type of a gcc2
33964    builtin and then its argument prototype would still apply.  */
33965 char SQLAllocEnv ();
33966 int
33967 main ()
33968 {
33969 SQLAllocEnv ();
33970   ;
33971   return 0;
33972 }
33973 _ACEOF
33974 rm -f conftest.$ac_objext conftest$ac_exeext
33975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33976   (eval $ac_link) 2>conftest.er1
33977   ac_status=$?
33978   grep -v '^ *+' conftest.er1 >conftest.err
33979   rm -f conftest.er1
33980   cat conftest.err >&5
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); } &&
33983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985   (eval $ac_try) 2>&5
33986   ac_status=$?
33987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); }; } &&
33989          { ac_try='test -s conftest$ac_exeext'
33990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33991   (eval $ac_try) 2>&5
33992   ac_status=$?
33993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994   (exit $ac_status); }; }; then
33995   ac_cv_lib_odbc_SQLAllocEnv=yes
33996 else
33997   echo "$as_me: failed program was:" >&5
33998 sed 's/^/| /' conftest.$ac_ext >&5
33999
34000 ac_cv_lib_odbc_SQLAllocEnv=no
34001 fi
34002 rm -f conftest.err conftest.$ac_objext \
34003       conftest$ac_exeext conftest.$ac_ext
34004 LIBS=$ac_check_lib_save_LIBS
34005 fi
34006 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
34007 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
34008 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
34009   ODBC_LINK=" -lodbc"
34010 fi
34011
34012
34013 fi
34014
34015
34016 fi
34017
34018         fi
34019         if test "x$ODBC_LINK" = "x" ; then
34020             if test "$wxUSE_ODBC" = "sys" ; then
34021                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
34022 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
34023    { (exit 1); exit 1; }; }
34024             else
34025                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
34026 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
34027                 wxUSE_ODBC=builtin
34028             fi
34029         else
34030                         wxUSE_ODBC=sys
34031         fi
34032     fi
34033
34034     if test "$wxUSE_ODBC" = "builtin" ; then
34035         cat >>confdefs.h <<\_ACEOF
34036 #define wxUSE_BUILTIN_IODBC 1
34037 _ACEOF
34038
34039     fi
34040 fi
34041
34042 if test "$wxUSE_ODBC" != "no" ; then
34043     cat >>confdefs.h <<\_ACEOF
34044 #define wxUSE_ODBC 1
34045 _ACEOF
34046
34047     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
34048
34049         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
34050 fi
34051
34052
34053 if test "$wxUSE_DISPLAY" = "yes"; then
34054     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
34055         echo "$as_me:$LINENO: checking for Xinerama" >&5
34056 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
34057
34058   ac_find_libraries=
34059   for ac_dir in $SEARCH_LIB;
34060   do
34061     for ac_extension in a so sl dylib dll.a; do
34062       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34063         ac_find_libraries=$ac_dir
34064         break 2
34065       fi
34066     done
34067   done
34068
34069         if test "$ac_find_libraries" != "" ; then
34070
34071     if test "$ac_find_libraries" = "default location"; then
34072     ac_path_to_link=""
34073   else
34074     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34075     result=$?
34076     if test $result = 0; then
34077       ac_path_to_link=""
34078     else
34079       ac_path_to_link=" -L$ac_find_libraries"
34080     fi
34081   fi
34082
34083             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34084                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34085             fi
34086             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
34087             echo "$as_me:$LINENO: result: yes" >&5
34088 echo "${ECHO_T}yes" >&6
34089
34090             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
34091 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
34092
34093   ac_find_libraries=
34094   for ac_dir in $SEARCH_LIB;
34095   do
34096     for ac_extension in a so sl dylib dll.a; do
34097       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
34098         ac_find_libraries=$ac_dir
34099         break 2
34100       fi
34101     done
34102   done
34103
34104             if test "$ac_find_libraries" != "" ; then
34105                 echo "$as_me:$LINENO: result: yes" >&5
34106 echo "${ECHO_T}yes" >&6
34107                 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
34108 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
34109 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
34110   echo $ECHO_N "(cached) $ECHO_C" >&6
34111 else
34112   cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h.  */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h.  */
34118
34119                                       #if HAVE_X11_XLIB_H
34120                                         #include <X11/Xlib.h>
34121                                       #endif
34122
34123
34124 #include <X11/extensions/xf86vmode.h>
34125 _ACEOF
34126 rm -f conftest.$ac_objext
34127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34128   (eval $ac_compile) 2>conftest.er1
34129   ac_status=$?
34130   grep -v '^ *+' conftest.er1 >conftest.err
34131   rm -f conftest.er1
34132   cat conftest.err >&5
34133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134   (exit $ac_status); } &&
34135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137   (eval $ac_try) 2>&5
34138   ac_status=$?
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); }; } &&
34141          { ac_try='test -s conftest.$ac_objext'
34142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143   (eval $ac_try) 2>&5
34144   ac_status=$?
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); }; }; then
34147   ac_cv_header_X11_extensions_xf86vmode_h=yes
34148 else
34149   echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152 ac_cv_header_X11_extensions_xf86vmode_h=no
34153 fi
34154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34155 fi
34156 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
34157 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
34158 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
34159
34160                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
34161
34162 fi
34163
34164
34165             else
34166                 echo "$as_me:$LINENO: result: no" >&5
34167 echo "${ECHO_T}no" >&6
34168             fi
34169
34170         else
34171             echo "$as_me:$LINENO: result: no" >&5
34172 echo "${ECHO_T}no" >&6
34173             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
34174 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
34175             wxUSE_DISPLAY="no"
34176         fi
34177     elif test "$wxUSE_MSW" = 1; then
34178         echo "$as_me:$LINENO: checking for ddraw.h" >&5
34179 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6
34180 if test "${ac_cv_header_ddraw_h+set}" = set; then
34181   echo $ECHO_N "(cached) $ECHO_C" >&6
34182 else
34183   cat >conftest.$ac_ext <<_ACEOF
34184 /* confdefs.h.  */
34185 _ACEOF
34186 cat confdefs.h >>conftest.$ac_ext
34187 cat >>conftest.$ac_ext <<_ACEOF
34188 /* end confdefs.h.  */
34189 #include <windows.h>
34190
34191 #include <ddraw.h>
34192 _ACEOF
34193 rm -f conftest.$ac_objext
34194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34195   (eval $ac_compile) 2>conftest.er1
34196   ac_status=$?
34197   grep -v '^ *+' conftest.er1 >conftest.err
34198   rm -f conftest.er1
34199   cat conftest.err >&5
34200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201   (exit $ac_status); } &&
34202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204   (eval $ac_try) 2>&5
34205   ac_status=$?
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); }; } &&
34208          { ac_try='test -s conftest.$ac_objext'
34209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210   (eval $ac_try) 2>&5
34211   ac_status=$?
34212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213   (exit $ac_status); }; }; then
34214   ac_cv_header_ddraw_h=yes
34215 else
34216   echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34218
34219 ac_cv_header_ddraw_h=no
34220 fi
34221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34222 fi
34223 echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
34224 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6
34225
34226
34227     fi
34228 fi
34229
34230 if test "$wxUSE_DETECT_SM" = "yes"; then
34231     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
34232         echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
34233 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
34234
34235   ac_find_libraries=
34236   for ac_dir in $SEARCH_LIB;
34237   do
34238     for ac_extension in a so sl dylib dll.a; do
34239       if test -f "$ac_dir/libSM.$ac_extension"; then
34240         ac_find_libraries=$ac_dir
34241         break 2
34242       fi
34243     done
34244   done
34245
34246         if test "$ac_find_libraries" != "" ; then
34247
34248     if test "$ac_find_libraries" = "default location"; then
34249     ac_path_to_link=""
34250   else
34251     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34252     result=$?
34253     if test $result = 0; then
34254       ac_path_to_link=""
34255     else
34256       ac_path_to_link=" -L$ac_find_libraries"
34257     fi
34258   fi
34259
34260             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34261                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34262             fi
34263             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
34264             echo "$as_me:$LINENO: result: yes" >&5
34265 echo "${ECHO_T}yes" >&6
34266         else
34267             echo "$as_me:$LINENO: result: no" >&5
34268 echo "${ECHO_T}no" >&6
34269             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
34270 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
34271             wxUSE_DETECT_SM="no"
34272         fi
34273     else
34274         wxUSE_DETECT_SM="no"
34275     fi
34276 fi
34277
34278
34279
34280 USE_OPENGL=0
34281 if test "$wxUSE_OPENGL" = "yes"; then
34282     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
34283         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
34284 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
34285         wxUSE_OPENGL="no"
34286     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
34287         OPENGL_LIBS="-framework OpenGL -framework AGL"
34288     elif test "$wxUSE_MSW" = 1; then
34289         OPENGL_LIBS="-lopengl32 -lglu32"
34290     else
34291                         echo "$as_me:$LINENO: checking for OpenGL headers" >&5
34292 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
34293
34294 ac_find_includes=
34295 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
34296   do
34297     if test -f "$ac_dir/GL/gl.h"; then
34298       ac_find_includes=$ac_dir
34299       break
34300     fi
34301   done
34302
34303         if test "$ac_find_includes" != "" ; then
34304             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34305 echo "${ECHO_T}found in $ac_find_includes" >&6
34306
34307     if test "x$ac_find_includes" = "x/usr/include"; then
34308     ac_path_to_include=""
34309   else
34310     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
34311     result=$?
34312     if test $result = 0; then
34313       ac_path_to_include=""
34314     else
34315       ac_path_to_include=" -I$ac_find_includes"
34316     fi
34317   fi
34318
34319             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
34320         else
34321             echo "$as_me:$LINENO: result: not found" >&5
34322 echo "${ECHO_T}not found" >&6
34323         fi
34324
34325         echo "$as_me:$LINENO: checking for GL/gl.h" >&5
34326 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
34327 if test "${ac_cv_header_GL_gl_h+set}" = set; then
34328   echo $ECHO_N "(cached) $ECHO_C" >&6
34329 else
34330   cat >conftest.$ac_ext <<_ACEOF
34331 /* confdefs.h.  */
34332 _ACEOF
34333 cat confdefs.h >>conftest.$ac_ext
34334 cat >>conftest.$ac_ext <<_ACEOF
34335 /* end confdefs.h.  */
34336
34337
34338 #include <GL/gl.h>
34339 _ACEOF
34340 rm -f conftest.$ac_objext
34341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34342   (eval $ac_compile) 2>conftest.er1
34343   ac_status=$?
34344   grep -v '^ *+' conftest.er1 >conftest.err
34345   rm -f conftest.er1
34346   cat conftest.err >&5
34347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348   (exit $ac_status); } &&
34349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351   (eval $ac_try) 2>&5
34352   ac_status=$?
34353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); }; } &&
34355          { ac_try='test -s conftest.$ac_objext'
34356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34357   (eval $ac_try) 2>&5
34358   ac_status=$?
34359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360   (exit $ac_status); }; }; then
34361   ac_cv_header_GL_gl_h=yes
34362 else
34363   echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34365
34366 ac_cv_header_GL_gl_h=no
34367 fi
34368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34369 fi
34370 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
34371 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
34372 if test $ac_cv_header_GL_gl_h = yes; then
34373
34374             if test "${ac_cv_header_GL_glu_h+set}" = set; then
34375   echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34376 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
34377 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34378   echo $ECHO_N "(cached) $ECHO_C" >&6
34379 fi
34380 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34381 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
34382 else
34383   # Is the header compilable?
34384 echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
34385 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
34386 cat >conftest.$ac_ext <<_ACEOF
34387 /* confdefs.h.  */
34388 _ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h.  */
34392 $ac_includes_default
34393 #include <GL/glu.h>
34394 _ACEOF
34395 rm -f conftest.$ac_objext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34397   (eval $ac_compile) 2>conftest.er1
34398   ac_status=$?
34399   grep -v '^ *+' conftest.er1 >conftest.err
34400   rm -f conftest.er1
34401   cat conftest.err >&5
34402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403   (exit $ac_status); } &&
34404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406   (eval $ac_try) 2>&5
34407   ac_status=$?
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); }; } &&
34410          { ac_try='test -s conftest.$ac_objext'
34411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34412   (eval $ac_try) 2>&5
34413   ac_status=$?
34414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415   (exit $ac_status); }; }; then
34416   ac_header_compiler=yes
34417 else
34418   echo "$as_me: failed program was:" >&5
34419 sed 's/^/| /' conftest.$ac_ext >&5
34420
34421 ac_header_compiler=no
34422 fi
34423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34425 echo "${ECHO_T}$ac_header_compiler" >&6
34426
34427 # Is the header present?
34428 echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
34429 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
34430 cat >conftest.$ac_ext <<_ACEOF
34431 /* confdefs.h.  */
34432 _ACEOF
34433 cat confdefs.h >>conftest.$ac_ext
34434 cat >>conftest.$ac_ext <<_ACEOF
34435 /* end confdefs.h.  */
34436 #include <GL/glu.h>
34437 _ACEOF
34438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34440   ac_status=$?
34441   grep -v '^ *+' conftest.er1 >conftest.err
34442   rm -f conftest.er1
34443   cat conftest.err >&5
34444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445   (exit $ac_status); } >/dev/null; then
34446   if test -s conftest.err; then
34447     ac_cpp_err=$ac_c_preproc_warn_flag
34448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34449   else
34450     ac_cpp_err=
34451   fi
34452 else
34453   ac_cpp_err=yes
34454 fi
34455 if test -z "$ac_cpp_err"; then
34456   ac_header_preproc=yes
34457 else
34458   echo "$as_me: failed program was:" >&5
34459 sed 's/^/| /' conftest.$ac_ext >&5
34460
34461   ac_header_preproc=no
34462 fi
34463 rm -f conftest.err conftest.$ac_ext
34464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34465 echo "${ECHO_T}$ac_header_preproc" >&6
34466
34467 # So?  What about this header?
34468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34469   yes:no: )
34470     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
34471 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34472     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
34473 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
34474     ac_header_preproc=yes
34475     ;;
34476   no:yes:* )
34477     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
34478 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
34479     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
34480 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
34481     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
34482 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
34483     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
34484 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
34485     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
34486 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
34487     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
34488 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
34489     (
34490       cat <<\_ASBOX
34491 ## ----------------------------------------- ##
34492 ## Report this to wx-dev@lists.wxwidgets.org ##
34493 ## ----------------------------------------- ##
34494 _ASBOX
34495     ) |
34496       sed "s/^/$as_me: WARNING:     /" >&2
34497     ;;
34498 esac
34499 echo "$as_me:$LINENO: checking for GL/glu.h" >&5
34500 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
34501 if test "${ac_cv_header_GL_glu_h+set}" = set; then
34502   echo $ECHO_N "(cached) $ECHO_C" >&6
34503 else
34504   ac_cv_header_GL_glu_h=$ac_header_preproc
34505 fi
34506 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
34507 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
34508
34509 fi
34510 if test $ac_cv_header_GL_glu_h = yes; then
34511
34512                 found_gl=0
34513
34514                 echo "$as_me:$LINENO: checking for -lGL" >&5
34515 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
34516
34517   ac_find_libraries=
34518   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
34519   do
34520     for ac_extension in a so sl dylib dll.a; do
34521       if test -f "$ac_dir/libGL.$ac_extension"; then
34522         ac_find_libraries=$ac_dir
34523         break 2
34524       fi
34525     done
34526   done
34527
34528                 if test "$ac_find_libraries" != "" ; then
34529                     echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34530 echo "${ECHO_T}found in $ac_find_libraries" >&6
34531
34532
34533     if test "$ac_find_libraries" = "default location"; then
34534     ac_path_to_link=""
34535   else
34536     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34537     result=$?
34538     if test $result = 0; then
34539       ac_path_to_link=""
34540     else
34541       ac_path_to_link=" -L$ac_find_libraries"
34542     fi
34543   fi
34544
34545                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
34546                         LDFLAGS_GL="$ac_path_to_link"
34547                     fi
34548
34549                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
34550 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
34551
34552   ac_find_libraries=
34553   for ac_dir in $SEARCH_LIB;
34554   do
34555     for ac_extension in a so sl dylib dll.a; do
34556       if test -f "$ac_dir/libGLU.$ac_extension"; then
34557         ac_find_libraries=$ac_dir
34558         break 2
34559       fi
34560     done
34561   done
34562
34563                     if test "$ac_find_libraries" != "" ; then
34564
34565     if test "$ac_find_libraries" = "default location"; then
34566     ac_path_to_link=""
34567   else
34568     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34569     result=$?
34570     if test $result = 0; then
34571       ac_path_to_link=""
34572     else
34573       ac_path_to_link=" -L$ac_find_libraries"
34574     fi
34575   fi
34576
34577                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
34578                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
34579                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
34580                         fi
34581
34582                         found_gl=1
34583                         OPENGL_LIBS="-lGL -lGLU"
34584                         echo "$as_me:$LINENO: result: yes" >&5
34585 echo "${ECHO_T}yes" >&6
34586                     else
34587                         echo "$as_me:$LINENO: result: no" >&5
34588 echo "${ECHO_T}no" >&6
34589                     fi
34590                 else
34591                     echo "$as_me:$LINENO: result: no" >&5
34592 echo "${ECHO_T}no" >&6
34593                 fi
34594
34595                 if test "$found_gl" != 1; then
34596                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
34597 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
34598
34599   ac_find_libraries=
34600   for ac_dir in $SEARCH_LIB;
34601   do
34602     for ac_extension in a so sl dylib dll.a; do
34603       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
34604         ac_find_libraries=$ac_dir
34605         break 2
34606       fi
34607     done
34608   done
34609
34610                     if test "$ac_find_libraries" != "" ; then
34611
34612     if test "$ac_find_libraries" = "default location"; then
34613     ac_path_to_link=""
34614   else
34615     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34616     result=$?
34617     if test $result = 0; then
34618       ac_path_to_link=""
34619     else
34620       ac_path_to_link=" -L$ac_find_libraries"
34621     fi
34622   fi
34623
34624                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
34625                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
34626                         echo "$as_me:$LINENO: result: yes" >&5
34627 echo "${ECHO_T}yes" >&6
34628                     else
34629                         echo "$as_me:$LINENO: result: no" >&5
34630 echo "${ECHO_T}no" >&6
34631                     fi
34632                 fi
34633
34634 fi
34635
34636
34637
34638 fi
34639
34640
34641
34642         if test "x$OPENGL_LIBS" = "x"; then
34643                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
34644 echo "$as_me: error: OpenGL libraries not available" >&2;}
34645    { (exit 1); exit 1; }; }
34646         fi
34647     fi
34648
34649     if test "$wxUSE_OPENGL" = "yes"; then
34650         USE_OPENGL=1
34651         cat >>confdefs.h <<\_ACEOF
34652 #define wxUSE_OPENGL 1
34653 _ACEOF
34654
34655         cat >>confdefs.h <<\_ACEOF
34656 #define wxUSE_GLCANVAS 1
34657 _ACEOF
34658
34659         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
34660     fi
34661 fi
34662
34663
34664 if test -n "$TOOLKIT" ; then
34665     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
34666 fi
34667
34668
34669
34670 if test "$wxUSE_SHARED" = "yes"; then
34671     case "${host}" in
34672       *-pc-msdosdjgpp )
34673                 wxUSE_SHARED=no
34674         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34675 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34676       ;;
34677     esac
34678 fi
34679
34680 if test "$wxUSE_SHARED" = "yes"; then
34681
34682
34683     case "${host}" in
34684         *-*-cygwin* | *-*-mingw* )
34685                                                                                                 wx_cv_version_script=no
34686             ;;
34687
34688         *)
34689             echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34690 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
34691 if test "${wx_cv_version_script+set}" = set; then
34692   echo $ECHO_N "(cached) $ECHO_C" >&6
34693 else
34694
34695                 echo "VER_1 { *; };" >conftest.sym
34696                 echo "int main() { return 0; }" >conftest.cpp
34697
34698                 if { ac_try='
34699                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34700                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34702   (eval $ac_try) 2>&5
34703   ac_status=$?
34704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705   (exit $ac_status); }; } ; then
34706                   if test -s conftest.stderr ; then
34707                       wx_cv_version_script=no
34708                   else
34709                       wx_cv_version_script=yes
34710                   fi
34711                 else
34712                   wx_cv_version_script=no
34713                 fi
34714
34715                                                                                                                                                                                                 if test $wx_cv_version_script = yes
34716                 then
34717                   echo "struct B { virtual ~B() { } }; \
34718                         struct D : public B { }; \
34719                         void F() { D d; }" > conftest.cpp
34720
34721                   if { ac_try='
34722                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34723                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
34724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725   (eval $ac_try) 2>&5
34726   ac_status=$?
34727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728   (exit $ac_status); }; } &&
34729                      { ac_try='
34730                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34731                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733   (eval $ac_try) 2>&5
34734   ac_status=$?
34735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736   (exit $ac_status); }; }
34737                   then
34738                     if { ac_try='
34739                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34740                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742   (eval $ac_try) 2>&5
34743   ac_status=$?
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); }; }
34746                     then
34747                       wx_cv_version_script=yes
34748                     else
34749                       wx_cv_version_script=no
34750                     fi
34751                   fi
34752                 fi
34753
34754                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
34755                 rm -f conftest1.output conftest2.output conftest3.output
34756
34757 fi
34758 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34759 echo "${ECHO_T}$wx_cv_version_script" >&6
34760
34761             if test $wx_cv_version_script = yes ; then
34762                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
34763             fi
34764             ;;
34765     esac
34766
34767
34768
34769
34770   if test -n "$GCC"; then
34771     CFLAGS_VISIBILITY="-fvisibility=hidden"
34772     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
34773     echo "$as_me:$LINENO: checking for symbols visibility support" >&5
34774 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6
34775     if test "${wx_cv_cc_visibility+set}" = set; then
34776   echo $ECHO_N "(cached) $ECHO_C" >&6
34777 else
34778
34779       wx_save_CXXFLAGS="$CXXFLAGS"
34780       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
34781       ac_ext=cc
34782 ac_cpp='$CXXCPP $CPPFLAGS'
34783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34786
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
34794          /* we need gcc >= 4.0, older versions with visibility support
34795             didn't have class visibility: */
34796          #if defined(__GNUC__) && __GNUC__ < 4
34797          error this gcc is too old;
34798          #endif
34799
34800          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34801          extern __attribute__((__visibility__("default"))) int exportedvar;
34802          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
34803          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
34804          class __attribute__((__visibility__("default"))) Foo {
34805            Foo() {}
34806          };
34807
34808 int
34809 main ()
34810 {
34811
34812   ;
34813   return 0;
34814 }
34815 _ACEOF
34816 rm -f conftest.$ac_objext
34817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34818   (eval $ac_compile) 2>conftest.er1
34819   ac_status=$?
34820   grep -v '^ *+' conftest.er1 >conftest.err
34821   rm -f conftest.er1
34822   cat conftest.err >&5
34823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824   (exit $ac_status); } &&
34825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827   (eval $ac_try) 2>&5
34828   ac_status=$?
34829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830   (exit $ac_status); }; } &&
34831          { ac_try='test -s conftest.$ac_objext'
34832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833   (eval $ac_try) 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); }; }; then
34837   wx_cv_cc_visibility=yes
34838 else
34839   echo "$as_me: failed program was:" >&5
34840 sed 's/^/| /' conftest.$ac_ext >&5
34841
34842 wx_cv_cc_visibility=no
34843 fi
34844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34845       ac_ext=c
34846 ac_cpp='$CPP $CPPFLAGS'
34847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34850
34851       CXXFLAGS="$wx_save_CXXFLAGS"
34852 fi
34853
34854     echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
34855 echo "${ECHO_T}$wx_cv_cc_visibility" >&6
34856     if test $wx_cv_cc_visibility = yes; then
34857       cat >>confdefs.h <<\_ACEOF
34858 #define HAVE_VISIBILITY 1
34859 _ACEOF
34860
34861     else
34862       CFLAGS_VISIBILITY=""
34863       CXXFLAGS_VISIBILITY=""
34864     fi
34865
34866
34867   fi
34868
34869
34870         if test "x$SUNCXX" = xyes; then
34871         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
34872         WXCONFIG_RPATH="-R\$libdir"
34873     else
34874     case "${host}" in
34875       *-*-linux* | *-*-gnu* )
34876         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34877         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34878         ;;
34879
34880       *-*-solaris2* )
34881
34882                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
34883
34884                         saveLdflags="$LDFLAGS"
34885         LDFLAGS="$saveLdflags -Wl,-rpath,/"
34886         echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
34887 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
34888         cat >conftest.$ac_ext <<_ACEOF
34889 /* confdefs.h.  */
34890 _ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h.  */
34894
34895 int
34896 main ()
34897 {
34898
34899   ;
34900   return 0;
34901 }
34902 _ACEOF
34903 rm -f conftest.$ac_objext conftest$ac_exeext
34904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34905   (eval $ac_link) 2>conftest.er1
34906   ac_status=$?
34907   grep -v '^ *+' conftest.er1 >conftest.err
34908   rm -f conftest.er1
34909   cat conftest.err >&5
34910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34911   (exit $ac_status); } &&
34912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34914   (eval $ac_try) 2>&5
34915   ac_status=$?
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); }; } &&
34918          { ac_try='test -s conftest$ac_exeext'
34919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34920   (eval $ac_try) 2>&5
34921   ac_status=$?
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); }; }; then
34924
34925                 echo "$as_me:$LINENO: result: yes" >&5
34926 echo "${ECHO_T}yes" >&6
34927                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
34928                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
34929
34930 else
34931   echo "$as_me: failed program was:" >&5
34932 sed 's/^/| /' conftest.$ac_ext >&5
34933
34934
34935                 echo "$as_me:$LINENO: result: no" >&5
34936 echo "${ECHO_T}no" >&6
34937                 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34938 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
34939                 LDFLAGS="$saveLdflags -Wl,-R,/"
34940                 cat >conftest.$ac_ext <<_ACEOF
34941 /* confdefs.h.  */
34942 _ACEOF
34943 cat confdefs.h >>conftest.$ac_ext
34944 cat >>conftest.$ac_ext <<_ACEOF
34945 /* end confdefs.h.  */
34946
34947 int
34948 main ()
34949 {
34950
34951   ;
34952   return 0;
34953 }
34954 _ACEOF
34955 rm -f conftest.$ac_objext conftest$ac_exeext
34956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34957   (eval $ac_link) 2>conftest.er1
34958   ac_status=$?
34959   grep -v '^ *+' conftest.er1 >conftest.err
34960   rm -f conftest.er1
34961   cat conftest.err >&5
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); } &&
34964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966   (eval $ac_try) 2>&5
34967   ac_status=$?
34968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969   (exit $ac_status); }; } &&
34970          { ac_try='test -s conftest$ac_exeext'
34971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34972   (eval $ac_try) 2>&5
34973   ac_status=$?
34974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975   (exit $ac_status); }; }; then
34976
34977                         echo "$as_me:$LINENO: result: yes" >&5
34978 echo "${ECHO_T}yes" >&6
34979                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
34980                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
34981
34982 else
34983   echo "$as_me: failed program was:" >&5
34984 sed 's/^/| /' conftest.$ac_ext >&5
34985
34986
34987                         echo "$as_me:$LINENO: result: no" >&5
34988 echo "${ECHO_T}no" >&6
34989
34990 fi
34991 rm -f conftest.err conftest.$ac_objext \
34992       conftest$ac_exeext conftest.$ac_ext
34993
34994 fi
34995 rm -f conftest.err conftest.$ac_objext \
34996       conftest$ac_exeext conftest.$ac_ext
34997         LDFLAGS="$saveLdflags"
34998       ;;
34999
35000       *-*-darwin* )
35001         install_name_tool=`which install_name_tool`
35002         if test "$install_name_tool" -a -x "$install_name_tool"; then
35003             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
35004             cat <<EOF >change-install-names
35005 #!/bin/sh
35006 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35007 inst_cmd="install_name_tool "
35008 for i in \${libnames} ; do
35009     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
35010 done
35011 \${inst_cmd} \${3}
35012 EOF
35013             chmod +x change-install-names
35014         fi
35015       ;;
35016
35017       *-*-cygwin* | *-*-mingw32* )
35018                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35019         ;;
35020
35021       *-*-hpux* )
35022         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35023         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35024         ;;
35025
35026     esac
35027     fi
35028
35029     if test $wxUSE_RPATH = "no"; then
35030         SAMPLES_RPATH_FLAG=''
35031         SAMPLES_RPATH_POSTLINK=''
35032         WXCONFIG_RPATH=''
35033     fi
35034
35035     SHARED=1
35036
35037 else
35038
35039     config_linkage_component="-static"
35040     SHARED=0
35041
35042 fi
35043
35044
35045 UNICODE=0
35046 lib_unicode_suffix=
35047 WX_CHARTYPE="ansi"
35048 if test "$wxUSE_UNICODE" = "yes"; then
35049     lib_unicode_suffix=u
35050     WX_CHARTYPE="unicode"
35051     UNICODE=1
35052 fi
35053
35054 lib_debug_suffix=
35055 WX_DEBUGTYPE="release"
35056 DEBUG_FLAG=0
35057 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
35058     lib_debug_suffix=d
35059     WX_DEBUGTYPE="debug"
35060     DEBUG_FLAG=1
35061 fi
35062
35063 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35064 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35065
35066 DEBUG_INFO=0
35067 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35068     DEBUG_INFO=1
35069 fi
35070
35071 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
35072
35073 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
35074
35075 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35076
35077 if test "$cross_compiling" = "yes"; then
35078     HOST_SUFFIX="-$host_alias"
35079     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
35080     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
35081 fi
35082
35083 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
35084 if test "${TOOLKIT_DIR}" = "os2"; then
35085     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
35086 else
35087     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
35088 fi
35089
35090
35091
35092 if test "$wxUSE_COCOA" = 1; then
35093
35094
35095     ac_ext=c
35096 ac_cpp='$CPP $CPPFLAGS'
35097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35100
35101 ac_ext=m
35102
35103     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
35104 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
35105     cat >conftest.$ac_ext <<_ACEOF
35106 /* confdefs.h.  */
35107 _ACEOF
35108 cat confdefs.h >>conftest.$ac_ext
35109 cat >>conftest.$ac_ext <<_ACEOF
35110 /* end confdefs.h.  */
35111 #include <AppKit/NSEvent.h>
35112 #include <CoreFoundation/CoreFoundation.h>
35113
35114 int
35115 main ()
35116 {
35117
35118   ;
35119   return 0;
35120 }
35121 _ACEOF
35122 rm -f conftest.$ac_objext
35123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35124   (eval $ac_compile) 2>conftest.er1
35125   ac_status=$?
35126   grep -v '^ *+' conftest.er1 >conftest.err
35127   rm -f conftest.er1
35128   cat conftest.err >&5
35129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130   (exit $ac_status); } &&
35131          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35133   (eval $ac_try) 2>&5
35134   ac_status=$?
35135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136   (exit $ac_status); }; } &&
35137          { ac_try='test -s conftest.$ac_objext'
35138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139   (eval $ac_try) 2>&5
35140   ac_status=$?
35141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142   (exit $ac_status); }; }; then
35143   echo "$as_me:$LINENO: result: no" >&5
35144 echo "${ECHO_T}no" >&6
35145 else
35146   echo "$as_me: failed program was:" >&5
35147 sed 's/^/| /' conftest.$ac_ext >&5
35148
35149 echo "$as_me:$LINENO: result: yes" >&5
35150 echo "${ECHO_T}yes" >&6
35151         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
35152 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
35153         cat >conftest.$ac_ext <<_ACEOF
35154 /* confdefs.h.  */
35155 _ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h.  */
35159 #define __Point__ 1
35160 #include <AppKit/NSEvent.h>
35161 #include <CoreFoundation/CoreFoundation.h>
35162
35163 int
35164 main ()
35165 {
35166
35167   ;
35168   return 0;
35169 }
35170 _ACEOF
35171 rm -f conftest.$ac_objext
35172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35173   (eval $ac_compile) 2>conftest.er1
35174   ac_status=$?
35175   grep -v '^ *+' conftest.er1 >conftest.err
35176   rm -f conftest.er1
35177   cat conftest.err >&5
35178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179   (exit $ac_status); } &&
35180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182   (eval $ac_try) 2>&5
35183   ac_status=$?
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); }; } &&
35186          { ac_try='test -s conftest.$ac_objext'
35187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188   (eval $ac_try) 2>&5
35189   ac_status=$?
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); }; }; then
35192   echo "$as_me:$LINENO: result: yes" >&5
35193 echo "${ECHO_T}yes" >&6
35194             cat >>confdefs.h <<\_ACEOF
35195 #define __Point__ 1
35196 _ACEOF
35197
35198
35199 else
35200   echo "$as_me: failed program was:" >&5
35201 sed 's/^/| /' conftest.$ac_ext >&5
35202
35203 { { echo "$as_me:$LINENO: error: no
35204 See \`config.log' for more details." >&5
35205 echo "$as_me: error: no
35206 See \`config.log' for more details." >&2;}
35207    { (exit 1); exit 1; }; }
35208
35209 fi
35210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35211
35212 fi
35213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35214     ac_ext=c
35215 ac_cpp='$CPP $CPPFLAGS'
35216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35219
35220 fi
35221
35222 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
35223             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
35224     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
35225
35226         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
35227
35228     # Extract the first word of "Rez", so it can be a program name with args.
35229 set dummy Rez; ac_word=$2
35230 echo "$as_me:$LINENO: checking for $ac_word" >&5
35231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35232 if test "${ac_cv_prog_REZ+set}" = set; then
35233   echo $ECHO_N "(cached) $ECHO_C" >&6
35234 else
35235   if test -n "$REZ"; then
35236   ac_cv_prog_REZ="$REZ" # Let the user override the test.
35237 else
35238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35239 for as_dir in $PATH
35240 do
35241   IFS=$as_save_IFS
35242   test -z "$as_dir" && as_dir=.
35243   for ac_exec_ext in '' $ac_executable_extensions; do
35244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35245     ac_cv_prog_REZ="Rez"
35246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35247     break 2
35248   fi
35249 done
35250 done
35251
35252   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
35253 fi
35254 fi
35255 REZ=$ac_cv_prog_REZ
35256 if test -n "$REZ"; then
35257   echo "$as_me:$LINENO: result: $REZ" >&5
35258 echo "${ECHO_T}$REZ" >&6
35259 else
35260   echo "$as_me:$LINENO: result: no" >&5
35261 echo "${ECHO_T}no" >&6
35262 fi
35263
35264     # Extract the first word of "DeRez", so it can be a program name with args.
35265 set dummy DeRez; ac_word=$2
35266 echo "$as_me:$LINENO: checking for $ac_word" >&5
35267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35268 if test "${ac_cv_prog_DEREZ+set}" = set; then
35269   echo $ECHO_N "(cached) $ECHO_C" >&6
35270 else
35271   if test -n "$DEREZ"; then
35272   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
35273 else
35274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35275 for as_dir in $PATH
35276 do
35277   IFS=$as_save_IFS
35278   test -z "$as_dir" && as_dir=.
35279   for ac_exec_ext in '' $ac_executable_extensions; do
35280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35281     ac_cv_prog_DEREZ="DeRez"
35282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35283     break 2
35284   fi
35285 done
35286 done
35287
35288   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
35289 fi
35290 fi
35291 DEREZ=$ac_cv_prog_DEREZ
35292 if test -n "$DEREZ"; then
35293   echo "$as_me:$LINENO: result: $DEREZ" >&5
35294 echo "${ECHO_T}$DEREZ" >&6
35295 else
35296   echo "$as_me:$LINENO: result: no" >&5
35297 echo "${ECHO_T}no" >&6
35298 fi
35299
35300     # Extract the first word of "SetFile", so it can be a program name with args.
35301 set dummy SetFile; ac_word=$2
35302 echo "$as_me:$LINENO: checking for $ac_word" >&5
35303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35304 if test "${ac_cv_prog_SETFILE+set}" = set; then
35305   echo $ECHO_N "(cached) $ECHO_C" >&6
35306 else
35307   if test -n "$SETFILE"; then
35308   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35309 else
35310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35311 for as_dir in $PATH
35312 do
35313   IFS=$as_save_IFS
35314   test -z "$as_dir" && as_dir=.
35315   for ac_exec_ext in '' $ac_executable_extensions; do
35316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35317     ac_cv_prog_SETFILE="SetFile"
35318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35319     break 2
35320   fi
35321 done
35322 done
35323
35324   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35325 fi
35326 fi
35327 SETFILE=$ac_cv_prog_SETFILE
35328 if test -n "$SETFILE"; then
35329   echo "$as_me:$LINENO: result: $SETFILE" >&5
35330 echo "${ECHO_T}$SETFILE" >&6
35331 else
35332   echo "$as_me:$LINENO: result: no" >&5
35333 echo "${ECHO_T}no" >&6
35334 fi
35335
35336
35337     MACSETFILE="\$(SETFILE)"
35338
35339             if test "$wxUSE_MAC" = 1; then
35340         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
35341         RESCOMP="$REZ"
35342         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
35343     else
35344         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
35345         RESCOMP="echo -n \| $REZ"
35346         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
35347     fi
35348
35349 else
35350         MACSETFILE="@true"
35351
35352     if test "$wxUSE_PM" = 1; then
35353         RESCOMP="emxbind"
35354         WXCONFIG_RESFLAGS="-ep"
35355
35356                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
35357     else
35358         POSTLINK_COMMAND="@true"
35359     fi
35360
35361 fi
35362
35363
35364
35365 echo "$as_me:$LINENO: checking for mode_t" >&5
35366 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
35367 if test "${ac_cv_type_mode_t+set}" = set; then
35368   echo $ECHO_N "(cached) $ECHO_C" >&6
35369 else
35370   cat >conftest.$ac_ext <<_ACEOF
35371 /* confdefs.h.  */
35372 _ACEOF
35373 cat confdefs.h >>conftest.$ac_ext
35374 cat >>conftest.$ac_ext <<_ACEOF
35375 /* end confdefs.h.  */
35376 $ac_includes_default
35377 int
35378 main ()
35379 {
35380 if ((mode_t *) 0)
35381   return 0;
35382 if (sizeof (mode_t))
35383   return 0;
35384   ;
35385   return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest.$ac_objext
35389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35390   (eval $ac_compile) 2>conftest.er1
35391   ac_status=$?
35392   grep -v '^ *+' conftest.er1 >conftest.err
35393   rm -f conftest.er1
35394   cat conftest.err >&5
35395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396   (exit $ac_status); } &&
35397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399   (eval $ac_try) 2>&5
35400   ac_status=$?
35401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402   (exit $ac_status); }; } &&
35403          { ac_try='test -s conftest.$ac_objext'
35404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405   (eval $ac_try) 2>&5
35406   ac_status=$?
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); }; }; then
35409   ac_cv_type_mode_t=yes
35410 else
35411   echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35413
35414 ac_cv_type_mode_t=no
35415 fi
35416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35417 fi
35418 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
35419 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
35420 if test $ac_cv_type_mode_t = yes; then
35421   :
35422 else
35423
35424 cat >>confdefs.h <<_ACEOF
35425 #define mode_t int
35426 _ACEOF
35427
35428 fi
35429
35430 echo "$as_me:$LINENO: checking for off_t" >&5
35431 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
35432 if test "${ac_cv_type_off_t+set}" = set; then
35433   echo $ECHO_N "(cached) $ECHO_C" >&6
35434 else
35435   cat >conftest.$ac_ext <<_ACEOF
35436 /* confdefs.h.  */
35437 _ACEOF
35438 cat confdefs.h >>conftest.$ac_ext
35439 cat >>conftest.$ac_ext <<_ACEOF
35440 /* end confdefs.h.  */
35441 $ac_includes_default
35442 int
35443 main ()
35444 {
35445 if ((off_t *) 0)
35446   return 0;
35447 if (sizeof (off_t))
35448   return 0;
35449   ;
35450   return 0;
35451 }
35452 _ACEOF
35453 rm -f conftest.$ac_objext
35454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35455   (eval $ac_compile) 2>conftest.er1
35456   ac_status=$?
35457   grep -v '^ *+' conftest.er1 >conftest.err
35458   rm -f conftest.er1
35459   cat conftest.err >&5
35460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461   (exit $ac_status); } &&
35462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35464   (eval $ac_try) 2>&5
35465   ac_status=$?
35466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467   (exit $ac_status); }; } &&
35468          { ac_try='test -s conftest.$ac_objext'
35469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35470   (eval $ac_try) 2>&5
35471   ac_status=$?
35472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473   (exit $ac_status); }; }; then
35474   ac_cv_type_off_t=yes
35475 else
35476   echo "$as_me: failed program was:" >&5
35477 sed 's/^/| /' conftest.$ac_ext >&5
35478
35479 ac_cv_type_off_t=no
35480 fi
35481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35482 fi
35483 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
35484 echo "${ECHO_T}$ac_cv_type_off_t" >&6
35485 if test $ac_cv_type_off_t = yes; then
35486   :
35487 else
35488
35489 cat >>confdefs.h <<_ACEOF
35490 #define off_t long
35491 _ACEOF
35492
35493 fi
35494
35495 echo "$as_me:$LINENO: checking for pid_t" >&5
35496 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
35497 if test "${ac_cv_type_pid_t+set}" = set; then
35498   echo $ECHO_N "(cached) $ECHO_C" >&6
35499 else
35500   cat >conftest.$ac_ext <<_ACEOF
35501 /* confdefs.h.  */
35502 _ACEOF
35503 cat confdefs.h >>conftest.$ac_ext
35504 cat >>conftest.$ac_ext <<_ACEOF
35505 /* end confdefs.h.  */
35506 $ac_includes_default
35507 int
35508 main ()
35509 {
35510 if ((pid_t *) 0)
35511   return 0;
35512 if (sizeof (pid_t))
35513   return 0;
35514   ;
35515   return 0;
35516 }
35517 _ACEOF
35518 rm -f conftest.$ac_objext
35519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35520   (eval $ac_compile) 2>conftest.er1
35521   ac_status=$?
35522   grep -v '^ *+' conftest.er1 >conftest.err
35523   rm -f conftest.er1
35524   cat conftest.err >&5
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); } &&
35527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529   (eval $ac_try) 2>&5
35530   ac_status=$?
35531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532   (exit $ac_status); }; } &&
35533          { ac_try='test -s conftest.$ac_objext'
35534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35535   (eval $ac_try) 2>&5
35536   ac_status=$?
35537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538   (exit $ac_status); }; }; then
35539   ac_cv_type_pid_t=yes
35540 else
35541   echo "$as_me: failed program was:" >&5
35542 sed 's/^/| /' conftest.$ac_ext >&5
35543
35544 ac_cv_type_pid_t=no
35545 fi
35546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35547 fi
35548 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
35549 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
35550 if test $ac_cv_type_pid_t = yes; then
35551   :
35552 else
35553
35554 cat >>confdefs.h <<_ACEOF
35555 #define pid_t int
35556 _ACEOF
35557
35558 fi
35559
35560 echo "$as_me:$LINENO: checking for size_t" >&5
35561 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
35562 if test "${ac_cv_type_size_t+set}" = set; then
35563   echo $ECHO_N "(cached) $ECHO_C" >&6
35564 else
35565   cat >conftest.$ac_ext <<_ACEOF
35566 /* confdefs.h.  */
35567 _ACEOF
35568 cat confdefs.h >>conftest.$ac_ext
35569 cat >>conftest.$ac_ext <<_ACEOF
35570 /* end confdefs.h.  */
35571 $ac_includes_default
35572 int
35573 main ()
35574 {
35575 if ((size_t *) 0)
35576   return 0;
35577 if (sizeof (size_t))
35578   return 0;
35579   ;
35580   return 0;
35581 }
35582 _ACEOF
35583 rm -f conftest.$ac_objext
35584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35585   (eval $ac_compile) 2>conftest.er1
35586   ac_status=$?
35587   grep -v '^ *+' conftest.er1 >conftest.err
35588   rm -f conftest.er1
35589   cat conftest.err >&5
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); } &&
35592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594   (eval $ac_try) 2>&5
35595   ac_status=$?
35596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597   (exit $ac_status); }; } &&
35598          { ac_try='test -s conftest.$ac_objext'
35599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35600   (eval $ac_try) 2>&5
35601   ac_status=$?
35602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603   (exit $ac_status); }; }; then
35604   ac_cv_type_size_t=yes
35605 else
35606   echo "$as_me: failed program was:" >&5
35607 sed 's/^/| /' conftest.$ac_ext >&5
35608
35609 ac_cv_type_size_t=no
35610 fi
35611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35612 fi
35613 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35614 echo "${ECHO_T}$ac_cv_type_size_t" >&6
35615 if test $ac_cv_type_size_t = yes; then
35616   :
35617 else
35618
35619 cat >>confdefs.h <<_ACEOF
35620 #define size_t unsigned
35621 _ACEOF
35622
35623 fi
35624
35625 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
35626 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
35627 if test "${ac_cv_type_uid_t+set}" = set; then
35628   echo $ECHO_N "(cached) $ECHO_C" >&6
35629 else
35630   cat >conftest.$ac_ext <<_ACEOF
35631 /* confdefs.h.  */
35632 _ACEOF
35633 cat confdefs.h >>conftest.$ac_ext
35634 cat >>conftest.$ac_ext <<_ACEOF
35635 /* end confdefs.h.  */
35636 #include <sys/types.h>
35637
35638 _ACEOF
35639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35640   $EGREP "uid_t" >/dev/null 2>&1; then
35641   ac_cv_type_uid_t=yes
35642 else
35643   ac_cv_type_uid_t=no
35644 fi
35645 rm -f conftest*
35646
35647 fi
35648 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
35649 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
35650 if test $ac_cv_type_uid_t = no; then
35651
35652 cat >>confdefs.h <<\_ACEOF
35653 #define uid_t int
35654 _ACEOF
35655
35656
35657 cat >>confdefs.h <<\_ACEOF
35658 #define gid_t int
35659 _ACEOF
35660
35661 fi
35662
35663
35664 echo "$as_me:$LINENO: checking for ssize_t" >&5
35665 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
35666 if test "${ac_cv_type_ssize_t+set}" = set; then
35667   echo $ECHO_N "(cached) $ECHO_C" >&6
35668 else
35669   cat >conftest.$ac_ext <<_ACEOF
35670 /* confdefs.h.  */
35671 _ACEOF
35672 cat confdefs.h >>conftest.$ac_ext
35673 cat >>conftest.$ac_ext <<_ACEOF
35674 /* end confdefs.h.  */
35675 $ac_includes_default
35676 int
35677 main ()
35678 {
35679 if ((ssize_t *) 0)
35680   return 0;
35681 if (sizeof (ssize_t))
35682   return 0;
35683   ;
35684   return 0;
35685 }
35686 _ACEOF
35687 rm -f conftest.$ac_objext
35688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35689   (eval $ac_compile) 2>conftest.er1
35690   ac_status=$?
35691   grep -v '^ *+' conftest.er1 >conftest.err
35692   rm -f conftest.er1
35693   cat conftest.err >&5
35694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695   (exit $ac_status); } &&
35696          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698   (eval $ac_try) 2>&5
35699   ac_status=$?
35700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701   (exit $ac_status); }; } &&
35702          { ac_try='test -s conftest.$ac_objext'
35703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35704   (eval $ac_try) 2>&5
35705   ac_status=$?
35706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707   (exit $ac_status); }; }; then
35708   ac_cv_type_ssize_t=yes
35709 else
35710   echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35712
35713 ac_cv_type_ssize_t=no
35714 fi
35715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35716 fi
35717 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35718 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
35719 if test $ac_cv_type_ssize_t = yes; then
35720
35721 cat >>confdefs.h <<_ACEOF
35722 #define HAVE_SSIZE_T 1
35723 _ACEOF
35724
35725
35726 fi
35727
35728
35729 ac_ext=cc
35730 ac_cpp='$CXXCPP $CPPFLAGS'
35731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35734  echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
35735 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
35736 if test "${wx_cv_size_t_is_uint+set}" = set; then
35737   echo $ECHO_N "(cached) $ECHO_C" >&6
35738 else
35739
35740                             cat >conftest.$ac_ext <<_ACEOF
35741 /* confdefs.h.  */
35742 _ACEOF
35743 cat confdefs.h >>conftest.$ac_ext
35744 cat >>conftest.$ac_ext <<_ACEOF
35745 /* end confdefs.h.  */
35746 #include <stddef.h>
35747 int
35748 main ()
35749 {
35750
35751             return 0; }
35752
35753             struct Foo { void foo(size_t); void foo(unsigned int); };
35754
35755             int bar() {
35756
35757   ;
35758   return 0;
35759 }
35760 _ACEOF
35761 rm -f conftest.$ac_objext
35762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35763   (eval $ac_compile) 2>conftest.er1
35764   ac_status=$?
35765   grep -v '^ *+' conftest.er1 >conftest.err
35766   rm -f conftest.er1
35767   cat conftest.err >&5
35768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769   (exit $ac_status); } &&
35770          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35772   (eval $ac_try) 2>&5
35773   ac_status=$?
35774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775   (exit $ac_status); }; } &&
35776          { ac_try='test -s conftest.$ac_objext'
35777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778   (eval $ac_try) 2>&5
35779   ac_status=$?
35780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781   (exit $ac_status); }; }; then
35782   wx_cv_size_t_is_uint=no
35783 else
35784   echo "$as_me: failed program was:" >&5
35785 sed 's/^/| /' conftest.$ac_ext >&5
35786
35787 wx_cv_size_t_is_uint=yes
35788
35789 fi
35790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35791
35792
35793 fi
35794 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35795 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
35796
35797 if test "$wx_cv_size_t_is_uint" = "yes"; then
35798     cat >>confdefs.h <<\_ACEOF
35799 #define wxSIZE_T_IS_UINT 1
35800 _ACEOF
35801
35802 else
35803     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35804 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
35805 if test "${wx_cv_size_t_is_ulong+set}" = set; then
35806   echo $ECHO_N "(cached) $ECHO_C" >&6
35807 else
35808   cat >conftest.$ac_ext <<_ACEOF
35809 /* confdefs.h.  */
35810 _ACEOF
35811 cat confdefs.h >>conftest.$ac_ext
35812 cat >>conftest.$ac_ext <<_ACEOF
35813 /* end confdefs.h.  */
35814 #include <stddef.h>
35815 int
35816 main ()
35817 {
35818
35819                 return 0; }
35820
35821                 struct Foo { void foo(size_t); void foo(unsigned long); };
35822
35823                 int bar() {
35824
35825   ;
35826   return 0;
35827 }
35828 _ACEOF
35829 rm -f conftest.$ac_objext
35830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35831   (eval $ac_compile) 2>conftest.er1
35832   ac_status=$?
35833   grep -v '^ *+' conftest.er1 >conftest.err
35834   rm -f conftest.er1
35835   cat conftest.err >&5
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); } &&
35838          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840   (eval $ac_try) 2>&5
35841   ac_status=$?
35842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843   (exit $ac_status); }; } &&
35844          { ac_try='test -s conftest.$ac_objext'
35845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846   (eval $ac_try) 2>&5
35847   ac_status=$?
35848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849   (exit $ac_status); }; }; then
35850   wx_cv_size_t_is_ulong=no
35851 else
35852   echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35854
35855 wx_cv_size_t_is_ulong=yes
35856
35857 fi
35858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35859
35860 fi
35861 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35862 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
35863
35864     if test "$wx_cv_size_t_is_ulong" = "yes"; then
35865         cat >>confdefs.h <<\_ACEOF
35866 #define wxSIZE_T_IS_ULONG 1
35867 _ACEOF
35868
35869     fi
35870 fi
35871
35872 echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
35873 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6
35874 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
35875   echo $ECHO_N "(cached) $ECHO_C" >&6
35876 else
35877   cat >conftest.$ac_ext <<_ACEOF
35878 /* confdefs.h.  */
35879 _ACEOF
35880 cat confdefs.h >>conftest.$ac_ext
35881 cat >>conftest.$ac_ext <<_ACEOF
35882 /* end confdefs.h.  */
35883 #include <wchar.h>
35884 int
35885 main ()
35886 {
35887
35888             return 0; }
35889
35890             struct Foo { void foo(wchar_t);
35891                          void foo(unsigned short);
35892                          void foo(unsigned int);
35893                          void foo(unsigned long); };
35894
35895             int bar() {
35896
35897   ;
35898   return 0;
35899 }
35900 _ACEOF
35901 rm -f conftest.$ac_objext
35902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35903   (eval $ac_compile) 2>conftest.er1
35904   ac_status=$?
35905   grep -v '^ *+' conftest.er1 >conftest.err
35906   rm -f conftest.er1
35907   cat conftest.err >&5
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); } &&
35910          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
35911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35912   (eval $ac_try) 2>&5
35913   ac_status=$?
35914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915   (exit $ac_status); }; } &&
35916          { ac_try='test -s conftest.$ac_objext'
35917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35918   (eval $ac_try) 2>&5
35919   ac_status=$?
35920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921   (exit $ac_status); }; }; then
35922   wx_cv_wchar_t_is_separate_type=yes
35923 else
35924   echo "$as_me: failed program was:" >&5
35925 sed 's/^/| /' conftest.$ac_ext >&5
35926
35927 wx_cv_wchar_t_is_separate_type=no
35928
35929 fi
35930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35931
35932 fi
35933 echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
35934 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6
35935
35936 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
35937     cat >>confdefs.h <<\_ACEOF
35938 #define wxWCHAR_T_IS_REAL_TYPE 1
35939 _ACEOF
35940
35941 else
35942     cat >>confdefs.h <<\_ACEOF
35943 #define wxWCHAR_T_IS_REAL_TYPE 0
35944 _ACEOF
35945
35946 fi
35947
35948 ac_ext=c
35949 ac_cpp='$CPP $CPPFLAGS'
35950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35953
35954
35955 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35956 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
35957 if test "${wx_cv_struct_pw_gecos+set}" = set; then
35958   echo $ECHO_N "(cached) $ECHO_C" >&6
35959 else
35960
35961         cat >conftest.$ac_ext <<_ACEOF
35962 /* confdefs.h.  */
35963 _ACEOF
35964 cat confdefs.h >>conftest.$ac_ext
35965 cat >>conftest.$ac_ext <<_ACEOF
35966 /* end confdefs.h.  */
35967 #include <pwd.h>
35968 int
35969 main ()
35970 {
35971
35972                 char *p;
35973                 struct passwd *pw;
35974                 p = pw->pw_gecos;
35975
35976   ;
35977   return 0;
35978 }
35979 _ACEOF
35980 rm -f conftest.$ac_objext
35981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35982   (eval $ac_compile) 2>conftest.er1
35983   ac_status=$?
35984   grep -v '^ *+' conftest.er1 >conftest.err
35985   rm -f conftest.er1
35986   cat conftest.err >&5
35987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988   (exit $ac_status); } &&
35989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35991   (eval $ac_try) 2>&5
35992   ac_status=$?
35993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994   (exit $ac_status); }; } &&
35995          { ac_try='test -s conftest.$ac_objext'
35996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35997   (eval $ac_try) 2>&5
35998   ac_status=$?
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); }; }; then
36001
36002                 wx_cv_struct_pw_gecos=yes
36003
36004 else
36005   echo "$as_me: failed program was:" >&5
36006 sed 's/^/| /' conftest.$ac_ext >&5
36007
36008
36009                 wx_cv_struct_pw_gecos=no
36010
36011
36012 fi
36013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36014
36015
36016 fi
36017 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36018 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
36019
36020 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36021     cat >>confdefs.h <<\_ACEOF
36022 #define HAVE_PW_GECOS 1
36023 _ACEOF
36024
36025 fi
36026
36027
36028 if test "$wxUSE_WCHAR_T" = "yes"; then
36029     cat >>confdefs.h <<\_ACEOF
36030 #define wxUSE_WCHAR_T 1
36031 _ACEOF
36032
36033
36034         WCSLEN_FOUND=0
36035     WCHAR_LINK=
36036
36037 for ac_func in wcslen
36038 do
36039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36040 echo "$as_me:$LINENO: checking for $ac_func" >&5
36041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36042 if eval "test \"\${$as_ac_var+set}\" = set"; then
36043   echo $ECHO_N "(cached) $ECHO_C" >&6
36044 else
36045   cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h.  */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h.  */
36051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36053 #define $ac_func innocuous_$ac_func
36054
36055 /* System header to define __stub macros and hopefully few prototypes,
36056     which can conflict with char $ac_func (); below.
36057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36058     <limits.h> exists even on freestanding compilers.  */
36059
36060 #ifdef __STDC__
36061 # include <limits.h>
36062 #else
36063 # include <assert.h>
36064 #endif
36065
36066 #undef $ac_func
36067
36068 /* Override any gcc2 internal prototype to avoid an error.  */
36069 #ifdef __cplusplus
36070 extern "C"
36071 {
36072 #endif
36073 /* We use char because int might match the return type of a gcc2
36074    builtin and then its argument prototype would still apply.  */
36075 char $ac_func ();
36076 /* The GNU C library defines this for functions which it implements
36077     to always fail with ENOSYS.  Some functions are actually named
36078     something starting with __ and the normal name is an alias.  */
36079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36080 choke me
36081 #else
36082 char (*f) () = $ac_func;
36083 #endif
36084 #ifdef __cplusplus
36085 }
36086 #endif
36087
36088 int
36089 main ()
36090 {
36091 return f != $ac_func;
36092   ;
36093   return 0;
36094 }
36095 _ACEOF
36096 rm -f conftest.$ac_objext conftest$ac_exeext
36097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36098   (eval $ac_link) 2>conftest.er1
36099   ac_status=$?
36100   grep -v '^ *+' conftest.er1 >conftest.err
36101   rm -f conftest.er1
36102   cat conftest.err >&5
36103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104   (exit $ac_status); } &&
36105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36107   (eval $ac_try) 2>&5
36108   ac_status=$?
36109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110   (exit $ac_status); }; } &&
36111          { ac_try='test -s conftest$ac_exeext'
36112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36113   (eval $ac_try) 2>&5
36114   ac_status=$?
36115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116   (exit $ac_status); }; }; then
36117   eval "$as_ac_var=yes"
36118 else
36119   echo "$as_me: failed program was:" >&5
36120 sed 's/^/| /' conftest.$ac_ext >&5
36121
36122 eval "$as_ac_var=no"
36123 fi
36124 rm -f conftest.err conftest.$ac_objext \
36125       conftest$ac_exeext conftest.$ac_ext
36126 fi
36127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36129 if test `eval echo '${'$as_ac_var'}'` = yes; then
36130   cat >>confdefs.h <<_ACEOF
36131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36132 _ACEOF
36133  WCSLEN_FOUND=1
36134 fi
36135 done
36136
36137
36138     if test "$WCSLEN_FOUND" = 0; then
36139         if test "$TOOLKIT" = "MSW"; then
36140             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
36141 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
36142 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
36143   echo $ECHO_N "(cached) $ECHO_C" >&6
36144 else
36145   ac_check_lib_save_LIBS=$LIBS
36146 LIBS="-lmsvcrt  $LIBS"
36147 cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h.  */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h.  */
36153
36154 /* Override any gcc2 internal prototype to avoid an error.  */
36155 #ifdef __cplusplus
36156 extern "C"
36157 #endif
36158 /* We use char because int might match the return type of a gcc2
36159    builtin and then its argument prototype would still apply.  */
36160 char wcslen ();
36161 int
36162 main ()
36163 {
36164 wcslen ();
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36171   (eval $ac_link) 2>conftest.er1
36172   ac_status=$?
36173   grep -v '^ *+' conftest.er1 >conftest.err
36174   rm -f conftest.er1
36175   cat conftest.err >&5
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); } &&
36178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36180   (eval $ac_try) 2>&5
36181   ac_status=$?
36182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36183   (exit $ac_status); }; } &&
36184          { ac_try='test -s conftest$ac_exeext'
36185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36186   (eval $ac_try) 2>&5
36187   ac_status=$?
36188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189   (exit $ac_status); }; }; then
36190   ac_cv_lib_msvcrt_wcslen=yes
36191 else
36192   echo "$as_me: failed program was:" >&5
36193 sed 's/^/| /' conftest.$ac_ext >&5
36194
36195 ac_cv_lib_msvcrt_wcslen=no
36196 fi
36197 rm -f conftest.err conftest.$ac_objext \
36198       conftest$ac_exeext conftest.$ac_ext
36199 LIBS=$ac_check_lib_save_LIBS
36200 fi
36201 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
36202 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
36203 if test $ac_cv_lib_msvcrt_wcslen = yes; then
36204   WCHAR_OK=1
36205 fi
36206
36207         else
36208             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
36209 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
36210 if test "${ac_cv_lib_w_wcslen+set}" = set; then
36211   echo $ECHO_N "(cached) $ECHO_C" >&6
36212 else
36213   ac_check_lib_save_LIBS=$LIBS
36214 LIBS="-lw  $LIBS"
36215 cat >conftest.$ac_ext <<_ACEOF
36216 /* confdefs.h.  */
36217 _ACEOF
36218 cat confdefs.h >>conftest.$ac_ext
36219 cat >>conftest.$ac_ext <<_ACEOF
36220 /* end confdefs.h.  */
36221
36222 /* Override any gcc2 internal prototype to avoid an error.  */
36223 #ifdef __cplusplus
36224 extern "C"
36225 #endif
36226 /* We use char because int might match the return type of a gcc2
36227    builtin and then its argument prototype would still apply.  */
36228 char wcslen ();
36229 int
36230 main ()
36231 {
36232 wcslen ();
36233   ;
36234   return 0;
36235 }
36236 _ACEOF
36237 rm -f conftest.$ac_objext conftest$ac_exeext
36238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36239   (eval $ac_link) 2>conftest.er1
36240   ac_status=$?
36241   grep -v '^ *+' conftest.er1 >conftest.err
36242   rm -f conftest.er1
36243   cat conftest.err >&5
36244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245   (exit $ac_status); } &&
36246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248   (eval $ac_try) 2>&5
36249   ac_status=$?
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); }; } &&
36252          { ac_try='test -s conftest$ac_exeext'
36253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254   (eval $ac_try) 2>&5
36255   ac_status=$?
36256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257   (exit $ac_status); }; }; then
36258   ac_cv_lib_w_wcslen=yes
36259 else
36260   echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263 ac_cv_lib_w_wcslen=no
36264 fi
36265 rm -f conftest.err conftest.$ac_objext \
36266       conftest$ac_exeext conftest.$ac_ext
36267 LIBS=$ac_check_lib_save_LIBS
36268 fi
36269 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
36270 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
36271 if test $ac_cv_lib_w_wcslen = yes; then
36272
36273                             WCHAR_LINK=" -lw"
36274                             WCSLEN_FOUND=1
36275
36276 fi
36277
36278         fi
36279     fi
36280
36281     if test "$WCSLEN_FOUND" = 1; then
36282         cat >>confdefs.h <<\_ACEOF
36283 #define HAVE_WCSLEN 1
36284 _ACEOF
36285
36286     fi
36287
36288
36289 for ac_func in wcsdup
36290 do
36291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36292 echo "$as_me:$LINENO: checking for $ac_func" >&5
36293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36294 if eval "test \"\${$as_ac_var+set}\" = set"; then
36295   echo $ECHO_N "(cached) $ECHO_C" >&6
36296 else
36297   cat >conftest.$ac_ext <<_ACEOF
36298 /* confdefs.h.  */
36299 _ACEOF
36300 cat confdefs.h >>conftest.$ac_ext
36301 cat >>conftest.$ac_ext <<_ACEOF
36302 /* end confdefs.h.  */
36303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36305 #define $ac_func innocuous_$ac_func
36306
36307 /* System header to define __stub macros and hopefully few prototypes,
36308     which can conflict with char $ac_func (); below.
36309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36310     <limits.h> exists even on freestanding compilers.  */
36311
36312 #ifdef __STDC__
36313 # include <limits.h>
36314 #else
36315 # include <assert.h>
36316 #endif
36317
36318 #undef $ac_func
36319
36320 /* Override any gcc2 internal prototype to avoid an error.  */
36321 #ifdef __cplusplus
36322 extern "C"
36323 {
36324 #endif
36325 /* We use char because int might match the return type of a gcc2
36326    builtin and then its argument prototype would still apply.  */
36327 char $ac_func ();
36328 /* The GNU C library defines this for functions which it implements
36329     to always fail with ENOSYS.  Some functions are actually named
36330     something starting with __ and the normal name is an alias.  */
36331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36332 choke me
36333 #else
36334 char (*f) () = $ac_func;
36335 #endif
36336 #ifdef __cplusplus
36337 }
36338 #endif
36339
36340 int
36341 main ()
36342 {
36343 return f != $ac_func;
36344   ;
36345   return 0;
36346 }
36347 _ACEOF
36348 rm -f conftest.$ac_objext conftest$ac_exeext
36349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36350   (eval $ac_link) 2>conftest.er1
36351   ac_status=$?
36352   grep -v '^ *+' conftest.er1 >conftest.err
36353   rm -f conftest.er1
36354   cat conftest.err >&5
36355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356   (exit $ac_status); } &&
36357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36359   (eval $ac_try) 2>&5
36360   ac_status=$?
36361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362   (exit $ac_status); }; } &&
36363          { ac_try='test -s conftest$ac_exeext'
36364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365   (eval $ac_try) 2>&5
36366   ac_status=$?
36367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368   (exit $ac_status); }; }; then
36369   eval "$as_ac_var=yes"
36370 else
36371   echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36373
36374 eval "$as_ac_var=no"
36375 fi
36376 rm -f conftest.err conftest.$ac_objext \
36377       conftest$ac_exeext conftest.$ac_ext
36378 fi
36379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36381 if test `eval echo '${'$as_ac_var'}'` = yes; then
36382   cat >>confdefs.h <<_ACEOF
36383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36384 _ACEOF
36385
36386 fi
36387 done
36388
36389
36390                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
36391         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
36392     fi
36393
36394                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
36395 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
36396 if test "${ac_cv_type_mbstate_t+set}" = set; then
36397   echo $ECHO_N "(cached) $ECHO_C" >&6
36398 else
36399   cat >conftest.$ac_ext <<_ACEOF
36400 /* confdefs.h.  */
36401 _ACEOF
36402 cat confdefs.h >>conftest.$ac_ext
36403 cat >>conftest.$ac_ext <<_ACEOF
36404 /* end confdefs.h.  */
36405 #include <wchar.h>
36406
36407 int
36408 main ()
36409 {
36410 if ((mbstate_t *) 0)
36411   return 0;
36412 if (sizeof (mbstate_t))
36413   return 0;
36414   ;
36415   return 0;
36416 }
36417 _ACEOF
36418 rm -f conftest.$ac_objext
36419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36420   (eval $ac_compile) 2>conftest.er1
36421   ac_status=$?
36422   grep -v '^ *+' conftest.er1 >conftest.err
36423   rm -f conftest.er1
36424   cat conftest.err >&5
36425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426   (exit $ac_status); } &&
36427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429   (eval $ac_try) 2>&5
36430   ac_status=$?
36431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432   (exit $ac_status); }; } &&
36433          { ac_try='test -s conftest.$ac_objext'
36434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435   (eval $ac_try) 2>&5
36436   ac_status=$?
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); }; }; then
36439   ac_cv_type_mbstate_t=yes
36440 else
36441   echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.$ac_ext >&5
36443
36444 ac_cv_type_mbstate_t=no
36445 fi
36446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36447 fi
36448 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
36449 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
36450 if test $ac_cv_type_mbstate_t = yes; then
36451
36452 cat >>confdefs.h <<_ACEOF
36453 #define HAVE_MBSTATE_T 1
36454 _ACEOF
36455
36456
36457 for ac_func in wcsrtombs
36458 do
36459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36460 echo "$as_me:$LINENO: checking for $ac_func" >&5
36461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36462 if eval "test \"\${$as_ac_var+set}\" = set"; then
36463   echo $ECHO_N "(cached) $ECHO_C" >&6
36464 else
36465   cat >conftest.$ac_ext <<_ACEOF
36466 /* confdefs.h.  */
36467 _ACEOF
36468 cat confdefs.h >>conftest.$ac_ext
36469 cat >>conftest.$ac_ext <<_ACEOF
36470 /* end confdefs.h.  */
36471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36473 #define $ac_func innocuous_$ac_func
36474
36475 /* System header to define __stub macros and hopefully few prototypes,
36476     which can conflict with char $ac_func (); below.
36477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36478     <limits.h> exists even on freestanding compilers.  */
36479
36480 #ifdef __STDC__
36481 # include <limits.h>
36482 #else
36483 # include <assert.h>
36484 #endif
36485
36486 #undef $ac_func
36487
36488 /* Override any gcc2 internal prototype to avoid an error.  */
36489 #ifdef __cplusplus
36490 extern "C"
36491 {
36492 #endif
36493 /* We use char because int might match the return type of a gcc2
36494    builtin and then its argument prototype would still apply.  */
36495 char $ac_func ();
36496 /* The GNU C library defines this for functions which it implements
36497     to always fail with ENOSYS.  Some functions are actually named
36498     something starting with __ and the normal name is an alias.  */
36499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36500 choke me
36501 #else
36502 char (*f) () = $ac_func;
36503 #endif
36504 #ifdef __cplusplus
36505 }
36506 #endif
36507
36508 int
36509 main ()
36510 {
36511 return f != $ac_func;
36512   ;
36513   return 0;
36514 }
36515 _ACEOF
36516 rm -f conftest.$ac_objext conftest$ac_exeext
36517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36518   (eval $ac_link) 2>conftest.er1
36519   ac_status=$?
36520   grep -v '^ *+' conftest.er1 >conftest.err
36521   rm -f conftest.er1
36522   cat conftest.err >&5
36523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524   (exit $ac_status); } &&
36525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36527   (eval $ac_try) 2>&5
36528   ac_status=$?
36529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530   (exit $ac_status); }; } &&
36531          { ac_try='test -s conftest$ac_exeext'
36532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36533   (eval $ac_try) 2>&5
36534   ac_status=$?
36535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36536   (exit $ac_status); }; }; then
36537   eval "$as_ac_var=yes"
36538 else
36539   echo "$as_me: failed program was:" >&5
36540 sed 's/^/| /' conftest.$ac_ext >&5
36541
36542 eval "$as_ac_var=no"
36543 fi
36544 rm -f conftest.err conftest.$ac_objext \
36545       conftest$ac_exeext conftest.$ac_ext
36546 fi
36547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36549 if test `eval echo '${'$as_ac_var'}'` = yes; then
36550   cat >>confdefs.h <<_ACEOF
36551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36552 _ACEOF
36553
36554 fi
36555 done
36556
36557 fi
36558
36559 else
36560     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
36561 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
36562 fi
36563
36564
36565
36566 for ac_func in snprintf vsnprintf
36567 do
36568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36569 echo "$as_me:$LINENO: checking for $ac_func" >&5
36570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36571 if eval "test \"\${$as_ac_var+set}\" = set"; then
36572   echo $ECHO_N "(cached) $ECHO_C" >&6
36573 else
36574   cat >conftest.$ac_ext <<_ACEOF
36575 /* confdefs.h.  */
36576 _ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h.  */
36580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36582 #define $ac_func innocuous_$ac_func
36583
36584 /* System header to define __stub macros and hopefully few prototypes,
36585     which can conflict with char $ac_func (); below.
36586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36587     <limits.h> exists even on freestanding compilers.  */
36588
36589 #ifdef __STDC__
36590 # include <limits.h>
36591 #else
36592 # include <assert.h>
36593 #endif
36594
36595 #undef $ac_func
36596
36597 /* Override any gcc2 internal prototype to avoid an error.  */
36598 #ifdef __cplusplus
36599 extern "C"
36600 {
36601 #endif
36602 /* We use char because int might match the return type of a gcc2
36603    builtin and then its argument prototype would still apply.  */
36604 char $ac_func ();
36605 /* The GNU C library defines this for functions which it implements
36606     to always fail with ENOSYS.  Some functions are actually named
36607     something starting with __ and the normal name is an alias.  */
36608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36609 choke me
36610 #else
36611 char (*f) () = $ac_func;
36612 #endif
36613 #ifdef __cplusplus
36614 }
36615 #endif
36616
36617 int
36618 main ()
36619 {
36620 return f != $ac_func;
36621   ;
36622   return 0;
36623 }
36624 _ACEOF
36625 rm -f conftest.$ac_objext conftest$ac_exeext
36626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36627   (eval $ac_link) 2>conftest.er1
36628   ac_status=$?
36629   grep -v '^ *+' conftest.er1 >conftest.err
36630   rm -f conftest.er1
36631   cat conftest.err >&5
36632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633   (exit $ac_status); } &&
36634          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36636   (eval $ac_try) 2>&5
36637   ac_status=$?
36638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639   (exit $ac_status); }; } &&
36640          { ac_try='test -s conftest$ac_exeext'
36641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642   (eval $ac_try) 2>&5
36643   ac_status=$?
36644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645   (exit $ac_status); }; }; then
36646   eval "$as_ac_var=yes"
36647 else
36648   echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36650
36651 eval "$as_ac_var=no"
36652 fi
36653 rm -f conftest.err conftest.$ac_objext \
36654       conftest$ac_exeext conftest.$ac_ext
36655 fi
36656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36658 if test `eval echo '${'$as_ac_var'}'` = yes; then
36659   cat >>confdefs.h <<_ACEOF
36660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36661 _ACEOF
36662
36663 fi
36664 done
36665
36666
36667 if test "$ac_cv_func_vsnprintf" = "yes"; then
36668         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
36669 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
36670 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
36671   echo $ECHO_N "(cached) $ECHO_C" >&6
36672 else
36673
36674                                                             cat >conftest.$ac_ext <<_ACEOF
36675 /* confdefs.h.  */
36676 _ACEOF
36677 cat confdefs.h >>conftest.$ac_ext
36678 cat >>conftest.$ac_ext <<_ACEOF
36679 /* end confdefs.h.  */
36680
36681                     #include <stdio.h>
36682                     #include <stdarg.h>
36683                     #ifdef __MSL__
36684                     #if __MSL__ >= 0x6000
36685                     namespace std {}
36686                     using namespace std;
36687                     #endif
36688                     #endif
36689
36690 int
36691 main ()
36692 {
36693
36694                     char *buf;
36695                     va_list ap;
36696                     vsnprintf(buf, 10u, "%s", ap);
36697
36698   ;
36699   return 0;
36700 }
36701 _ACEOF
36702 rm -f conftest.$ac_objext
36703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36704   (eval $ac_compile) 2>conftest.er1
36705   ac_status=$?
36706   grep -v '^ *+' conftest.er1 >conftest.err
36707   rm -f conftest.er1
36708   cat conftest.err >&5
36709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710   (exit $ac_status); } &&
36711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36713   (eval $ac_try) 2>&5
36714   ac_status=$?
36715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716   (exit $ac_status); }; } &&
36717          { ac_try='test -s conftest.$ac_objext'
36718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719   (eval $ac_try) 2>&5
36720   ac_status=$?
36721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722   (exit $ac_status); }; }; then
36723   wx_cv_func_vsnprintf_decl=yes
36724 else
36725   echo "$as_me: failed program was:" >&5
36726 sed 's/^/| /' conftest.$ac_ext >&5
36727
36728 wx_cv_func_vsnprintf_decl=no
36729
36730 fi
36731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36732
36733
36734 fi
36735 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
36736 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
36737
36738     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
36739         cat >>confdefs.h <<\_ACEOF
36740 #define HAVE_VSNPRINTF_DECL 1
36741 _ACEOF
36742
36743
36744                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
36745 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
36746 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
36747   echo $ECHO_N "(cached) $ECHO_C" >&6
36748 else
36749
36750                 cat >conftest.$ac_ext <<_ACEOF
36751 /* confdefs.h.  */
36752 _ACEOF
36753 cat confdefs.h >>conftest.$ac_ext
36754 cat >>conftest.$ac_ext <<_ACEOF
36755 /* end confdefs.h.  */
36756
36757                         #include <stdio.h>
36758                         #include <stdarg.h>
36759                         #ifdef __MSL__
36760                         #if __MSL__ >= 0x6000
36761                         namespace std {}
36762                         using namespace std;
36763                         #endif
36764                         #endif
36765
36766 int
36767 main ()
36768 {
36769
36770                         char *buf;
36771                         va_list ap;
36772                         const char *fmt = "%s";
36773                         vsnprintf(buf, 10u, fmt, ap);
36774
36775   ;
36776   return 0;
36777 }
36778 _ACEOF
36779 rm -f conftest.$ac_objext
36780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36781   (eval $ac_compile) 2>conftest.er1
36782   ac_status=$?
36783   grep -v '^ *+' conftest.er1 >conftest.err
36784   rm -f conftest.er1
36785   cat conftest.err >&5
36786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36787   (exit $ac_status); } &&
36788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36790   (eval $ac_try) 2>&5
36791   ac_status=$?
36792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793   (exit $ac_status); }; } &&
36794          { ac_try='test -s conftest.$ac_objext'
36795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36796   (eval $ac_try) 2>&5
36797   ac_status=$?
36798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799   (exit $ac_status); }; }; then
36800   wx_cv_func_broken_vsnprintf_decl=no
36801 else
36802   echo "$as_me: failed program was:" >&5
36803 sed 's/^/| /' conftest.$ac_ext >&5
36804
36805 wx_cv_func_broken_vsnprintf_decl=yes
36806
36807 fi
36808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36809
36810
36811 fi
36812 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
36813 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
36814
36815         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
36816             cat >>confdefs.h <<\_ACEOF
36817 #define HAVE_BROKEN_VSNPRINTF_DECL 1
36818 _ACEOF
36819
36820         fi
36821     fi
36822 fi
36823
36824 if test "$ac_cv_func_snprintf" = "yes"; then
36825     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
36826 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
36827 if test "${wx_cv_func_snprintf_decl+set}" = set; then
36828   echo $ECHO_N "(cached) $ECHO_C" >&6
36829 else
36830
36831             cat >conftest.$ac_ext <<_ACEOF
36832 /* confdefs.h.  */
36833 _ACEOF
36834 cat confdefs.h >>conftest.$ac_ext
36835 cat >>conftest.$ac_ext <<_ACEOF
36836 /* end confdefs.h.  */
36837
36838                     #include <stdio.h>
36839                     #include <stdarg.h>
36840                     #ifdef __MSL__
36841                     #if __MSL__ >= 0x6000
36842                     namespace std {}
36843                     using namespace std;
36844                     #endif
36845                     #endif
36846
36847 int
36848 main ()
36849 {
36850
36851                     char *buf;
36852                     snprintf(buf, 10u, "%s", "wx");
36853
36854   ;
36855   return 0;
36856 }
36857 _ACEOF
36858 rm -f conftest.$ac_objext
36859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36860   (eval $ac_compile) 2>conftest.er1
36861   ac_status=$?
36862   grep -v '^ *+' conftest.er1 >conftest.err
36863   rm -f conftest.er1
36864   cat conftest.err >&5
36865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866   (exit $ac_status); } &&
36867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36869   (eval $ac_try) 2>&5
36870   ac_status=$?
36871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872   (exit $ac_status); }; } &&
36873          { ac_try='test -s conftest.$ac_objext'
36874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36875   (eval $ac_try) 2>&5
36876   ac_status=$?
36877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878   (exit $ac_status); }; }; then
36879   wx_cv_func_snprintf_decl=yes
36880 else
36881   echo "$as_me: failed program was:" >&5
36882 sed 's/^/| /' conftest.$ac_ext >&5
36883
36884 wx_cv_func_snprintf_decl=no
36885
36886 fi
36887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36888
36889
36890 fi
36891 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
36892 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
36893
36894     if test "$wx_cv_func_snprintf_decl" = "yes"; then
36895         cat >>confdefs.h <<\_ACEOF
36896 #define HAVE_SNPRINTF_DECL 1
36897 _ACEOF
36898
36899
36900                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
36901 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
36902 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
36903   echo $ECHO_N "(cached) $ECHO_C" >&6
36904 else
36905
36906                 cat >conftest.$ac_ext <<_ACEOF
36907 /* confdefs.h.  */
36908 _ACEOF
36909 cat confdefs.h >>conftest.$ac_ext
36910 cat >>conftest.$ac_ext <<_ACEOF
36911 /* end confdefs.h.  */
36912
36913                         #include <stdio.h>
36914                         #include <stdarg.h>
36915                         #ifdef __MSL__
36916                         #if __MSL__ >= 0x6000
36917                         namespace std {}
36918                         using namespace std;
36919                         #endif
36920                         #endif
36921
36922 int
36923 main ()
36924 {
36925
36926                         char *buf;
36927                         const char *fmt = "%s";
36928                         snprintf(buf, 10u, fmt, "wx");
36929
36930   ;
36931   return 0;
36932 }
36933 _ACEOF
36934 rm -f conftest.$ac_objext
36935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36936   (eval $ac_compile) 2>conftest.er1
36937   ac_status=$?
36938   grep -v '^ *+' conftest.er1 >conftest.err
36939   rm -f conftest.er1
36940   cat conftest.err >&5
36941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942   (exit $ac_status); } &&
36943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36945   (eval $ac_try) 2>&5
36946   ac_status=$?
36947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36948   (exit $ac_status); }; } &&
36949          { ac_try='test -s conftest.$ac_objext'
36950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36951   (eval $ac_try) 2>&5
36952   ac_status=$?
36953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954   (exit $ac_status); }; }; then
36955   wx_cv_func_broken_snprintf_decl=no
36956 else
36957   echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36959
36960 wx_cv_func_broken_snprintf_decl=yes
36961
36962 fi
36963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36964
36965
36966 fi
36967 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
36968 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
36969
36970         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
36971             cat >>confdefs.h <<\_ACEOF
36972 #define HAVE_BROKEN_SNPRINTF_DECL 1
36973 _ACEOF
36974
36975         fi
36976     fi
36977
36978     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36979
36980                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36981 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
36982 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
36983   echo $ECHO_N "(cached) $ECHO_C" >&6
36984 else
36985
36986                 if test "$cross_compiling" = yes; then
36987
36988                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
36989 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
36990 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
36991 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36992                         wx_cv_func_snprintf_pos_params=no
36993
36994
36995 else
36996   cat >conftest.$ac_ext <<_ACEOF
36997 /* confdefs.h.  */
36998 _ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h.  */
37002
37003                         #include <stdio.h>
37004
37005                         int main (void)
37006                         {
37007                             char buffer[128];
37008                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37009                             if (strcmp ("2 3 1", buffer) == 0)
37010                                 exit (0);
37011                             exit (1);
37012                         }
37013
37014 _ACEOF
37015 rm -f conftest$ac_exeext
37016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37017   (eval $ac_link) 2>&5
37018   ac_status=$?
37019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022   (eval $ac_try) 2>&5
37023   ac_status=$?
37024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025   (exit $ac_status); }; }; then
37026   wx_cv_func_snprintf_pos_params=no
37027 else
37028   echo "$as_me: program exited with status $ac_status" >&5
37029 echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37031
37032 ( exit $ac_status )
37033 wx_cv_func_snprintf_pos_params=yes
37034 fi
37035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37036 fi
37037
37038
37039 fi
37040 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37041 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
37042
37043         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37044             cat >>confdefs.h <<\_ACEOF
37045 #define HAVE_UNIX98_PRINTF 1
37046 _ACEOF
37047
37048         fi
37049     fi
37050 fi
37051
37052 if test "$wxUSE_UNICODE" = yes; then
37053
37054
37055 for ac_func in swprintf
37056 do
37057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37058 echo "$as_me:$LINENO: checking for $ac_func" >&5
37059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37060 if eval "test \"\${$as_ac_var+set}\" = set"; then
37061   echo $ECHO_N "(cached) $ECHO_C" >&6
37062 else
37063   cat >conftest.$ac_ext <<_ACEOF
37064 /* confdefs.h.  */
37065 _ACEOF
37066 cat confdefs.h >>conftest.$ac_ext
37067 cat >>conftest.$ac_ext <<_ACEOF
37068 /* end confdefs.h.  */
37069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37071 #define $ac_func innocuous_$ac_func
37072
37073 /* System header to define __stub macros and hopefully few prototypes,
37074     which can conflict with char $ac_func (); below.
37075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37076     <limits.h> exists even on freestanding compilers.  */
37077
37078 #ifdef __STDC__
37079 # include <limits.h>
37080 #else
37081 # include <assert.h>
37082 #endif
37083
37084 #undef $ac_func
37085
37086 /* Override any gcc2 internal prototype to avoid an error.  */
37087 #ifdef __cplusplus
37088 extern "C"
37089 {
37090 #endif
37091 /* We use char because int might match the return type of a gcc2
37092    builtin and then its argument prototype would still apply.  */
37093 char $ac_func ();
37094 /* The GNU C library defines this for functions which it implements
37095     to always fail with ENOSYS.  Some functions are actually named
37096     something starting with __ and the normal name is an alias.  */
37097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37098 choke me
37099 #else
37100 char (*f) () = $ac_func;
37101 #endif
37102 #ifdef __cplusplus
37103 }
37104 #endif
37105
37106 int
37107 main ()
37108 {
37109 return f != $ac_func;
37110   ;
37111   return 0;
37112 }
37113 _ACEOF
37114 rm -f conftest.$ac_objext conftest$ac_exeext
37115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37116   (eval $ac_link) 2>conftest.er1
37117   ac_status=$?
37118   grep -v '^ *+' conftest.er1 >conftest.err
37119   rm -f conftest.er1
37120   cat conftest.err >&5
37121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37122   (exit $ac_status); } &&
37123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125   (eval $ac_try) 2>&5
37126   ac_status=$?
37127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128   (exit $ac_status); }; } &&
37129          { ac_try='test -s conftest$ac_exeext'
37130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131   (eval $ac_try) 2>&5
37132   ac_status=$?
37133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134   (exit $ac_status); }; }; then
37135   eval "$as_ac_var=yes"
37136 else
37137   echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37139
37140 eval "$as_ac_var=no"
37141 fi
37142 rm -f conftest.err conftest.$ac_objext \
37143       conftest$ac_exeext conftest.$ac_ext
37144 fi
37145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37147 if test `eval echo '${'$as_ac_var'}'` = yes; then
37148   cat >>confdefs.h <<_ACEOF
37149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37150 _ACEOF
37151
37152 fi
37153 done
37154
37155
37156     if test "$ac_cv_func_swprintf" = "yes"; then
37157         echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
37158 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
37159 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
37160   echo $ECHO_N "(cached) $ECHO_C" >&6
37161 else
37162
37163                 cat >conftest.$ac_ext <<_ACEOF
37164 /* confdefs.h.  */
37165 _ACEOF
37166 cat confdefs.h >>conftest.$ac_ext
37167 cat >>conftest.$ac_ext <<_ACEOF
37168 /* end confdefs.h.  */
37169
37170                         #include <stdio.h>
37171                         #include <stdarg.h>
37172                         #include <wchar.h>
37173
37174 int
37175 main ()
37176 {
37177
37178                         wchar_t *buf;
37179                         const wchar_t *fmt = L"test";
37180                         swprintf(buf, 10u, fmt);
37181
37182   ;
37183   return 0;
37184 }
37185 _ACEOF
37186 rm -f conftest.$ac_objext
37187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37188   (eval $ac_compile) 2>conftest.er1
37189   ac_status=$?
37190   grep -v '^ *+' conftest.er1 >conftest.err
37191   rm -f conftest.er1
37192   cat conftest.err >&5
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); } &&
37195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37197   (eval $ac_try) 2>&5
37198   ac_status=$?
37199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200   (exit $ac_status); }; } &&
37201          { ac_try='test -s conftest.$ac_objext'
37202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37203   (eval $ac_try) 2>&5
37204   ac_status=$?
37205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206   (exit $ac_status); }; }; then
37207   wx_cv_func_broken_swprintf_decl=no
37208 else
37209   echo "$as_me: failed program was:" >&5
37210 sed 's/^/| /' conftest.$ac_ext >&5
37211
37212 wx_cv_func_broken_swprintf_decl=yes
37213
37214 fi
37215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37216
37217
37218 fi
37219 echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
37220 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
37221
37222         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
37223             cat >>confdefs.h <<\_ACEOF
37224 #define HAVE_BROKEN_SWPRINTF_DECL 1
37225 _ACEOF
37226
37227         fi
37228     fi
37229
37230             wchar_headers="#include <stdio.h>
37231 #include <wchar.h>"
37232     case "${host}" in
37233         *-*-solaris2* )
37234             echo "$as_me:$LINENO: checking for widec.h" >&5
37235 echo $ECHO_N "checking for widec.h... $ECHO_C" >&6
37236 if test "${ac_cv_header_widec_h+set}" = set; then
37237   echo $ECHO_N "(cached) $ECHO_C" >&6
37238 else
37239   cat >conftest.$ac_ext <<_ACEOF
37240 /* confdefs.h.  */
37241 _ACEOF
37242 cat confdefs.h >>conftest.$ac_ext
37243 cat >>conftest.$ac_ext <<_ACEOF
37244 /* end confdefs.h.  */
37245 $ac_includes_default
37246
37247 #include <widec.h>
37248 _ACEOF
37249 rm -f conftest.$ac_objext
37250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37251   (eval $ac_compile) 2>conftest.er1
37252   ac_status=$?
37253   grep -v '^ *+' conftest.er1 >conftest.err
37254   rm -f conftest.er1
37255   cat conftest.err >&5
37256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257   (exit $ac_status); } &&
37258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37260   (eval $ac_try) 2>&5
37261   ac_status=$?
37262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263   (exit $ac_status); }; } &&
37264          { ac_try='test -s conftest.$ac_objext'
37265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37266   (eval $ac_try) 2>&5
37267   ac_status=$?
37268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269   (exit $ac_status); }; }; then
37270   ac_cv_header_widec_h=yes
37271 else
37272   echo "$as_me: failed program was:" >&5
37273 sed 's/^/| /' conftest.$ac_ext >&5
37274
37275 ac_cv_header_widec_h=no
37276 fi
37277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37278 fi
37279 echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5
37280 echo "${ECHO_T}$ac_cv_header_widec_h" >&6
37281
37282
37283             if test "$ac_cv_header_widec_h" = "yes"; then
37284                 wchar_headers="$wchar_headers
37285 #include <widec.h>"
37286             fi
37287     esac
37288
37289
37290   for wx_func in wputc wputchar putws fputws wprintf vswprintf
37291   do
37292     echo "$as_me:$LINENO: checking for $wx_func" >&5
37293 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37294 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37295   echo $ECHO_N "(cached) $ECHO_C" >&6
37296 else
37297
37298         cat >conftest.$ac_ext <<_ACEOF
37299
37300             /* confdefs.h.  */
37301 _ACEOF
37302 cat confdefs.h >>conftest.$ac_ext
37303 cat >>conftest.$ac_ext <<_ACEOF
37304 /* end confdefs.h.  */
37305
37306                 $wchar_headers
37307                 $ac_includes_default
37308
37309 int
37310 main ()
37311 {
37312
37313                 #ifndef $wx_func
37314                   &$wx_func;
37315                 #endif
37316
37317
37318   ;
37319   return 0;
37320 }
37321
37322 _ACEOF
37323 rm -f conftest.$ac_objext conftest$ac_exeext
37324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37325   (eval $ac_link) 2>conftest.er1
37326   ac_status=$?
37327   grep -v '^ *+' conftest.er1 >conftest.err
37328   rm -f conftest.er1
37329   cat conftest.err >&5
37330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331   (exit $ac_status); } &&
37332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334   (eval $ac_try) 2>&5
37335   ac_status=$?
37336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337   (exit $ac_status); }; } &&
37338          { ac_try='test -s conftest$ac_exeext'
37339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37340   (eval $ac_try) 2>&5
37341   ac_status=$?
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); }; }; then
37344   eval wx_cv_func_$wx_func=yes
37345 else
37346   echo "$as_me: failed program was:" >&5
37347 sed 's/^/| /' conftest.$ac_ext >&5
37348
37349 eval wx_cv_func_$wx_func=no
37350 fi
37351 rm -f conftest.err conftest.$ac_objext \
37352       conftest$ac_exeext conftest.$ac_ext
37353
37354 fi
37355 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37356 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37357
37358     if eval test \$wx_cv_func_$wx_func = yes
37359     then
37360       cat >>confdefs.h <<_ACEOF
37361 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37362 _ACEOF
37363
37364
37365     else
37366       :
37367
37368     fi
37369   done
37370
37371
37372                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
37373 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
37374     cat >conftest.$ac_ext <<_ACEOF
37375 /* confdefs.h.  */
37376 _ACEOF
37377 cat confdefs.h >>conftest.$ac_ext
37378 cat >>conftest.$ac_ext <<_ACEOF
37379 /* end confdefs.h.  */
37380 #include <wchar.h>
37381 int
37382 main ()
37383 {
37384 &_vsnwprintf;
37385   ;
37386   return 0;
37387 }
37388 _ACEOF
37389 rm -f conftest.$ac_objext
37390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37391   (eval $ac_compile) 2>conftest.er1
37392   ac_status=$?
37393   grep -v '^ *+' conftest.er1 >conftest.err
37394   rm -f conftest.er1
37395   cat conftest.err >&5
37396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397   (exit $ac_status); } &&
37398          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37400   (eval $ac_try) 2>&5
37401   ac_status=$?
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); }; } &&
37404          { ac_try='test -s conftest.$ac_objext'
37405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37406   (eval $ac_try) 2>&5
37407   ac_status=$?
37408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409   (exit $ac_status); }; }; then
37410   echo "$as_me:$LINENO: result: yes" >&5
37411 echo "${ECHO_T}yes" >&6
37412                     cat >>confdefs.h <<\_ACEOF
37413 #define HAVE__VSNWPRINTF 1
37414 _ACEOF
37415
37416 else
37417   echo "$as_me: failed program was:" >&5
37418 sed 's/^/| /' conftest.$ac_ext >&5
37419
37420 echo "$as_me:$LINENO: result: no" >&5
37421 echo "${ECHO_T}no" >&6
37422 fi
37423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
37424 fi
37425
37426 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
37427
37428   for wx_func in fnmatch
37429   do
37430     echo "$as_me:$LINENO: checking for $wx_func" >&5
37431 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37432 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37433   echo $ECHO_N "(cached) $ECHO_C" >&6
37434 else
37435
37436         cat >conftest.$ac_ext <<_ACEOF
37437
37438             /* confdefs.h.  */
37439 _ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h.  */
37443
37444                 #include <fnmatch.h>
37445                 $ac_includes_default
37446
37447 int
37448 main ()
37449 {
37450
37451                 #ifndef $wx_func
37452                   &$wx_func;
37453                 #endif
37454
37455
37456   ;
37457   return 0;
37458 }
37459
37460 _ACEOF
37461 rm -f conftest.$ac_objext conftest$ac_exeext
37462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37463   (eval $ac_link) 2>conftest.er1
37464   ac_status=$?
37465   grep -v '^ *+' conftest.er1 >conftest.err
37466   rm -f conftest.er1
37467   cat conftest.err >&5
37468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469   (exit $ac_status); } &&
37470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37472   (eval $ac_try) 2>&5
37473   ac_status=$?
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); }; } &&
37476          { ac_try='test -s conftest$ac_exeext'
37477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37478   (eval $ac_try) 2>&5
37479   ac_status=$?
37480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481   (exit $ac_status); }; }; then
37482   eval wx_cv_func_$wx_func=yes
37483 else
37484   echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487 eval wx_cv_func_$wx_func=no
37488 fi
37489 rm -f conftest.err conftest.$ac_objext \
37490       conftest$ac_exeext conftest.$ac_ext
37491
37492 fi
37493 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37494 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37495
37496     if eval test \$wx_cv_func_$wx_func = yes
37497     then
37498       cat >>confdefs.h <<_ACEOF
37499 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37500 _ACEOF
37501
37502
37503     else
37504       :
37505
37506     fi
37507   done
37508
37509 fi
37510
37511 if test "$wxUSE_FILE" = "yes"; then
37512
37513   for wx_func in fsync
37514   do
37515     echo "$as_me:$LINENO: checking for $wx_func" >&5
37516 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37517 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37518   echo $ECHO_N "(cached) $ECHO_C" >&6
37519 else
37520
37521         cat >conftest.$ac_ext <<_ACEOF
37522
37523             /* confdefs.h.  */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h.  */
37528
37529
37530                 $ac_includes_default
37531
37532 int
37533 main ()
37534 {
37535
37536                 #ifndef $wx_func
37537                   &$wx_func;
37538                 #endif
37539
37540
37541   ;
37542   return 0;
37543 }
37544
37545 _ACEOF
37546 rm -f conftest.$ac_objext conftest$ac_exeext
37547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37548   (eval $ac_link) 2>conftest.er1
37549   ac_status=$?
37550   grep -v '^ *+' conftest.er1 >conftest.err
37551   rm -f conftest.er1
37552   cat conftest.err >&5
37553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554   (exit $ac_status); } &&
37555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37557   (eval $ac_try) 2>&5
37558   ac_status=$?
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); }; } &&
37561          { ac_try='test -s conftest$ac_exeext'
37562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37563   (eval $ac_try) 2>&5
37564   ac_status=$?
37565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566   (exit $ac_status); }; }; then
37567   eval wx_cv_func_$wx_func=yes
37568 else
37569   echo "$as_me: failed program was:" >&5
37570 sed 's/^/| /' conftest.$ac_ext >&5
37571
37572 eval wx_cv_func_$wx_func=no
37573 fi
37574 rm -f conftest.err conftest.$ac_objext \
37575       conftest$ac_exeext conftest.$ac_ext
37576
37577 fi
37578 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37579 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37580
37581     if eval test \$wx_cv_func_$wx_func = yes
37582     then
37583       cat >>confdefs.h <<_ACEOF
37584 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37585 _ACEOF
37586
37587
37588     else
37589       :
37590
37591     fi
37592   done
37593
37594 fi
37595
37596 ac_ext=cc
37597 ac_cpp='$CXXCPP $CPPFLAGS'
37598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37601
37602
37603   for wx_func in round
37604   do
37605     echo "$as_me:$LINENO: checking for $wx_func" >&5
37606 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37607 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37608   echo $ECHO_N "(cached) $ECHO_C" >&6
37609 else
37610
37611         cat >conftest.$ac_ext <<_ACEOF
37612
37613             /* confdefs.h.  */
37614 _ACEOF
37615 cat confdefs.h >>conftest.$ac_ext
37616 cat >>conftest.$ac_ext <<_ACEOF
37617 /* end confdefs.h.  */
37618
37619                 #include <math.h>
37620                 $ac_includes_default
37621
37622 int
37623 main ()
37624 {
37625
37626                 #ifndef $wx_func
37627                   &$wx_func;
37628                 #endif
37629
37630
37631   ;
37632   return 0;
37633 }
37634
37635 _ACEOF
37636 rm -f conftest.$ac_objext conftest$ac_exeext
37637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37638   (eval $ac_link) 2>conftest.er1
37639   ac_status=$?
37640   grep -v '^ *+' conftest.er1 >conftest.err
37641   rm -f conftest.er1
37642   cat conftest.err >&5
37643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37644   (exit $ac_status); } &&
37645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647   (eval $ac_try) 2>&5
37648   ac_status=$?
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); }; } &&
37651          { ac_try='test -s conftest$ac_exeext'
37652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653   (eval $ac_try) 2>&5
37654   ac_status=$?
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); }; }; then
37657   eval wx_cv_func_$wx_func=yes
37658 else
37659   echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37661
37662 eval wx_cv_func_$wx_func=no
37663 fi
37664 rm -f conftest.err conftest.$ac_objext \
37665       conftest$ac_exeext conftest.$ac_ext
37666
37667 fi
37668 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37669 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37670
37671     if eval test \$wx_cv_func_$wx_func = yes
37672     then
37673       cat >>confdefs.h <<_ACEOF
37674 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37675 _ACEOF
37676
37677
37678     else
37679       :
37680
37681     fi
37682   done
37683
37684 ac_ext=c
37685 ac_cpp='$CPP $CPPFLAGS'
37686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37689
37690
37691 if test "$TOOLKIT" != "MSW"; then
37692
37693
37694
37695
37696
37697 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
37698 if test "${with_libiconv_prefix+set}" = set; then
37699   withval="$with_libiconv_prefix"
37700
37701     for dir in `echo "$withval" | tr : ' '`; do
37702       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
37703       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
37704     done
37705
37706 fi;
37707
37708   echo "$as_me:$LINENO: checking for iconv" >&5
37709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
37710 if test "${am_cv_func_iconv+set}" = set; then
37711   echo $ECHO_N "(cached) $ECHO_C" >&6
37712 else
37713
37714     am_cv_func_iconv="no, consider installing GNU libiconv"
37715     am_cv_lib_iconv=no
37716     cat >conftest.$ac_ext <<_ACEOF
37717 /* confdefs.h.  */
37718 _ACEOF
37719 cat confdefs.h >>conftest.$ac_ext
37720 cat >>conftest.$ac_ext <<_ACEOF
37721 /* end confdefs.h.  */
37722 #include <stdlib.h>
37723 #include <iconv.h>
37724 int
37725 main ()
37726 {
37727 iconv_t cd = iconv_open("","");
37728        iconv(cd,NULL,NULL,NULL,NULL);
37729        iconv_close(cd);
37730   ;
37731   return 0;
37732 }
37733 _ACEOF
37734 rm -f conftest.$ac_objext conftest$ac_exeext
37735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37736   (eval $ac_link) 2>conftest.er1
37737   ac_status=$?
37738   grep -v '^ *+' conftest.er1 >conftest.err
37739   rm -f conftest.er1
37740   cat conftest.err >&5
37741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742   (exit $ac_status); } &&
37743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37745   (eval $ac_try) 2>&5
37746   ac_status=$?
37747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748   (exit $ac_status); }; } &&
37749          { ac_try='test -s conftest$ac_exeext'
37750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751   (eval $ac_try) 2>&5
37752   ac_status=$?
37753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754   (exit $ac_status); }; }; then
37755   am_cv_func_iconv=yes
37756 else
37757   echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37759
37760 fi
37761 rm -f conftest.err conftest.$ac_objext \
37762       conftest$ac_exeext conftest.$ac_ext
37763     if test "$am_cv_func_iconv" != yes; then
37764       am_save_LIBS="$LIBS"
37765       LIBS="$LIBS -liconv"
37766       cat >conftest.$ac_ext <<_ACEOF
37767 /* confdefs.h.  */
37768 _ACEOF
37769 cat confdefs.h >>conftest.$ac_ext
37770 cat >>conftest.$ac_ext <<_ACEOF
37771 /* end confdefs.h.  */
37772 #include <stdlib.h>
37773 #include <iconv.h>
37774 int
37775 main ()
37776 {
37777 iconv_t cd = iconv_open("","");
37778          iconv(cd,NULL,NULL,NULL,NULL);
37779          iconv_close(cd);
37780   ;
37781   return 0;
37782 }
37783 _ACEOF
37784 rm -f conftest.$ac_objext conftest$ac_exeext
37785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37786   (eval $ac_link) 2>conftest.er1
37787   ac_status=$?
37788   grep -v '^ *+' conftest.er1 >conftest.err
37789   rm -f conftest.er1
37790   cat conftest.err >&5
37791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792   (exit $ac_status); } &&
37793          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37795   (eval $ac_try) 2>&5
37796   ac_status=$?
37797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798   (exit $ac_status); }; } &&
37799          { ac_try='test -s conftest$ac_exeext'
37800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37801   (eval $ac_try) 2>&5
37802   ac_status=$?
37803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804   (exit $ac_status); }; }; then
37805   am_cv_lib_iconv=yes
37806         am_cv_func_iconv=yes
37807 else
37808   echo "$as_me: failed program was:" >&5
37809 sed 's/^/| /' conftest.$ac_ext >&5
37810
37811 fi
37812 rm -f conftest.err conftest.$ac_objext \
37813       conftest$ac_exeext conftest.$ac_ext
37814       LIBS="$am_save_LIBS"
37815     fi
37816
37817 fi
37818 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
37819 echo "${ECHO_T}$am_cv_func_iconv" >&6
37820   if test "$am_cv_func_iconv" = yes; then
37821
37822 cat >>confdefs.h <<\_ACEOF
37823 #define HAVE_ICONV 1
37824 _ACEOF
37825
37826     echo "$as_me:$LINENO: checking if iconv needs const" >&5
37827 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
37828 if test "${wx_cv_func_iconv_const+set}" = set; then
37829   echo $ECHO_N "(cached) $ECHO_C" >&6
37830 else
37831   cat >conftest.$ac_ext <<_ACEOF
37832 /* confdefs.h.  */
37833 _ACEOF
37834 cat confdefs.h >>conftest.$ac_ext
37835 cat >>conftest.$ac_ext <<_ACEOF
37836 /* end confdefs.h.  */
37837
37838 #include <stdlib.h>
37839 #include <iconv.h>
37840 extern
37841 #ifdef __cplusplus
37842 "C"
37843 #endif
37844 #if defined(__STDC__) || defined(__cplusplus)
37845 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
37846 #else
37847 size_t iconv();
37848 #endif
37849
37850 int
37851 main ()
37852 {
37853
37854   ;
37855   return 0;
37856 }
37857 _ACEOF
37858 rm -f conftest.$ac_objext
37859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37860   (eval $ac_compile) 2>conftest.er1
37861   ac_status=$?
37862   grep -v '^ *+' conftest.er1 >conftest.err
37863   rm -f conftest.er1
37864   cat conftest.err >&5
37865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866   (exit $ac_status); } &&
37867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37869   (eval $ac_try) 2>&5
37870   ac_status=$?
37871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872   (exit $ac_status); }; } &&
37873          { ac_try='test -s conftest.$ac_objext'
37874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37875   (eval $ac_try) 2>&5
37876   ac_status=$?
37877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878   (exit $ac_status); }; }; then
37879   wx_cv_func_iconv_const="no"
37880 else
37881   echo "$as_me: failed program was:" >&5
37882 sed 's/^/| /' conftest.$ac_ext >&5
37883
37884 wx_cv_func_iconv_const="yes"
37885
37886 fi
37887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37888
37889 fi
37890 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37891 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
37892
37893     iconv_const=
37894     if test "x$wx_cv_func_iconv_const" = "xyes"; then
37895         iconv_const="const"
37896     fi
37897
37898
37899 cat >>confdefs.h <<_ACEOF
37900 #define ICONV_CONST $iconv_const
37901 _ACEOF
37902
37903   fi
37904   LIBICONV=
37905   if test "$am_cv_lib_iconv" = yes; then
37906     LIBICONV="-liconv"
37907   fi
37908
37909
37910 LIBS="$LIBICONV $LIBS"
37911
37912 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37913
37914 for ac_func in sigaction
37915 do
37916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37917 echo "$as_me:$LINENO: checking for $ac_func" >&5
37918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37919 if eval "test \"\${$as_ac_var+set}\" = set"; then
37920   echo $ECHO_N "(cached) $ECHO_C" >&6
37921 else
37922   cat >conftest.$ac_ext <<_ACEOF
37923 /* confdefs.h.  */
37924 _ACEOF
37925 cat confdefs.h >>conftest.$ac_ext
37926 cat >>conftest.$ac_ext <<_ACEOF
37927 /* end confdefs.h.  */
37928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37930 #define $ac_func innocuous_$ac_func
37931
37932 /* System header to define __stub macros and hopefully few prototypes,
37933     which can conflict with char $ac_func (); below.
37934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37935     <limits.h> exists even on freestanding compilers.  */
37936
37937 #ifdef __STDC__
37938 # include <limits.h>
37939 #else
37940 # include <assert.h>
37941 #endif
37942
37943 #undef $ac_func
37944
37945 /* Override any gcc2 internal prototype to avoid an error.  */
37946 #ifdef __cplusplus
37947 extern "C"
37948 {
37949 #endif
37950 /* We use char because int might match the return type of a gcc2
37951    builtin and then its argument prototype would still apply.  */
37952 char $ac_func ();
37953 /* The GNU C library defines this for functions which it implements
37954     to always fail with ENOSYS.  Some functions are actually named
37955     something starting with __ and the normal name is an alias.  */
37956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37957 choke me
37958 #else
37959 char (*f) () = $ac_func;
37960 #endif
37961 #ifdef __cplusplus
37962 }
37963 #endif
37964
37965 int
37966 main ()
37967 {
37968 return f != $ac_func;
37969   ;
37970   return 0;
37971 }
37972 _ACEOF
37973 rm -f conftest.$ac_objext conftest$ac_exeext
37974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37975   (eval $ac_link) 2>conftest.er1
37976   ac_status=$?
37977   grep -v '^ *+' conftest.er1 >conftest.err
37978   rm -f conftest.er1
37979   cat conftest.err >&5
37980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981   (exit $ac_status); } &&
37982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37984   (eval $ac_try) 2>&5
37985   ac_status=$?
37986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987   (exit $ac_status); }; } &&
37988          { ac_try='test -s conftest$ac_exeext'
37989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37990   (eval $ac_try) 2>&5
37991   ac_status=$?
37992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993   (exit $ac_status); }; }; then
37994   eval "$as_ac_var=yes"
37995 else
37996   echo "$as_me: failed program was:" >&5
37997 sed 's/^/| /' conftest.$ac_ext >&5
37998
37999 eval "$as_ac_var=no"
38000 fi
38001 rm -f conftest.err conftest.$ac_objext \
38002       conftest$ac_exeext conftest.$ac_ext
38003 fi
38004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38006 if test `eval echo '${'$as_ac_var'}'` = yes; then
38007   cat >>confdefs.h <<_ACEOF
38008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38009 _ACEOF
38010
38011 fi
38012 done
38013
38014
38015     if test "$ac_cv_func_sigaction" = "no"; then
38016         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38017 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38018         wxUSE_ON_FATAL_EXCEPTION=no
38019     fi
38020
38021     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38022       echo "$as_me:$LINENO: checking for sa_handler type" >&5
38023 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
38024 if test "${wx_cv_type_sa_handler+set}" = set; then
38025   echo $ECHO_N "(cached) $ECHO_C" >&6
38026 else
38027
38028                 ac_ext=cc
38029 ac_cpp='$CXXCPP $CPPFLAGS'
38030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38033
38034         cat >conftest.$ac_ext <<_ACEOF
38035 /* confdefs.h.  */
38036 _ACEOF
38037 cat confdefs.h >>conftest.$ac_ext
38038 cat >>conftest.$ac_ext <<_ACEOF
38039 /* end confdefs.h.  */
38040 #include <signal.h>
38041 int
38042 main ()
38043 {
38044
38045                         extern void testSigHandler(int);
38046
38047                         struct sigaction sa;
38048                         sa.sa_handler = testSigHandler;
38049
38050   ;
38051   return 0;
38052 }
38053 _ACEOF
38054 rm -f conftest.$ac_objext
38055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38056   (eval $ac_compile) 2>conftest.er1
38057   ac_status=$?
38058   grep -v '^ *+' conftest.er1 >conftest.err
38059   rm -f conftest.er1
38060   cat conftest.err >&5
38061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062   (exit $ac_status); } &&
38063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38065   (eval $ac_try) 2>&5
38066   ac_status=$?
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); }; } &&
38069          { ac_try='test -s conftest.$ac_objext'
38070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38071   (eval $ac_try) 2>&5
38072   ac_status=$?
38073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074   (exit $ac_status); }; }; then
38075
38076                         wx_cv_type_sa_handler=int
38077
38078 else
38079   echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38081
38082
38083                         wx_cv_type_sa_handler=void
38084
38085 fi
38086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38087         ac_ext=c
38088 ac_cpp='$CPP $CPPFLAGS'
38089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38092
38093
38094 fi
38095 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38096 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
38097
38098       cat >>confdefs.h <<_ACEOF
38099 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38100 _ACEOF
38101
38102     fi
38103 fi
38104
38105 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38106     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38107 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
38108 if test "${wx_cv_func_backtrace+set}" = set; then
38109   echo $ECHO_N "(cached) $ECHO_C" >&6
38110 else
38111
38112             ac_ext=cc
38113 ac_cpp='$CXXCPP $CPPFLAGS'
38114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38117
38118             cat >conftest.$ac_ext <<_ACEOF
38119 /* confdefs.h.  */
38120 _ACEOF
38121 cat confdefs.h >>conftest.$ac_ext
38122 cat >>conftest.$ac_ext <<_ACEOF
38123 /* end confdefs.h.  */
38124 #include <execinfo.h>
38125 int
38126 main ()
38127 {
38128
38129                     void *trace[1];
38130                     char **messages;
38131
38132                     backtrace(trace, 1);
38133                     messages = backtrace_symbols(trace, 1);
38134
38135   ;
38136   return 0;
38137 }
38138 _ACEOF
38139 rm -f conftest.$ac_objext
38140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38141   (eval $ac_compile) 2>conftest.er1
38142   ac_status=$?
38143   grep -v '^ *+' conftest.er1 >conftest.err
38144   rm -f conftest.er1
38145   cat conftest.err >&5
38146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147   (exit $ac_status); } &&
38148          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38150   (eval $ac_try) 2>&5
38151   ac_status=$?
38152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153   (exit $ac_status); }; } &&
38154          { ac_try='test -s conftest.$ac_objext'
38155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38156   (eval $ac_try) 2>&5
38157   ac_status=$?
38158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38159   (exit $ac_status); }; }; then
38160   wx_cv_func_backtrace=yes
38161 else
38162   echo "$as_me: failed program was:" >&5
38163 sed 's/^/| /' conftest.$ac_ext >&5
38164
38165 wx_cv_func_backtrace=no
38166
38167 fi
38168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38169             ac_ext=c
38170 ac_cpp='$CPP $CPPFLAGS'
38171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38174
38175
38176
38177 fi
38178 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38179 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
38180
38181
38182     if test "$wx_cv_func_backtrace" = "no"; then
38183         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38184 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38185         wxUSE_STACKWALKER=no
38186     else
38187         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38188 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
38189 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38190   echo $ECHO_N "(cached) $ECHO_C" >&6
38191 else
38192
38193                 ac_ext=cc
38194 ac_cpp='$CXXCPP $CPPFLAGS'
38195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38198
38199                 cat >conftest.$ac_ext <<_ACEOF
38200 /* confdefs.h.  */
38201 _ACEOF
38202 cat confdefs.h >>conftest.$ac_ext
38203 cat >>conftest.$ac_ext <<_ACEOF
38204 /* end confdefs.h.  */
38205 #include <cxxabi.h>
38206 int
38207 main ()
38208 {
38209
38210                         int rc;
38211                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38212
38213   ;
38214   return 0;
38215 }
38216 _ACEOF
38217 rm -f conftest.$ac_objext conftest$ac_exeext
38218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38219   (eval $ac_link) 2>conftest.er1
38220   ac_status=$?
38221   grep -v '^ *+' conftest.er1 >conftest.err
38222   rm -f conftest.er1
38223   cat conftest.err >&5
38224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225   (exit $ac_status); } &&
38226          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38228   (eval $ac_try) 2>&5
38229   ac_status=$?
38230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231   (exit $ac_status); }; } &&
38232          { ac_try='test -s conftest$ac_exeext'
38233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38234   (eval $ac_try) 2>&5
38235   ac_status=$?
38236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237   (exit $ac_status); }; }; then
38238   wx_cv_func_cxa_demangle=yes
38239 else
38240   echo "$as_me: failed program was:" >&5
38241 sed 's/^/| /' conftest.$ac_ext >&5
38242
38243 wx_cv_func_cxa_demangle=no
38244
38245 fi
38246 rm -f conftest.err conftest.$ac_objext \
38247       conftest$ac_exeext conftest.$ac_ext
38248                 ac_ext=c
38249 ac_cpp='$CPP $CPPFLAGS'
38250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38253
38254
38255
38256 fi
38257 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38258 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
38259
38260         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38261             cat >>confdefs.h <<\_ACEOF
38262 #define HAVE_CXA_DEMANGLE 1
38263 _ACEOF
38264
38265         fi
38266     fi
38267 fi
38268
38269 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
38270     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38271 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38272     wxUSE_STACKWALKER=no
38273 fi
38274
38275
38276
38277
38278 for ac_func in mkstemp mktemp
38279 do
38280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38281 echo "$as_me:$LINENO: checking for $ac_func" >&5
38282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38283 if eval "test \"\${$as_ac_var+set}\" = set"; then
38284   echo $ECHO_N "(cached) $ECHO_C" >&6
38285 else
38286   cat >conftest.$ac_ext <<_ACEOF
38287 /* confdefs.h.  */
38288 _ACEOF
38289 cat confdefs.h >>conftest.$ac_ext
38290 cat >>conftest.$ac_ext <<_ACEOF
38291 /* end confdefs.h.  */
38292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38294 #define $ac_func innocuous_$ac_func
38295
38296 /* System header to define __stub macros and hopefully few prototypes,
38297     which can conflict with char $ac_func (); below.
38298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38299     <limits.h> exists even on freestanding compilers.  */
38300
38301 #ifdef __STDC__
38302 # include <limits.h>
38303 #else
38304 # include <assert.h>
38305 #endif
38306
38307 #undef $ac_func
38308
38309 /* Override any gcc2 internal prototype to avoid an error.  */
38310 #ifdef __cplusplus
38311 extern "C"
38312 {
38313 #endif
38314 /* We use char because int might match the return type of a gcc2
38315    builtin and then its argument prototype would still apply.  */
38316 char $ac_func ();
38317 /* The GNU C library defines this for functions which it implements
38318     to always fail with ENOSYS.  Some functions are actually named
38319     something starting with __ and the normal name is an alias.  */
38320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38321 choke me
38322 #else
38323 char (*f) () = $ac_func;
38324 #endif
38325 #ifdef __cplusplus
38326 }
38327 #endif
38328
38329 int
38330 main ()
38331 {
38332 return f != $ac_func;
38333   ;
38334   return 0;
38335 }
38336 _ACEOF
38337 rm -f conftest.$ac_objext conftest$ac_exeext
38338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38339   (eval $ac_link) 2>conftest.er1
38340   ac_status=$?
38341   grep -v '^ *+' conftest.er1 >conftest.err
38342   rm -f conftest.er1
38343   cat conftest.err >&5
38344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345   (exit $ac_status); } &&
38346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38348   (eval $ac_try) 2>&5
38349   ac_status=$?
38350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38351   (exit $ac_status); }; } &&
38352          { ac_try='test -s conftest$ac_exeext'
38353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38354   (eval $ac_try) 2>&5
38355   ac_status=$?
38356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357   (exit $ac_status); }; }; then
38358   eval "$as_ac_var=yes"
38359 else
38360   echo "$as_me: failed program was:" >&5
38361 sed 's/^/| /' conftest.$ac_ext >&5
38362
38363 eval "$as_ac_var=no"
38364 fi
38365 rm -f conftest.err conftest.$ac_objext \
38366       conftest$ac_exeext conftest.$ac_ext
38367 fi
38368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38370 if test `eval echo '${'$as_ac_var'}'` = yes; then
38371   cat >>confdefs.h <<_ACEOF
38372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38373 _ACEOF
38374  break
38375 fi
38376 done
38377
38378
38379 echo "$as_me:$LINENO: checking for statfs" >&5
38380 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
38381 if test "${wx_cv_func_statfs+set}" = set; then
38382   echo $ECHO_N "(cached) $ECHO_C" >&6
38383 else
38384   cat >conftest.$ac_ext <<_ACEOF
38385 /* confdefs.h.  */
38386 _ACEOF
38387 cat confdefs.h >>conftest.$ac_ext
38388 cat >>conftest.$ac_ext <<_ACEOF
38389 /* end confdefs.h.  */
38390
38391              #if defined(__BSD__)
38392              #include <sys/param.h>
38393              #include <sys/mount.h>
38394              #else
38395              #include <sys/vfs.h>
38396              #endif
38397
38398 int
38399 main ()
38400 {
38401
38402              long l;
38403              struct statfs fs;
38404              statfs("/", &fs);
38405              l = fs.f_bsize;
38406              l += fs.f_blocks;
38407              l += fs.f_bavail;
38408
38409   ;
38410   return 0;
38411 }
38412 _ACEOF
38413 rm -f conftest.$ac_objext
38414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38415   (eval $ac_compile) 2>conftest.er1
38416   ac_status=$?
38417   grep -v '^ *+' conftest.er1 >conftest.err
38418   rm -f conftest.er1
38419   cat conftest.err >&5
38420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421   (exit $ac_status); } &&
38422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38424   (eval $ac_try) 2>&5
38425   ac_status=$?
38426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427   (exit $ac_status); }; } &&
38428          { ac_try='test -s conftest.$ac_objext'
38429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38430   (eval $ac_try) 2>&5
38431   ac_status=$?
38432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433   (exit $ac_status); }; }; then
38434   wx_cv_func_statfs=yes
38435 else
38436   echo "$as_me: failed program was:" >&5
38437 sed 's/^/| /' conftest.$ac_ext >&5
38438
38439 wx_cv_func_statfs=no
38440
38441 fi
38442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38443
38444 fi
38445 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
38446 echo "${ECHO_T}$wx_cv_func_statfs" >&6
38447
38448 if test "$wx_cv_func_statfs" = "yes"; then
38449         echo "$as_me:$LINENO: checking for statfs declaration" >&5
38450 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
38451 if test "${wx_cv_func_statfs_decl+set}" = set; then
38452   echo $ECHO_N "(cached) $ECHO_C" >&6
38453 else
38454   ac_ext=cc
38455 ac_cpp='$CXXCPP $CPPFLAGS'
38456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38459
38460         cat >conftest.$ac_ext <<_ACEOF
38461 /* confdefs.h.  */
38462 _ACEOF
38463 cat confdefs.h >>conftest.$ac_ext
38464 cat >>conftest.$ac_ext <<_ACEOF
38465 /* end confdefs.h.  */
38466
38467                  #if defined(__BSD__)
38468                  #include <sys/param.h>
38469                  #include <sys/mount.h>
38470                  #else
38471                  #include <sys/vfs.h>
38472                  #endif
38473
38474 int
38475 main ()
38476 {
38477
38478                 struct statfs fs;
38479                 statfs("", &fs);
38480
38481   ;
38482   return 0;
38483 }
38484 _ACEOF
38485 rm -f conftest.$ac_objext
38486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38487   (eval $ac_compile) 2>conftest.er1
38488   ac_status=$?
38489   grep -v '^ *+' conftest.er1 >conftest.err
38490   rm -f conftest.er1
38491   cat conftest.err >&5
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); } &&
38494          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38496   (eval $ac_try) 2>&5
38497   ac_status=$?
38498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499   (exit $ac_status); }; } &&
38500          { ac_try='test -s conftest.$ac_objext'
38501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38502   (eval $ac_try) 2>&5
38503   ac_status=$?
38504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505   (exit $ac_status); }; }; then
38506   wx_cv_func_statfs_decl=yes
38507 else
38508   echo "$as_me: failed program was:" >&5
38509 sed 's/^/| /' conftest.$ac_ext >&5
38510
38511 wx_cv_func_statfs_decl=no
38512
38513 fi
38514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38515         ac_ext=c
38516 ac_cpp='$CPP $CPPFLAGS'
38517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38520
38521
38522 fi
38523 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
38524 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
38525
38526     if test "$wx_cv_func_statfs_decl" = "yes"; then
38527         cat >>confdefs.h <<\_ACEOF
38528 #define HAVE_STATFS_DECL 1
38529 _ACEOF
38530
38531     fi
38532
38533     wx_cv_type_statvfs_t="struct statfs"
38534     cat >>confdefs.h <<\_ACEOF
38535 #define HAVE_STATFS 1
38536 _ACEOF
38537
38538 else
38539     echo "$as_me:$LINENO: checking for statvfs" >&5
38540 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
38541 if test "${wx_cv_func_statvfs+set}" = set; then
38542   echo $ECHO_N "(cached) $ECHO_C" >&6
38543 else
38544   cat >conftest.$ac_ext <<_ACEOF
38545 /* confdefs.h.  */
38546 _ACEOF
38547 cat confdefs.h >>conftest.$ac_ext
38548 cat >>conftest.$ac_ext <<_ACEOF
38549 /* end confdefs.h.  */
38550
38551                 #include <stddef.h>
38552                 #include <sys/statvfs.h>
38553
38554 int
38555 main ()
38556 {
38557
38558                 statvfs("/", NULL);
38559
38560   ;
38561   return 0;
38562 }
38563 _ACEOF
38564 rm -f conftest.$ac_objext
38565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38566   (eval $ac_compile) 2>conftest.er1
38567   ac_status=$?
38568   grep -v '^ *+' conftest.er1 >conftest.err
38569   rm -f conftest.er1
38570   cat conftest.err >&5
38571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572   (exit $ac_status); } &&
38573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38575   (eval $ac_try) 2>&5
38576   ac_status=$?
38577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578   (exit $ac_status); }; } &&
38579          { ac_try='test -s conftest.$ac_objext'
38580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581   (eval $ac_try) 2>&5
38582   ac_status=$?
38583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584   (exit $ac_status); }; }; then
38585   wx_cv_func_statvfs=yes
38586 else
38587   echo "$as_me: failed program was:" >&5
38588 sed 's/^/| /' conftest.$ac_ext >&5
38589
38590 wx_cv_func_statvfs=no
38591
38592 fi
38593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38594
38595 fi
38596 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
38597 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
38598
38599     if test "$wx_cv_func_statvfs" = "yes"; then
38600                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
38601 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
38602 if test "${wx_cv_type_statvfs_t+set}" = set; then
38603   echo $ECHO_N "(cached) $ECHO_C" >&6
38604 else
38605   ac_ext=cc
38606 ac_cpp='$CXXCPP $CPPFLAGS'
38607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38610
38611             cat >conftest.$ac_ext <<_ACEOF
38612 /* confdefs.h.  */
38613 _ACEOF
38614 cat confdefs.h >>conftest.$ac_ext
38615 cat >>conftest.$ac_ext <<_ACEOF
38616 /* end confdefs.h.  */
38617
38618                     #include <sys/statvfs.h>
38619
38620 int
38621 main ()
38622 {
38623
38624                     long l;
38625                     statvfs_t fs;
38626                     statvfs("/", &fs);
38627                     l = fs.f_bsize;
38628                     l += fs.f_blocks;
38629                     l += fs.f_bavail;
38630
38631   ;
38632   return 0;
38633 }
38634 _ACEOF
38635 rm -f conftest.$ac_objext
38636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38637   (eval $ac_compile) 2>conftest.er1
38638   ac_status=$?
38639   grep -v '^ *+' conftest.er1 >conftest.err
38640   rm -f conftest.er1
38641   cat conftest.err >&5
38642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643   (exit $ac_status); } &&
38644          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38646   (eval $ac_try) 2>&5
38647   ac_status=$?
38648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649   (exit $ac_status); }; } &&
38650          { ac_try='test -s conftest.$ac_objext'
38651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652   (eval $ac_try) 2>&5
38653   ac_status=$?
38654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655   (exit $ac_status); }; }; then
38656   wx_cv_type_statvfs_t=statvfs_t
38657 else
38658   echo "$as_me: failed program was:" >&5
38659 sed 's/^/| /' conftest.$ac_ext >&5
38660
38661
38662                     cat >conftest.$ac_ext <<_ACEOF
38663 /* confdefs.h.  */
38664 _ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h.  */
38668
38669                             #include <sys/statvfs.h>
38670
38671 int
38672 main ()
38673 {
38674
38675                             long l;
38676                             struct statvfs fs;
38677                             statvfs("/", &fs);
38678                             l = fs.f_bsize;
38679                             l += fs.f_blocks;
38680                             l += fs.f_bavail;
38681
38682   ;
38683   return 0;
38684 }
38685 _ACEOF
38686 rm -f conftest.$ac_objext
38687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38688   (eval $ac_compile) 2>conftest.er1
38689   ac_status=$?
38690   grep -v '^ *+' conftest.er1 >conftest.err
38691   rm -f conftest.er1
38692   cat conftest.err >&5
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); } &&
38695          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697   (eval $ac_try) 2>&5
38698   ac_status=$?
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); }; } &&
38701          { ac_try='test -s conftest.$ac_objext'
38702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38703   (eval $ac_try) 2>&5
38704   ac_status=$?
38705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38706   (exit $ac_status); }; }; then
38707   wx_cv_type_statvfs_t="struct statvfs"
38708 else
38709   echo "$as_me: failed program was:" >&5
38710 sed 's/^/| /' conftest.$ac_ext >&5
38711
38712 wx_cv_type_statvfs_t="unknown"
38713
38714 fi
38715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38716
38717
38718 fi
38719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38720             ac_ext=c
38721 ac_cpp='$CPP $CPPFLAGS'
38722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38725
38726
38727 fi
38728 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
38729 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
38730
38731         if test "$wx_cv_type_statvfs_t" != "unknown"; then
38732             cat >>confdefs.h <<\_ACEOF
38733 #define HAVE_STATVFS 1
38734 _ACEOF
38735
38736         fi
38737     else
38738                 wx_cv_type_statvfs_t="unknown"
38739     fi
38740 fi
38741
38742 if test "$wx_cv_type_statvfs_t" != "unknown"; then
38743     cat >>confdefs.h <<_ACEOF
38744 #define WX_STATFS_T $wx_cv_type_statvfs_t
38745 _ACEOF
38746
38747 else
38748     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
38749 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
38750 fi
38751
38752 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38753
38754
38755 for ac_func in fcntl flock
38756 do
38757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38758 echo "$as_me:$LINENO: checking for $ac_func" >&5
38759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38760 if eval "test \"\${$as_ac_var+set}\" = set"; then
38761   echo $ECHO_N "(cached) $ECHO_C" >&6
38762 else
38763   cat >conftest.$ac_ext <<_ACEOF
38764 /* confdefs.h.  */
38765 _ACEOF
38766 cat confdefs.h >>conftest.$ac_ext
38767 cat >>conftest.$ac_ext <<_ACEOF
38768 /* end confdefs.h.  */
38769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38771 #define $ac_func innocuous_$ac_func
38772
38773 /* System header to define __stub macros and hopefully few prototypes,
38774     which can conflict with char $ac_func (); below.
38775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38776     <limits.h> exists even on freestanding compilers.  */
38777
38778 #ifdef __STDC__
38779 # include <limits.h>
38780 #else
38781 # include <assert.h>
38782 #endif
38783
38784 #undef $ac_func
38785
38786 /* Override any gcc2 internal prototype to avoid an error.  */
38787 #ifdef __cplusplus
38788 extern "C"
38789 {
38790 #endif
38791 /* We use char because int might match the return type of a gcc2
38792    builtin and then its argument prototype would still apply.  */
38793 char $ac_func ();
38794 /* The GNU C library defines this for functions which it implements
38795     to always fail with ENOSYS.  Some functions are actually named
38796     something starting with __ and the normal name is an alias.  */
38797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38798 choke me
38799 #else
38800 char (*f) () = $ac_func;
38801 #endif
38802 #ifdef __cplusplus
38803 }
38804 #endif
38805
38806 int
38807 main ()
38808 {
38809 return f != $ac_func;
38810   ;
38811   return 0;
38812 }
38813 _ACEOF
38814 rm -f conftest.$ac_objext conftest$ac_exeext
38815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38816   (eval $ac_link) 2>conftest.er1
38817   ac_status=$?
38818   grep -v '^ *+' conftest.er1 >conftest.err
38819   rm -f conftest.er1
38820   cat conftest.err >&5
38821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822   (exit $ac_status); } &&
38823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825   (eval $ac_try) 2>&5
38826   ac_status=$?
38827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828   (exit $ac_status); }; } &&
38829          { ac_try='test -s conftest$ac_exeext'
38830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831   (eval $ac_try) 2>&5
38832   ac_status=$?
38833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834   (exit $ac_status); }; }; then
38835   eval "$as_ac_var=yes"
38836 else
38837   echo "$as_me: failed program was:" >&5
38838 sed 's/^/| /' conftest.$ac_ext >&5
38839
38840 eval "$as_ac_var=no"
38841 fi
38842 rm -f conftest.err conftest.$ac_objext \
38843       conftest$ac_exeext conftest.$ac_ext
38844 fi
38845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38847 if test `eval echo '${'$as_ac_var'}'` = yes; then
38848   cat >>confdefs.h <<_ACEOF
38849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38850 _ACEOF
38851  break
38852 fi
38853 done
38854
38855
38856     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
38857         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
38858 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
38859         wxUSE_SNGLINST_CHECKER=no
38860     fi
38861 fi
38862
38863
38864 for ac_func in timegm
38865 do
38866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38867 echo "$as_me:$LINENO: checking for $ac_func" >&5
38868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38869 if eval "test \"\${$as_ac_var+set}\" = set"; then
38870   echo $ECHO_N "(cached) $ECHO_C" >&6
38871 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38880 #define $ac_func innocuous_$ac_func
38881
38882 /* System header to define __stub macros and hopefully few prototypes,
38883     which can conflict with char $ac_func (); below.
38884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38885     <limits.h> exists even on freestanding compilers.  */
38886
38887 #ifdef __STDC__
38888 # include <limits.h>
38889 #else
38890 # include <assert.h>
38891 #endif
38892
38893 #undef $ac_func
38894
38895 /* Override any gcc2 internal prototype to avoid an error.  */
38896 #ifdef __cplusplus
38897 extern "C"
38898 {
38899 #endif
38900 /* We use char because int might match the return type of a gcc2
38901    builtin and then its argument prototype would still apply.  */
38902 char $ac_func ();
38903 /* The GNU C library defines this for functions which it implements
38904     to always fail with ENOSYS.  Some functions are actually named
38905     something starting with __ and the normal name is an alias.  */
38906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38907 choke me
38908 #else
38909 char (*f) () = $ac_func;
38910 #endif
38911 #ifdef __cplusplus
38912 }
38913 #endif
38914
38915 int
38916 main ()
38917 {
38918 return f != $ac_func;
38919   ;
38920   return 0;
38921 }
38922 _ACEOF
38923 rm -f conftest.$ac_objext conftest$ac_exeext
38924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38925   (eval $ac_link) 2>conftest.er1
38926   ac_status=$?
38927   grep -v '^ *+' conftest.er1 >conftest.err
38928   rm -f conftest.er1
38929   cat conftest.err >&5
38930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931   (exit $ac_status); } &&
38932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38934   (eval $ac_try) 2>&5
38935   ac_status=$?
38936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937   (exit $ac_status); }; } &&
38938          { ac_try='test -s conftest$ac_exeext'
38939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38940   (eval $ac_try) 2>&5
38941   ac_status=$?
38942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943   (exit $ac_status); }; }; then
38944   eval "$as_ac_var=yes"
38945 else
38946   echo "$as_me: failed program was:" >&5
38947 sed 's/^/| /' conftest.$ac_ext >&5
38948
38949 eval "$as_ac_var=no"
38950 fi
38951 rm -f conftest.err conftest.$ac_objext \
38952       conftest$ac_exeext conftest.$ac_ext
38953 fi
38954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38956 if test `eval echo '${'$as_ac_var'}'` = yes; then
38957   cat >>confdefs.h <<_ACEOF
38958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38959 _ACEOF
38960
38961 fi
38962 done
38963
38964
38965
38966
38967 for ac_func in putenv setenv
38968 do
38969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38970 echo "$as_me:$LINENO: checking for $ac_func" >&5
38971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38972 if eval "test \"\${$as_ac_var+set}\" = set"; then
38973   echo $ECHO_N "(cached) $ECHO_C" >&6
38974 else
38975   cat >conftest.$ac_ext <<_ACEOF
38976 /* confdefs.h.  */
38977 _ACEOF
38978 cat confdefs.h >>conftest.$ac_ext
38979 cat >>conftest.$ac_ext <<_ACEOF
38980 /* end confdefs.h.  */
38981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38983 #define $ac_func innocuous_$ac_func
38984
38985 /* System header to define __stub macros and hopefully few prototypes,
38986     which can conflict with char $ac_func (); below.
38987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38988     <limits.h> exists even on freestanding compilers.  */
38989
38990 #ifdef __STDC__
38991 # include <limits.h>
38992 #else
38993 # include <assert.h>
38994 #endif
38995
38996 #undef $ac_func
38997
38998 /* Override any gcc2 internal prototype to avoid an error.  */
38999 #ifdef __cplusplus
39000 extern "C"
39001 {
39002 #endif
39003 /* We use char because int might match the return type of a gcc2
39004    builtin and then its argument prototype would still apply.  */
39005 char $ac_func ();
39006 /* The GNU C library defines this for functions which it implements
39007     to always fail with ENOSYS.  Some functions are actually named
39008     something starting with __ and the normal name is an alias.  */
39009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39010 choke me
39011 #else
39012 char (*f) () = $ac_func;
39013 #endif
39014 #ifdef __cplusplus
39015 }
39016 #endif
39017
39018 int
39019 main ()
39020 {
39021 return f != $ac_func;
39022   ;
39023   return 0;
39024 }
39025 _ACEOF
39026 rm -f conftest.$ac_objext conftest$ac_exeext
39027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39028   (eval $ac_link) 2>conftest.er1
39029   ac_status=$?
39030   grep -v '^ *+' conftest.er1 >conftest.err
39031   rm -f conftest.er1
39032   cat conftest.err >&5
39033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034   (exit $ac_status); } &&
39035          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037   (eval $ac_try) 2>&5
39038   ac_status=$?
39039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040   (exit $ac_status); }; } &&
39041          { ac_try='test -s conftest$ac_exeext'
39042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043   (eval $ac_try) 2>&5
39044   ac_status=$?
39045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046   (exit $ac_status); }; }; then
39047   eval "$as_ac_var=yes"
39048 else
39049   echo "$as_me: failed program was:" >&5
39050 sed 's/^/| /' conftest.$ac_ext >&5
39051
39052 eval "$as_ac_var=no"
39053 fi
39054 rm -f conftest.err conftest.$ac_objext \
39055       conftest$ac_exeext conftest.$ac_ext
39056 fi
39057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39059 if test `eval echo '${'$as_ac_var'}'` = yes; then
39060   cat >>confdefs.h <<_ACEOF
39061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39062 _ACEOF
39063  break
39064 fi
39065 done
39066
39067
39068 HAVE_SOME_SLEEP_FUNC=0
39069 if test "$USE_BEOS" = 1; then
39070             cat >>confdefs.h <<\_ACEOF
39071 #define HAVE_SLEEP 1
39072 _ACEOF
39073
39074     HAVE_SOME_SLEEP_FUNC=1
39075 fi
39076
39077 if test "$USE_DARWIN" = 1; then
39078             cat >>confdefs.h <<\_ACEOF
39079 #define HAVE_USLEEP 1
39080 _ACEOF
39081
39082     HAVE_SOME_SLEEP_FUNC=1
39083 fi
39084
39085 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39086         POSIX4_LINK=
39087
39088 for ac_func in nanosleep
39089 do
39090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39091 echo "$as_me:$LINENO: checking for $ac_func" >&5
39092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39093 if eval "test \"\${$as_ac_var+set}\" = set"; then
39094   echo $ECHO_N "(cached) $ECHO_C" >&6
39095 else
39096   cat >conftest.$ac_ext <<_ACEOF
39097 /* confdefs.h.  */
39098 _ACEOF
39099 cat confdefs.h >>conftest.$ac_ext
39100 cat >>conftest.$ac_ext <<_ACEOF
39101 /* end confdefs.h.  */
39102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39104 #define $ac_func innocuous_$ac_func
39105
39106 /* System header to define __stub macros and hopefully few prototypes,
39107     which can conflict with char $ac_func (); below.
39108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39109     <limits.h> exists even on freestanding compilers.  */
39110
39111 #ifdef __STDC__
39112 # include <limits.h>
39113 #else
39114 # include <assert.h>
39115 #endif
39116
39117 #undef $ac_func
39118
39119 /* Override any gcc2 internal prototype to avoid an error.  */
39120 #ifdef __cplusplus
39121 extern "C"
39122 {
39123 #endif
39124 /* We use char because int might match the return type of a gcc2
39125    builtin and then its argument prototype would still apply.  */
39126 char $ac_func ();
39127 /* The GNU C library defines this for functions which it implements
39128     to always fail with ENOSYS.  Some functions are actually named
39129     something starting with __ and the normal name is an alias.  */
39130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39131 choke me
39132 #else
39133 char (*f) () = $ac_func;
39134 #endif
39135 #ifdef __cplusplus
39136 }
39137 #endif
39138
39139 int
39140 main ()
39141 {
39142 return f != $ac_func;
39143   ;
39144   return 0;
39145 }
39146 _ACEOF
39147 rm -f conftest.$ac_objext conftest$ac_exeext
39148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39149   (eval $ac_link) 2>conftest.er1
39150   ac_status=$?
39151   grep -v '^ *+' conftest.er1 >conftest.err
39152   rm -f conftest.er1
39153   cat conftest.err >&5
39154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39155   (exit $ac_status); } &&
39156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39158   (eval $ac_try) 2>&5
39159   ac_status=$?
39160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161   (exit $ac_status); }; } &&
39162          { ac_try='test -s conftest$ac_exeext'
39163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39164   (eval $ac_try) 2>&5
39165   ac_status=$?
39166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39167   (exit $ac_status); }; }; then
39168   eval "$as_ac_var=yes"
39169 else
39170   echo "$as_me: failed program was:" >&5
39171 sed 's/^/| /' conftest.$ac_ext >&5
39172
39173 eval "$as_ac_var=no"
39174 fi
39175 rm -f conftest.err conftest.$ac_objext \
39176       conftest$ac_exeext conftest.$ac_ext
39177 fi
39178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39180 if test `eval echo '${'$as_ac_var'}'` = yes; then
39181   cat >>confdefs.h <<_ACEOF
39182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39183 _ACEOF
39184  cat >>confdefs.h <<\_ACEOF
39185 #define HAVE_NANOSLEEP 1
39186 _ACEOF
39187
39188 else
39189
39190             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39191 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
39192 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39193   echo $ECHO_N "(cached) $ECHO_C" >&6
39194 else
39195   ac_check_lib_save_LIBS=$LIBS
39196 LIBS="-lposix4  $LIBS"
39197 cat >conftest.$ac_ext <<_ACEOF
39198 /* confdefs.h.  */
39199 _ACEOF
39200 cat confdefs.h >>conftest.$ac_ext
39201 cat >>conftest.$ac_ext <<_ACEOF
39202 /* end confdefs.h.  */
39203
39204 /* Override any gcc2 internal prototype to avoid an error.  */
39205 #ifdef __cplusplus
39206 extern "C"
39207 #endif
39208 /* We use char because int might match the return type of a gcc2
39209    builtin and then its argument prototype would still apply.  */
39210 char nanosleep ();
39211 int
39212 main ()
39213 {
39214 nanosleep ();
39215   ;
39216   return 0;
39217 }
39218 _ACEOF
39219 rm -f conftest.$ac_objext conftest$ac_exeext
39220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39221   (eval $ac_link) 2>conftest.er1
39222   ac_status=$?
39223   grep -v '^ *+' conftest.er1 >conftest.err
39224   rm -f conftest.er1
39225   cat conftest.err >&5
39226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227   (exit $ac_status); } &&
39228          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39230   (eval $ac_try) 2>&5
39231   ac_status=$?
39232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233   (exit $ac_status); }; } &&
39234          { ac_try='test -s conftest$ac_exeext'
39235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236   (eval $ac_try) 2>&5
39237   ac_status=$?
39238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239   (exit $ac_status); }; }; then
39240   ac_cv_lib_posix4_nanosleep=yes
39241 else
39242   echo "$as_me: failed program was:" >&5
39243 sed 's/^/| /' conftest.$ac_ext >&5
39244
39245 ac_cv_lib_posix4_nanosleep=no
39246 fi
39247 rm -f conftest.err conftest.$ac_objext \
39248       conftest$ac_exeext conftest.$ac_ext
39249 LIBS=$ac_check_lib_save_LIBS
39250 fi
39251 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39252 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
39253 if test $ac_cv_lib_posix4_nanosleep = yes; then
39254
39255                     cat >>confdefs.h <<\_ACEOF
39256 #define HAVE_NANOSLEEP 1
39257 _ACEOF
39258
39259                     POSIX4_LINK=" -lposix4"
39260
39261 else
39262
39263
39264   for wx_func in usleep
39265   do
39266     echo "$as_me:$LINENO: checking for $wx_func" >&5
39267 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39268 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39269   echo $ECHO_N "(cached) $ECHO_C" >&6
39270 else
39271
39272         cat >conftest.$ac_ext <<_ACEOF
39273
39274             /* confdefs.h.  */
39275 _ACEOF
39276 cat confdefs.h >>conftest.$ac_ext
39277 cat >>conftest.$ac_ext <<_ACEOF
39278 /* end confdefs.h.  */
39279
39280
39281                 $ac_includes_default
39282
39283 int
39284 main ()
39285 {
39286
39287                 #ifndef $wx_func
39288                   &$wx_func;
39289                 #endif
39290
39291
39292   ;
39293   return 0;
39294 }
39295
39296 _ACEOF
39297 rm -f conftest.$ac_objext conftest$ac_exeext
39298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39299   (eval $ac_link) 2>conftest.er1
39300   ac_status=$?
39301   grep -v '^ *+' conftest.er1 >conftest.err
39302   rm -f conftest.er1
39303   cat conftest.err >&5
39304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305   (exit $ac_status); } &&
39306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308   (eval $ac_try) 2>&5
39309   ac_status=$?
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); }; } &&
39312          { ac_try='test -s conftest$ac_exeext'
39313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39314   (eval $ac_try) 2>&5
39315   ac_status=$?
39316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317   (exit $ac_status); }; }; then
39318   eval wx_cv_func_$wx_func=yes
39319 else
39320   echo "$as_me: failed program was:" >&5
39321 sed 's/^/| /' conftest.$ac_ext >&5
39322
39323 eval wx_cv_func_$wx_func=no
39324 fi
39325 rm -f conftest.err conftest.$ac_objext \
39326       conftest$ac_exeext conftest.$ac_ext
39327
39328 fi
39329 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39330 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39331
39332     if eval test \$wx_cv_func_$wx_func = yes
39333     then
39334       cat >>confdefs.h <<_ACEOF
39335 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39336 _ACEOF
39337
39338
39339     else
39340       :
39341       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39342 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39343
39344     fi
39345   done
39346
39347
39348
39349 fi
39350
39351
39352
39353 fi
39354 done
39355
39356 fi
39357
39358
39359   for wx_func in uname
39360   do
39361     echo "$as_me:$LINENO: checking for $wx_func" >&5
39362 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39363 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39364   echo $ECHO_N "(cached) $ECHO_C" >&6
39365 else
39366
39367         cat >conftest.$ac_ext <<_ACEOF
39368
39369             /* confdefs.h.  */
39370 _ACEOF
39371 cat confdefs.h >>conftest.$ac_ext
39372 cat >>conftest.$ac_ext <<_ACEOF
39373 /* end confdefs.h.  */
39374
39375                 #include <sys/utsname.h>
39376                 $ac_includes_default
39377
39378 int
39379 main ()
39380 {
39381
39382                 #ifndef $wx_func
39383                   &$wx_func;
39384                 #endif
39385
39386
39387   ;
39388   return 0;
39389 }
39390
39391 _ACEOF
39392 rm -f conftest.$ac_objext conftest$ac_exeext
39393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39394   (eval $ac_link) 2>conftest.er1
39395   ac_status=$?
39396   grep -v '^ *+' conftest.er1 >conftest.err
39397   rm -f conftest.er1
39398   cat conftest.err >&5
39399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400   (exit $ac_status); } &&
39401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39403   (eval $ac_try) 2>&5
39404   ac_status=$?
39405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406   (exit $ac_status); }; } &&
39407          { ac_try='test -s conftest$ac_exeext'
39408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39409   (eval $ac_try) 2>&5
39410   ac_status=$?
39411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39412   (exit $ac_status); }; }; then
39413   eval wx_cv_func_$wx_func=yes
39414 else
39415   echo "$as_me: failed program was:" >&5
39416 sed 's/^/| /' conftest.$ac_ext >&5
39417
39418 eval wx_cv_func_$wx_func=no
39419 fi
39420 rm -f conftest.err conftest.$ac_objext \
39421       conftest$ac_exeext conftest.$ac_ext
39422
39423 fi
39424 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39425 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39426
39427     if eval test \$wx_cv_func_$wx_func = yes
39428     then
39429       cat >>confdefs.h <<_ACEOF
39430 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39431 _ACEOF
39432
39433
39434     else
39435       :
39436
39437     fi
39438   done
39439
39440 if test "$wx_cv_func_uname" != yes; then
39441
39442   for wx_func in gethostname
39443   do
39444     echo "$as_me:$LINENO: checking for $wx_func" >&5
39445 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39446 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39447   echo $ECHO_N "(cached) $ECHO_C" >&6
39448 else
39449
39450         cat >conftest.$ac_ext <<_ACEOF
39451
39452             /* confdefs.h.  */
39453 _ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h.  */
39457
39458
39459                 $ac_includes_default
39460
39461 int
39462 main ()
39463 {
39464
39465                 #ifndef $wx_func
39466                   &$wx_func;
39467                 #endif
39468
39469
39470   ;
39471   return 0;
39472 }
39473
39474 _ACEOF
39475 rm -f conftest.$ac_objext conftest$ac_exeext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39477   (eval $ac_link) 2>conftest.er1
39478   ac_status=$?
39479   grep -v '^ *+' conftest.er1 >conftest.err
39480   rm -f conftest.er1
39481   cat conftest.err >&5
39482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483   (exit $ac_status); } &&
39484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39486   (eval $ac_try) 2>&5
39487   ac_status=$?
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); }; } &&
39490          { ac_try='test -s conftest$ac_exeext'
39491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39492   (eval $ac_try) 2>&5
39493   ac_status=$?
39494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495   (exit $ac_status); }; }; then
39496   eval wx_cv_func_$wx_func=yes
39497 else
39498   echo "$as_me: failed program was:" >&5
39499 sed 's/^/| /' conftest.$ac_ext >&5
39500
39501 eval wx_cv_func_$wx_func=no
39502 fi
39503 rm -f conftest.err conftest.$ac_objext \
39504       conftest$ac_exeext conftest.$ac_ext
39505
39506 fi
39507 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39508 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39509
39510     if eval test \$wx_cv_func_$wx_func = yes
39511     then
39512       cat >>confdefs.h <<_ACEOF
39513 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39514 _ACEOF
39515
39516
39517     else
39518       :
39519
39520     fi
39521   done
39522
39523 fi
39524
39525
39526   for wx_func in strtok_r
39527   do
39528     echo "$as_me:$LINENO: checking for $wx_func" >&5
39529 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39530 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39531   echo $ECHO_N "(cached) $ECHO_C" >&6
39532 else
39533
39534         cat >conftest.$ac_ext <<_ACEOF
39535
39536             /* confdefs.h.  */
39537 _ACEOF
39538 cat confdefs.h >>conftest.$ac_ext
39539 cat >>conftest.$ac_ext <<_ACEOF
39540 /* end confdefs.h.  */
39541
39542                 #define _REENTRANT
39543                 $ac_includes_default
39544
39545 int
39546 main ()
39547 {
39548
39549                 #ifndef $wx_func
39550                   &$wx_func;
39551                 #endif
39552
39553
39554   ;
39555   return 0;
39556 }
39557
39558 _ACEOF
39559 rm -f conftest.$ac_objext conftest$ac_exeext
39560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39561   (eval $ac_link) 2>conftest.er1
39562   ac_status=$?
39563   grep -v '^ *+' conftest.er1 >conftest.err
39564   rm -f conftest.er1
39565   cat conftest.err >&5
39566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39567   (exit $ac_status); } &&
39568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39570   (eval $ac_try) 2>&5
39571   ac_status=$?
39572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573   (exit $ac_status); }; } &&
39574          { ac_try='test -s conftest$ac_exeext'
39575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39576   (eval $ac_try) 2>&5
39577   ac_status=$?
39578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579   (exit $ac_status); }; }; then
39580   eval wx_cv_func_$wx_func=yes
39581 else
39582   echo "$as_me: failed program was:" >&5
39583 sed 's/^/| /' conftest.$ac_ext >&5
39584
39585 eval wx_cv_func_$wx_func=no
39586 fi
39587 rm -f conftest.err conftest.$ac_objext \
39588       conftest$ac_exeext conftest.$ac_ext
39589
39590 fi
39591 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39592 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39593
39594     if eval test \$wx_cv_func_$wx_func = yes
39595     then
39596       cat >>confdefs.h <<_ACEOF
39597 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39598 _ACEOF
39599
39600
39601     else
39602       :
39603
39604     fi
39605   done
39606
39607
39608 INET_LINK=
39609
39610 for ac_func in inet_addr
39611 do
39612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39613 echo "$as_me:$LINENO: checking for $ac_func" >&5
39614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39615 if eval "test \"\${$as_ac_var+set}\" = set"; then
39616   echo $ECHO_N "(cached) $ECHO_C" >&6
39617 else
39618   cat >conftest.$ac_ext <<_ACEOF
39619 /* confdefs.h.  */
39620 _ACEOF
39621 cat confdefs.h >>conftest.$ac_ext
39622 cat >>conftest.$ac_ext <<_ACEOF
39623 /* end confdefs.h.  */
39624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39626 #define $ac_func innocuous_$ac_func
39627
39628 /* System header to define __stub macros and hopefully few prototypes,
39629     which can conflict with char $ac_func (); below.
39630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39631     <limits.h> exists even on freestanding compilers.  */
39632
39633 #ifdef __STDC__
39634 # include <limits.h>
39635 #else
39636 # include <assert.h>
39637 #endif
39638
39639 #undef $ac_func
39640
39641 /* Override any gcc2 internal prototype to avoid an error.  */
39642 #ifdef __cplusplus
39643 extern "C"
39644 {
39645 #endif
39646 /* We use char because int might match the return type of a gcc2
39647    builtin and then its argument prototype would still apply.  */
39648 char $ac_func ();
39649 /* The GNU C library defines this for functions which it implements
39650     to always fail with ENOSYS.  Some functions are actually named
39651     something starting with __ and the normal name is an alias.  */
39652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39653 choke me
39654 #else
39655 char (*f) () = $ac_func;
39656 #endif
39657 #ifdef __cplusplus
39658 }
39659 #endif
39660
39661 int
39662 main ()
39663 {
39664 return f != $ac_func;
39665   ;
39666   return 0;
39667 }
39668 _ACEOF
39669 rm -f conftest.$ac_objext conftest$ac_exeext
39670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39671   (eval $ac_link) 2>conftest.er1
39672   ac_status=$?
39673   grep -v '^ *+' conftest.er1 >conftest.err
39674   rm -f conftest.er1
39675   cat conftest.err >&5
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); } &&
39678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39680   (eval $ac_try) 2>&5
39681   ac_status=$?
39682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683   (exit $ac_status); }; } &&
39684          { ac_try='test -s conftest$ac_exeext'
39685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39686   (eval $ac_try) 2>&5
39687   ac_status=$?
39688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689   (exit $ac_status); }; }; then
39690   eval "$as_ac_var=yes"
39691 else
39692   echo "$as_me: failed program was:" >&5
39693 sed 's/^/| /' conftest.$ac_ext >&5
39694
39695 eval "$as_ac_var=no"
39696 fi
39697 rm -f conftest.err conftest.$ac_objext \
39698       conftest$ac_exeext conftest.$ac_ext
39699 fi
39700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39702 if test `eval echo '${'$as_ac_var'}'` = yes; then
39703   cat >>confdefs.h <<_ACEOF
39704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39705 _ACEOF
39706  cat >>confdefs.h <<\_ACEOF
39707 #define HAVE_INET_ADDR 1
39708 _ACEOF
39709
39710 else
39711
39712         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
39713 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
39714 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
39715   echo $ECHO_N "(cached) $ECHO_C" >&6
39716 else
39717   ac_check_lib_save_LIBS=$LIBS
39718 LIBS="-lnsl  $LIBS"
39719 cat >conftest.$ac_ext <<_ACEOF
39720 /* confdefs.h.  */
39721 _ACEOF
39722 cat confdefs.h >>conftest.$ac_ext
39723 cat >>conftest.$ac_ext <<_ACEOF
39724 /* end confdefs.h.  */
39725
39726 /* Override any gcc2 internal prototype to avoid an error.  */
39727 #ifdef __cplusplus
39728 extern "C"
39729 #endif
39730 /* We use char because int might match the return type of a gcc2
39731    builtin and then its argument prototype would still apply.  */
39732 char inet_addr ();
39733 int
39734 main ()
39735 {
39736 inet_addr ();
39737   ;
39738   return 0;
39739 }
39740 _ACEOF
39741 rm -f conftest.$ac_objext conftest$ac_exeext
39742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39743   (eval $ac_link) 2>conftest.er1
39744   ac_status=$?
39745   grep -v '^ *+' conftest.er1 >conftest.err
39746   rm -f conftest.er1
39747   cat conftest.err >&5
39748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39749   (exit $ac_status); } &&
39750          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39752   (eval $ac_try) 2>&5
39753   ac_status=$?
39754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755   (exit $ac_status); }; } &&
39756          { ac_try='test -s conftest$ac_exeext'
39757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39758   (eval $ac_try) 2>&5
39759   ac_status=$?
39760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39761   (exit $ac_status); }; }; then
39762   ac_cv_lib_nsl_inet_addr=yes
39763 else
39764   echo "$as_me: failed program was:" >&5
39765 sed 's/^/| /' conftest.$ac_ext >&5
39766
39767 ac_cv_lib_nsl_inet_addr=no
39768 fi
39769 rm -f conftest.err conftest.$ac_objext \
39770       conftest$ac_exeext conftest.$ac_ext
39771 LIBS=$ac_check_lib_save_LIBS
39772 fi
39773 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
39774 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
39775 if test $ac_cv_lib_nsl_inet_addr = yes; then
39776   INET_LINK="nsl"
39777 else
39778
39779                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
39780 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
39781 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
39782   echo $ECHO_N "(cached) $ECHO_C" >&6
39783 else
39784   ac_check_lib_save_LIBS=$LIBS
39785 LIBS="-lresolv  $LIBS"
39786 cat >conftest.$ac_ext <<_ACEOF
39787 /* confdefs.h.  */
39788 _ACEOF
39789 cat confdefs.h >>conftest.$ac_ext
39790 cat >>conftest.$ac_ext <<_ACEOF
39791 /* end confdefs.h.  */
39792
39793 /* Override any gcc2 internal prototype to avoid an error.  */
39794 #ifdef __cplusplus
39795 extern "C"
39796 #endif
39797 /* We use char because int might match the return type of a gcc2
39798    builtin and then its argument prototype would still apply.  */
39799 char inet_addr ();
39800 int
39801 main ()
39802 {
39803 inet_addr ();
39804   ;
39805   return 0;
39806 }
39807 _ACEOF
39808 rm -f conftest.$ac_objext conftest$ac_exeext
39809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39810   (eval $ac_link) 2>conftest.er1
39811   ac_status=$?
39812   grep -v '^ *+' conftest.er1 >conftest.err
39813   rm -f conftest.er1
39814   cat conftest.err >&5
39815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39816   (exit $ac_status); } &&
39817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39819   (eval $ac_try) 2>&5
39820   ac_status=$?
39821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39822   (exit $ac_status); }; } &&
39823          { ac_try='test -s conftest$ac_exeext'
39824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39825   (eval $ac_try) 2>&5
39826   ac_status=$?
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); }; }; then
39829   ac_cv_lib_resolv_inet_addr=yes
39830 else
39831   echo "$as_me: failed program was:" >&5
39832 sed 's/^/| /' conftest.$ac_ext >&5
39833
39834 ac_cv_lib_resolv_inet_addr=no
39835 fi
39836 rm -f conftest.err conftest.$ac_objext \
39837       conftest$ac_exeext conftest.$ac_ext
39838 LIBS=$ac_check_lib_save_LIBS
39839 fi
39840 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
39841 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
39842 if test $ac_cv_lib_resolv_inet_addr = yes; then
39843   INET_LINK="resolv"
39844 else
39845
39846                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
39847 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
39848 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
39849   echo $ECHO_N "(cached) $ECHO_C" >&6
39850 else
39851   ac_check_lib_save_LIBS=$LIBS
39852 LIBS="-lsocket  $LIBS"
39853 cat >conftest.$ac_ext <<_ACEOF
39854 /* confdefs.h.  */
39855 _ACEOF
39856 cat confdefs.h >>conftest.$ac_ext
39857 cat >>conftest.$ac_ext <<_ACEOF
39858 /* end confdefs.h.  */
39859
39860 /* Override any gcc2 internal prototype to avoid an error.  */
39861 #ifdef __cplusplus
39862 extern "C"
39863 #endif
39864 /* We use char because int might match the return type of a gcc2
39865    builtin and then its argument prototype would still apply.  */
39866 char inet_addr ();
39867 int
39868 main ()
39869 {
39870 inet_addr ();
39871   ;
39872   return 0;
39873 }
39874 _ACEOF
39875 rm -f conftest.$ac_objext conftest$ac_exeext
39876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39877   (eval $ac_link) 2>conftest.er1
39878   ac_status=$?
39879   grep -v '^ *+' conftest.er1 >conftest.err
39880   rm -f conftest.er1
39881   cat conftest.err >&5
39882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883   (exit $ac_status); } &&
39884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39886   (eval $ac_try) 2>&5
39887   ac_status=$?
39888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39889   (exit $ac_status); }; } &&
39890          { ac_try='test -s conftest$ac_exeext'
39891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39892   (eval $ac_try) 2>&5
39893   ac_status=$?
39894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39895   (exit $ac_status); }; }; then
39896   ac_cv_lib_socket_inet_addr=yes
39897 else
39898   echo "$as_me: failed program was:" >&5
39899 sed 's/^/| /' conftest.$ac_ext >&5
39900
39901 ac_cv_lib_socket_inet_addr=no
39902 fi
39903 rm -f conftest.err conftest.$ac_objext \
39904       conftest$ac_exeext conftest.$ac_ext
39905 LIBS=$ac_check_lib_save_LIBS
39906 fi
39907 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
39908 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
39909 if test $ac_cv_lib_socket_inet_addr = yes; then
39910   INET_LINK="socket"
39911
39912 fi
39913
39914
39915
39916 fi
39917
39918
39919
39920 fi
39921
39922
39923
39924 fi
39925 done
39926
39927
39928
39929 for ac_func in inet_aton
39930 do
39931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39932 echo "$as_me:$LINENO: checking for $ac_func" >&5
39933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39934 if eval "test \"\${$as_ac_var+set}\" = set"; then
39935   echo $ECHO_N "(cached) $ECHO_C" >&6
39936 else
39937   cat >conftest.$ac_ext <<_ACEOF
39938 /* confdefs.h.  */
39939 _ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h.  */
39943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39945 #define $ac_func innocuous_$ac_func
39946
39947 /* System header to define __stub macros and hopefully few prototypes,
39948     which can conflict with char $ac_func (); below.
39949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39950     <limits.h> exists even on freestanding compilers.  */
39951
39952 #ifdef __STDC__
39953 # include <limits.h>
39954 #else
39955 # include <assert.h>
39956 #endif
39957
39958 #undef $ac_func
39959
39960 /* Override any gcc2 internal prototype to avoid an error.  */
39961 #ifdef __cplusplus
39962 extern "C"
39963 {
39964 #endif
39965 /* We use char because int might match the return type of a gcc2
39966    builtin and then its argument prototype would still apply.  */
39967 char $ac_func ();
39968 /* The GNU C library defines this for functions which it implements
39969     to always fail with ENOSYS.  Some functions are actually named
39970     something starting with __ and the normal name is an alias.  */
39971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39972 choke me
39973 #else
39974 char (*f) () = $ac_func;
39975 #endif
39976 #ifdef __cplusplus
39977 }
39978 #endif
39979
39980 int
39981 main ()
39982 {
39983 return f != $ac_func;
39984   ;
39985   return 0;
39986 }
39987 _ACEOF
39988 rm -f conftest.$ac_objext conftest$ac_exeext
39989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39990   (eval $ac_link) 2>conftest.er1
39991   ac_status=$?
39992   grep -v '^ *+' conftest.er1 >conftest.err
39993   rm -f conftest.er1
39994   cat conftest.err >&5
39995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39996   (exit $ac_status); } &&
39997          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39999   (eval $ac_try) 2>&5
40000   ac_status=$?
40001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002   (exit $ac_status); }; } &&
40003          { ac_try='test -s conftest$ac_exeext'
40004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40005   (eval $ac_try) 2>&5
40006   ac_status=$?
40007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008   (exit $ac_status); }; }; then
40009   eval "$as_ac_var=yes"
40010 else
40011   echo "$as_me: failed program was:" >&5
40012 sed 's/^/| /' conftest.$ac_ext >&5
40013
40014 eval "$as_ac_var=no"
40015 fi
40016 rm -f conftest.err conftest.$ac_objext \
40017       conftest$ac_exeext conftest.$ac_ext
40018 fi
40019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40021 if test `eval echo '${'$as_ac_var'}'` = yes; then
40022   cat >>confdefs.h <<_ACEOF
40023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40024 _ACEOF
40025  cat >>confdefs.h <<\_ACEOF
40026 #define HAVE_INET_ATON 1
40027 _ACEOF
40028
40029 else
40030
40031                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40032 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40033 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
40034 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
40035   echo $ECHO_N "(cached) $ECHO_C" >&6
40036 else
40037   ac_check_lib_save_LIBS=$LIBS
40038 LIBS="-l$INET_LINK  $LIBS"
40039 cat >conftest.$ac_ext <<_ACEOF
40040 /* confdefs.h.  */
40041 _ACEOF
40042 cat confdefs.h >>conftest.$ac_ext
40043 cat >>conftest.$ac_ext <<_ACEOF
40044 /* end confdefs.h.  */
40045
40046 /* Override any gcc2 internal prototype to avoid an error.  */
40047 #ifdef __cplusplus
40048 extern "C"
40049 #endif
40050 /* We use char because int might match the return type of a gcc2
40051    builtin and then its argument prototype would still apply.  */
40052 char inet_aton ();
40053 int
40054 main ()
40055 {
40056 inet_aton ();
40057   ;
40058   return 0;
40059 }
40060 _ACEOF
40061 rm -f conftest.$ac_objext conftest$ac_exeext
40062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40063   (eval $ac_link) 2>conftest.er1
40064   ac_status=$?
40065   grep -v '^ *+' conftest.er1 >conftest.err
40066   rm -f conftest.er1
40067   cat conftest.err >&5
40068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069   (exit $ac_status); } &&
40070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40072   (eval $ac_try) 2>&5
40073   ac_status=$?
40074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075   (exit $ac_status); }; } &&
40076          { ac_try='test -s conftest$ac_exeext'
40077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40078   (eval $ac_try) 2>&5
40079   ac_status=$?
40080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40081   (exit $ac_status); }; }; then
40082   eval "$as_ac_Lib=yes"
40083 else
40084   echo "$as_me: failed program was:" >&5
40085 sed 's/^/| /' conftest.$ac_ext >&5
40086
40087 eval "$as_ac_Lib=no"
40088 fi
40089 rm -f conftest.err conftest.$ac_objext \
40090       conftest$ac_exeext conftest.$ac_ext
40091 LIBS=$ac_check_lib_save_LIBS
40092 fi
40093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
40094 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
40095 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40096   cat >>confdefs.h <<\_ACEOF
40097 #define HAVE_INET_ATON 1
40098 _ACEOF
40099
40100 fi
40101
40102
40103 fi
40104 done
40105
40106
40107 if test "x$INET_LINK" != "x"; then
40108     cat >>confdefs.h <<\_ACEOF
40109 #define HAVE_INET_ADDR 1
40110 _ACEOF
40111
40112     INET_LINK=" -l$INET_LINK"
40113 fi
40114
40115
40116   for wx_func in fdopen
40117   do
40118     echo "$as_me:$LINENO: checking for $wx_func" >&5
40119 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
40120 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
40121   echo $ECHO_N "(cached) $ECHO_C" >&6
40122 else
40123
40124         cat >conftest.$ac_ext <<_ACEOF
40125
40126             /* confdefs.h.  */
40127 _ACEOF
40128 cat confdefs.h >>conftest.$ac_ext
40129 cat >>conftest.$ac_ext <<_ACEOF
40130 /* end confdefs.h.  */
40131
40132
40133                 $ac_includes_default
40134
40135 int
40136 main ()
40137 {
40138
40139                 #ifndef $wx_func
40140                   &$wx_func;
40141                 #endif
40142
40143
40144   ;
40145   return 0;
40146 }
40147
40148 _ACEOF
40149 rm -f conftest.$ac_objext conftest$ac_exeext
40150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40151   (eval $ac_link) 2>conftest.er1
40152   ac_status=$?
40153   grep -v '^ *+' conftest.er1 >conftest.err
40154   rm -f conftest.er1
40155   cat conftest.err >&5
40156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157   (exit $ac_status); } &&
40158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160   (eval $ac_try) 2>&5
40161   ac_status=$?
40162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163   (exit $ac_status); }; } &&
40164          { ac_try='test -s conftest$ac_exeext'
40165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166   (eval $ac_try) 2>&5
40167   ac_status=$?
40168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169   (exit $ac_status); }; }; then
40170   eval wx_cv_func_$wx_func=yes
40171 else
40172   echo "$as_me: failed program was:" >&5
40173 sed 's/^/| /' conftest.$ac_ext >&5
40174
40175 eval wx_cv_func_$wx_func=no
40176 fi
40177 rm -f conftest.err conftest.$ac_objext \
40178       conftest$ac_exeext conftest.$ac_ext
40179
40180 fi
40181 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
40182 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
40183
40184     if eval test \$wx_cv_func_$wx_func = yes
40185     then
40186       cat >>confdefs.h <<_ACEOF
40187 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40188 _ACEOF
40189
40190
40191     else
40192       :
40193
40194     fi
40195   done
40196
40197
40198 fi
40199
40200
40201
40202 cat >confcache <<\_ACEOF
40203 # This file is a shell script that caches the results of configure
40204 # tests run on this system so they can be shared between configure
40205 # scripts and configure runs, see configure's option --config-cache.
40206 # It is not useful on other systems.  If it contains results you don't
40207 # want to keep, you may remove or edit it.
40208 #
40209 # config.status only pays attention to the cache file if you give it
40210 # the --recheck option to rerun configure.
40211 #
40212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40214 # following values.
40215
40216 _ACEOF
40217
40218 # The following way of writing the cache mishandles newlines in values,
40219 # but we know of no workaround that is simple, portable, and efficient.
40220 # So, don't put newlines in cache variables' values.
40221 # Ultrix sh set writes to stderr and can't be redirected directly,
40222 # and sets the high bit in the cache file unless we assign to the vars.
40223 {
40224   (set) 2>&1 |
40225     case `(ac_space=' '; set | grep ac_space) 2>&1` in
40226     *ac_space=\ *)
40227       # `set' does not quote correctly, so add quotes (double-quote
40228       # substitution turns \\\\ into \\, and sed turns \\ into \).
40229       sed -n \
40230         "s/'/'\\\\''/g;
40231           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40232       ;;
40233     *)
40234       # `set' quotes correctly as required by POSIX, so do not add quotes.
40235       sed -n \
40236         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40237       ;;
40238     esac;
40239 } |
40240   sed '
40241      t clear
40242      : clear
40243      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40244      t end
40245      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40246      : end' >>confcache
40247 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40248   if test -w $cache_file; then
40249     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40250     cat confcache >$cache_file
40251   else
40252     echo "not updating unwritable cache $cache_file"
40253   fi
40254 fi
40255 rm -f confcache
40256
40257
40258 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40259
40260
40261     THREADS_LINK=
40262     THREADS_CFLAGS=
40263
40264     if test "$wxUSE_THREADS" = "yes" ; then
40265         if test "$USE_BEOS" = 1; then
40266             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
40267 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
40268             wxUSE_THREADS="no"
40269         fi
40270     fi
40271
40272     if test "$wxUSE_THREADS" = "yes" ; then
40273
40274
40275                                 THREAD_OPTS="-pthread"
40276         if test "x$SUNCXX" = xyes; then
40277             THREAD_OPTS="-mt lthread $THREAD_OPTS"
40278         fi
40279
40280         case "${host}" in
40281           *-*-solaris2* | *-*-sunos4* )
40282                 if test "x$GCC" = "xyes"; then
40283                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
40284                 fi
40285                 ;;
40286           *-*-freebsd*)
40287                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
40288                 ;;
40289           *-*-darwin* | *-*-cygwin* )
40290                                                 THREAD_OPTS=""
40291                 ;;
40292           *-*-aix*)
40293                                 THREAD_OPTS="pthreads"
40294                 ;;
40295           *-hp-hpux* )
40296                 if test "x$GCC" = "xyes"; then
40297                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
40298                         THREAD_OPTS=""
40299                 else
40300                                                             THREAD_OPTS="-mt"
40301                 fi
40302                 ;;
40303
40304           *-*-irix* )
40305                                                                 if test "x$GCC" = "xyes"; then
40306                     THREAD_OPTS=""
40307                 fi
40308                 ;;
40309
40310           *-*-*UnixWare*)
40311                                 if test "x$GCC" != "xyes"; then
40312                     THREAD_OPTS="-Ethread"
40313                 fi
40314                 ;;
40315         esac
40316
40317                                 THREAD_OPTS="$THREAD_OPTS pthread none"
40318
40319                 THREADS_OK=no
40320         for flag in $THREAD_OPTS; do
40321             case $flag in
40322                 none)
40323                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
40324 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
40325                     ;;
40326
40327                 -*)
40328                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
40329 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
40330                     THREADS_CFLAGS="$flag"
40331                     ;;
40332
40333                 *)
40334                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
40335 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
40336                     THREADS_LINK="-l$flag"
40337                     ;;
40338               esac
40339
40340               save_LIBS="$LIBS"
40341               save_CFLAGS="$CFLAGS"
40342               LIBS="$THREADS_LINK $LIBS"
40343               CFLAGS="$THREADS_CFLAGS $CFLAGS"
40344
40345               cat >conftest.$ac_ext <<_ACEOF
40346 /* confdefs.h.  */
40347 _ACEOF
40348 cat confdefs.h >>conftest.$ac_ext
40349 cat >>conftest.$ac_ext <<_ACEOF
40350 /* end confdefs.h.  */
40351 #include <pthread.h>
40352 int
40353 main ()
40354 {
40355 pthread_create(0,0,0,0);
40356   ;
40357   return 0;
40358 }
40359 _ACEOF
40360 rm -f conftest.$ac_objext conftest$ac_exeext
40361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40362   (eval $ac_link) 2>conftest.er1
40363   ac_status=$?
40364   grep -v '^ *+' conftest.er1 >conftest.err
40365   rm -f conftest.er1
40366   cat conftest.err >&5
40367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368   (exit $ac_status); } &&
40369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40371   (eval $ac_try) 2>&5
40372   ac_status=$?
40373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40374   (exit $ac_status); }; } &&
40375          { ac_try='test -s conftest$ac_exeext'
40376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40377   (eval $ac_try) 2>&5
40378   ac_status=$?
40379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380   (exit $ac_status); }; }; then
40381   THREADS_OK=yes
40382 else
40383   echo "$as_me: failed program was:" >&5
40384 sed 's/^/| /' conftest.$ac_ext >&5
40385
40386 fi
40387 rm -f conftest.err conftest.$ac_objext \
40388       conftest$ac_exeext conftest.$ac_ext
40389
40390               LIBS="$save_LIBS"
40391               CFLAGS="$save_CFLAGS"
40392
40393               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
40394 echo "${ECHO_T}$THREADS_OK" >&6
40395               if test "x$THREADS_OK" = "xyes"; then
40396                       break;
40397               fi
40398
40399               THREADS_LINK=""
40400               THREADS_CFLAGS=""
40401       done
40402
40403       if test "x$THREADS_OK" != "xyes"; then
40404           wxUSE_THREADS=no
40405           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
40406 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
40407       else
40408                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
40409           LIBS="$THREADS_LINK $LIBS"
40410
40411           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
40412 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
40413           flag=no
40414           case "${host}" in
40415             *-aix*)
40416                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
40417                 flag="-D_THREAD_SAFE"
40418                 ;;
40419             *-freebsd*)
40420                 flag="-D_THREAD_SAFE"
40421                 ;;
40422             *-hp-hpux* )
40423                 flag="-D_REENTRANT"
40424                 if test "x$GCC" != "xyes"; then
40425                                         flag="$flag -D_RWSTD_MULTI_THREAD"
40426                 fi
40427                 ;;
40428             *solaris* | alpha*-osf*)
40429                 flag="-D_REENTRANT"
40430                 ;;
40431           esac
40432           echo "$as_me:$LINENO: result: ${flag}" >&5
40433 echo "${ECHO_T}${flag}" >&6
40434           if test "x$flag" != xno; then
40435               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
40436           fi
40437
40438                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
40439       fi
40440     fi
40441
40442         if test "$wxUSE_THREADS" = "yes" ; then
40443
40444 for ac_func in thr_setconcurrency
40445 do
40446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40447 echo "$as_me:$LINENO: checking for $ac_func" >&5
40448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40449 if eval "test \"\${$as_ac_var+set}\" = set"; then
40450   echo $ECHO_N "(cached) $ECHO_C" >&6
40451 else
40452   cat >conftest.$ac_ext <<_ACEOF
40453 /* confdefs.h.  */
40454 _ACEOF
40455 cat confdefs.h >>conftest.$ac_ext
40456 cat >>conftest.$ac_ext <<_ACEOF
40457 /* end confdefs.h.  */
40458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40460 #define $ac_func innocuous_$ac_func
40461
40462 /* System header to define __stub macros and hopefully few prototypes,
40463     which can conflict with char $ac_func (); below.
40464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40465     <limits.h> exists even on freestanding compilers.  */
40466
40467 #ifdef __STDC__
40468 # include <limits.h>
40469 #else
40470 # include <assert.h>
40471 #endif
40472
40473 #undef $ac_func
40474
40475 /* Override any gcc2 internal prototype to avoid an error.  */
40476 #ifdef __cplusplus
40477 extern "C"
40478 {
40479 #endif
40480 /* We use char because int might match the return type of a gcc2
40481    builtin and then its argument prototype would still apply.  */
40482 char $ac_func ();
40483 /* The GNU C library defines this for functions which it implements
40484     to always fail with ENOSYS.  Some functions are actually named
40485     something starting with __ and the normal name is an alias.  */
40486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40487 choke me
40488 #else
40489 char (*f) () = $ac_func;
40490 #endif
40491 #ifdef __cplusplus
40492 }
40493 #endif
40494
40495 int
40496 main ()
40497 {
40498 return f != $ac_func;
40499   ;
40500   return 0;
40501 }
40502 _ACEOF
40503 rm -f conftest.$ac_objext conftest$ac_exeext
40504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40505   (eval $ac_link) 2>conftest.er1
40506   ac_status=$?
40507   grep -v '^ *+' conftest.er1 >conftest.err
40508   rm -f conftest.er1
40509   cat conftest.err >&5
40510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511   (exit $ac_status); } &&
40512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40514   (eval $ac_try) 2>&5
40515   ac_status=$?
40516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40517   (exit $ac_status); }; } &&
40518          { ac_try='test -s conftest$ac_exeext'
40519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40520   (eval $ac_try) 2>&5
40521   ac_status=$?
40522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523   (exit $ac_status); }; }; then
40524   eval "$as_ac_var=yes"
40525 else
40526   echo "$as_me: failed program was:" >&5
40527 sed 's/^/| /' conftest.$ac_ext >&5
40528
40529 eval "$as_ac_var=no"
40530 fi
40531 rm -f conftest.err conftest.$ac_objext \
40532       conftest$ac_exeext conftest.$ac_ext
40533 fi
40534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40536 if test `eval echo '${'$as_ac_var'}'` = yes; then
40537   cat >>confdefs.h <<_ACEOF
40538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40539 _ACEOF
40540
40541 fi
40542 done
40543
40544
40545                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
40546 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
40547 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
40548   echo $ECHO_N "(cached) $ECHO_C" >&6
40549 else
40550
40551                                 ac_ext=cc
40552 ac_cpp='$CXXCPP $CPPFLAGS'
40553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40556
40557         cat >conftest.$ac_ext <<_ACEOF
40558 /* confdefs.h.  */
40559 _ACEOF
40560 cat confdefs.h >>conftest.$ac_ext
40561 cat >>conftest.$ac_ext <<_ACEOF
40562 /* end confdefs.h.  */
40563 #include <pthread.h>
40564                void ThreadCleanupFunc(void *p);
40565
40566 int
40567 main ()
40568 {
40569
40570                 void *p;
40571                 pthread_cleanup_push(ThreadCleanupFunc, p);
40572                 pthread_cleanup_pop(0);
40573
40574   ;
40575   return 0;
40576 }
40577 _ACEOF
40578 rm -f conftest.$ac_objext
40579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40580   (eval $ac_compile) 2>conftest.er1
40581   ac_status=$?
40582   grep -v '^ *+' conftest.er1 >conftest.err
40583   rm -f conftest.er1
40584   cat conftest.err >&5
40585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40586   (exit $ac_status); } &&
40587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
40588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40589   (eval $ac_try) 2>&5
40590   ac_status=$?
40591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40592   (exit $ac_status); }; } &&
40593          { ac_try='test -s conftest.$ac_objext'
40594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40595   (eval $ac_try) 2>&5
40596   ac_status=$?
40597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40598   (exit $ac_status); }; }; then
40599
40600                wx_cv_func_pthread_cleanup=yes
40601
40602 else
40603   echo "$as_me: failed program was:" >&5
40604 sed 's/^/| /' conftest.$ac_ext >&5
40605
40606
40607                wx_cv_func_pthread_cleanup=no
40608
40609
40610 fi
40611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40612         ac_ext=c
40613 ac_cpp='$CPP $CPPFLAGS'
40614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40617
40618
40619 fi
40620 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
40621 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
40622       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
40623         cat >>confdefs.h <<\_ACEOF
40624 #define wxHAVE_PTHREAD_CLEANUP 1
40625 _ACEOF
40626
40627       fi
40628
40629       echo "$as_me:$LINENO: checking for sched.h" >&5
40630 echo $ECHO_N "checking for sched.h... $ECHO_C" >&6
40631 if test "${ac_cv_header_sched_h+set}" = set; then
40632   echo $ECHO_N "(cached) $ECHO_C" >&6
40633 else
40634   cat >conftest.$ac_ext <<_ACEOF
40635 /* confdefs.h.  */
40636 _ACEOF
40637 cat confdefs.h >>conftest.$ac_ext
40638 cat >>conftest.$ac_ext <<_ACEOF
40639 /* end confdefs.h.  */
40640 $ac_includes_default
40641
40642 #include <sched.h>
40643 _ACEOF
40644 rm -f conftest.$ac_objext
40645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40646   (eval $ac_compile) 2>conftest.er1
40647   ac_status=$?
40648   grep -v '^ *+' conftest.er1 >conftest.err
40649   rm -f conftest.er1
40650   cat conftest.err >&5
40651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40652   (exit $ac_status); } &&
40653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40655   (eval $ac_try) 2>&5
40656   ac_status=$?
40657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658   (exit $ac_status); }; } &&
40659          { ac_try='test -s conftest.$ac_objext'
40660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40661   (eval $ac_try) 2>&5
40662   ac_status=$?
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); }; }; then
40665   ac_cv_header_sched_h=yes
40666 else
40667   echo "$as_me: failed program was:" >&5
40668 sed 's/^/| /' conftest.$ac_ext >&5
40669
40670 ac_cv_header_sched_h=no
40671 fi
40672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40673 fi
40674 echo "$as_me:$LINENO: result: $ac_cv_header_sched_h" >&5
40675 echo "${ECHO_T}$ac_cv_header_sched_h" >&6
40676
40677
40678       if test "$ac_cv_header_sched_h" = "yes"; then
40679           echo "$as_me:$LINENO: checking for sched_yield" >&5
40680 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
40681 if test "${ac_cv_func_sched_yield+set}" = set; then
40682   echo $ECHO_N "(cached) $ECHO_C" >&6
40683 else
40684   cat >conftest.$ac_ext <<_ACEOF
40685 /* confdefs.h.  */
40686 _ACEOF
40687 cat confdefs.h >>conftest.$ac_ext
40688 cat >>conftest.$ac_ext <<_ACEOF
40689 /* end confdefs.h.  */
40690 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40692 #define sched_yield innocuous_sched_yield
40693
40694 /* System header to define __stub macros and hopefully few prototypes,
40695     which can conflict with char sched_yield (); below.
40696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40697     <limits.h> exists even on freestanding compilers.  */
40698
40699 #ifdef __STDC__
40700 # include <limits.h>
40701 #else
40702 # include <assert.h>
40703 #endif
40704
40705 #undef sched_yield
40706
40707 /* Override any gcc2 internal prototype to avoid an error.  */
40708 #ifdef __cplusplus
40709 extern "C"
40710 {
40711 #endif
40712 /* We use char because int might match the return type of a gcc2
40713    builtin and then its argument prototype would still apply.  */
40714 char sched_yield ();
40715 /* The GNU C library defines this for functions which it implements
40716     to always fail with ENOSYS.  Some functions are actually named
40717     something starting with __ and the normal name is an alias.  */
40718 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
40719 choke me
40720 #else
40721 char (*f) () = sched_yield;
40722 #endif
40723 #ifdef __cplusplus
40724 }
40725 #endif
40726
40727 int
40728 main ()
40729 {
40730 return f != sched_yield;
40731   ;
40732   return 0;
40733 }
40734 _ACEOF
40735 rm -f conftest.$ac_objext conftest$ac_exeext
40736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40737   (eval $ac_link) 2>conftest.er1
40738   ac_status=$?
40739   grep -v '^ *+' conftest.er1 >conftest.err
40740   rm -f conftest.er1
40741   cat conftest.err >&5
40742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743   (exit $ac_status); } &&
40744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40746   (eval $ac_try) 2>&5
40747   ac_status=$?
40748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40749   (exit $ac_status); }; } &&
40750          { ac_try='test -s conftest$ac_exeext'
40751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40752   (eval $ac_try) 2>&5
40753   ac_status=$?
40754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755   (exit $ac_status); }; }; then
40756   ac_cv_func_sched_yield=yes
40757 else
40758   echo "$as_me: failed program was:" >&5
40759 sed 's/^/| /' conftest.$ac_ext >&5
40760
40761 ac_cv_func_sched_yield=no
40762 fi
40763 rm -f conftest.err conftest.$ac_objext \
40764       conftest$ac_exeext conftest.$ac_ext
40765 fi
40766 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40767 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
40768 if test $ac_cv_func_sched_yield = yes; then
40769   cat >>confdefs.h <<\_ACEOF
40770 #define HAVE_SCHED_YIELD 1
40771 _ACEOF
40772
40773 else
40774
40775                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40776 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
40777 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40778   echo $ECHO_N "(cached) $ECHO_C" >&6
40779 else
40780   ac_check_lib_save_LIBS=$LIBS
40781 LIBS="-lposix4  $LIBS"
40782 cat >conftest.$ac_ext <<_ACEOF
40783 /* confdefs.h.  */
40784 _ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h.  */
40788
40789 /* Override any gcc2 internal prototype to avoid an error.  */
40790 #ifdef __cplusplus
40791 extern "C"
40792 #endif
40793 /* We use char because int might match the return type of a gcc2
40794    builtin and then its argument prototype would still apply.  */
40795 char sched_yield ();
40796 int
40797 main ()
40798 {
40799 sched_yield ();
40800   ;
40801   return 0;
40802 }
40803 _ACEOF
40804 rm -f conftest.$ac_objext conftest$ac_exeext
40805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40806   (eval $ac_link) 2>conftest.er1
40807   ac_status=$?
40808   grep -v '^ *+' conftest.er1 >conftest.err
40809   rm -f conftest.er1
40810   cat conftest.err >&5
40811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812   (exit $ac_status); } &&
40813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815   (eval $ac_try) 2>&5
40816   ac_status=$?
40817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); }; } &&
40819          { ac_try='test -s conftest$ac_exeext'
40820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40821   (eval $ac_try) 2>&5
40822   ac_status=$?
40823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824   (exit $ac_status); }; }; then
40825   ac_cv_lib_posix4_sched_yield=yes
40826 else
40827   echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40829
40830 ac_cv_lib_posix4_sched_yield=no
40831 fi
40832 rm -f conftest.err conftest.$ac_objext \
40833       conftest$ac_exeext conftest.$ac_ext
40834 LIBS=$ac_check_lib_save_LIBS
40835 fi
40836 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40837 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
40838 if test $ac_cv_lib_posix4_sched_yield = yes; then
40839   cat >>confdefs.h <<\_ACEOF
40840 #define HAVE_SCHED_YIELD 1
40841 _ACEOF
40842  POSIX4_LINK=" -lposix4"
40843 else
40844   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40845 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40846
40847 fi
40848
40849
40850
40851 fi
40852
40853       fi
40854
40855                                           HAVE_PRIOR_FUNCS=0
40856       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40857 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
40858 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40859   echo $ECHO_N "(cached) $ECHO_C" >&6
40860 else
40861   cat >conftest.$ac_ext <<_ACEOF
40862 /* confdefs.h.  */
40863 _ACEOF
40864 cat confdefs.h >>conftest.$ac_ext
40865 cat >>conftest.$ac_ext <<_ACEOF
40866 /* end confdefs.h.  */
40867 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40869 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40870
40871 /* System header to define __stub macros and hopefully few prototypes,
40872     which can conflict with char pthread_attr_getschedpolicy (); below.
40873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40874     <limits.h> exists even on freestanding compilers.  */
40875
40876 #ifdef __STDC__
40877 # include <limits.h>
40878 #else
40879 # include <assert.h>
40880 #endif
40881
40882 #undef pthread_attr_getschedpolicy
40883
40884 /* Override any gcc2 internal prototype to avoid an error.  */
40885 #ifdef __cplusplus
40886 extern "C"
40887 {
40888 #endif
40889 /* We use char because int might match the return type of a gcc2
40890    builtin and then its argument prototype would still apply.  */
40891 char pthread_attr_getschedpolicy ();
40892 /* The GNU C library defines this for functions which it implements
40893     to always fail with ENOSYS.  Some functions are actually named
40894     something starting with __ and the normal name is an alias.  */
40895 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40896 choke me
40897 #else
40898 char (*f) () = pthread_attr_getschedpolicy;
40899 #endif
40900 #ifdef __cplusplus
40901 }
40902 #endif
40903
40904 int
40905 main ()
40906 {
40907 return f != pthread_attr_getschedpolicy;
40908   ;
40909   return 0;
40910 }
40911 _ACEOF
40912 rm -f conftest.$ac_objext conftest$ac_exeext
40913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40914   (eval $ac_link) 2>conftest.er1
40915   ac_status=$?
40916   grep -v '^ *+' conftest.er1 >conftest.err
40917   rm -f conftest.er1
40918   cat conftest.err >&5
40919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40920   (exit $ac_status); } &&
40921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40923   (eval $ac_try) 2>&5
40924   ac_status=$?
40925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40926   (exit $ac_status); }; } &&
40927          { ac_try='test -s conftest$ac_exeext'
40928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929   (eval $ac_try) 2>&5
40930   ac_status=$?
40931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932   (exit $ac_status); }; }; then
40933   ac_cv_func_pthread_attr_getschedpolicy=yes
40934 else
40935   echo "$as_me: failed program was:" >&5
40936 sed 's/^/| /' conftest.$ac_ext >&5
40937
40938 ac_cv_func_pthread_attr_getschedpolicy=no
40939 fi
40940 rm -f conftest.err conftest.$ac_objext \
40941       conftest$ac_exeext conftest.$ac_ext
40942 fi
40943 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40944 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40945 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40946   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40947 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40948 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40949   echo $ECHO_N "(cached) $ECHO_C" >&6
40950 else
40951   cat >conftest.$ac_ext <<_ACEOF
40952 /* confdefs.h.  */
40953 _ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h.  */
40957 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40959 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40960
40961 /* System header to define __stub macros and hopefully few prototypes,
40962     which can conflict with char pthread_attr_setschedparam (); below.
40963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40964     <limits.h> exists even on freestanding compilers.  */
40965
40966 #ifdef __STDC__
40967 # include <limits.h>
40968 #else
40969 # include <assert.h>
40970 #endif
40971
40972 #undef pthread_attr_setschedparam
40973
40974 /* Override any gcc2 internal prototype to avoid an error.  */
40975 #ifdef __cplusplus
40976 extern "C"
40977 {
40978 #endif
40979 /* We use char because int might match the return type of a gcc2
40980    builtin and then its argument prototype would still apply.  */
40981 char pthread_attr_setschedparam ();
40982 /* The GNU C library defines this for functions which it implements
40983     to always fail with ENOSYS.  Some functions are actually named
40984     something starting with __ and the normal name is an alias.  */
40985 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40986 choke me
40987 #else
40988 char (*f) () = pthread_attr_setschedparam;
40989 #endif
40990 #ifdef __cplusplus
40991 }
40992 #endif
40993
40994 int
40995 main ()
40996 {
40997 return f != pthread_attr_setschedparam;
40998   ;
40999   return 0;
41000 }
41001 _ACEOF
41002 rm -f conftest.$ac_objext conftest$ac_exeext
41003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41004   (eval $ac_link) 2>conftest.er1
41005   ac_status=$?
41006   grep -v '^ *+' conftest.er1 >conftest.err
41007   rm -f conftest.er1
41008   cat conftest.err >&5
41009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41010   (exit $ac_status); } &&
41011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41013   (eval $ac_try) 2>&5
41014   ac_status=$?
41015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41016   (exit $ac_status); }; } &&
41017          { ac_try='test -s conftest$ac_exeext'
41018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019   (eval $ac_try) 2>&5
41020   ac_status=$?
41021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022   (exit $ac_status); }; }; then
41023   ac_cv_func_pthread_attr_setschedparam=yes
41024 else
41025   echo "$as_me: failed program was:" >&5
41026 sed 's/^/| /' conftest.$ac_ext >&5
41027
41028 ac_cv_func_pthread_attr_setschedparam=no
41029 fi
41030 rm -f conftest.err conftest.$ac_objext \
41031       conftest$ac_exeext conftest.$ac_ext
41032 fi
41033 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41034 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
41035 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41036   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41037 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
41038 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41039   echo $ECHO_N "(cached) $ECHO_C" >&6
41040 else
41041   cat >conftest.$ac_ext <<_ACEOF
41042 /* confdefs.h.  */
41043 _ACEOF
41044 cat confdefs.h >>conftest.$ac_ext
41045 cat >>conftest.$ac_ext <<_ACEOF
41046 /* end confdefs.h.  */
41047 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41049 #define sched_get_priority_max innocuous_sched_get_priority_max
41050
41051 /* System header to define __stub macros and hopefully few prototypes,
41052     which can conflict with char sched_get_priority_max (); below.
41053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41054     <limits.h> exists even on freestanding compilers.  */
41055
41056 #ifdef __STDC__
41057 # include <limits.h>
41058 #else
41059 # include <assert.h>
41060 #endif
41061
41062 #undef sched_get_priority_max
41063
41064 /* Override any gcc2 internal prototype to avoid an error.  */
41065 #ifdef __cplusplus
41066 extern "C"
41067 {
41068 #endif
41069 /* We use char because int might match the return type of a gcc2
41070    builtin and then its argument prototype would still apply.  */
41071 char sched_get_priority_max ();
41072 /* The GNU C library defines this for functions which it implements
41073     to always fail with ENOSYS.  Some functions are actually named
41074     something starting with __ and the normal name is an alias.  */
41075 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
41076 choke me
41077 #else
41078 char (*f) () = sched_get_priority_max;
41079 #endif
41080 #ifdef __cplusplus
41081 }
41082 #endif
41083
41084 int
41085 main ()
41086 {
41087 return f != sched_get_priority_max;
41088   ;
41089   return 0;
41090 }
41091 _ACEOF
41092 rm -f conftest.$ac_objext conftest$ac_exeext
41093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41094   (eval $ac_link) 2>conftest.er1
41095   ac_status=$?
41096   grep -v '^ *+' conftest.er1 >conftest.err
41097   rm -f conftest.er1
41098   cat conftest.err >&5
41099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41100   (exit $ac_status); } &&
41101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41103   (eval $ac_try) 2>&5
41104   ac_status=$?
41105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41106   (exit $ac_status); }; } &&
41107          { ac_try='test -s conftest$ac_exeext'
41108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41109   (eval $ac_try) 2>&5
41110   ac_status=$?
41111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112   (exit $ac_status); }; }; then
41113   ac_cv_func_sched_get_priority_max=yes
41114 else
41115   echo "$as_me: failed program was:" >&5
41116 sed 's/^/| /' conftest.$ac_ext >&5
41117
41118 ac_cv_func_sched_get_priority_max=no
41119 fi
41120 rm -f conftest.err conftest.$ac_objext \
41121       conftest$ac_exeext conftest.$ac_ext
41122 fi
41123 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41124 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
41125 if test $ac_cv_func_sched_get_priority_max = yes; then
41126   HAVE_PRIOR_FUNCS=1
41127 else
41128   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41129 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
41130 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41131   echo $ECHO_N "(cached) $ECHO_C" >&6
41132 else
41133   ac_check_lib_save_LIBS=$LIBS
41134 LIBS="-lposix4  $LIBS"
41135 cat >conftest.$ac_ext <<_ACEOF
41136 /* confdefs.h.  */
41137 _ACEOF
41138 cat confdefs.h >>conftest.$ac_ext
41139 cat >>conftest.$ac_ext <<_ACEOF
41140 /* end confdefs.h.  */
41141
41142 /* Override any gcc2 internal prototype to avoid an error.  */
41143 #ifdef __cplusplus
41144 extern "C"
41145 #endif
41146 /* We use char because int might match the return type of a gcc2
41147    builtin and then its argument prototype would still apply.  */
41148 char sched_get_priority_max ();
41149 int
41150 main ()
41151 {
41152 sched_get_priority_max ();
41153   ;
41154   return 0;
41155 }
41156 _ACEOF
41157 rm -f conftest.$ac_objext conftest$ac_exeext
41158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41159   (eval $ac_link) 2>conftest.er1
41160   ac_status=$?
41161   grep -v '^ *+' conftest.er1 >conftest.err
41162   rm -f conftest.er1
41163   cat conftest.err >&5
41164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165   (exit $ac_status); } &&
41166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41168   (eval $ac_try) 2>&5
41169   ac_status=$?
41170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171   (exit $ac_status); }; } &&
41172          { ac_try='test -s conftest$ac_exeext'
41173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41174   (eval $ac_try) 2>&5
41175   ac_status=$?
41176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177   (exit $ac_status); }; }; then
41178   ac_cv_lib_posix4_sched_get_priority_max=yes
41179 else
41180   echo "$as_me: failed program was:" >&5
41181 sed 's/^/| /' conftest.$ac_ext >&5
41182
41183 ac_cv_lib_posix4_sched_get_priority_max=no
41184 fi
41185 rm -f conftest.err conftest.$ac_objext \
41186       conftest$ac_exeext conftest.$ac_ext
41187 LIBS=$ac_check_lib_save_LIBS
41188 fi
41189 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41190 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
41191 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41192
41193                                 HAVE_PRIOR_FUNCS=1
41194                                 POSIX4_LINK=" -lposix4"
41195
41196 fi
41197
41198
41199 fi
41200
41201
41202 fi
41203
41204
41205 fi
41206
41207
41208       if test "$HAVE_PRIOR_FUNCS" = 1; then
41209         cat >>confdefs.h <<\_ACEOF
41210 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41211 _ACEOF
41212
41213       else
41214         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41215 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41216       fi
41217
41218       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41219 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
41220 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41221   echo $ECHO_N "(cached) $ECHO_C" >&6
41222 else
41223   cat >conftest.$ac_ext <<_ACEOF
41224 /* confdefs.h.  */
41225 _ACEOF
41226 cat confdefs.h >>conftest.$ac_ext
41227 cat >>conftest.$ac_ext <<_ACEOF
41228 /* end confdefs.h.  */
41229 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41231 #define pthread_cancel innocuous_pthread_cancel
41232
41233 /* System header to define __stub macros and hopefully few prototypes,
41234     which can conflict with char pthread_cancel (); below.
41235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41236     <limits.h> exists even on freestanding compilers.  */
41237
41238 #ifdef __STDC__
41239 # include <limits.h>
41240 #else
41241 # include <assert.h>
41242 #endif
41243
41244 #undef pthread_cancel
41245
41246 /* Override any gcc2 internal prototype to avoid an error.  */
41247 #ifdef __cplusplus
41248 extern "C"
41249 {
41250 #endif
41251 /* We use char because int might match the return type of a gcc2
41252    builtin and then its argument prototype would still apply.  */
41253 char pthread_cancel ();
41254 /* The GNU C library defines this for functions which it implements
41255     to always fail with ENOSYS.  Some functions are actually named
41256     something starting with __ and the normal name is an alias.  */
41257 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
41258 choke me
41259 #else
41260 char (*f) () = pthread_cancel;
41261 #endif
41262 #ifdef __cplusplus
41263 }
41264 #endif
41265
41266 int
41267 main ()
41268 {
41269 return f != pthread_cancel;
41270   ;
41271   return 0;
41272 }
41273 _ACEOF
41274 rm -f conftest.$ac_objext conftest$ac_exeext
41275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41276   (eval $ac_link) 2>conftest.er1
41277   ac_status=$?
41278   grep -v '^ *+' conftest.er1 >conftest.err
41279   rm -f conftest.er1
41280   cat conftest.err >&5
41281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282   (exit $ac_status); } &&
41283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41285   (eval $ac_try) 2>&5
41286   ac_status=$?
41287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288   (exit $ac_status); }; } &&
41289          { ac_try='test -s conftest$ac_exeext'
41290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41291   (eval $ac_try) 2>&5
41292   ac_status=$?
41293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41294   (exit $ac_status); }; }; then
41295   ac_cv_func_pthread_cancel=yes
41296 else
41297   echo "$as_me: failed program was:" >&5
41298 sed 's/^/| /' conftest.$ac_ext >&5
41299
41300 ac_cv_func_pthread_cancel=no
41301 fi
41302 rm -f conftest.err conftest.$ac_objext \
41303       conftest$ac_exeext conftest.$ac_ext
41304 fi
41305 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
41306 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
41307 if test $ac_cv_func_pthread_cancel = yes; then
41308   cat >>confdefs.h <<\_ACEOF
41309 #define HAVE_PTHREAD_CANCEL 1
41310 _ACEOF
41311
41312 else
41313   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
41314 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
41315 fi
41316
41317
41318       echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
41319 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6
41320 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
41321   echo $ECHO_N "(cached) $ECHO_C" >&6
41322 else
41323   cat >conftest.$ac_ext <<_ACEOF
41324 /* confdefs.h.  */
41325 _ACEOF
41326 cat confdefs.h >>conftest.$ac_ext
41327 cat >>conftest.$ac_ext <<_ACEOF
41328 /* end confdefs.h.  */
41329 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
41330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41331 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
41332
41333 /* System header to define __stub macros and hopefully few prototypes,
41334     which can conflict with char pthread_mutex_timedlock (); below.
41335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41336     <limits.h> exists even on freestanding compilers.  */
41337
41338 #ifdef __STDC__
41339 # include <limits.h>
41340 #else
41341 # include <assert.h>
41342 #endif
41343
41344 #undef pthread_mutex_timedlock
41345
41346 /* Override any gcc2 internal prototype to avoid an error.  */
41347 #ifdef __cplusplus
41348 extern "C"
41349 {
41350 #endif
41351 /* We use char because int might match the return type of a gcc2
41352    builtin and then its argument prototype would still apply.  */
41353 char pthread_mutex_timedlock ();
41354 /* The GNU C library defines this for functions which it implements
41355     to always fail with ENOSYS.  Some functions are actually named
41356     something starting with __ and the normal name is an alias.  */
41357 #if defined (__stub_pthread_mutex_timedlock) || defined (__stub___pthread_mutex_timedlock)
41358 choke me
41359 #else
41360 char (*f) () = pthread_mutex_timedlock;
41361 #endif
41362 #ifdef __cplusplus
41363 }
41364 #endif
41365
41366 int
41367 main ()
41368 {
41369 return f != pthread_mutex_timedlock;
41370   ;
41371   return 0;
41372 }
41373 _ACEOF
41374 rm -f conftest.$ac_objext conftest$ac_exeext
41375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41376   (eval $ac_link) 2>conftest.er1
41377   ac_status=$?
41378   grep -v '^ *+' conftest.er1 >conftest.err
41379   rm -f conftest.er1
41380   cat conftest.err >&5
41381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41382   (exit $ac_status); } &&
41383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41385   (eval $ac_try) 2>&5
41386   ac_status=$?
41387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388   (exit $ac_status); }; } &&
41389          { ac_try='test -s conftest$ac_exeext'
41390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41391   (eval $ac_try) 2>&5
41392   ac_status=$?
41393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394   (exit $ac_status); }; }; then
41395   ac_cv_func_pthread_mutex_timedlock=yes
41396 else
41397   echo "$as_me: failed program was:" >&5
41398 sed 's/^/| /' conftest.$ac_ext >&5
41399
41400 ac_cv_func_pthread_mutex_timedlock=no
41401 fi
41402 rm -f conftest.err conftest.$ac_objext \
41403       conftest$ac_exeext conftest.$ac_ext
41404 fi
41405 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
41406 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6
41407 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
41408   cat >>confdefs.h <<\_ACEOF
41409 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
41410 _ACEOF
41411
41412 else
41413   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
41414 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
41415 fi
41416
41417
41418       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
41419 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
41420 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
41421   echo $ECHO_N "(cached) $ECHO_C" >&6
41422 else
41423   cat >conftest.$ac_ext <<_ACEOF
41424 /* confdefs.h.  */
41425 _ACEOF
41426 cat confdefs.h >>conftest.$ac_ext
41427 cat >>conftest.$ac_ext <<_ACEOF
41428 /* end confdefs.h.  */
41429 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
41430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41431 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
41432
41433 /* System header to define __stub macros and hopefully few prototypes,
41434     which can conflict with char pthread_attr_setstacksize (); below.
41435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41436     <limits.h> exists even on freestanding compilers.  */
41437
41438 #ifdef __STDC__
41439 # include <limits.h>
41440 #else
41441 # include <assert.h>
41442 #endif
41443
41444 #undef pthread_attr_setstacksize
41445
41446 /* Override any gcc2 internal prototype to avoid an error.  */
41447 #ifdef __cplusplus
41448 extern "C"
41449 {
41450 #endif
41451 /* We use char because int might match the return type of a gcc2
41452    builtin and then its argument prototype would still apply.  */
41453 char pthread_attr_setstacksize ();
41454 /* The GNU C library defines this for functions which it implements
41455     to always fail with ENOSYS.  Some functions are actually named
41456     something starting with __ and the normal name is an alias.  */
41457 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
41458 choke me
41459 #else
41460 char (*f) () = pthread_attr_setstacksize;
41461 #endif
41462 #ifdef __cplusplus
41463 }
41464 #endif
41465
41466 int
41467 main ()
41468 {
41469 return f != pthread_attr_setstacksize;
41470   ;
41471   return 0;
41472 }
41473 _ACEOF
41474 rm -f conftest.$ac_objext conftest$ac_exeext
41475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41476   (eval $ac_link) 2>conftest.er1
41477   ac_status=$?
41478   grep -v '^ *+' conftest.er1 >conftest.err
41479   rm -f conftest.er1
41480   cat conftest.err >&5
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); } &&
41483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41485   (eval $ac_try) 2>&5
41486   ac_status=$?
41487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488   (exit $ac_status); }; } &&
41489          { ac_try='test -s conftest$ac_exeext'
41490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41491   (eval $ac_try) 2>&5
41492   ac_status=$?
41493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41494   (exit $ac_status); }; }; then
41495   ac_cv_func_pthread_attr_setstacksize=yes
41496 else
41497   echo "$as_me: failed program was:" >&5
41498 sed 's/^/| /' conftest.$ac_ext >&5
41499
41500 ac_cv_func_pthread_attr_setstacksize=no
41501 fi
41502 rm -f conftest.err conftest.$ac_objext \
41503       conftest$ac_exeext conftest.$ac_ext
41504 fi
41505 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
41506 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
41507 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
41508   cat >>confdefs.h <<\_ACEOF
41509 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
41510 _ACEOF
41511
41512 fi
41513
41514
41515
41516       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
41517 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
41518 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
41519   echo $ECHO_N "(cached) $ECHO_C" >&6
41520 else
41521
41522         cat >conftest.$ac_ext <<_ACEOF
41523 /* confdefs.h.  */
41524 _ACEOF
41525 cat confdefs.h >>conftest.$ac_ext
41526 cat >>conftest.$ac_ext <<_ACEOF
41527 /* end confdefs.h.  */
41528 #include <pthread.h>
41529 int
41530 main ()
41531 {
41532
41533                pthread_mutexattr_t attr;
41534                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41535
41536   ;
41537   return 0;
41538 }
41539 _ACEOF
41540 rm -f conftest.$ac_objext
41541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41542   (eval $ac_compile) 2>conftest.er1
41543   ac_status=$?
41544   grep -v '^ *+' conftest.er1 >conftest.err
41545   rm -f conftest.er1
41546   cat conftest.err >&5
41547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548   (exit $ac_status); } &&
41549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41551   (eval $ac_try) 2>&5
41552   ac_status=$?
41553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41554   (exit $ac_status); }; } &&
41555          { ac_try='test -s conftest.$ac_objext'
41556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41557   (eval $ac_try) 2>&5
41558   ac_status=$?
41559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41560   (exit $ac_status); }; }; then
41561   wx_cv_type_pthread_mutexattr_t=yes
41562 else
41563   echo "$as_me: failed program was:" >&5
41564 sed 's/^/| /' conftest.$ac_ext >&5
41565
41566 wx_cv_type_pthread_mutexattr_t=no
41567
41568 fi
41569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41570
41571 fi
41572 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
41573 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
41574
41575       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
41576         cat >>confdefs.h <<\_ACEOF
41577 #define HAVE_PTHREAD_MUTEXATTR_T 1
41578 _ACEOF
41579
41580
41581                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
41582 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
41583 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
41584   echo $ECHO_N "(cached) $ECHO_C" >&6
41585 else
41586
41587                        cat >conftest.$ac_ext <<_ACEOF
41588 /* confdefs.h.  */
41589 _ACEOF
41590 cat confdefs.h >>conftest.$ac_ext
41591 cat >>conftest.$ac_ext <<_ACEOF
41592 /* end confdefs.h.  */
41593 #include <pthread.h>
41594 int
41595 main ()
41596 {
41597
41598                                pthread_mutexattr_t attr;
41599                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
41600
41601   ;
41602   return 0;
41603 }
41604 _ACEOF
41605 rm -f conftest.$ac_objext
41606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41607   (eval $ac_compile) 2>conftest.er1
41608   ac_status=$?
41609   grep -v '^ *+' conftest.er1 >conftest.err
41610   rm -f conftest.er1
41611   cat conftest.err >&5
41612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613   (exit $ac_status); } &&
41614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616   (eval $ac_try) 2>&5
41617   ac_status=$?
41618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619   (exit $ac_status); }; } &&
41620          { ac_try='test -s conftest.$ac_objext'
41621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622   (eval $ac_try) 2>&5
41623   ac_status=$?
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); }; }; then
41626   wx_cv_func_pthread_mutexattr_settype_decl=yes
41627 else
41628   echo "$as_me: failed program was:" >&5
41629 sed 's/^/| /' conftest.$ac_ext >&5
41630
41631 wx_cv_func_pthread_mutexattr_settype_decl=no
41632
41633 fi
41634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41635
41636 fi
41637 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
41638 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
41639         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
41640             cat >>confdefs.h <<\_ACEOF
41641 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
41642 _ACEOF
41643
41644         fi
41645       else
41646                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
41647 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
41648 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
41649   echo $ECHO_N "(cached) $ECHO_C" >&6
41650 else
41651
41652             cat >conftest.$ac_ext <<_ACEOF
41653 /* confdefs.h.  */
41654 _ACEOF
41655 cat confdefs.h >>conftest.$ac_ext
41656 cat >>conftest.$ac_ext <<_ACEOF
41657 /* end confdefs.h.  */
41658 #include <pthread.h>
41659 int
41660 main ()
41661 {
41662
41663                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
41664
41665   ;
41666   return 0;
41667 }
41668 _ACEOF
41669 rm -f conftest.$ac_objext
41670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41671   (eval $ac_compile) 2>conftest.er1
41672   ac_status=$?
41673   grep -v '^ *+' conftest.er1 >conftest.err
41674   rm -f conftest.er1
41675   cat conftest.err >&5
41676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677   (exit $ac_status); } &&
41678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41680   (eval $ac_try) 2>&5
41681   ac_status=$?
41682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683   (exit $ac_status); }; } &&
41684          { ac_try='test -s conftest.$ac_objext'
41685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41686   (eval $ac_try) 2>&5
41687   ac_status=$?
41688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689   (exit $ac_status); }; }; then
41690
41691                     wx_cv_type_pthread_rec_mutex_init=yes
41692
41693 else
41694   echo "$as_me: failed program was:" >&5
41695 sed 's/^/| /' conftest.$ac_ext >&5
41696
41697
41698                     wx_cv_type_pthread_rec_mutex_init=no
41699
41700
41701 fi
41702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41703
41704 fi
41705 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
41706 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
41707         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
41708           cat >>confdefs.h <<\_ACEOF
41709 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41710 _ACEOF
41711
41712         else
41713                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41714 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41715         fi
41716       fi
41717     fi
41718
41719 else
41720     if test "$wxUSE_THREADS" = "yes" ; then
41721       case "${host}" in
41722         *-*-mingw32* )
41723                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41724 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
41725 if test "${wx_cv_cflags_mthread+set}" = set; then
41726   echo $ECHO_N "(cached) $ECHO_C" >&6
41727 else
41728
41729                     CFLAGS_OLD="$CFLAGS"
41730                     CFLAGS="-mthreads $CFLAGS"
41731                     cat >conftest.$ac_ext <<_ACEOF
41732 /* confdefs.h.  */
41733 _ACEOF
41734 cat confdefs.h >>conftest.$ac_ext
41735 cat >>conftest.$ac_ext <<_ACEOF
41736 /* end confdefs.h.  */
41737
41738 int
41739 main ()
41740 {
41741
41742   ;
41743   return 0;
41744 }
41745 _ACEOF
41746 rm -f conftest.$ac_objext
41747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41748   (eval $ac_compile) 2>conftest.er1
41749   ac_status=$?
41750   grep -v '^ *+' conftest.er1 >conftest.err
41751   rm -f conftest.er1
41752   cat conftest.err >&5
41753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754   (exit $ac_status); } &&
41755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757   (eval $ac_try) 2>&5
41758   ac_status=$?
41759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760   (exit $ac_status); }; } &&
41761          { ac_try='test -s conftest.$ac_objext'
41762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763   (eval $ac_try) 2>&5
41764   ac_status=$?
41765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766   (exit $ac_status); }; }; then
41767   wx_cv_cflags_mthread=yes
41768 else
41769   echo "$as_me: failed program was:" >&5
41770 sed 's/^/| /' conftest.$ac_ext >&5
41771
41772 wx_cv_cflags_mthread=no
41773
41774 fi
41775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41776
41777
41778 fi
41779 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41780 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
41781
41782             if test "$wx_cv_cflags_mthread" = "yes"; then
41783                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
41784                 LDFLAGS="$LDFLAGS -mthreads"
41785             else
41786                                 CFLAGS="$CFLAGS_OLD"
41787             fi
41788         ;;
41789         *-pc-os2*emx )
41790             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41791             LDFLAGS="$LDFLAGS -Zmt"
41792         ;;
41793       esac
41794     fi
41795 fi
41796
41797 echo "$as_me:$LINENO: checking for localtime_r" >&5
41798 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
41799 if test "${ac_cv_func_localtime_r+set}" = set; then
41800   echo $ECHO_N "(cached) $ECHO_C" >&6
41801 else
41802   cat >conftest.$ac_ext <<_ACEOF
41803 /* confdefs.h.  */
41804 _ACEOF
41805 cat confdefs.h >>conftest.$ac_ext
41806 cat >>conftest.$ac_ext <<_ACEOF
41807 /* end confdefs.h.  */
41808 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
41809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41810 #define localtime_r innocuous_localtime_r
41811
41812 /* System header to define __stub macros and hopefully few prototypes,
41813     which can conflict with char localtime_r (); below.
41814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41815     <limits.h> exists even on freestanding compilers.  */
41816
41817 #ifdef __STDC__
41818 # include <limits.h>
41819 #else
41820 # include <assert.h>
41821 #endif
41822
41823 #undef localtime_r
41824
41825 /* Override any gcc2 internal prototype to avoid an error.  */
41826 #ifdef __cplusplus
41827 extern "C"
41828 {
41829 #endif
41830 /* We use char because int might match the return type of a gcc2
41831    builtin and then its argument prototype would still apply.  */
41832 char localtime_r ();
41833 /* The GNU C library defines this for functions which it implements
41834     to always fail with ENOSYS.  Some functions are actually named
41835     something starting with __ and the normal name is an alias.  */
41836 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
41837 choke me
41838 #else
41839 char (*f) () = localtime_r;
41840 #endif
41841 #ifdef __cplusplus
41842 }
41843 #endif
41844
41845 int
41846 main ()
41847 {
41848 return f != localtime_r;
41849   ;
41850   return 0;
41851 }
41852 _ACEOF
41853 rm -f conftest.$ac_objext conftest$ac_exeext
41854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41855   (eval $ac_link) 2>conftest.er1
41856   ac_status=$?
41857   grep -v '^ *+' conftest.er1 >conftest.err
41858   rm -f conftest.er1
41859   cat conftest.err >&5
41860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41861   (exit $ac_status); } &&
41862          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41864   (eval $ac_try) 2>&5
41865   ac_status=$?
41866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41867   (exit $ac_status); }; } &&
41868          { ac_try='test -s conftest$ac_exeext'
41869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41870   (eval $ac_try) 2>&5
41871   ac_status=$?
41872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41873   (exit $ac_status); }; }; then
41874   ac_cv_func_localtime_r=yes
41875 else
41876   echo "$as_me: failed program was:" >&5
41877 sed 's/^/| /' conftest.$ac_ext >&5
41878
41879 ac_cv_func_localtime_r=no
41880 fi
41881 rm -f conftest.err conftest.$ac_objext \
41882       conftest$ac_exeext conftest.$ac_ext
41883 fi
41884 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41885 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
41886 if test $ac_cv_func_localtime_r = yes; then
41887    cat >>confdefs.h <<\_ACEOF
41888 #define HAVE_LOCALTIME_R 1
41889 _ACEOF
41890
41891 fi
41892
41893 echo "$as_me:$LINENO: checking for gmtime_r" >&5
41894 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
41895 if test "${ac_cv_func_gmtime_r+set}" = set; then
41896   echo $ECHO_N "(cached) $ECHO_C" >&6
41897 else
41898   cat >conftest.$ac_ext <<_ACEOF
41899 /* confdefs.h.  */
41900 _ACEOF
41901 cat confdefs.h >>conftest.$ac_ext
41902 cat >>conftest.$ac_ext <<_ACEOF
41903 /* end confdefs.h.  */
41904 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41906 #define gmtime_r innocuous_gmtime_r
41907
41908 /* System header to define __stub macros and hopefully few prototypes,
41909     which can conflict with char gmtime_r (); below.
41910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41911     <limits.h> exists even on freestanding compilers.  */
41912
41913 #ifdef __STDC__
41914 # include <limits.h>
41915 #else
41916 # include <assert.h>
41917 #endif
41918
41919 #undef gmtime_r
41920
41921 /* Override any gcc2 internal prototype to avoid an error.  */
41922 #ifdef __cplusplus
41923 extern "C"
41924 {
41925 #endif
41926 /* We use char because int might match the return type of a gcc2
41927    builtin and then its argument prototype would still apply.  */
41928 char gmtime_r ();
41929 /* The GNU C library defines this for functions which it implements
41930     to always fail with ENOSYS.  Some functions are actually named
41931     something starting with __ and the normal name is an alias.  */
41932 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
41933 choke me
41934 #else
41935 char (*f) () = gmtime_r;
41936 #endif
41937 #ifdef __cplusplus
41938 }
41939 #endif
41940
41941 int
41942 main ()
41943 {
41944 return f != gmtime_r;
41945   ;
41946   return 0;
41947 }
41948 _ACEOF
41949 rm -f conftest.$ac_objext conftest$ac_exeext
41950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41951   (eval $ac_link) 2>conftest.er1
41952   ac_status=$?
41953   grep -v '^ *+' conftest.er1 >conftest.err
41954   rm -f conftest.er1
41955   cat conftest.err >&5
41956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41957   (exit $ac_status); } &&
41958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41960   (eval $ac_try) 2>&5
41961   ac_status=$?
41962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963   (exit $ac_status); }; } &&
41964          { ac_try='test -s conftest$ac_exeext'
41965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41966   (eval $ac_try) 2>&5
41967   ac_status=$?
41968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41969   (exit $ac_status); }; }; then
41970   ac_cv_func_gmtime_r=yes
41971 else
41972   echo "$as_me: failed program was:" >&5
41973 sed 's/^/| /' conftest.$ac_ext >&5
41974
41975 ac_cv_func_gmtime_r=no
41976 fi
41977 rm -f conftest.err conftest.$ac_objext \
41978       conftest$ac_exeext conftest.$ac_ext
41979 fi
41980 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41981 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41982 if test $ac_cv_func_gmtime_r = yes; then
41983    cat >>confdefs.h <<\_ACEOF
41984 #define HAVE_GMTIME_R 1
41985 _ACEOF
41986
41987 fi
41988
41989 echo "$as_me:$LINENO: checking for readdir_r" >&5
41990 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41991 if test "${ac_cv_func_readdir_r+set}" = set; then
41992   echo $ECHO_N "(cached) $ECHO_C" >&6
41993 else
41994   cat >conftest.$ac_ext <<_ACEOF
41995 /* confdefs.h.  */
41996 _ACEOF
41997 cat confdefs.h >>conftest.$ac_ext
41998 cat >>conftest.$ac_ext <<_ACEOF
41999 /* end confdefs.h.  */
42000 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
42001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42002 #define readdir_r innocuous_readdir_r
42003
42004 /* System header to define __stub macros and hopefully few prototypes,
42005     which can conflict with char readdir_r (); below.
42006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42007     <limits.h> exists even on freestanding compilers.  */
42008
42009 #ifdef __STDC__
42010 # include <limits.h>
42011 #else
42012 # include <assert.h>
42013 #endif
42014
42015 #undef readdir_r
42016
42017 /* Override any gcc2 internal prototype to avoid an error.  */
42018 #ifdef __cplusplus
42019 extern "C"
42020 {
42021 #endif
42022 /* We use char because int might match the return type of a gcc2
42023    builtin and then its argument prototype would still apply.  */
42024 char readdir_r ();
42025 /* The GNU C library defines this for functions which it implements
42026     to always fail with ENOSYS.  Some functions are actually named
42027     something starting with __ and the normal name is an alias.  */
42028 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
42029 choke me
42030 #else
42031 char (*f) () = readdir_r;
42032 #endif
42033 #ifdef __cplusplus
42034 }
42035 #endif
42036
42037 int
42038 main ()
42039 {
42040 return f != readdir_r;
42041   ;
42042   return 0;
42043 }
42044 _ACEOF
42045 rm -f conftest.$ac_objext conftest$ac_exeext
42046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42047   (eval $ac_link) 2>conftest.er1
42048   ac_status=$?
42049   grep -v '^ *+' conftest.er1 >conftest.err
42050   rm -f conftest.er1
42051   cat conftest.err >&5
42052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053   (exit $ac_status); } &&
42054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42056   (eval $ac_try) 2>&5
42057   ac_status=$?
42058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42059   (exit $ac_status); }; } &&
42060          { ac_try='test -s conftest$ac_exeext'
42061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062   (eval $ac_try) 2>&5
42063   ac_status=$?
42064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065   (exit $ac_status); }; }; then
42066   ac_cv_func_readdir_r=yes
42067 else
42068   echo "$as_me: failed program was:" >&5
42069 sed 's/^/| /' conftest.$ac_ext >&5
42070
42071 ac_cv_func_readdir_r=no
42072 fi
42073 rm -f conftest.err conftest.$ac_objext \
42074       conftest$ac_exeext conftest.$ac_ext
42075 fi
42076 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
42077 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
42078 if test $ac_cv_func_readdir_r = yes; then
42079    cat >>confdefs.h <<\_ACEOF
42080 #define HAVE_READDIR_R 1
42081 _ACEOF
42082
42083 fi
42084
42085
42086
42087
42088     ac_ext=c
42089 ac_cpp='$CPP $CPPFLAGS'
42090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42093
42094     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42095 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
42096
42097     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42098   echo $ECHO_N "(cached) $ECHO_C" >&6
42099 else
42100
42101
42102 ################################################################
42103
42104 ac_cv_func_which_gethostbyname_r=unknown
42105
42106 #
42107 # ONE ARGUMENT (sanity check)
42108 #
42109
42110 # This should fail, as there is no variant of gethostbyname_r() that takes
42111 # a single argument. If it actually compiles, then we can assume that
42112 # netdb.h is not declaring the function, and the compiler is thereby
42113 # assuming an implicit prototype. In which case, we're out of luck.
42114 #
42115 cat >conftest.$ac_ext <<_ACEOF
42116 /* confdefs.h.  */
42117 _ACEOF
42118 cat confdefs.h >>conftest.$ac_ext
42119 cat >>conftest.$ac_ext <<_ACEOF
42120 /* end confdefs.h.  */
42121 #include <netdb.h>
42122 int
42123 main ()
42124 {
42125
42126             char *name = "www.gnu.org";
42127             (void)gethostbyname_r(name) /* ; */
42128
42129   ;
42130   return 0;
42131 }
42132 _ACEOF
42133 rm -f conftest.$ac_objext
42134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42135   (eval $ac_compile) 2>conftest.er1
42136   ac_status=$?
42137   grep -v '^ *+' conftest.er1 >conftest.err
42138   rm -f conftest.er1
42139   cat conftest.err >&5
42140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42141   (exit $ac_status); } &&
42142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42144   (eval $ac_try) 2>&5
42145   ac_status=$?
42146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147   (exit $ac_status); }; } &&
42148          { ac_try='test -s conftest.$ac_objext'
42149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42150   (eval $ac_try) 2>&5
42151   ac_status=$?
42152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153   (exit $ac_status); }; }; then
42154   ac_cv_func_which_gethostbyname_r=no
42155 else
42156   echo "$as_me: failed program was:" >&5
42157 sed 's/^/| /' conftest.$ac_ext >&5
42158
42159 fi
42160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42161
42162 #
42163 # SIX ARGUMENTS
42164 # (e.g. Linux)
42165 #
42166
42167 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42168
42169 cat >conftest.$ac_ext <<_ACEOF
42170 /* confdefs.h.  */
42171 _ACEOF
42172 cat confdefs.h >>conftest.$ac_ext
42173 cat >>conftest.$ac_ext <<_ACEOF
42174 /* end confdefs.h.  */
42175 #include <netdb.h>
42176 int
42177 main ()
42178 {
42179
42180             char *name = "www.gnu.org";
42181             struct hostent ret, *retp;
42182             char buf[1024];
42183             int buflen = 1024;
42184             int my_h_errno;
42185             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42186
42187   ;
42188   return 0;
42189 }
42190 _ACEOF
42191 rm -f conftest.$ac_objext
42192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42193   (eval $ac_compile) 2>conftest.er1
42194   ac_status=$?
42195   grep -v '^ *+' conftest.er1 >conftest.err
42196   rm -f conftest.er1
42197   cat conftest.err >&5
42198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42199   (exit $ac_status); } &&
42200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42202   (eval $ac_try) 2>&5
42203   ac_status=$?
42204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42205   (exit $ac_status); }; } &&
42206          { ac_try='test -s conftest.$ac_objext'
42207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42208   (eval $ac_try) 2>&5
42209   ac_status=$?
42210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211   (exit $ac_status); }; }; then
42212   ac_cv_func_which_gethostbyname_r=six
42213 else
42214   echo "$as_me: failed program was:" >&5
42215 sed 's/^/| /' conftest.$ac_ext >&5
42216
42217 fi
42218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42219
42220 fi
42221
42222 #
42223 # FIVE ARGUMENTS
42224 # (e.g. Solaris)
42225 #
42226
42227 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42228
42229 cat >conftest.$ac_ext <<_ACEOF
42230 /* confdefs.h.  */
42231 _ACEOF
42232 cat confdefs.h >>conftest.$ac_ext
42233 cat >>conftest.$ac_ext <<_ACEOF
42234 /* end confdefs.h.  */
42235 #include <netdb.h>
42236 int
42237 main ()
42238 {
42239
42240             char *name = "www.gnu.org";
42241             struct hostent ret;
42242             char buf[1024];
42243             int buflen = 1024;
42244             int my_h_errno;
42245             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42246
42247   ;
42248   return 0;
42249 }
42250 _ACEOF
42251 rm -f conftest.$ac_objext
42252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42253   (eval $ac_compile) 2>conftest.er1
42254   ac_status=$?
42255   grep -v '^ *+' conftest.er1 >conftest.err
42256   rm -f conftest.er1
42257   cat conftest.err >&5
42258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42259   (exit $ac_status); } &&
42260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42262   (eval $ac_try) 2>&5
42263   ac_status=$?
42264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265   (exit $ac_status); }; } &&
42266          { ac_try='test -s conftest.$ac_objext'
42267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42268   (eval $ac_try) 2>&5
42269   ac_status=$?
42270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271   (exit $ac_status); }; }; then
42272   ac_cv_func_which_gethostbyname_r=five
42273 else
42274   echo "$as_me: failed program was:" >&5
42275 sed 's/^/| /' conftest.$ac_ext >&5
42276
42277 fi
42278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42279
42280 fi
42281
42282 #
42283 # THREE ARGUMENTS
42284 # (e.g. AIX, HP-UX, Tru64)
42285 #
42286
42287 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42288
42289 cat >conftest.$ac_ext <<_ACEOF
42290 /* confdefs.h.  */
42291 _ACEOF
42292 cat confdefs.h >>conftest.$ac_ext
42293 cat >>conftest.$ac_ext <<_ACEOF
42294 /* end confdefs.h.  */
42295 #include <netdb.h>
42296 int
42297 main ()
42298 {
42299
42300             char *name = "www.gnu.org";
42301             struct hostent ret;
42302             struct hostent_data data;
42303             (void)gethostbyname_r(name, &ret, &data) /* ; */
42304
42305   ;
42306   return 0;
42307 }
42308 _ACEOF
42309 rm -f conftest.$ac_objext
42310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42311   (eval $ac_compile) 2>conftest.er1
42312   ac_status=$?
42313   grep -v '^ *+' conftest.er1 >conftest.err
42314   rm -f conftest.er1
42315   cat conftest.err >&5
42316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317   (exit $ac_status); } &&
42318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42320   (eval $ac_try) 2>&5
42321   ac_status=$?
42322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42323   (exit $ac_status); }; } &&
42324          { ac_try='test -s conftest.$ac_objext'
42325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42326   (eval $ac_try) 2>&5
42327   ac_status=$?
42328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42329   (exit $ac_status); }; }; then
42330   ac_cv_func_which_gethostbyname_r=three
42331 else
42332   echo "$as_me: failed program was:" >&5
42333 sed 's/^/| /' conftest.$ac_ext >&5
42334
42335 fi
42336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42337
42338 fi
42339
42340 ################################################################
42341
42342
42343 fi
42344
42345 case "$ac_cv_func_which_gethostbyname_r" in
42346     three)
42347     echo "$as_me:$LINENO: result: three" >&5
42348 echo "${ECHO_T}three" >&6
42349     cat >>confdefs.h <<\_ACEOF
42350 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
42351 _ACEOF
42352
42353     ;;
42354
42355     five)
42356     echo "$as_me:$LINENO: result: five" >&5
42357 echo "${ECHO_T}five" >&6
42358     cat >>confdefs.h <<\_ACEOF
42359 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
42360 _ACEOF
42361
42362     ;;
42363
42364     six)
42365     echo "$as_me:$LINENO: result: six" >&5
42366 echo "${ECHO_T}six" >&6
42367     cat >>confdefs.h <<\_ACEOF
42368 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
42369 _ACEOF
42370
42371     ;;
42372
42373     no)
42374     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
42375 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
42376     ;;
42377
42378     unknown)
42379     echo "$as_me:$LINENO: result: can't tell" >&5
42380 echo "${ECHO_T}can't tell" >&6
42381     ;;
42382
42383     *)
42384     { { echo "$as_me:$LINENO: error: internal error" >&5
42385 echo "$as_me: error: internal error" >&2;}
42386    { (exit 1); exit 1; }; }
42387     ;;
42388 esac
42389
42390 ac_ext=c
42391 ac_cpp='$CPP $CPPFLAGS'
42392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42395
42396
42397
42398       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
42399               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
42400           echo "$as_me:$LINENO: checking for gethostbyname" >&5
42401 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
42402 if test "${ac_cv_func_gethostbyname+set}" = set; then
42403   echo $ECHO_N "(cached) $ECHO_C" >&6
42404 else
42405   cat >conftest.$ac_ext <<_ACEOF
42406 /* confdefs.h.  */
42407 _ACEOF
42408 cat confdefs.h >>conftest.$ac_ext
42409 cat >>conftest.$ac_ext <<_ACEOF
42410 /* end confdefs.h.  */
42411 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
42412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42413 #define gethostbyname innocuous_gethostbyname
42414
42415 /* System header to define __stub macros and hopefully few prototypes,
42416     which can conflict with char gethostbyname (); below.
42417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42418     <limits.h> exists even on freestanding compilers.  */
42419
42420 #ifdef __STDC__
42421 # include <limits.h>
42422 #else
42423 # include <assert.h>
42424 #endif
42425
42426 #undef gethostbyname
42427
42428 /* Override any gcc2 internal prototype to avoid an error.  */
42429 #ifdef __cplusplus
42430 extern "C"
42431 {
42432 #endif
42433 /* We use char because int might match the return type of a gcc2
42434    builtin and then its argument prototype would still apply.  */
42435 char gethostbyname ();
42436 /* The GNU C library defines this for functions which it implements
42437     to always fail with ENOSYS.  Some functions are actually named
42438     something starting with __ and the normal name is an alias.  */
42439 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
42440 choke me
42441 #else
42442 char (*f) () = gethostbyname;
42443 #endif
42444 #ifdef __cplusplus
42445 }
42446 #endif
42447
42448 int
42449 main ()
42450 {
42451 return f != gethostbyname;
42452   ;
42453   return 0;
42454 }
42455 _ACEOF
42456 rm -f conftest.$ac_objext conftest$ac_exeext
42457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42458   (eval $ac_link) 2>conftest.er1
42459   ac_status=$?
42460   grep -v '^ *+' conftest.er1 >conftest.err
42461   rm -f conftest.er1
42462   cat conftest.err >&5
42463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42464   (exit $ac_status); } &&
42465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42467   (eval $ac_try) 2>&5
42468   ac_status=$?
42469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470   (exit $ac_status); }; } &&
42471          { ac_try='test -s conftest$ac_exeext'
42472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473   (eval $ac_try) 2>&5
42474   ac_status=$?
42475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476   (exit $ac_status); }; }; then
42477   ac_cv_func_gethostbyname=yes
42478 else
42479   echo "$as_me: failed program was:" >&5
42480 sed 's/^/| /' conftest.$ac_ext >&5
42481
42482 ac_cv_func_gethostbyname=no
42483 fi
42484 rm -f conftest.err conftest.$ac_objext \
42485       conftest$ac_exeext conftest.$ac_ext
42486 fi
42487 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
42488 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
42489 if test $ac_cv_func_gethostbyname = yes; then
42490    cat >>confdefs.h <<\_ACEOF
42491 #define HAVE_GETHOSTBYNAME 1
42492 _ACEOF
42493
42494 fi
42495
42496       fi
42497
42498 echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
42499 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
42500 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
42501   echo $ECHO_N "(cached) $ECHO_C" >&6
42502 else
42503
42504                 ac_ext=cc
42505 ac_cpp='$CXXCPP $CPPFLAGS'
42506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42509
42510
42511         cat >conftest.$ac_ext <<_ACEOF
42512 /* confdefs.h.  */
42513 _ACEOF
42514 cat confdefs.h >>conftest.$ac_ext
42515 cat >>conftest.$ac_ext <<_ACEOF
42516 /* end confdefs.h.  */
42517 #include <netdb.h>
42518 int
42519 main ()
42520 {
42521
42522                 char *name;
42523                 char *proto;
42524                 struct servent *se, *res;
42525                 char buffer[2048];
42526                 int buflen = 2048;
42527                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
42528
42529   ;
42530   return 0;
42531 }
42532 _ACEOF
42533 rm -f conftest.$ac_objext
42534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42535   (eval $ac_compile) 2>conftest.er1
42536   ac_status=$?
42537   grep -v '^ *+' conftest.er1 >conftest.err
42538   rm -f conftest.er1
42539   cat conftest.err >&5
42540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541   (exit $ac_status); } &&
42542          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42544   (eval $ac_try) 2>&5
42545   ac_status=$?
42546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42547   (exit $ac_status); }; } &&
42548          { ac_try='test -s conftest.$ac_objext'
42549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42550   (eval $ac_try) 2>&5
42551   ac_status=$?
42552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42553   (exit $ac_status); }; }; then
42554   ac_cv_func_which_getservbyname_r=six
42555 else
42556   echo "$as_me: failed program was:" >&5
42557 sed 's/^/| /' conftest.$ac_ext >&5
42558
42559
42560                 cat >conftest.$ac_ext <<_ACEOF
42561 /* confdefs.h.  */
42562 _ACEOF
42563 cat confdefs.h >>conftest.$ac_ext
42564 cat >>conftest.$ac_ext <<_ACEOF
42565 /* end confdefs.h.  */
42566 #include <netdb.h>
42567 int
42568 main ()
42569 {
42570
42571                         char *name;
42572                         char *proto;
42573                         struct servent *se;
42574                         char buffer[2048];
42575                         int buflen = 2048;
42576                         (void) getservbyname_r(name, proto, se, buffer, buflen)
42577
42578   ;
42579   return 0;
42580 }
42581 _ACEOF
42582 rm -f conftest.$ac_objext
42583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42584   (eval $ac_compile) 2>conftest.er1
42585   ac_status=$?
42586   grep -v '^ *+' conftest.er1 >conftest.err
42587   rm -f conftest.er1
42588   cat conftest.err >&5
42589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42590   (exit $ac_status); } &&
42591          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42593   (eval $ac_try) 2>&5
42594   ac_status=$?
42595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596   (exit $ac_status); }; } &&
42597          { ac_try='test -s conftest.$ac_objext'
42598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42599   (eval $ac_try) 2>&5
42600   ac_status=$?
42601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42602   (exit $ac_status); }; }; then
42603   ac_cv_func_which_getservbyname_r=five
42604 else
42605   echo "$as_me: failed program was:" >&5
42606 sed 's/^/| /' conftest.$ac_ext >&5
42607
42608
42609                         cat >conftest.$ac_ext <<_ACEOF
42610 /* confdefs.h.  */
42611 _ACEOF
42612 cat confdefs.h >>conftest.$ac_ext
42613 cat >>conftest.$ac_ext <<_ACEOF
42614 /* end confdefs.h.  */
42615 #include <netdb.h>
42616 int
42617 main ()
42618 {
42619
42620                                 char *name;
42621                                 char *proto;
42622                                 struct servent *se;
42623                                 struct servent_data data;
42624                                 (void) getservbyname_r(name, proto, se, &data);
42625
42626   ;
42627   return 0;
42628 }
42629 _ACEOF
42630 rm -f conftest.$ac_objext
42631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42632   (eval $ac_compile) 2>conftest.er1
42633   ac_status=$?
42634   grep -v '^ *+' conftest.er1 >conftest.err
42635   rm -f conftest.er1
42636   cat conftest.err >&5
42637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638   (exit $ac_status); } &&
42639          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
42640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42641   (eval $ac_try) 2>&5
42642   ac_status=$?
42643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644   (exit $ac_status); }; } &&
42645          { ac_try='test -s conftest.$ac_objext'
42646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42647   (eval $ac_try) 2>&5
42648   ac_status=$?
42649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650   (exit $ac_status); }; }; then
42651   ac_cv_func_which_getservbyname_r=four
42652 else
42653   echo "$as_me: failed program was:" >&5
42654 sed 's/^/| /' conftest.$ac_ext >&5
42655
42656 ac_cv_func_which_getservbyname_r=no
42657
42658 fi
42659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42660
42661
42662 fi
42663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42664
42665
42666 fi
42667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42668         ac_ext=c
42669 ac_cpp='$CPP $CPPFLAGS'
42670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42673
42674
42675
42676 fi
42677 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
42678 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
42679
42680 if test $ac_cv_func_which_getservbyname_r = six; then
42681   cat >>confdefs.h <<\_ACEOF
42682 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
42683 _ACEOF
42684
42685 elif test $ac_cv_func_which_getservbyname_r = five; then
42686   cat >>confdefs.h <<\_ACEOF
42687 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
42688 _ACEOF
42689
42690 elif test $ac_cv_func_which_getservbyname_r = four; then
42691   cat >>confdefs.h <<\_ACEOF
42692 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
42693 _ACEOF
42694
42695 fi
42696
42697
42698       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
42699               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
42700
42701 for ac_func in getservbyname
42702 do
42703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42704 echo "$as_me:$LINENO: checking for $ac_func" >&5
42705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42706 if eval "test \"\${$as_ac_var+set}\" = set"; then
42707   echo $ECHO_N "(cached) $ECHO_C" >&6
42708 else
42709   cat >conftest.$ac_ext <<_ACEOF
42710 /* confdefs.h.  */
42711 _ACEOF
42712 cat confdefs.h >>conftest.$ac_ext
42713 cat >>conftest.$ac_ext <<_ACEOF
42714 /* end confdefs.h.  */
42715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42717 #define $ac_func innocuous_$ac_func
42718
42719 /* System header to define __stub macros and hopefully few prototypes,
42720     which can conflict with char $ac_func (); below.
42721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42722     <limits.h> exists even on freestanding compilers.  */
42723
42724 #ifdef __STDC__
42725 # include <limits.h>
42726 #else
42727 # include <assert.h>
42728 #endif
42729
42730 #undef $ac_func
42731
42732 /* Override any gcc2 internal prototype to avoid an error.  */
42733 #ifdef __cplusplus
42734 extern "C"
42735 {
42736 #endif
42737 /* We use char because int might match the return type of a gcc2
42738    builtin and then its argument prototype would still apply.  */
42739 char $ac_func ();
42740 /* The GNU C library defines this for functions which it implements
42741     to always fail with ENOSYS.  Some functions are actually named
42742     something starting with __ and the normal name is an alias.  */
42743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42744 choke me
42745 #else
42746 char (*f) () = $ac_func;
42747 #endif
42748 #ifdef __cplusplus
42749 }
42750 #endif
42751
42752 int
42753 main ()
42754 {
42755 return f != $ac_func;
42756   ;
42757   return 0;
42758 }
42759 _ACEOF
42760 rm -f conftest.$ac_objext conftest$ac_exeext
42761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42762   (eval $ac_link) 2>conftest.er1
42763   ac_status=$?
42764   grep -v '^ *+' conftest.er1 >conftest.err
42765   rm -f conftest.er1
42766   cat conftest.err >&5
42767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42768   (exit $ac_status); } &&
42769          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771   (eval $ac_try) 2>&5
42772   ac_status=$?
42773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774   (exit $ac_status); }; } &&
42775          { ac_try='test -s conftest$ac_exeext'
42776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42777   (eval $ac_try) 2>&5
42778   ac_status=$?
42779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780   (exit $ac_status); }; }; then
42781   eval "$as_ac_var=yes"
42782 else
42783   echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42785
42786 eval "$as_ac_var=no"
42787 fi
42788 rm -f conftest.err conftest.$ac_objext \
42789       conftest$ac_exeext conftest.$ac_ext
42790 fi
42791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42793 if test `eval echo '${'$as_ac_var'}'` = yes; then
42794   cat >>confdefs.h <<_ACEOF
42795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42796 _ACEOF
42797   cat >>confdefs.h <<\_ACEOF
42798 #define HAVE_GETSERVBYNAME 1
42799 _ACEOF
42800
42801 fi
42802 done
42803
42804       fi
42805
42806 if test "$wxUSE_THREADS" = "yes"; then
42807   cat >>confdefs.h <<\_ACEOF
42808 #define wxUSE_THREADS 1
42809 _ACEOF
42810
42811
42812   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42813 else
42814       if test "$wx_cv_func_strtok_r" = "yes"; then
42815     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42816 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
42817     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42818         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42819         echo "$as_me:$LINENO: result: yes" >&5
42820 echo "${ECHO_T}yes" >&6
42821     else
42822         echo "$as_me:$LINENO: result: no" >&5
42823 echo "${ECHO_T}no" >&6
42824     fi
42825   fi
42826 fi
42827
42828 if test "$WXGTK20" = 1 ; then
42829   cat >>confdefs.h <<_ACEOF
42830 #define __WXGTK20__ $WXGTK20
42831 _ACEOF
42832
42833   WXGTK12=1
42834 fi
42835
42836 if test "$WXGTK12" = 1 ; then
42837   cat >>confdefs.h <<_ACEOF
42838 #define __WXGTK12__ $WXGTK12
42839 _ACEOF
42840
42841 fi
42842
42843 if test "$WXGTK127" = 1 ; then
42844   cat >>confdefs.h <<_ACEOF
42845 #define __WXGTK127__ $WXGTK127
42846 _ACEOF
42847
42848 fi
42849
42850 if test "$WXGPE" = 1 ; then
42851   cat >>confdefs.h <<_ACEOF
42852 #define __WXGPE__ $WXGPE
42853 _ACEOF
42854
42855 fi
42856
42857 DEBUG_CFLAGS=
42858 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
42859     DEBUG_CFLAGS="-g"
42860     wxUSE_OPTIMISE=no
42861 fi
42862
42863 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42864     wxUSE_DEBUG_INFO=yes
42865     if test "$GCC" = yes; then
42866         DEBUG_CFLAGS="-ggdb"
42867     fi
42868 fi
42869
42870 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
42871     cat >>confdefs.h <<\_ACEOF
42872 #define WXDEBUG 1
42873 _ACEOF
42874
42875     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
42876 else
42877     if test "$wxUSE_GTK" = 1 ; then
42878         if test "x$wxGTK_VERSION" = "x1" ; then
42879             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42880         fi
42881     fi
42882 fi
42883
42884 if test "$wxUSE_MEM_TRACING" = "yes" ; then
42885     cat >>confdefs.h <<\_ACEOF
42886 #define wxUSE_MEMORY_TRACING 1
42887 _ACEOF
42888
42889     cat >>confdefs.h <<\_ACEOF
42890 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42891 _ACEOF
42892
42893     cat >>confdefs.h <<\_ACEOF
42894 #define wxUSE_DEBUG_NEW_ALWAYS 1
42895 _ACEOF
42896
42897     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42898 fi
42899
42900 if test "$wxUSE_DMALLOC" = "yes" ; then
42901     DMALLOC_LIBS="-ldmallocthcxx"
42902 fi
42903
42904 PROFILE_FLAGS=
42905 if test "$wxUSE_PROFILE" = "yes" ; then
42906     PROFILE_FLAGS=" -pg"
42907 fi
42908
42909 if test "$GCC" = "yes" ; then
42910     if test "$wxUSE_NO_RTTI" = "yes" ; then
42911         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
42912     fi
42913     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42914         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42915     fi
42916     if test "$wxUSE_PERMISSIVE" = "yes" ; then
42917         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42918     fi
42919
42920                                                 case "${host}" in
42921       powerpc*-*-aix* )
42922         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42923         ;;
42924       *-hppa* )
42925         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42926         ;;
42927     esac
42928 fi
42929
42930 OPTIMISE_CFLAGS=
42931 if test "$wxUSE_OPTIMISE" = "no" ; then
42932     if test "$GCC" = yes ; then
42933                         OPTIMISE_CFLAGS="-O0"
42934     fi
42935 else
42936     if test "$GCC" = yes ; then
42937         case "${host}" in
42938             *-pc-os2_emx | *-pc-os2-emx )
42939                                                 OPTIMISE_CFLAGS="-O2"
42940             ;;
42941             *)
42942                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42943             ;;
42944         esac
42945     else
42946         OPTIMISE_CFLAGS="-O"
42947     fi
42948 fi
42949
42950
42951 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
42952     cat >>confdefs.h <<\_ACEOF
42953 #define WXWIN_COMPATIBILITY_2_6 1
42954 _ACEOF
42955
42956
42957     WXWIN_COMPATIBILITY_2_8="yes"
42958 fi
42959
42960 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
42961     cat >>confdefs.h <<\_ACEOF
42962 #define WXWIN_COMPATIBILITY_2_8 1
42963 _ACEOF
42964
42965 fi
42966
42967
42968 if test "$wxUSE_GUI" = "yes"; then
42969     cat >>confdefs.h <<\_ACEOF
42970 #define wxUSE_GUI 1
42971 _ACEOF
42972
42973
42974                                             fi
42975
42976
42977 if test "$wxUSE_UNIX" = "yes"; then
42978   cat >>confdefs.h <<\_ACEOF
42979 #define wxUSE_UNIX 1
42980 _ACEOF
42981
42982 fi
42983
42984
42985 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42986
42987     HAVE_DL_FUNCS=0
42988     HAVE_SHL_FUNCS=0
42989     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42990         if test "$USE_DARWIN" = 1; then
42991                         HAVE_DL_FUNCS=1
42992         elif test "$USE_DOS" = 1; then
42993             HAVE_DL_FUNCS=0
42994         else
42995
42996 for ac_func in dlopen
42997 do
42998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42999 echo "$as_me:$LINENO: checking for $ac_func" >&5
43000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43001 if eval "test \"\${$as_ac_var+set}\" = set"; then
43002   echo $ECHO_N "(cached) $ECHO_C" >&6
43003 else
43004   cat >conftest.$ac_ext <<_ACEOF
43005 /* confdefs.h.  */
43006 _ACEOF
43007 cat confdefs.h >>conftest.$ac_ext
43008 cat >>conftest.$ac_ext <<_ACEOF
43009 /* end confdefs.h.  */
43010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43012 #define $ac_func innocuous_$ac_func
43013
43014 /* System header to define __stub macros and hopefully few prototypes,
43015     which can conflict with char $ac_func (); below.
43016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43017     <limits.h> exists even on freestanding compilers.  */
43018
43019 #ifdef __STDC__
43020 # include <limits.h>
43021 #else
43022 # include <assert.h>
43023 #endif
43024
43025 #undef $ac_func
43026
43027 /* Override any gcc2 internal prototype to avoid an error.  */
43028 #ifdef __cplusplus
43029 extern "C"
43030 {
43031 #endif
43032 /* We use char because int might match the return type of a gcc2
43033    builtin and then its argument prototype would still apply.  */
43034 char $ac_func ();
43035 /* The GNU C library defines this for functions which it implements
43036     to always fail with ENOSYS.  Some functions are actually named
43037     something starting with __ and the normal name is an alias.  */
43038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43039 choke me
43040 #else
43041 char (*f) () = $ac_func;
43042 #endif
43043 #ifdef __cplusplus
43044 }
43045 #endif
43046
43047 int
43048 main ()
43049 {
43050 return f != $ac_func;
43051   ;
43052   return 0;
43053 }
43054 _ACEOF
43055 rm -f conftest.$ac_objext conftest$ac_exeext
43056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43057   (eval $ac_link) 2>conftest.er1
43058   ac_status=$?
43059   grep -v '^ *+' conftest.er1 >conftest.err
43060   rm -f conftest.er1
43061   cat conftest.err >&5
43062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063   (exit $ac_status); } &&
43064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066   (eval $ac_try) 2>&5
43067   ac_status=$?
43068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069   (exit $ac_status); }; } &&
43070          { ac_try='test -s conftest$ac_exeext'
43071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43072   (eval $ac_try) 2>&5
43073   ac_status=$?
43074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075   (exit $ac_status); }; }; then
43076   eval "$as_ac_var=yes"
43077 else
43078   echo "$as_me: failed program was:" >&5
43079 sed 's/^/| /' conftest.$ac_ext >&5
43080
43081 eval "$as_ac_var=no"
43082 fi
43083 rm -f conftest.err conftest.$ac_objext \
43084       conftest$ac_exeext conftest.$ac_ext
43085 fi
43086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43088 if test `eval echo '${'$as_ac_var'}'` = yes; then
43089   cat >>confdefs.h <<_ACEOF
43090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43091 _ACEOF
43092
43093                 cat >>confdefs.h <<\_ACEOF
43094 #define HAVE_DLOPEN 1
43095 _ACEOF
43096
43097                 HAVE_DL_FUNCS=1
43098
43099 else
43100
43101                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43102 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
43103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43104   echo $ECHO_N "(cached) $ECHO_C" >&6
43105 else
43106   ac_check_lib_save_LIBS=$LIBS
43107 LIBS="-ldl  $LIBS"
43108 cat >conftest.$ac_ext <<_ACEOF
43109 /* confdefs.h.  */
43110 _ACEOF
43111 cat confdefs.h >>conftest.$ac_ext
43112 cat >>conftest.$ac_ext <<_ACEOF
43113 /* end confdefs.h.  */
43114
43115 /* Override any gcc2 internal prototype to avoid an error.  */
43116 #ifdef __cplusplus
43117 extern "C"
43118 #endif
43119 /* We use char because int might match the return type of a gcc2
43120    builtin and then its argument prototype would still apply.  */
43121 char dlopen ();
43122 int
43123 main ()
43124 {
43125 dlopen ();
43126   ;
43127   return 0;
43128 }
43129 _ACEOF
43130 rm -f conftest.$ac_objext conftest$ac_exeext
43131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43132   (eval $ac_link) 2>conftest.er1
43133   ac_status=$?
43134   grep -v '^ *+' conftest.er1 >conftest.err
43135   rm -f conftest.er1
43136   cat conftest.err >&5
43137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43138   (exit $ac_status); } &&
43139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43141   (eval $ac_try) 2>&5
43142   ac_status=$?
43143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43144   (exit $ac_status); }; } &&
43145          { ac_try='test -s conftest$ac_exeext'
43146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43147   (eval $ac_try) 2>&5
43148   ac_status=$?
43149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150   (exit $ac_status); }; }; then
43151   ac_cv_lib_dl_dlopen=yes
43152 else
43153   echo "$as_me: failed program was:" >&5
43154 sed 's/^/| /' conftest.$ac_ext >&5
43155
43156 ac_cv_lib_dl_dlopen=no
43157 fi
43158 rm -f conftest.err conftest.$ac_objext \
43159       conftest$ac_exeext conftest.$ac_ext
43160 LIBS=$ac_check_lib_save_LIBS
43161 fi
43162 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43163 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
43164 if test $ac_cv_lib_dl_dlopen = yes; then
43165
43166                                 cat >>confdefs.h <<\_ACEOF
43167 #define HAVE_DLOPEN 1
43168 _ACEOF
43169
43170                                 HAVE_DL_FUNCS=1
43171                                 DL_LINK=" -ldl$DL_LINK"
43172
43173 else
43174
43175
43176 for ac_func in shl_load
43177 do
43178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43179 echo "$as_me:$LINENO: checking for $ac_func" >&5
43180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43181 if eval "test \"\${$as_ac_var+set}\" = set"; then
43182   echo $ECHO_N "(cached) $ECHO_C" >&6
43183 else
43184   cat >conftest.$ac_ext <<_ACEOF
43185 /* confdefs.h.  */
43186 _ACEOF
43187 cat confdefs.h >>conftest.$ac_ext
43188 cat >>conftest.$ac_ext <<_ACEOF
43189 /* end confdefs.h.  */
43190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43192 #define $ac_func innocuous_$ac_func
43193
43194 /* System header to define __stub macros and hopefully few prototypes,
43195     which can conflict with char $ac_func (); below.
43196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43197     <limits.h> exists even on freestanding compilers.  */
43198
43199 #ifdef __STDC__
43200 # include <limits.h>
43201 #else
43202 # include <assert.h>
43203 #endif
43204
43205 #undef $ac_func
43206
43207 /* Override any gcc2 internal prototype to avoid an error.  */
43208 #ifdef __cplusplus
43209 extern "C"
43210 {
43211 #endif
43212 /* We use char because int might match the return type of a gcc2
43213    builtin and then its argument prototype would still apply.  */
43214 char $ac_func ();
43215 /* The GNU C library defines this for functions which it implements
43216     to always fail with ENOSYS.  Some functions are actually named
43217     something starting with __ and the normal name is an alias.  */
43218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43219 choke me
43220 #else
43221 char (*f) () = $ac_func;
43222 #endif
43223 #ifdef __cplusplus
43224 }
43225 #endif
43226
43227 int
43228 main ()
43229 {
43230 return f != $ac_func;
43231   ;
43232   return 0;
43233 }
43234 _ACEOF
43235 rm -f conftest.$ac_objext conftest$ac_exeext
43236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43237   (eval $ac_link) 2>conftest.er1
43238   ac_status=$?
43239   grep -v '^ *+' conftest.er1 >conftest.err
43240   rm -f conftest.er1
43241   cat conftest.err >&5
43242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243   (exit $ac_status); } &&
43244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246   (eval $ac_try) 2>&5
43247   ac_status=$?
43248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249   (exit $ac_status); }; } &&
43250          { ac_try='test -s conftest$ac_exeext'
43251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43252   (eval $ac_try) 2>&5
43253   ac_status=$?
43254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255   (exit $ac_status); }; }; then
43256   eval "$as_ac_var=yes"
43257 else
43258   echo "$as_me: failed program was:" >&5
43259 sed 's/^/| /' conftest.$ac_ext >&5
43260
43261 eval "$as_ac_var=no"
43262 fi
43263 rm -f conftest.err conftest.$ac_objext \
43264       conftest$ac_exeext conftest.$ac_ext
43265 fi
43266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43268 if test `eval echo '${'$as_ac_var'}'` = yes; then
43269   cat >>confdefs.h <<_ACEOF
43270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43271 _ACEOF
43272
43273                                                 cat >>confdefs.h <<\_ACEOF
43274 #define HAVE_SHL_LOAD 1
43275 _ACEOF
43276
43277                                                 HAVE_SHL_FUNCS=1
43278
43279 else
43280
43281                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43282 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
43283 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43284   echo $ECHO_N "(cached) $ECHO_C" >&6
43285 else
43286   ac_check_lib_save_LIBS=$LIBS
43287 LIBS="-lshl_load  $LIBS"
43288 cat >conftest.$ac_ext <<_ACEOF
43289 /* confdefs.h.  */
43290 _ACEOF
43291 cat confdefs.h >>conftest.$ac_ext
43292 cat >>conftest.$ac_ext <<_ACEOF
43293 /* end confdefs.h.  */
43294
43295 /* Override any gcc2 internal prototype to avoid an error.  */
43296 #ifdef __cplusplus
43297 extern "C"
43298 #endif
43299 /* We use char because int might match the return type of a gcc2
43300    builtin and then its argument prototype would still apply.  */
43301 char dld ();
43302 int
43303 main ()
43304 {
43305 dld ();
43306   ;
43307   return 0;
43308 }
43309 _ACEOF
43310 rm -f conftest.$ac_objext conftest$ac_exeext
43311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43312   (eval $ac_link) 2>conftest.er1
43313   ac_status=$?
43314   grep -v '^ *+' conftest.er1 >conftest.err
43315   rm -f conftest.er1
43316   cat conftest.err >&5
43317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43318   (exit $ac_status); } &&
43319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43321   (eval $ac_try) 2>&5
43322   ac_status=$?
43323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43324   (exit $ac_status); }; } &&
43325          { ac_try='test -s conftest$ac_exeext'
43326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43327   (eval $ac_try) 2>&5
43328   ac_status=$?
43329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43330   (exit $ac_status); }; }; then
43331   ac_cv_lib_shl_load_dld=yes
43332 else
43333   echo "$as_me: failed program was:" >&5
43334 sed 's/^/| /' conftest.$ac_ext >&5
43335
43336 ac_cv_lib_shl_load_dld=no
43337 fi
43338 rm -f conftest.err conftest.$ac_objext \
43339       conftest$ac_exeext conftest.$ac_ext
43340 LIBS=$ac_check_lib_save_LIBS
43341 fi
43342 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43343 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
43344 if test $ac_cv_lib_shl_load_dld = yes; then
43345
43346                                                                 HAVE_SHL_FUNCS=1
43347                                                                 DL_LINK=" -ldld$DL_LINK"
43348
43349 fi
43350
43351
43352 fi
43353 done
43354
43355
43356 fi
43357
43358
43359 fi
43360 done
43361
43362
43363                 if test "$HAVE_DL_FUNCS" = 1; then
43364
43365 for ac_func in dlerror
43366 do
43367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43368 echo "$as_me:$LINENO: checking for $ac_func" >&5
43369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43370 if eval "test \"\${$as_ac_var+set}\" = set"; then
43371   echo $ECHO_N "(cached) $ECHO_C" >&6
43372 else
43373   cat >conftest.$ac_ext <<_ACEOF
43374 /* confdefs.h.  */
43375 _ACEOF
43376 cat confdefs.h >>conftest.$ac_ext
43377 cat >>conftest.$ac_ext <<_ACEOF
43378 /* end confdefs.h.  */
43379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43381 #define $ac_func innocuous_$ac_func
43382
43383 /* System header to define __stub macros and hopefully few prototypes,
43384     which can conflict with char $ac_func (); below.
43385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43386     <limits.h> exists even on freestanding compilers.  */
43387
43388 #ifdef __STDC__
43389 # include <limits.h>
43390 #else
43391 # include <assert.h>
43392 #endif
43393
43394 #undef $ac_func
43395
43396 /* Override any gcc2 internal prototype to avoid an error.  */
43397 #ifdef __cplusplus
43398 extern "C"
43399 {
43400 #endif
43401 /* We use char because int might match the return type of a gcc2
43402    builtin and then its argument prototype would still apply.  */
43403 char $ac_func ();
43404 /* The GNU C library defines this for functions which it implements
43405     to always fail with ENOSYS.  Some functions are actually named
43406     something starting with __ and the normal name is an alias.  */
43407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43408 choke me
43409 #else
43410 char (*f) () = $ac_func;
43411 #endif
43412 #ifdef __cplusplus
43413 }
43414 #endif
43415
43416 int
43417 main ()
43418 {
43419 return f != $ac_func;
43420   ;
43421   return 0;
43422 }
43423 _ACEOF
43424 rm -f conftest.$ac_objext conftest$ac_exeext
43425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43426   (eval $ac_link) 2>conftest.er1
43427   ac_status=$?
43428   grep -v '^ *+' conftest.er1 >conftest.err
43429   rm -f conftest.er1
43430   cat conftest.err >&5
43431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43432   (exit $ac_status); } &&
43433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43435   (eval $ac_try) 2>&5
43436   ac_status=$?
43437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438   (exit $ac_status); }; } &&
43439          { ac_try='test -s conftest$ac_exeext'
43440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43441   (eval $ac_try) 2>&5
43442   ac_status=$?
43443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444   (exit $ac_status); }; }; then
43445   eval "$as_ac_var=yes"
43446 else
43447   echo "$as_me: failed program was:" >&5
43448 sed 's/^/| /' conftest.$ac_ext >&5
43449
43450 eval "$as_ac_var=no"
43451 fi
43452 rm -f conftest.err conftest.$ac_objext \
43453       conftest$ac_exeext conftest.$ac_ext
43454 fi
43455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43457 if test `eval echo '${'$as_ac_var'}'` = yes; then
43458   cat >>confdefs.h <<_ACEOF
43459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43460 _ACEOF
43461  cat >>confdefs.h <<\_ACEOF
43462 #define HAVE_DLERROR 1
43463 _ACEOF
43464
43465 else
43466
43467                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
43468 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
43469 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
43470   echo $ECHO_N "(cached) $ECHO_C" >&6
43471 else
43472   ac_check_lib_save_LIBS=$LIBS
43473 LIBS="-ldl  $LIBS"
43474 cat >conftest.$ac_ext <<_ACEOF
43475 /* confdefs.h.  */
43476 _ACEOF
43477 cat confdefs.h >>conftest.$ac_ext
43478 cat >>conftest.$ac_ext <<_ACEOF
43479 /* end confdefs.h.  */
43480
43481 /* Override any gcc2 internal prototype to avoid an error.  */
43482 #ifdef __cplusplus
43483 extern "C"
43484 #endif
43485 /* We use char because int might match the return type of a gcc2
43486    builtin and then its argument prototype would still apply.  */
43487 char dlerror ();
43488 int
43489 main ()
43490 {
43491 dlerror ();
43492   ;
43493   return 0;
43494 }
43495 _ACEOF
43496 rm -f conftest.$ac_objext conftest$ac_exeext
43497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43498   (eval $ac_link) 2>conftest.er1
43499   ac_status=$?
43500   grep -v '^ *+' conftest.er1 >conftest.err
43501   rm -f conftest.er1
43502   cat conftest.err >&5
43503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504   (exit $ac_status); } &&
43505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43507   (eval $ac_try) 2>&5
43508   ac_status=$?
43509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510   (exit $ac_status); }; } &&
43511          { ac_try='test -s conftest$ac_exeext'
43512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43513   (eval $ac_try) 2>&5
43514   ac_status=$?
43515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43516   (exit $ac_status); }; }; then
43517   ac_cv_lib_dl_dlerror=yes
43518 else
43519   echo "$as_me: failed program was:" >&5
43520 sed 's/^/| /' conftest.$ac_ext >&5
43521
43522 ac_cv_lib_dl_dlerror=no
43523 fi
43524 rm -f conftest.err conftest.$ac_objext \
43525       conftest$ac_exeext conftest.$ac_ext
43526 LIBS=$ac_check_lib_save_LIBS
43527 fi
43528 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
43529 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
43530 if test $ac_cv_lib_dl_dlerror = yes; then
43531   cat >>confdefs.h <<\_ACEOF
43532 #define HAVE_DLERROR 1
43533 _ACEOF
43534
43535 fi
43536
43537
43538
43539 fi
43540 done
43541
43542         fi
43543         fi
43544
43545         if test "$HAVE_DL_FUNCS" = 0; then
43546             if test "$HAVE_SHL_FUNCS" = 0; then
43547               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
43548                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
43549 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
43550                   wxUSE_DYNAMIC_LOADER=no
43551                   wxUSE_DYNLIB_CLASS=no
43552               else
43553                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
43554 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
43555               fi
43556             fi
43557         fi
43558     fi
43559 fi
43560
43561 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
43562     cat >>confdefs.h <<\_ACEOF
43563 #define wxUSE_DYNAMIC_LOADER 1
43564 _ACEOF
43565
43566 fi
43567 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43568     cat >>confdefs.h <<\_ACEOF
43569 #define wxUSE_DYNLIB_CLASS 1
43570 _ACEOF
43571
43572 fi
43573
43574
43575
43576 if test "$wxUSE_PLUGINS" = "yes" ; then
43577     if test "$wxUSE_SHARED" = "no" ; then
43578         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
43579 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
43580         wxUSE_PLUGINS=no
43581     fi
43582     if test "$wxUSE_MONOLITHIC" = "yes" ; then
43583         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
43584 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
43585         wxUSE_PLUGINS=no
43586     fi
43587     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
43588         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
43589 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
43590         wxUSE_PLUGINS=no
43591     fi
43592     if test "$wxUSE_PLUGINS" = "yes" ; then
43593         cat >>confdefs.h <<\_ACEOF
43594 #define wxUSE_PLUGINS 1
43595 _ACEOF
43596
43597     fi
43598 fi
43599
43600
43601 if test "$wxUSE_STL" = "yes"; then
43602   cat >>confdefs.h <<\_ACEOF
43603 #define wxUSE_STL 1
43604 _ACEOF
43605
43606 fi
43607
43608 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
43609   cat >>confdefs.h <<\_ACEOF
43610 #define wxUSE_EXTENDED_RTTI 1
43611 _ACEOF
43612
43613 fi
43614
43615 if test "$wxUSE_APPLE_IEEE" = "yes"; then
43616   cat >>confdefs.h <<\_ACEOF
43617 #define wxUSE_APPLE_IEEE 1
43618 _ACEOF
43619
43620 fi
43621
43622 if test "$wxUSE_TIMER" = "yes"; then
43623   cat >>confdefs.h <<\_ACEOF
43624 #define wxUSE_TIMER 1
43625 _ACEOF
43626
43627 fi
43628
43629 if test "$USE_UNIX" = "1" ; then
43630         if test "$wxUSE_MGL" != 1; then
43631                                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
43632 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
43633 if test "${ac_cv_header_sys_soundcard+set}" = set; then
43634   echo $ECHO_N "(cached) $ECHO_C" >&6
43635 else
43636
43637             cat >conftest.$ac_ext <<_ACEOF
43638 /* confdefs.h.  */
43639 _ACEOF
43640 cat confdefs.h >>conftest.$ac_ext
43641 cat >>conftest.$ac_ext <<_ACEOF
43642 /* end confdefs.h.  */
43643
43644                     #include <sys/ioctl.h>
43645                     #include <sys/soundcard.h>
43646
43647 int
43648 main ()
43649 {
43650
43651                     ioctl(0, SNDCTL_DSP_SPEED, 0);
43652
43653   ;
43654   return 0;
43655 }
43656 _ACEOF
43657 rm -f conftest.$ac_objext conftest$ac_exeext
43658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43659   (eval $ac_link) 2>conftest.er1
43660   ac_status=$?
43661   grep -v '^ *+' conftest.er1 >conftest.err
43662   rm -f conftest.er1
43663   cat conftest.err >&5
43664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43665   (exit $ac_status); } &&
43666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43668   (eval $ac_try) 2>&5
43669   ac_status=$?
43670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671   (exit $ac_status); }; } &&
43672          { ac_try='test -s conftest$ac_exeext'
43673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43674   (eval $ac_try) 2>&5
43675   ac_status=$?
43676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677   (exit $ac_status); }; }; then
43678   ac_cv_header_sys_soundcard=yes
43679 else
43680   echo "$as_me: failed program was:" >&5
43681 sed 's/^/| /' conftest.$ac_ext >&5
43682
43683
43684                     saveLibs="$LIBS"
43685                     LIBS="$saveLibs -lossaudio"
43686                     cat >conftest.$ac_ext <<_ACEOF
43687 /* confdefs.h.  */
43688 _ACEOF
43689 cat confdefs.h >>conftest.$ac_ext
43690 cat >>conftest.$ac_ext <<_ACEOF
43691 /* end confdefs.h.  */
43692
43693                             #include <sys/ioctl.h>
43694                             #include <sys/soundcard.h>
43695
43696 int
43697 main ()
43698 {
43699
43700                             ioctl(0, SNDCTL_DSP_SPEED, 0);
43701
43702   ;
43703   return 0;
43704 }
43705 _ACEOF
43706 rm -f conftest.$ac_objext conftest$ac_exeext
43707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43708   (eval $ac_link) 2>conftest.er1
43709   ac_status=$?
43710   grep -v '^ *+' conftest.er1 >conftest.err
43711   rm -f conftest.er1
43712   cat conftest.err >&5
43713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43714   (exit $ac_status); } &&
43715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43717   (eval $ac_try) 2>&5
43718   ac_status=$?
43719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43720   (exit $ac_status); }; } &&
43721          { ac_try='test -s conftest$ac_exeext'
43722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43723   (eval $ac_try) 2>&5
43724   ac_status=$?
43725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43726   (exit $ac_status); }; }; then
43727   ac_cv_header_sys_soundcard=yes
43728 else
43729   echo "$as_me: failed program was:" >&5
43730 sed 's/^/| /' conftest.$ac_ext >&5
43731
43732
43733                             LIBS="$saveLibs"
43734                             ac_cv_header_sys_soundcard=no
43735
43736
43737 fi
43738 rm -f conftest.err conftest.$ac_objext \
43739       conftest$ac_exeext conftest.$ac_ext
43740
43741
43742 fi
43743 rm -f conftest.err conftest.$ac_objext \
43744       conftest$ac_exeext conftest.$ac_ext
43745
43746 fi
43747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43748 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
43749     fi
43750
43751     if test "$ac_cv_header_sys_soundcard" = "yes"; then
43752         cat >>confdefs.h <<\_ACEOF
43753 #define HAVE_SYS_SOUNDCARD_H 1
43754 _ACEOF
43755
43756     fi
43757 fi
43758
43759 WITH_PLUGIN_SDL=0
43760 if test "$wxUSE_SOUND" = "yes"; then
43761   if test "$USE_UNIX" = "1" ; then
43762     if test "$wxUSE_LIBSDL" != "no"; then
43763
43764 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
43765 if test "${with_sdl_prefix+set}" = set; then
43766   withval="$with_sdl_prefix"
43767   sdl_prefix="$withval"
43768 else
43769   sdl_prefix=""
43770 fi;
43771
43772 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
43773 if test "${with_sdl_exec_prefix+set}" = set; then
43774   withval="$with_sdl_exec_prefix"
43775   sdl_exec_prefix="$withval"
43776 else
43777   sdl_exec_prefix=""
43778 fi;
43779 # Check whether --enable-sdltest or --disable-sdltest was given.
43780 if test "${enable_sdltest+set}" = set; then
43781   enableval="$enable_sdltest"
43782
43783 else
43784   enable_sdltest=yes
43785 fi;
43786
43787   if test x$sdl_exec_prefix != x ; then
43788     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43789     if test x${SDL_CONFIG+set} != xset ; then
43790       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43791     fi
43792   fi
43793   if test x$sdl_prefix != x ; then
43794     sdl_args="$sdl_args --prefix=$sdl_prefix"
43795     if test x${SDL_CONFIG+set} != xset ; then
43796       SDL_CONFIG=$sdl_prefix/bin/sdl-config
43797     fi
43798   fi
43799
43800   if test "x$prefix" != xNONE; then
43801     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43802   fi
43803   # Extract the first word of "sdl-config", so it can be a program name with args.
43804 set dummy sdl-config; ac_word=$2
43805 echo "$as_me:$LINENO: checking for $ac_word" >&5
43806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43807 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43808   echo $ECHO_N "(cached) $ECHO_C" >&6
43809 else
43810   case $SDL_CONFIG in
43811   [\\/]* | ?:[\\/]*)
43812   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43813   ;;
43814   *)
43815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43816 for as_dir in $PATH
43817 do
43818   IFS=$as_save_IFS
43819   test -z "$as_dir" && as_dir=.
43820   for ac_exec_ext in '' $ac_executable_extensions; do
43821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43822     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43824     break 2
43825   fi
43826 done
43827 done
43828
43829   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43830   ;;
43831 esac
43832 fi
43833 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43834
43835 if test -n "$SDL_CONFIG"; then
43836   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43837 echo "${ECHO_T}$SDL_CONFIG" >&6
43838 else
43839   echo "$as_me:$LINENO: result: no" >&5
43840 echo "${ECHO_T}no" >&6
43841 fi
43842
43843   min_sdl_version=1.2.0
43844   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43845 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
43846   no_sdl=""
43847   if test "$SDL_CONFIG" = "no" ; then
43848     no_sdl=yes
43849   else
43850     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43851     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43852
43853     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43854            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43855     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43856            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43857     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43858            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43859     if test "x$enable_sdltest" = "xyes" ; then
43860       ac_save_CFLAGS="$CFLAGS"
43861       ac_save_CXXFLAGS="$CXXFLAGS"
43862       ac_save_LIBS="$LIBS"
43863       CFLAGS="$CFLAGS $SDL_CFLAGS"
43864       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43865       LIBS="$LIBS $SDL_LIBS"
43866       rm -f conf.sdltest
43867       if test "$cross_compiling" = yes; then
43868   echo $ac_n "cross compiling; assumed OK... $ac_c"
43869 else
43870   cat >conftest.$ac_ext <<_ACEOF
43871 /* confdefs.h.  */
43872 _ACEOF
43873 cat confdefs.h >>conftest.$ac_ext
43874 cat >>conftest.$ac_ext <<_ACEOF
43875 /* end confdefs.h.  */
43876
43877 #include <stdio.h>
43878 #include <stdlib.h>
43879 #include <string.h>
43880 #include "SDL.h"
43881
43882 char*
43883 my_strdup (char *str)
43884 {
43885   char *new_str;
43886
43887   if (str)
43888     {
43889       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43890       strcpy (new_str, str);
43891     }
43892   else
43893     new_str = NULL;
43894
43895   return new_str;
43896 }
43897
43898 int main (int argc, char *argv[])
43899 {
43900   int major, minor, micro;
43901   char *tmp_version;
43902
43903   /* This hangs on some systems (?)
43904   system ("touch conf.sdltest");
43905   */
43906   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43907
43908   /* HP/UX 9 (%@#!) writes to sscanf strings */
43909   tmp_version = my_strdup("$min_sdl_version");
43910   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43911      printf("%s, bad version string\n", "$min_sdl_version");
43912      exit(1);
43913    }
43914
43915    if (($sdl_major_version > major) ||
43916       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43917       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43918     {
43919       return 0;
43920     }
43921   else
43922     {
43923       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43924       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43925       printf("*** best to upgrade to the required version.\n");
43926       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43927       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43928       printf("*** config.cache before re-running configure\n");
43929       return 1;
43930     }
43931 }
43932
43933
43934 _ACEOF
43935 rm -f conftest$ac_exeext
43936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43937   (eval $ac_link) 2>&5
43938   ac_status=$?
43939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43942   (eval $ac_try) 2>&5
43943   ac_status=$?
43944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43945   (exit $ac_status); }; }; then
43946   :
43947 else
43948   echo "$as_me: program exited with status $ac_status" >&5
43949 echo "$as_me: failed program was:" >&5
43950 sed 's/^/| /' conftest.$ac_ext >&5
43951
43952 ( exit $ac_status )
43953 no_sdl=yes
43954 fi
43955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43956 fi
43957        CFLAGS="$ac_save_CFLAGS"
43958        CXXFLAGS="$ac_save_CXXFLAGS"
43959        LIBS="$ac_save_LIBS"
43960      fi
43961   fi
43962   if test "x$no_sdl" = x ; then
43963      echo "$as_me:$LINENO: result: yes" >&5
43964 echo "${ECHO_T}yes" >&6
43965
43966                     EXTRALIBS_SDL="$SDL_LIBS"
43967                     CFLAGS="$SDL_CFLAGS $CFLAGS"
43968                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
43969                     cat >>confdefs.h <<\_ACEOF
43970 #define wxUSE_LIBSDL 1
43971 _ACEOF
43972
43973
43974   else
43975      echo "$as_me:$LINENO: result: no" >&5
43976 echo "${ECHO_T}no" >&6
43977      if test "$SDL_CONFIG" = "no" ; then
43978        echo "*** The sdl-config script installed by SDL could not be found"
43979        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43980        echo "*** your path, or set the SDL_CONFIG environment variable to the"
43981        echo "*** full path to sdl-config."
43982      else
43983        if test -f conf.sdltest ; then
43984         :
43985        else
43986           echo "*** Could not run SDL test program, checking why..."
43987           CFLAGS="$CFLAGS $SDL_CFLAGS"
43988           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
43989           LIBS="$LIBS $SDL_LIBS"
43990           cat >conftest.$ac_ext <<_ACEOF
43991 /* confdefs.h.  */
43992 _ACEOF
43993 cat confdefs.h >>conftest.$ac_ext
43994 cat >>conftest.$ac_ext <<_ACEOF
43995 /* end confdefs.h.  */
43996
43997 #include <stdio.h>
43998 #include "SDL.h"
43999
44000 int main(int argc, char *argv[])
44001 { return 0; }
44002 #undef  main
44003 #define main K_and_R_C_main
44004
44005 int
44006 main ()
44007 {
44008  return 0;
44009   ;
44010   return 0;
44011 }
44012 _ACEOF
44013 rm -f conftest.$ac_objext conftest$ac_exeext
44014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44015   (eval $ac_link) 2>conftest.er1
44016   ac_status=$?
44017   grep -v '^ *+' conftest.er1 >conftest.err
44018   rm -f conftest.er1
44019   cat conftest.err >&5
44020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44021   (exit $ac_status); } &&
44022          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44024   (eval $ac_try) 2>&5
44025   ac_status=$?
44026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44027   (exit $ac_status); }; } &&
44028          { ac_try='test -s conftest$ac_exeext'
44029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44030   (eval $ac_try) 2>&5
44031   ac_status=$?
44032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44033   (exit $ac_status); }; }; then
44034    echo "*** The test program compiled, but did not run. This usually means"
44035           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44036           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44037           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44038           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44039           echo "*** is required on your system"
44040           echo "***"
44041           echo "*** If you have an old version installed, it is best to remove it, although"
44042           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44043 else
44044   echo "$as_me: failed program was:" >&5
44045 sed 's/^/| /' conftest.$ac_ext >&5
44046
44047  echo "*** The test program failed to compile or link. See the file config.log for the"
44048           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44049           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44050           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44051 fi
44052 rm -f conftest.err conftest.$ac_objext \
44053       conftest$ac_exeext conftest.$ac_ext
44054           CFLAGS="$ac_save_CFLAGS"
44055           CXXFLAGS="$ac_save_CXXFLAGS"
44056           LIBS="$ac_save_LIBS"
44057        fi
44058      fi
44059      SDL_CFLAGS=""
44060      SDL_LIBS=""
44061      wxUSE_LIBSDL="no"
44062   fi
44063
44064
44065   rm -f conf.sdltest
44066
44067       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44068         WITH_PLUGIN_SDL=1
44069       fi
44070     fi
44071   else
44072         if test "$wxUSE_MGL" = 1; then
44073         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44074 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44075         wxUSE_SOUND="no"
44076     fi
44077   fi
44078 fi
44079
44080 if test "$wxUSE_SOUND" = "yes"; then
44081   cat >>confdefs.h <<\_ACEOF
44082 #define wxUSE_SOUND 1
44083 _ACEOF
44084
44085   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44086 fi
44087
44088 if test "$WXGTK20" = 1; then
44089
44090
44091 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44092         if test -n "$ac_tool_prefix"; then
44093   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44094 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44095 echo "$as_me:$LINENO: checking for $ac_word" >&5
44096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44098   echo $ECHO_N "(cached) $ECHO_C" >&6
44099 else
44100   case $PKG_CONFIG in
44101   [\\/]* | ?:[\\/]*)
44102   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44103   ;;
44104   *)
44105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44106 for as_dir in $PATH
44107 do
44108   IFS=$as_save_IFS
44109   test -z "$as_dir" && as_dir=.
44110   for ac_exec_ext in '' $ac_executable_extensions; do
44111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44112     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44114     break 2
44115   fi
44116 done
44117 done
44118
44119   ;;
44120 esac
44121 fi
44122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44123
44124 if test -n "$PKG_CONFIG"; then
44125   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44126 echo "${ECHO_T}$PKG_CONFIG" >&6
44127 else
44128   echo "$as_me:$LINENO: result: no" >&5
44129 echo "${ECHO_T}no" >&6
44130 fi
44131
44132 fi
44133 if test -z "$ac_cv_path_PKG_CONFIG"; then
44134   ac_pt_PKG_CONFIG=$PKG_CONFIG
44135   # Extract the first word of "pkg-config", so it can be a program name with args.
44136 set dummy pkg-config; ac_word=$2
44137 echo "$as_me:$LINENO: checking for $ac_word" >&5
44138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44139 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44140   echo $ECHO_N "(cached) $ECHO_C" >&6
44141 else
44142   case $ac_pt_PKG_CONFIG in
44143   [\\/]* | ?:[\\/]*)
44144   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44145   ;;
44146   *)
44147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44148 for as_dir in $PATH
44149 do
44150   IFS=$as_save_IFS
44151   test -z "$as_dir" && as_dir=.
44152   for ac_exec_ext in '' $ac_executable_extensions; do
44153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44154     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44156     break 2
44157   fi
44158 done
44159 done
44160
44161   ;;
44162 esac
44163 fi
44164 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44165
44166 if test -n "$ac_pt_PKG_CONFIG"; then
44167   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44168 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
44169 else
44170   echo "$as_me:$LINENO: result: no" >&5
44171 echo "${ECHO_T}no" >&6
44172 fi
44173
44174   PKG_CONFIG=$ac_pt_PKG_CONFIG
44175 else
44176   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44177 fi
44178
44179 fi
44180 if test -n "$PKG_CONFIG"; then
44181         _pkg_min_version=0.9.0
44182         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44183 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
44184         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44185                 echo "$as_me:$LINENO: result: yes" >&5
44186 echo "${ECHO_T}yes" >&6
44187         else
44188                 echo "$as_me:$LINENO: result: no" >&5
44189 echo "${ECHO_T}no" >&6
44190                 PKG_CONFIG=""
44191         fi
44192
44193 fi
44194
44195     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44196         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44197
44198
44199 pkg_failed=no
44200 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44201 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
44202
44203 if test -n "$PKG_CONFIG"; then
44204     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44205         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44206     else
44207         if test -n "$PKG_CONFIG" && \
44208     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44209   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44210   ac_status=$?
44211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44212   (exit $ac_status); }; then
44213   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44214 else
44215   pkg_failed=yes
44216 fi
44217     fi
44218 else
44219         pkg_failed=untried
44220 fi
44221 if test -n "$PKG_CONFIG"; then
44222     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44223         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44224     else
44225         if test -n "$PKG_CONFIG" && \
44226     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44227   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44228   ac_status=$?
44229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230   (exit $ac_status); }; then
44231   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44232 else
44233   pkg_failed=yes
44234 fi
44235     fi
44236 else
44237         pkg_failed=untried
44238 fi
44239
44240
44241
44242 if test $pkg_failed = yes; then
44243
44244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44245         _pkg_short_errors_supported=yes
44246 else
44247         _pkg_short_errors_supported=no
44248 fi
44249         if test $_pkg_short_errors_supported = yes; then
44250                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44251         else
44252                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44253         fi
44254         # Put the nasty error message in config.log where it belongs
44255         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44256
44257
44258                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44259 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44260                         wxUSE_LIBGNOMEPRINT="no"
44261
44262
44263 elif test $pkg_failed = untried; then
44264
44265                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44266 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44267                         wxUSE_LIBGNOMEPRINT="no"
44268
44269
44270 else
44271         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44272         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44273         echo "$as_me:$LINENO: result: yes" >&5
44274 echo "${ECHO_T}yes" >&6
44275
44276                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44277                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44278                         cat >>confdefs.h <<\_ACEOF
44279 #define wxUSE_LIBGNOMEPRINT 1
44280 _ACEOF
44281
44282
44283 fi
44284         fi
44285     fi
44286
44287     if test "$wxUSE_MIMETYPE" = "yes" ; then
44288         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44289
44290
44291 pkg_failed=no
44292 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44293 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
44294
44295 if test -n "$PKG_CONFIG"; then
44296     if test -n "$GNOMEVFS_CFLAGS"; then
44297         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44298     else
44299         if test -n "$PKG_CONFIG" && \
44300     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44301   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44302   ac_status=$?
44303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304   (exit $ac_status); }; then
44305   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44306 else
44307   pkg_failed=yes
44308 fi
44309     fi
44310 else
44311         pkg_failed=untried
44312 fi
44313 if test -n "$PKG_CONFIG"; then
44314     if test -n "$GNOMEVFS_LIBS"; then
44315         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44316     else
44317         if test -n "$PKG_CONFIG" && \
44318     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44319   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44320   ac_status=$?
44321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44322   (exit $ac_status); }; then
44323   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44324 else
44325   pkg_failed=yes
44326 fi
44327     fi
44328 else
44329         pkg_failed=untried
44330 fi
44331
44332
44333
44334 if test $pkg_failed = yes; then
44335
44336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44337         _pkg_short_errors_supported=yes
44338 else
44339         _pkg_short_errors_supported=no
44340 fi
44341         if test $_pkg_short_errors_supported = yes; then
44342                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44343         else
44344                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44345         fi
44346         # Put the nasty error message in config.log where it belongs
44347         echo "$GNOMEVFS_PKG_ERRORS" >&5
44348
44349
44350                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44351 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44352                         wxUSE_LIBGNOMEVFS="no"
44353
44354
44355 elif test $pkg_failed = untried; then
44356
44357                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44358 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44359                         wxUSE_LIBGNOMEVFS="no"
44360
44361
44362 else
44363         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44364         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44365         echo "$as_me:$LINENO: result: yes" >&5
44366 echo "${ECHO_T}yes" >&6
44367
44368                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44369                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44370                         cat >>confdefs.h <<\_ACEOF
44371 #define wxUSE_LIBGNOMEVFS 1
44372 _ACEOF
44373
44374
44375 fi
44376         fi
44377     fi
44378
44379     if test "$wxUSE_LIBHILDON" = "yes" ; then
44380
44381 pkg_failed=no
44382 echo "$as_me:$LINENO: checking for HILDON" >&5
44383 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
44384
44385 if test -n "$PKG_CONFIG"; then
44386     if test -n "$HILDON_CFLAGS"; then
44387         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
44388     else
44389         if test -n "$PKG_CONFIG" && \
44390     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44391   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44392   ac_status=$?
44393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394   (exit $ac_status); }; then
44395   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
44396 else
44397   pkg_failed=yes
44398 fi
44399     fi
44400 else
44401         pkg_failed=untried
44402 fi
44403 if test -n "$PKG_CONFIG"; then
44404     if test -n "$HILDON_LIBS"; then
44405         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
44406     else
44407         if test -n "$PKG_CONFIG" && \
44408     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
44409   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
44410   ac_status=$?
44411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44412   (exit $ac_status); }; then
44413   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
44414 else
44415   pkg_failed=yes
44416 fi
44417     fi
44418 else
44419         pkg_failed=untried
44420 fi
44421
44422
44423
44424 if test $pkg_failed = yes; then
44425
44426 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44427         _pkg_short_errors_supported=yes
44428 else
44429         _pkg_short_errors_supported=no
44430 fi
44431         if test $_pkg_short_errors_supported = yes; then
44432                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44433         else
44434                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
44435         fi
44436         # Put the nasty error message in config.log where it belongs
44437         echo "$HILDON_PKG_ERRORS" >&5
44438
44439
44440                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44441 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44442                         wxUSE_LIBHILDON="no"
44443
44444
44445 elif test $pkg_failed = untried; then
44446
44447                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
44448 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
44449                         wxUSE_LIBHILDON="no"
44450
44451
44452 else
44453         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
44454         HILDON_LIBS=$pkg_cv_HILDON_LIBS
44455         echo "$as_me:$LINENO: result: yes" >&5
44456 echo "${ECHO_T}yes" >&6
44457
44458                 EXTRALIBS_HILDON="$HILDON_LIBS"
44459                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
44460                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
44461                 cat >>confdefs.h <<\_ACEOF
44462 #define wxUSE_LIBHILDON 1
44463 _ACEOF
44464
44465
44466 fi
44467     fi
44468 fi
44469
44470 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
44471   cat >>confdefs.h <<\_ACEOF
44472 #define wxUSE_CMDLINE_PARSER 1
44473 _ACEOF
44474
44475 fi
44476
44477 if test "$wxUSE_STOPWATCH" = "yes"; then
44478   cat >>confdefs.h <<\_ACEOF
44479 #define wxUSE_STOPWATCH 1
44480 _ACEOF
44481
44482 fi
44483
44484 if test "$wxUSE_DATETIME" = "yes"; then
44485   cat >>confdefs.h <<\_ACEOF
44486 #define wxUSE_DATETIME 1
44487 _ACEOF
44488
44489 fi
44490
44491 if test "$wxUSE_FILE" = "yes"; then
44492   cat >>confdefs.h <<\_ACEOF
44493 #define wxUSE_FILE 1
44494 _ACEOF
44495
44496 fi
44497
44498 if test "$wxUSE_FFILE" = "yes"; then
44499   cat >>confdefs.h <<\_ACEOF
44500 #define wxUSE_FFILE 1
44501 _ACEOF
44502
44503 fi
44504
44505 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
44506   if test "$wxUSE_STREAMS" != yes; then
44507     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
44508 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
44509     wxUSE_ARCHIVE_STREAMS=no
44510   else
44511     cat >>confdefs.h <<\_ACEOF
44512 #define wxUSE_ARCHIVE_STREAMS 1
44513 _ACEOF
44514
44515   fi
44516 fi
44517
44518 if test "$wxUSE_ZIPSTREAM" = "yes"; then
44519   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44520     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
44521 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
44522   elif test "$wxUSE_ZLIB" = "no"; then
44523     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
44524 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
44525   else
44526     cat >>confdefs.h <<\_ACEOF
44527 #define wxUSE_ZIPSTREAM 1
44528 _ACEOF
44529
44530   fi
44531 fi
44532
44533 if test "$wxUSE_TARSTREAM" = "yes"; then
44534   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
44535     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
44536 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
44537   else
44538     cat >>confdefs.h <<\_ACEOF
44539 #define wxUSE_TARSTREAM 1
44540 _ACEOF
44541
44542   fi
44543 fi
44544
44545 if test "$wxUSE_FILESYSTEM" = "yes"; then
44546   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
44547     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
44548 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
44549     wxUSE_FILESYSTEM=no
44550   else
44551     cat >>confdefs.h <<\_ACEOF
44552 #define wxUSE_FILESYSTEM 1
44553 _ACEOF
44554
44555   fi
44556 fi
44557
44558 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
44559   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
44560     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
44561 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
44562   else
44563     cat >>confdefs.h <<\_ACEOF
44564 #define wxUSE_FS_ARCHIVE 1
44565 _ACEOF
44566
44567   fi
44568 fi
44569
44570 if test "$wxUSE_FS_ZIP" = "yes"; then
44571   if test "$wxUSE_FS_ARCHIVE" != yes; then
44572     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
44573 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
44574   else
44575     cat >>confdefs.h <<\_ACEOF
44576 #define wxUSE_FS_ZIP 1
44577 _ACEOF
44578
44579   fi
44580 fi
44581
44582 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44583   if test "$USE_UNIX" != 1; then
44584     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
44585 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
44586     wxUSE_ON_FATAL_EXCEPTION=no
44587   else
44588     cat >>confdefs.h <<\_ACEOF
44589 #define wxUSE_ON_FATAL_EXCEPTION 1
44590 _ACEOF
44591
44592   fi
44593 fi
44594
44595 if test "$wxUSE_STACKWALKER" = "yes"; then
44596     cat >>confdefs.h <<\_ACEOF
44597 #define wxUSE_STACKWALKER 1
44598 _ACEOF
44599
44600 fi
44601
44602 if test "$wxUSE_DEBUGREPORT" = "yes"; then
44603     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
44604         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
44605 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
44606         wxUSE_DEBUGREPORT=no
44607     else
44608         cat >>confdefs.h <<\_ACEOF
44609 #define wxUSE_DEBUGREPORT 1
44610 _ACEOF
44611
44612         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
44613             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
44614         fi
44615     fi
44616 fi
44617
44618 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
44619   cat >>confdefs.h <<\_ACEOF
44620 #define wxUSE_SNGLINST_CHECKER 1
44621 _ACEOF
44622
44623 fi
44624
44625 if test "$wxUSE_BUSYINFO" = "yes"; then
44626   cat >>confdefs.h <<\_ACEOF
44627 #define wxUSE_BUSYINFO 1
44628 _ACEOF
44629
44630 fi
44631
44632 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
44633   cat >>confdefs.h <<\_ACEOF
44634 #define wxUSE_STD_IOSTREAM 1
44635 _ACEOF
44636
44637 fi
44638
44639 if test "$wxUSE_STD_STRING" = "yes"; then
44640   cat >>confdefs.h <<\_ACEOF
44641 #define wxUSE_STD_STRING 1
44642 _ACEOF
44643
44644 fi
44645
44646 if test "$wxUSE_STDPATHS" = "yes"; then
44647   cat >>confdefs.h <<\_ACEOF
44648 #define wxUSE_STDPATHS 1
44649 _ACEOF
44650
44651 fi
44652
44653 if test "$wxUSE_TEXTBUFFER" = "yes"; then
44654     cat >>confdefs.h <<\_ACEOF
44655 #define wxUSE_TEXTBUFFER 1
44656 _ACEOF
44657
44658 fi
44659
44660 if test "$wxUSE_TEXTFILE" = "yes"; then
44661   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
44662     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
44663 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
44664   else
44665     cat >>confdefs.h <<\_ACEOF
44666 #define wxUSE_TEXTFILE 1
44667 _ACEOF
44668
44669   fi
44670 fi
44671
44672 if test "$wxUSE_CONFIG" = "yes" ; then
44673   if test "$wxUSE_TEXTFILE" != "yes"; then
44674     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
44675 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
44676   else
44677     cat >>confdefs.h <<\_ACEOF
44678 #define wxUSE_CONFIG 1
44679 _ACEOF
44680
44681     cat >>confdefs.h <<\_ACEOF
44682 #define wxUSE_CONFIG_NATIVE 1
44683 _ACEOF
44684
44685     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
44686   fi
44687 fi
44688
44689 if test "$wxUSE_INTL" = "yes" ; then
44690   if test "$wxUSE_FILE" != "yes"; then
44691     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
44692 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
44693   else
44694     cat >>confdefs.h <<\_ACEOF
44695 #define wxUSE_INTL 1
44696 _ACEOF
44697
44698     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
44699     GUIDIST="$GUIDIST INTL_DIST"
44700   fi
44701 fi
44702
44703 if test "$wxUSE_LOG" = "yes"; then
44704   cat >>confdefs.h <<\_ACEOF
44705 #define wxUSE_LOG 1
44706 _ACEOF
44707
44708
44709     if test "$wxUSE_LOGGUI" = "yes"; then
44710       cat >>confdefs.h <<\_ACEOF
44711 #define wxUSE_LOGGUI 1
44712 _ACEOF
44713
44714     fi
44715
44716     if test "$wxUSE_LOGWINDOW" = "yes"; then
44717       cat >>confdefs.h <<\_ACEOF
44718 #define wxUSE_LOGWINDOW 1
44719 _ACEOF
44720
44721     fi
44722
44723     if test "$wxUSE_LOGDIALOG" = "yes"; then
44724       cat >>confdefs.h <<\_ACEOF
44725 #define wxUSE_LOG_DIALOG 1
44726 _ACEOF
44727
44728     fi
44729
44730         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
44731 fi
44732
44733 if test "$wxUSE_LONGLONG" = "yes"; then
44734   cat >>confdefs.h <<\_ACEOF
44735 #define wxUSE_LONGLONG 1
44736 _ACEOF
44737
44738 fi
44739
44740 if test "$wxUSE_GEOMETRY" = "yes"; then
44741   cat >>confdefs.h <<\_ACEOF
44742 #define wxUSE_GEOMETRY 1
44743 _ACEOF
44744
44745 fi
44746
44747 if test "$wxUSE_BASE64" = "yes"; then
44748   cat >>confdefs.h <<\_ACEOF
44749 #define wxUSE_BASE64 1
44750 _ACEOF
44751
44752 fi
44753
44754 if test "$wxUSE_STREAMS" = "yes" ; then
44755   cat >>confdefs.h <<\_ACEOF
44756 #define wxUSE_STREAMS 1
44757 _ACEOF
44758
44759 fi
44760
44761 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44762   cat >>confdefs.h <<\_ACEOF
44763 #define wxUSE_PRINTF_POS_PARAMS 1
44764 _ACEOF
44765
44766 fi
44767
44768 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
44769   cat >>confdefs.h <<\_ACEOF
44770 #define wxUSE_OBJC_UNIQUIFYING 1
44771 _ACEOF
44772
44773 fi
44774
44775
44776 if test "$wxUSE_DATETIME" = "yes"; then
44777         echo "$as_me:$LINENO: checking for strptime" >&5
44778 echo $ECHO_N "checking for strptime... $ECHO_C" >&6
44779 if test "${ac_cv_func_strptime+set}" = set; then
44780   echo $ECHO_N "(cached) $ECHO_C" >&6
44781 else
44782   cat >conftest.$ac_ext <<_ACEOF
44783 /* confdefs.h.  */
44784 _ACEOF
44785 cat confdefs.h >>conftest.$ac_ext
44786 cat >>conftest.$ac_ext <<_ACEOF
44787 /* end confdefs.h.  */
44788 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
44789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44790 #define strptime innocuous_strptime
44791
44792 /* System header to define __stub macros and hopefully few prototypes,
44793     which can conflict with char strptime (); below.
44794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44795     <limits.h> exists even on freestanding compilers.  */
44796
44797 #ifdef __STDC__
44798 # include <limits.h>
44799 #else
44800 # include <assert.h>
44801 #endif
44802
44803 #undef strptime
44804
44805 /* Override any gcc2 internal prototype to avoid an error.  */
44806 #ifdef __cplusplus
44807 extern "C"
44808 {
44809 #endif
44810 /* We use char because int might match the return type of a gcc2
44811    builtin and then its argument prototype would still apply.  */
44812 char strptime ();
44813 /* The GNU C library defines this for functions which it implements
44814     to always fail with ENOSYS.  Some functions are actually named
44815     something starting with __ and the normal name is an alias.  */
44816 #if defined (__stub_strptime) || defined (__stub___strptime)
44817 choke me
44818 #else
44819 char (*f) () = strptime;
44820 #endif
44821 #ifdef __cplusplus
44822 }
44823 #endif
44824
44825 int
44826 main ()
44827 {
44828 return f != strptime;
44829   ;
44830   return 0;
44831 }
44832 _ACEOF
44833 rm -f conftest.$ac_objext conftest$ac_exeext
44834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44835   (eval $ac_link) 2>conftest.er1
44836   ac_status=$?
44837   grep -v '^ *+' conftest.er1 >conftest.err
44838   rm -f conftest.er1
44839   cat conftest.err >&5
44840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44841   (exit $ac_status); } &&
44842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44844   (eval $ac_try) 2>&5
44845   ac_status=$?
44846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44847   (exit $ac_status); }; } &&
44848          { ac_try='test -s conftest$ac_exeext'
44849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44850   (eval $ac_try) 2>&5
44851   ac_status=$?
44852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44853   (exit $ac_status); }; }; then
44854   ac_cv_func_strptime=yes
44855 else
44856   echo "$as_me: failed program was:" >&5
44857 sed 's/^/| /' conftest.$ac_ext >&5
44858
44859 ac_cv_func_strptime=no
44860 fi
44861 rm -f conftest.err conftest.$ac_objext \
44862       conftest$ac_exeext conftest.$ac_ext
44863 fi
44864 echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
44865 echo "${ECHO_T}$ac_cv_func_strptime" >&6
44866
44867     if test "$ac_cv_func_strptime" = "yes"; then
44868         echo "$as_me:$LINENO: checking for strptime declaration" >&5
44869 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
44870 if test "${wx_cv_func_strptime_decl+set}" = set; then
44871   echo $ECHO_N "(cached) $ECHO_C" >&6
44872 else
44873
44874                 ac_ext=cc
44875 ac_cpp='$CXXCPP $CPPFLAGS'
44876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44879
44880                 cat >conftest.$ac_ext <<_ACEOF
44881 /* confdefs.h.  */
44882 _ACEOF
44883 cat confdefs.h >>conftest.$ac_ext
44884 cat >>conftest.$ac_ext <<_ACEOF
44885 /* end confdefs.h.  */
44886
44887                         #include <time.h>
44888
44889 int
44890 main ()
44891 {
44892
44893                         struct tm t;
44894                         strptime("foo", "bar", &t);
44895
44896   ;
44897   return 0;
44898 }
44899 _ACEOF
44900 rm -f conftest.$ac_objext
44901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44902   (eval $ac_compile) 2>conftest.er1
44903   ac_status=$?
44904   grep -v '^ *+' conftest.er1 >conftest.err
44905   rm -f conftest.er1
44906   cat conftest.err >&5
44907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44908   (exit $ac_status); } &&
44909          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44911   (eval $ac_try) 2>&5
44912   ac_status=$?
44913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44914   (exit $ac_status); }; } &&
44915          { ac_try='test -s conftest.$ac_objext'
44916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44917   (eval $ac_try) 2>&5
44918   ac_status=$?
44919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44920   (exit $ac_status); }; }; then
44921   wx_cv_func_strptime_decl=yes
44922 else
44923   echo "$as_me: failed program was:" >&5
44924 sed 's/^/| /' conftest.$ac_ext >&5
44925
44926 wx_cv_func_strptime_decl=no
44927
44928 fi
44929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44930                 ac_ext=c
44931 ac_cpp='$CPP $CPPFLAGS'
44932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44935
44936
44937
44938 fi
44939 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
44940 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
44941     fi
44942     if test "$wx_cv_func_strptime_decl" = "yes"; then
44943         cat >>confdefs.h <<\_ACEOF
44944 #define HAVE_STRPTIME_DECL 1
44945 _ACEOF
44946
44947     else
44948         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
44949     fi
44950     if test "$ac_cv_func_strptime" = "yes"; then
44951                                         echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
44952 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6
44953 if test "${wx_cv_func_strptime_ok+set}" = set; then
44954   echo $ECHO_N "(cached) $ECHO_C" >&6
44955 else
44956   if test "$cross_compiling" = yes; then
44957                   wx_cv_func_strptime_ok=no
44958
44959 else
44960   cat >conftest.$ac_ext <<_ACEOF
44961
44962                     #include <stdlib.h>
44963                     #include <time.h>
44964                     #include "confdefs.h"
44965
44966                     $wx_strptime_decl
44967
44968                     int main()
44969                     {
44970                         struct tm t;
44971                         return !!strptime("", "%x", &t);
44972                     }
44973
44974 _ACEOF
44975 rm -f conftest$ac_exeext
44976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44977   (eval $ac_link) 2>&5
44978   ac_status=$?
44979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44982   (eval $ac_try) 2>&5
44983   ac_status=$?
44984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44985   (exit $ac_status); }; }; then
44986   wx_cv_func_strptime_ok=yes
44987 else
44988   echo "$as_me: program exited with status $ac_status" >&5
44989 echo "$as_me: failed program was:" >&5
44990 sed 's/^/| /' conftest.$ac_ext >&5
44991
44992 ( exit $ac_status )
44993 wx_cv_func_strptime_ok=no
44994 fi
44995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44996 fi
44997
44998 fi
44999 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
45000 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6
45001
45002         if test "$wx_cv_func_strptime_ok" = "yes"; then
45003             cat >>confdefs.h <<\_ACEOF
45004 #define HAVE_STRPTIME 1
45005 _ACEOF
45006
45007         fi
45008     fi
45009
45010             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
45011 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
45012 if test "${wx_cv_var_timezone+set}" = set; then
45013   echo $ECHO_N "(cached) $ECHO_C" >&6
45014 else
45015
45016                         ac_ext=cc
45017 ac_cpp='$CXXCPP $CPPFLAGS'
45018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45021
45022                         cat >conftest.$ac_ext <<_ACEOF
45023 /* confdefs.h.  */
45024 _ACEOF
45025 cat confdefs.h >>conftest.$ac_ext
45026 cat >>conftest.$ac_ext <<_ACEOF
45027 /* end confdefs.h.  */
45028
45029                                 #include <time.h>
45030
45031 int
45032 main ()
45033 {
45034
45035                                 int tz;
45036                                 tz = timezone;
45037
45038   ;
45039   return 0;
45040 }
45041 _ACEOF
45042 rm -f conftest.$ac_objext
45043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45044   (eval $ac_compile) 2>conftest.er1
45045   ac_status=$?
45046   grep -v '^ *+' conftest.er1 >conftest.err
45047   rm -f conftest.er1
45048   cat conftest.err >&5
45049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45050   (exit $ac_status); } &&
45051          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45053   (eval $ac_try) 2>&5
45054   ac_status=$?
45055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056   (exit $ac_status); }; } &&
45057          { ac_try='test -s conftest.$ac_objext'
45058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45059   (eval $ac_try) 2>&5
45060   ac_status=$?
45061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45062   (exit $ac_status); }; }; then
45063
45064                                 wx_cv_var_timezone=timezone
45065
45066 else
45067   echo "$as_me: failed program was:" >&5
45068 sed 's/^/| /' conftest.$ac_ext >&5
45069
45070
45071                                 cat >conftest.$ac_ext <<_ACEOF
45072 /* confdefs.h.  */
45073 _ACEOF
45074 cat confdefs.h >>conftest.$ac_ext
45075 cat >>conftest.$ac_ext <<_ACEOF
45076 /* end confdefs.h.  */
45077
45078                                         #include <time.h>
45079
45080 int
45081 main ()
45082 {
45083
45084                                         int tz;
45085                                         tz = _timezone;
45086
45087   ;
45088   return 0;
45089 }
45090 _ACEOF
45091 rm -f conftest.$ac_objext
45092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45093   (eval $ac_compile) 2>conftest.er1
45094   ac_status=$?
45095   grep -v '^ *+' conftest.er1 >conftest.err
45096   rm -f conftest.er1
45097   cat conftest.err >&5
45098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099   (exit $ac_status); } &&
45100          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45102   (eval $ac_try) 2>&5
45103   ac_status=$?
45104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45105   (exit $ac_status); }; } &&
45106          { ac_try='test -s conftest.$ac_objext'
45107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45108   (eval $ac_try) 2>&5
45109   ac_status=$?
45110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45111   (exit $ac_status); }; }; then
45112
45113                                         wx_cv_var_timezone=_timezone
45114
45115 else
45116   echo "$as_me: failed program was:" >&5
45117 sed 's/^/| /' conftest.$ac_ext >&5
45118
45119
45120                                         cat >conftest.$ac_ext <<_ACEOF
45121 /* confdefs.h.  */
45122 _ACEOF
45123 cat confdefs.h >>conftest.$ac_ext
45124 cat >>conftest.$ac_ext <<_ACEOF
45125 /* end confdefs.h.  */
45126
45127                                                 #include <time.h>
45128
45129 int
45130 main ()
45131 {
45132
45133                                                 int tz;
45134                                                 tz = __timezone;
45135
45136   ;
45137   return 0;
45138 }
45139 _ACEOF
45140 rm -f conftest.$ac_objext
45141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45142   (eval $ac_compile) 2>conftest.er1
45143   ac_status=$?
45144   grep -v '^ *+' conftest.er1 >conftest.err
45145   rm -f conftest.er1
45146   cat conftest.err >&5
45147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45148   (exit $ac_status); } &&
45149          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45151   (eval $ac_try) 2>&5
45152   ac_status=$?
45153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45154   (exit $ac_status); }; } &&
45155          { ac_try='test -s conftest.$ac_objext'
45156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45157   (eval $ac_try) 2>&5
45158   ac_status=$?
45159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45160   (exit $ac_status); }; }; then
45161
45162                                                 wx_cv_var_timezone=__timezone
45163
45164 else
45165   echo "$as_me: failed program was:" >&5
45166 sed 's/^/| /' conftest.$ac_ext >&5
45167
45168
45169                                                 if test "$USE_DOS" = 0 ; then
45170                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
45171 echo "$as_me: WARNING: no timezone variable" >&2;}
45172                                                 fi
45173
45174
45175 fi
45176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45177
45178
45179 fi
45180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45181
45182
45183 fi
45184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45185                         ac_ext=c
45186 ac_cpp='$CPP $CPPFLAGS'
45187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45190
45191
45192
45193 fi
45194 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
45195 echo "${ECHO_T}$wx_cv_var_timezone" >&6
45196
45197         if test "x$wx_cv_var_timezone" != x ; then
45198         cat >>confdefs.h <<_ACEOF
45199 #define WX_TIMEZONE $wx_cv_var_timezone
45200 _ACEOF
45201
45202     fi
45203
45204
45205 for ac_func in localtime
45206 do
45207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45208 echo "$as_me:$LINENO: checking for $ac_func" >&5
45209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45210 if eval "test \"\${$as_ac_var+set}\" = set"; then
45211   echo $ECHO_N "(cached) $ECHO_C" >&6
45212 else
45213   cat >conftest.$ac_ext <<_ACEOF
45214 /* confdefs.h.  */
45215 _ACEOF
45216 cat confdefs.h >>conftest.$ac_ext
45217 cat >>conftest.$ac_ext <<_ACEOF
45218 /* end confdefs.h.  */
45219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45221 #define $ac_func innocuous_$ac_func
45222
45223 /* System header to define __stub macros and hopefully few prototypes,
45224     which can conflict with char $ac_func (); below.
45225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45226     <limits.h> exists even on freestanding compilers.  */
45227
45228 #ifdef __STDC__
45229 # include <limits.h>
45230 #else
45231 # include <assert.h>
45232 #endif
45233
45234 #undef $ac_func
45235
45236 /* Override any gcc2 internal prototype to avoid an error.  */
45237 #ifdef __cplusplus
45238 extern "C"
45239 {
45240 #endif
45241 /* We use char because int might match the return type of a gcc2
45242    builtin and then its argument prototype would still apply.  */
45243 char $ac_func ();
45244 /* The GNU C library defines this for functions which it implements
45245     to always fail with ENOSYS.  Some functions are actually named
45246     something starting with __ and the normal name is an alias.  */
45247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45248 choke me
45249 #else
45250 char (*f) () = $ac_func;
45251 #endif
45252 #ifdef __cplusplus
45253 }
45254 #endif
45255
45256 int
45257 main ()
45258 {
45259 return f != $ac_func;
45260   ;
45261   return 0;
45262 }
45263 _ACEOF
45264 rm -f conftest.$ac_objext conftest$ac_exeext
45265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45266   (eval $ac_link) 2>conftest.er1
45267   ac_status=$?
45268   grep -v '^ *+' conftest.er1 >conftest.err
45269   rm -f conftest.er1
45270   cat conftest.err >&5
45271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45272   (exit $ac_status); } &&
45273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45275   (eval $ac_try) 2>&5
45276   ac_status=$?
45277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45278   (exit $ac_status); }; } &&
45279          { ac_try='test -s conftest$ac_exeext'
45280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45281   (eval $ac_try) 2>&5
45282   ac_status=$?
45283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45284   (exit $ac_status); }; }; then
45285   eval "$as_ac_var=yes"
45286 else
45287   echo "$as_me: failed program was:" >&5
45288 sed 's/^/| /' conftest.$ac_ext >&5
45289
45290 eval "$as_ac_var=no"
45291 fi
45292 rm -f conftest.err conftest.$ac_objext \
45293       conftest$ac_exeext conftest.$ac_ext
45294 fi
45295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45297 if test `eval echo '${'$as_ac_var'}'` = yes; then
45298   cat >>confdefs.h <<_ACEOF
45299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45300 _ACEOF
45301
45302 fi
45303 done
45304
45305
45306     if test "$ac_cv_func_localtime" = "yes"; then
45307         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
45308 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
45309 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
45310   echo $ECHO_N "(cached) $ECHO_C" >&6
45311 else
45312
45313             cat >conftest.$ac_ext <<_ACEOF
45314 /* confdefs.h.  */
45315 _ACEOF
45316 cat confdefs.h >>conftest.$ac_ext
45317 cat >>conftest.$ac_ext <<_ACEOF
45318 /* end confdefs.h.  */
45319
45320                     #include <time.h>
45321
45322 int
45323 main ()
45324 {
45325
45326                     struct tm tm;
45327                     tm.tm_gmtoff++;
45328
45329   ;
45330   return 0;
45331 }
45332 _ACEOF
45333 rm -f conftest.$ac_objext
45334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45335   (eval $ac_compile) 2>conftest.er1
45336   ac_status=$?
45337   grep -v '^ *+' conftest.er1 >conftest.err
45338   rm -f conftest.er1
45339   cat conftest.err >&5
45340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341   (exit $ac_status); } &&
45342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45344   (eval $ac_try) 2>&5
45345   ac_status=$?
45346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45347   (exit $ac_status); }; } &&
45348          { ac_try='test -s conftest.$ac_objext'
45349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45350   (eval $ac_try) 2>&5
45351   ac_status=$?
45352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45353   (exit $ac_status); }; }; then
45354
45355                     wx_cv_struct_tm_has_gmtoff=yes
45356
45357 else
45358   echo "$as_me: failed program was:" >&5
45359 sed 's/^/| /' conftest.$ac_ext >&5
45360
45361 wx_cv_struct_tm_has_gmtoff=no
45362
45363 fi
45364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45365
45366 fi
45367 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
45368 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
45369     fi
45370
45371     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
45372         cat >>confdefs.h <<\_ACEOF
45373 #define WX_GMTOFF_IN_TM 1
45374 _ACEOF
45375
45376     fi
45377
45378
45379
45380 for ac_func in gettimeofday ftime
45381 do
45382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45383 echo "$as_me:$LINENO: checking for $ac_func" >&5
45384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45385 if eval "test \"\${$as_ac_var+set}\" = set"; then
45386   echo $ECHO_N "(cached) $ECHO_C" >&6
45387 else
45388   cat >conftest.$ac_ext <<_ACEOF
45389 /* confdefs.h.  */
45390 _ACEOF
45391 cat confdefs.h >>conftest.$ac_ext
45392 cat >>conftest.$ac_ext <<_ACEOF
45393 /* end confdefs.h.  */
45394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45396 #define $ac_func innocuous_$ac_func
45397
45398 /* System header to define __stub macros and hopefully few prototypes,
45399     which can conflict with char $ac_func (); below.
45400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45401     <limits.h> exists even on freestanding compilers.  */
45402
45403 #ifdef __STDC__
45404 # include <limits.h>
45405 #else
45406 # include <assert.h>
45407 #endif
45408
45409 #undef $ac_func
45410
45411 /* Override any gcc2 internal prototype to avoid an error.  */
45412 #ifdef __cplusplus
45413 extern "C"
45414 {
45415 #endif
45416 /* We use char because int might match the return type of a gcc2
45417    builtin and then its argument prototype would still apply.  */
45418 char $ac_func ();
45419 /* The GNU C library defines this for functions which it implements
45420     to always fail with ENOSYS.  Some functions are actually named
45421     something starting with __ and the normal name is an alias.  */
45422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45423 choke me
45424 #else
45425 char (*f) () = $ac_func;
45426 #endif
45427 #ifdef __cplusplus
45428 }
45429 #endif
45430
45431 int
45432 main ()
45433 {
45434 return f != $ac_func;
45435   ;
45436   return 0;
45437 }
45438 _ACEOF
45439 rm -f conftest.$ac_objext conftest$ac_exeext
45440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45441   (eval $ac_link) 2>conftest.er1
45442   ac_status=$?
45443   grep -v '^ *+' conftest.er1 >conftest.err
45444   rm -f conftest.er1
45445   cat conftest.err >&5
45446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45447   (exit $ac_status); } &&
45448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45450   (eval $ac_try) 2>&5
45451   ac_status=$?
45452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45453   (exit $ac_status); }; } &&
45454          { ac_try='test -s conftest$ac_exeext'
45455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45456   (eval $ac_try) 2>&5
45457   ac_status=$?
45458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45459   (exit $ac_status); }; }; then
45460   eval "$as_ac_var=yes"
45461 else
45462   echo "$as_me: failed program was:" >&5
45463 sed 's/^/| /' conftest.$ac_ext >&5
45464
45465 eval "$as_ac_var=no"
45466 fi
45467 rm -f conftest.err conftest.$ac_objext \
45468       conftest$ac_exeext conftest.$ac_ext
45469 fi
45470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45472 if test `eval echo '${'$as_ac_var'}'` = yes; then
45473   cat >>confdefs.h <<_ACEOF
45474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45475 _ACEOF
45476  break
45477 fi
45478 done
45479
45480
45481     if test "$ac_cv_func_gettimeofday" = "yes"; then
45482         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45483 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
45484 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45485   echo $ECHO_N "(cached) $ECHO_C" >&6
45486 else
45487
45488                         cat >conftest.$ac_ext <<_ACEOF
45489 /* confdefs.h.  */
45490 _ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h.  */
45494
45495                     #include <sys/time.h>
45496                     #include <unistd.h>
45497
45498 int
45499 main ()
45500 {
45501
45502                     struct timeval tv;
45503                     gettimeofday(&tv, NULL);
45504
45505   ;
45506   return 0;
45507 }
45508 _ACEOF
45509 rm -f conftest.$ac_objext
45510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45511   (eval $ac_compile) 2>conftest.er1
45512   ac_status=$?
45513   grep -v '^ *+' conftest.er1 >conftest.err
45514   rm -f conftest.er1
45515   cat conftest.err >&5
45516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45517   (exit $ac_status); } &&
45518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45520   (eval $ac_try) 2>&5
45521   ac_status=$?
45522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45523   (exit $ac_status); }; } &&
45524          { ac_try='test -s conftest.$ac_objext'
45525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45526   (eval $ac_try) 2>&5
45527   ac_status=$?
45528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529   (exit $ac_status); }; }; then
45530   wx_cv_func_gettimeofday_has_2_args=yes
45531 else
45532   echo "$as_me: failed program was:" >&5
45533 sed 's/^/| /' conftest.$ac_ext >&5
45534
45535 cat >conftest.$ac_ext <<_ACEOF
45536 /* confdefs.h.  */
45537 _ACEOF
45538 cat confdefs.h >>conftest.$ac_ext
45539 cat >>conftest.$ac_ext <<_ACEOF
45540 /* end confdefs.h.  */
45541
45542                         #include <sys/time.h>
45543                         #include <unistd.h>
45544
45545 int
45546 main ()
45547 {
45548
45549                         struct timeval tv;
45550                         gettimeofday(&tv);
45551
45552   ;
45553   return 0;
45554 }
45555 _ACEOF
45556 rm -f conftest.$ac_objext
45557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45558   (eval $ac_compile) 2>conftest.er1
45559   ac_status=$?
45560   grep -v '^ *+' conftest.er1 >conftest.err
45561   rm -f conftest.er1
45562   cat conftest.err >&5
45563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45564   (exit $ac_status); } &&
45565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45567   (eval $ac_try) 2>&5
45568   ac_status=$?
45569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45570   (exit $ac_status); }; } &&
45571          { ac_try='test -s conftest.$ac_objext'
45572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45573   (eval $ac_try) 2>&5
45574   ac_status=$?
45575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45576   (exit $ac_status); }; }; then
45577   wx_cv_func_gettimeofday_has_2_args=no
45578 else
45579   echo "$as_me: failed program was:" >&5
45580 sed 's/^/| /' conftest.$ac_ext >&5
45581
45582
45583                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45584 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45585                         wx_cv_func_gettimeofday_has_2_args=unknown
45586
45587
45588 fi
45589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45590
45591 fi
45592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45593
45594 fi
45595 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45596 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
45597
45598         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45599             cat >>confdefs.h <<\_ACEOF
45600 #define WX_GETTIMEOFDAY_NO_TZ 1
45601 _ACEOF
45602
45603         fi
45604     fi
45605
45606     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
45607 fi
45608
45609
45610 if test "$wxUSE_SOCKETS" = "yes"; then
45611     if test "$wxUSE_MGL" = "1"; then
45612         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
45613 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
45614         wxUSE_SOCKETS="no"
45615     fi
45616 fi
45617
45618 if test "$wxUSE_SOCKETS" = "yes"; then
45619         if test "$TOOLKIT" != "MSW"; then
45620                 echo "$as_me:$LINENO: checking for socket" >&5
45621 echo $ECHO_N "checking for socket... $ECHO_C" >&6
45622 if test "${ac_cv_func_socket+set}" = set; then
45623   echo $ECHO_N "(cached) $ECHO_C" >&6
45624 else
45625   cat >conftest.$ac_ext <<_ACEOF
45626 /* confdefs.h.  */
45627 _ACEOF
45628 cat confdefs.h >>conftest.$ac_ext
45629 cat >>conftest.$ac_ext <<_ACEOF
45630 /* end confdefs.h.  */
45631 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
45632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45633 #define socket innocuous_socket
45634
45635 /* System header to define __stub macros and hopefully few prototypes,
45636     which can conflict with char socket (); below.
45637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45638     <limits.h> exists even on freestanding compilers.  */
45639
45640 #ifdef __STDC__
45641 # include <limits.h>
45642 #else
45643 # include <assert.h>
45644 #endif
45645
45646 #undef socket
45647
45648 /* Override any gcc2 internal prototype to avoid an error.  */
45649 #ifdef __cplusplus
45650 extern "C"
45651 {
45652 #endif
45653 /* We use char because int might match the return type of a gcc2
45654    builtin and then its argument prototype would still apply.  */
45655 char socket ();
45656 /* The GNU C library defines this for functions which it implements
45657     to always fail with ENOSYS.  Some functions are actually named
45658     something starting with __ and the normal name is an alias.  */
45659 #if defined (__stub_socket) || defined (__stub___socket)
45660 choke me
45661 #else
45662 char (*f) () = socket;
45663 #endif
45664 #ifdef __cplusplus
45665 }
45666 #endif
45667
45668 int
45669 main ()
45670 {
45671 return f != socket;
45672   ;
45673   return 0;
45674 }
45675 _ACEOF
45676 rm -f conftest.$ac_objext conftest$ac_exeext
45677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45678   (eval $ac_link) 2>conftest.er1
45679   ac_status=$?
45680   grep -v '^ *+' conftest.er1 >conftest.err
45681   rm -f conftest.er1
45682   cat conftest.err >&5
45683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45684   (exit $ac_status); } &&
45685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45687   (eval $ac_try) 2>&5
45688   ac_status=$?
45689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45690   (exit $ac_status); }; } &&
45691          { ac_try='test -s conftest$ac_exeext'
45692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45693   (eval $ac_try) 2>&5
45694   ac_status=$?
45695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45696   (exit $ac_status); }; }; then
45697   ac_cv_func_socket=yes
45698 else
45699   echo "$as_me: failed program was:" >&5
45700 sed 's/^/| /' conftest.$ac_ext >&5
45701
45702 ac_cv_func_socket=no
45703 fi
45704 rm -f conftest.err conftest.$ac_objext \
45705       conftest$ac_exeext conftest.$ac_ext
45706 fi
45707 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
45708 echo "${ECHO_T}$ac_cv_func_socket" >&6
45709 if test $ac_cv_func_socket = yes; then
45710   :
45711 else
45712
45713                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
45714 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
45715 if test "${ac_cv_lib_socket_socket+set}" = set; then
45716   echo $ECHO_N "(cached) $ECHO_C" >&6
45717 else
45718   ac_check_lib_save_LIBS=$LIBS
45719 LIBS="-lsocket  $LIBS"
45720 cat >conftest.$ac_ext <<_ACEOF
45721 /* confdefs.h.  */
45722 _ACEOF
45723 cat confdefs.h >>conftest.$ac_ext
45724 cat >>conftest.$ac_ext <<_ACEOF
45725 /* end confdefs.h.  */
45726
45727 /* Override any gcc2 internal prototype to avoid an error.  */
45728 #ifdef __cplusplus
45729 extern "C"
45730 #endif
45731 /* We use char because int might match the return type of a gcc2
45732    builtin and then its argument prototype would still apply.  */
45733 char socket ();
45734 int
45735 main ()
45736 {
45737 socket ();
45738   ;
45739   return 0;
45740 }
45741 _ACEOF
45742 rm -f conftest.$ac_objext conftest$ac_exeext
45743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45744   (eval $ac_link) 2>conftest.er1
45745   ac_status=$?
45746   grep -v '^ *+' conftest.er1 >conftest.err
45747   rm -f conftest.er1
45748   cat conftest.err >&5
45749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750   (exit $ac_status); } &&
45751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45753   (eval $ac_try) 2>&5
45754   ac_status=$?
45755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45756   (exit $ac_status); }; } &&
45757          { ac_try='test -s conftest$ac_exeext'
45758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45759   (eval $ac_try) 2>&5
45760   ac_status=$?
45761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45762   (exit $ac_status); }; }; then
45763   ac_cv_lib_socket_socket=yes
45764 else
45765   echo "$as_me: failed program was:" >&5
45766 sed 's/^/| /' conftest.$ac_ext >&5
45767
45768 ac_cv_lib_socket_socket=no
45769 fi
45770 rm -f conftest.err conftest.$ac_objext \
45771       conftest$ac_exeext conftest.$ac_ext
45772 LIBS=$ac_check_lib_save_LIBS
45773 fi
45774 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
45775 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
45776 if test $ac_cv_lib_socket_socket = yes; then
45777   if test "$INET_LINK" != " -lsocket"; then
45778                         INET_LINK="$INET_LINK -lsocket"
45779                     fi
45780 else
45781
45782                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
45783 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
45784                         wxUSE_SOCKETS=no
45785
45786
45787 fi
45788
45789
45790
45791 fi
45792
45793     fi
45794 fi
45795
45796 if test "$wxUSE_SOCKETS" = "yes" ; then
45797                 if test "$TOOLKIT" != "MSW"; then
45798                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
45799 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
45800 if test "${wx_cv_type_getsockname3+set}" = set; then
45801   echo $ECHO_N "(cached) $ECHO_C" >&6
45802 else
45803
45804                 ac_ext=cc
45805 ac_cpp='$CXXCPP $CPPFLAGS'
45806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45809
45810                 cat >conftest.$ac_ext <<_ACEOF
45811 /* confdefs.h.  */
45812 _ACEOF
45813 cat confdefs.h >>conftest.$ac_ext
45814 cat >>conftest.$ac_ext <<_ACEOF
45815 /* end confdefs.h.  */
45816
45817                         #include <sys/types.h>
45818                         #include <sys/socket.h>
45819
45820 int
45821 main ()
45822 {
45823
45824                         socklen_t len;
45825                         getsockname(0, 0, &len);
45826
45827   ;
45828   return 0;
45829 }
45830 _ACEOF
45831 rm -f conftest.$ac_objext
45832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45833   (eval $ac_compile) 2>conftest.er1
45834   ac_status=$?
45835   grep -v '^ *+' conftest.er1 >conftest.err
45836   rm -f conftest.er1
45837   cat conftest.err >&5
45838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45839   (exit $ac_status); } &&
45840          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45842   (eval $ac_try) 2>&5
45843   ac_status=$?
45844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45845   (exit $ac_status); }; } &&
45846          { ac_try='test -s conftest.$ac_objext'
45847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45848   (eval $ac_try) 2>&5
45849   ac_status=$?
45850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45851   (exit $ac_status); }; }; then
45852   wx_cv_type_getsockname3=socklen_t
45853 else
45854   echo "$as_me: failed program was:" >&5
45855 sed 's/^/| /' conftest.$ac_ext >&5
45856
45857
45858                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
45859                         if test "$GCC" = yes ; then
45860                             CFLAGS="-Werror $CFLAGS"
45861                         fi
45862
45863                         cat >conftest.$ac_ext <<_ACEOF
45864 /* confdefs.h.  */
45865 _ACEOF
45866 cat confdefs.h >>conftest.$ac_ext
45867 cat >>conftest.$ac_ext <<_ACEOF
45868 /* end confdefs.h.  */
45869
45870                                 #include <sys/types.h>
45871                                 #include <sys/socket.h>
45872
45873 int
45874 main ()
45875 {
45876
45877                                 size_t len;
45878                                 getsockname(0, 0, &len);
45879
45880   ;
45881   return 0;
45882 }
45883 _ACEOF
45884 rm -f conftest.$ac_objext
45885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45886   (eval $ac_compile) 2>conftest.er1
45887   ac_status=$?
45888   grep -v '^ *+' conftest.er1 >conftest.err
45889   rm -f conftest.er1
45890   cat conftest.err >&5
45891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45892   (exit $ac_status); } &&
45893          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45895   (eval $ac_try) 2>&5
45896   ac_status=$?
45897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45898   (exit $ac_status); }; } &&
45899          { ac_try='test -s conftest.$ac_objext'
45900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45901   (eval $ac_try) 2>&5
45902   ac_status=$?
45903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904   (exit $ac_status); }; }; then
45905   wx_cv_type_getsockname3=size_t
45906 else
45907   echo "$as_me: failed program was:" >&5
45908 sed 's/^/| /' conftest.$ac_ext >&5
45909
45910 cat >conftest.$ac_ext <<_ACEOF
45911 /* confdefs.h.  */
45912 _ACEOF
45913 cat confdefs.h >>conftest.$ac_ext
45914 cat >>conftest.$ac_ext <<_ACEOF
45915 /* end confdefs.h.  */
45916
45917                                     #include <sys/types.h>
45918                                     #include <sys/socket.h>
45919
45920 int
45921 main ()
45922 {
45923
45924                                     int len;
45925                                     getsockname(0, 0, &len);
45926
45927   ;
45928   return 0;
45929 }
45930 _ACEOF
45931 rm -f conftest.$ac_objext
45932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45933   (eval $ac_compile) 2>conftest.er1
45934   ac_status=$?
45935   grep -v '^ *+' conftest.er1 >conftest.err
45936   rm -f conftest.er1
45937   cat conftest.err >&5
45938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939   (exit $ac_status); } &&
45940          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
45941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45942   (eval $ac_try) 2>&5
45943   ac_status=$?
45944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45945   (exit $ac_status); }; } &&
45946          { ac_try='test -s conftest.$ac_objext'
45947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45948   (eval $ac_try) 2>&5
45949   ac_status=$?
45950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45951   (exit $ac_status); }; }; then
45952   wx_cv_type_getsockname3=int
45953 else
45954   echo "$as_me: failed program was:" >&5
45955 sed 's/^/| /' conftest.$ac_ext >&5
45956
45957 wx_cv_type_getsockname3=unknown
45958
45959 fi
45960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45961
45962 fi
45963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45964
45965                         CFLAGS="$CFLAGS_OLD"
45966
45967
45968 fi
45969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45970                 ac_ext=c
45971 ac_cpp='$CPP $CPPFLAGS'
45972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45975
45976
45977 fi
45978 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45979 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
45980
45981         if test "$wx_cv_type_getsockname3" = "unknown"; then
45982             wxUSE_SOCKETS=no
45983             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45984 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45985         else
45986             cat >>confdefs.h <<_ACEOF
45987 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
45988 _ACEOF
45989
45990         fi
45991                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45992 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
45993 if test "${wx_cv_type_getsockopt5+set}" = set; then
45994   echo $ECHO_N "(cached) $ECHO_C" >&6
45995 else
45996
45997                                                                                                 ac_ext=cc
45998 ac_cpp='$CXXCPP $CPPFLAGS'
45999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46002
46003                 cat >conftest.$ac_ext <<_ACEOF
46004 /* confdefs.h.  */
46005 _ACEOF
46006 cat confdefs.h >>conftest.$ac_ext
46007 cat >>conftest.$ac_ext <<_ACEOF
46008 /* end confdefs.h.  */
46009
46010                         #include <sys/types.h>
46011                         #include <sys/socket.h>
46012
46013 int
46014 main ()
46015 {
46016
46017                         socklen_t len;
46018                         getsockopt(0, 0, 0, 0, &len);
46019
46020   ;
46021   return 0;
46022 }
46023 _ACEOF
46024 rm -f conftest.$ac_objext
46025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46026   (eval $ac_compile) 2>conftest.er1
46027   ac_status=$?
46028   grep -v '^ *+' conftest.er1 >conftest.err
46029   rm -f conftest.er1
46030   cat conftest.err >&5
46031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46032   (exit $ac_status); } &&
46033          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
46034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46035   (eval $ac_try) 2>&5
46036   ac_status=$?
46037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038   (exit $ac_status); }; } &&
46039          { ac_try='test -s conftest.$ac_objext'
46040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46041   (eval $ac_try) 2>&5
46042   ac_status=$?
46043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46044   (exit $ac_status); }; }; then
46045   wx_cv_type_getsockopt5=socklen_t
46046 else
46047   echo "$as_me: failed program was:" >&5
46048 sed 's/^/| /' conftest.$ac_ext >&5
46049
46050
46051                         cat >conftest.$ac_ext <<_ACEOF
46052 /* confdefs.h.  */
46053 _ACEOF
46054 cat confdefs.h >>conftest.$ac_ext
46055 cat >>conftest.$ac_ext <<_ACEOF
46056 /* end confdefs.h.  */
46057
46058                                 #include <sys/types.h>
46059                                 #include <sys/socket.h>
46060
46061 int
46062 main ()
46063 {
46064
46065                                 size_t len;
46066                                 getsockopt(0, 0, 0, 0, &len);
46067
46068   ;
46069   return 0;
46070 }
46071 _ACEOF
46072 rm -f conftest.$ac_objext
46073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46074   (eval $ac_compile) 2>conftest.er1
46075   ac_status=$?
46076   grep -v '^ *+' conftest.er1 >conftest.err
46077   rm -f conftest.er1
46078   cat conftest.err >&5
46079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46080   (exit $ac_status); } &&
46081          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
46082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46083   (eval $ac_try) 2>&5
46084   ac_status=$?
46085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46086   (exit $ac_status); }; } &&
46087          { ac_try='test -s conftest.$ac_objext'
46088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46089   (eval $ac_try) 2>&5
46090   ac_status=$?
46091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46092   (exit $ac_status); }; }; then
46093   wx_cv_type_getsockopt5=size_t
46094 else
46095   echo "$as_me: failed program was:" >&5
46096 sed 's/^/| /' conftest.$ac_ext >&5
46097
46098 cat >conftest.$ac_ext <<_ACEOF
46099 /* confdefs.h.  */
46100 _ACEOF
46101 cat confdefs.h >>conftest.$ac_ext
46102 cat >>conftest.$ac_ext <<_ACEOF
46103 /* end confdefs.h.  */
46104
46105                                     #include <sys/types.h>
46106                                     #include <sys/socket.h>
46107
46108 int
46109 main ()
46110 {
46111
46112                                     int len;
46113                                     getsockopt(0, 0, 0, 0, &len);
46114
46115   ;
46116   return 0;
46117 }
46118 _ACEOF
46119 rm -f conftest.$ac_objext
46120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46121   (eval $ac_compile) 2>conftest.er1
46122   ac_status=$?
46123   grep -v '^ *+' conftest.er1 >conftest.err
46124   rm -f conftest.er1
46125   cat conftest.err >&5
46126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46127   (exit $ac_status); } &&
46128          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
46129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46130   (eval $ac_try) 2>&5
46131   ac_status=$?
46132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46133   (exit $ac_status); }; } &&
46134          { ac_try='test -s conftest.$ac_objext'
46135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46136   (eval $ac_try) 2>&5
46137   ac_status=$?
46138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46139   (exit $ac_status); }; }; then
46140   wx_cv_type_getsockopt5=int
46141 else
46142   echo "$as_me: failed program was:" >&5
46143 sed 's/^/| /' conftest.$ac_ext >&5
46144
46145 wx_cv_type_getsockopt5=unknown
46146
46147 fi
46148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46149
46150 fi
46151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46152
46153
46154 fi
46155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46156                 ac_ext=c
46157 ac_cpp='$CPP $CPPFLAGS'
46158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46161
46162
46163 fi
46164 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46165 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
46166
46167         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46168             wxUSE_SOCKETS=no
46169             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46170 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46171         else
46172             cat >>confdefs.h <<_ACEOF
46173 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46174 _ACEOF
46175
46176         fi
46177     fi
46178 fi
46179
46180 if test "$wxUSE_SOCKETS" = "yes" ; then
46181     cat >>confdefs.h <<\_ACEOF
46182 #define wxUSE_SOCKETS 1
46183 _ACEOF
46184
46185     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46186 fi
46187
46188 if test "$wxUSE_PROTOCOL" = "yes"; then
46189     if test "$wxUSE_SOCKETS" != "yes"; then
46190         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46191 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46192         wxUSE_PROTOCOL=no
46193     fi
46194 fi
46195
46196 if test "$wxUSE_PROTOCOL" = "yes"; then
46197     cat >>confdefs.h <<\_ACEOF
46198 #define wxUSE_PROTOCOL 1
46199 _ACEOF
46200
46201
46202     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46203         cat >>confdefs.h <<\_ACEOF
46204 #define wxUSE_PROTOCOL_HTTP 1
46205 _ACEOF
46206
46207     fi
46208     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46209         cat >>confdefs.h <<\_ACEOF
46210 #define wxUSE_PROTOCOL_FTP 1
46211 _ACEOF
46212
46213     fi
46214     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46215         cat >>confdefs.h <<\_ACEOF
46216 #define wxUSE_PROTOCOL_FILE 1
46217 _ACEOF
46218
46219     fi
46220 else
46221     if test "$wxUSE_FS_INET" = "yes"; then
46222         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46223 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46224         wxUSE_FS_INET="no"
46225     fi
46226 fi
46227
46228 if test "$wxUSE_URL" = "yes"; then
46229     if test "$wxUSE_PROTOCOL" != "yes"; then
46230         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46231 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46232         wxUSE_URL=no
46233     fi
46234     if test "$wxUSE_URL" = "yes"; then
46235         cat >>confdefs.h <<\_ACEOF
46236 #define wxUSE_URL 1
46237 _ACEOF
46238
46239     fi
46240 fi
46241
46242 if test "$wxUSE_VARIANT" = "yes"; then
46243     cat >>confdefs.h <<\_ACEOF
46244 #define wxUSE_VARIANT 1
46245 _ACEOF
46246
46247 fi
46248
46249 if test "$wxUSE_FS_INET" = "yes"; then
46250   cat >>confdefs.h <<\_ACEOF
46251 #define wxUSE_FS_INET 1
46252 _ACEOF
46253
46254 fi
46255
46256
46257 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46258     wxUSE_JOYSTICK=no
46259
46260         if test "$TOOLKIT" = "MSW"; then
46261         wxUSE_JOYSTICK=yes
46262
46263         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
46264         if test "$USE_DARWIN" = 1; then
46265                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
46266 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
46267             ac_ext=cc
46268 ac_cpp='$CXXCPP $CPPFLAGS'
46269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46272
46273             cat >conftest.$ac_ext <<_ACEOF
46274 /* confdefs.h.  */
46275 _ACEOF
46276 cat confdefs.h >>conftest.$ac_ext
46277 cat >>conftest.$ac_ext <<_ACEOF
46278 /* end confdefs.h.  */
46279  #include <IOKit/hid/IOHIDLib.h>
46280 int
46281 main ()
46282 {
46283  IOHIDQueueInterface *qi = NULL;
46284                               IOHIDCallbackFunction cb = NULL;
46285                               qi->setEventCallout(NULL, cb, NULL, NULL);
46286   ;
46287   return 0;
46288 }
46289 _ACEOF
46290 rm -f conftest.$ac_objext
46291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46292   (eval $ac_compile) 2>conftest.er1
46293   ac_status=$?
46294   grep -v '^ *+' conftest.er1 >conftest.err
46295   rm -f conftest.er1
46296   cat conftest.err >&5
46297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298   (exit $ac_status); } &&
46299          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
46300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46301   (eval $ac_try) 2>&5
46302   ac_status=$?
46303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304   (exit $ac_status); }; } &&
46305          { ac_try='test -s conftest.$ac_objext'
46306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46307   (eval $ac_try) 2>&5
46308   ac_status=$?
46309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46310   (exit $ac_status); }; }; then
46311    wxUSE_JOYSTICK=yes
46312
46313 else
46314   echo "$as_me: failed program was:" >&5
46315 sed 's/^/| /' conftest.$ac_ext >&5
46316
46317 fi
46318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46319             ac_ext=c
46320 ac_cpp='$CPP $CPPFLAGS'
46321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46324
46325             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
46326 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
46327         fi
46328
46329         else
46330                 if test "$wxUSE_MGL" != "1"; then
46331                                                                                     echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
46332 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6
46333 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
46334   echo $ECHO_N "(cached) $ECHO_C" >&6
46335 else
46336   cat >conftest.$ac_ext <<_ACEOF
46337 /* confdefs.h.  */
46338 _ACEOF
46339 cat confdefs.h >>conftest.$ac_ext
46340 cat >>conftest.$ac_ext <<_ACEOF
46341 /* end confdefs.h.  */
46342 $ac_includes_default
46343
46344 #include <linux/joystick.h>
46345 _ACEOF
46346 rm -f conftest.$ac_objext
46347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46348   (eval $ac_compile) 2>conftest.er1
46349   ac_status=$?
46350   grep -v '^ *+' conftest.er1 >conftest.err
46351   rm -f conftest.er1
46352   cat conftest.err >&5
46353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46354   (exit $ac_status); } &&
46355          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46357   (eval $ac_try) 2>&5
46358   ac_status=$?
46359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46360   (exit $ac_status); }; } &&
46361          { ac_try='test -s conftest.$ac_objext'
46362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46363   (eval $ac_try) 2>&5
46364   ac_status=$?
46365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46366   (exit $ac_status); }; }; then
46367   ac_cv_header_linux_joystick_h=yes
46368 else
46369   echo "$as_me: failed program was:" >&5
46370 sed 's/^/| /' conftest.$ac_ext >&5
46371
46372 ac_cv_header_linux_joystick_h=no
46373 fi
46374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46375 fi
46376 echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
46377 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6
46378 if test $ac_cv_header_linux_joystick_h = yes; then
46379   wxUSE_JOYSTICK=yes
46380 fi
46381
46382
46383         fi
46384     fi
46385
46386     if test "$wxUSE_JOYSTICK" = "yes"; then
46387         cat >>confdefs.h <<\_ACEOF
46388 #define wxUSE_JOYSTICK 1
46389 _ACEOF
46390
46391         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
46392     else
46393         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
46394 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
46395     fi
46396 fi
46397
46398
46399
46400 if test "$wxUSE_FONTMAP" = "yes" ; then
46401   cat >>confdefs.h <<\_ACEOF
46402 #define wxUSE_FONTMAP 1
46403 _ACEOF
46404
46405 fi
46406
46407 if test "$wxUSE_UNICODE" = "yes" ; then
46408   cat >>confdefs.h <<\_ACEOF
46409 #define wxUSE_UNICODE 1
46410 _ACEOF
46411
46412
46413   if test "$USE_WIN32" != 1; then
46414       wxUSE_UNICODE_MSLU=no
46415   fi
46416
46417   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
46418         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
46419 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
46420 if test "${ac_cv_lib_unicows_main+set}" = set; then
46421   echo $ECHO_N "(cached) $ECHO_C" >&6
46422 else
46423   ac_check_lib_save_LIBS=$LIBS
46424 LIBS="-lunicows  $LIBS"
46425 cat >conftest.$ac_ext <<_ACEOF
46426 /* confdefs.h.  */
46427 _ACEOF
46428 cat confdefs.h >>conftest.$ac_ext
46429 cat >>conftest.$ac_ext <<_ACEOF
46430 /* end confdefs.h.  */
46431
46432
46433 int
46434 main ()
46435 {
46436 main ();
46437   ;
46438   return 0;
46439 }
46440 _ACEOF
46441 rm -f conftest.$ac_objext conftest$ac_exeext
46442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46443   (eval $ac_link) 2>conftest.er1
46444   ac_status=$?
46445   grep -v '^ *+' conftest.er1 >conftest.err
46446   rm -f conftest.er1
46447   cat conftest.err >&5
46448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46449   (exit $ac_status); } &&
46450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46452   (eval $ac_try) 2>&5
46453   ac_status=$?
46454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46455   (exit $ac_status); }; } &&
46456          { ac_try='test -s conftest$ac_exeext'
46457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46458   (eval $ac_try) 2>&5
46459   ac_status=$?
46460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46461   (exit $ac_status); }; }; then
46462   ac_cv_lib_unicows_main=yes
46463 else
46464   echo "$as_me: failed program was:" >&5
46465 sed 's/^/| /' conftest.$ac_ext >&5
46466
46467 ac_cv_lib_unicows_main=no
46468 fi
46469 rm -f conftest.err conftest.$ac_objext \
46470       conftest$ac_exeext conftest.$ac_ext
46471 LIBS=$ac_check_lib_save_LIBS
46472 fi
46473 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
46474 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
46475 if test $ac_cv_lib_unicows_main = yes; then
46476
46477                 cat >>confdefs.h <<\_ACEOF
46478 #define wxUSE_UNICODE_MSLU 1
46479 _ACEOF
46480
46481
46482 else
46483
46484                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46485                              Applications will only run on Windows NT/2000/XP!" >&5
46486 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
46487                              Applications will only run on Windows NT/2000/XP!" >&2;}
46488                 wxUSE_UNICODE_MSLU=no
46489
46490 fi
46491
46492     fi
46493 fi
46494
46495 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
46496     cat >>confdefs.h <<\_ACEOF
46497 #define wxUSE_UNICODE_UTF8 1
46498 _ACEOF
46499
46500
46501     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
46502         cat >>confdefs.h <<\_ACEOF
46503 #define wxUSE_UTF8_LOCALE_ONLY 1
46504 _ACEOF
46505
46506     fi
46507 fi
46508
46509 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
46510   cat >>confdefs.h <<\_ACEOF
46511 #define wxUSE_EXPERIMENTAL_PRINTF 1
46512 _ACEOF
46513
46514 fi
46515
46516
46517 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
46518   cat >>confdefs.h <<\_ACEOF
46519 #define wxUSE_POSTSCRIPT 1
46520 _ACEOF
46521
46522 fi
46523
46524 cat >>confdefs.h <<\_ACEOF
46525 #define wxUSE_AFM_FOR_POSTSCRIPT 1
46526 _ACEOF
46527
46528
46529 cat >>confdefs.h <<\_ACEOF
46530 #define wxUSE_NORMALIZED_PS_FONTS 1
46531 _ACEOF
46532
46533
46534
46535 if test "$wxUSE_CONSTRAINTS" = "yes"; then
46536     cat >>confdefs.h <<\_ACEOF
46537 #define wxUSE_CONSTRAINTS 1
46538 _ACEOF
46539
46540     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
46541 fi
46542
46543 if test "$wxUSE_MDI" = "yes"; then
46544     cat >>confdefs.h <<\_ACEOF
46545 #define wxUSE_MDI 1
46546 _ACEOF
46547
46548
46549     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46550         cat >>confdefs.h <<\_ACEOF
46551 #define wxUSE_MDI_ARCHITECTURE 1
46552 _ACEOF
46553
46554         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
46555     fi
46556 fi
46557
46558 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
46559     cat >>confdefs.h <<\_ACEOF
46560 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
46561 _ACEOF
46562
46563     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
46564     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
46565         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
46566     fi
46567 fi
46568
46569 if test "$wxUSE_HELP" = "yes"; then
46570     cat >>confdefs.h <<\_ACEOF
46571 #define wxUSE_HELP 1
46572 _ACEOF
46573
46574     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
46575
46576     if test "$wxUSE_MSW" = 1; then
46577       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
46578         cat >>confdefs.h <<\_ACEOF
46579 #define wxUSE_MS_HTML_HELP 1
46580 _ACEOF
46581
46582       fi
46583     fi
46584
46585     if test "$wxUSE_WXHTML_HELP" = "yes"; then
46586       if test "$wxUSE_HTML" = "yes"; then
46587         cat >>confdefs.h <<\_ACEOF
46588 #define wxUSE_WXHTML_HELP 1
46589 _ACEOF
46590
46591       else
46592         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
46593 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
46594         wxUSE_WXHTML_HELP=no
46595       fi
46596     fi
46597 fi
46598
46599 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46600     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46601         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
46602 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
46603     else
46604         cat >>confdefs.h <<\_ACEOF
46605 #define wxUSE_PRINTING_ARCHITECTURE 1
46606 _ACEOF
46607
46608     fi
46609     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
46610 fi
46611
46612
46613
46614 if test "$wxUSE_METAFILE" = "yes"; then
46615     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
46616         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
46617 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
46618         wxUSE_METAFILE=no
46619     fi
46620 fi
46621
46622
46623 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
46624                           -o "$wxUSE_CLIPBOARD"     = "yes" \
46625                           -o "$wxUSE_OLE"     = "yes" \
46626                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
46627     echo "$as_me:$LINENO: checking for ole2.h" >&5
46628 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6
46629 if test "${ac_cv_header_ole2_h+set}" = set; then
46630   echo $ECHO_N "(cached) $ECHO_C" >&6
46631 else
46632   cat >conftest.$ac_ext <<_ACEOF
46633 /* confdefs.h.  */
46634 _ACEOF
46635 cat confdefs.h >>conftest.$ac_ext
46636 cat >>conftest.$ac_ext <<_ACEOF
46637 /* end confdefs.h.  */
46638
46639
46640 #include <ole2.h>
46641 _ACEOF
46642 rm -f conftest.$ac_objext
46643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46644   (eval $ac_compile) 2>conftest.er1
46645   ac_status=$?
46646   grep -v '^ *+' conftest.er1 >conftest.err
46647   rm -f conftest.er1
46648   cat conftest.err >&5
46649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46650   (exit $ac_status); } &&
46651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46653   (eval $ac_try) 2>&5
46654   ac_status=$?
46655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656   (exit $ac_status); }; } &&
46657          { ac_try='test -s conftest.$ac_objext'
46658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46659   (eval $ac_try) 2>&5
46660   ac_status=$?
46661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662   (exit $ac_status); }; }; then
46663   ac_cv_header_ole2_h=yes
46664 else
46665   echo "$as_me: failed program was:" >&5
46666 sed 's/^/| /' conftest.$ac_ext >&5
46667
46668 ac_cv_header_ole2_h=no
46669 fi
46670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46671 fi
46672 echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
46673 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6
46674
46675
46676
46677     if test "$ac_cv_header_ole2_h" = "yes" ; then
46678         if test "$GCC" = yes ; then
46679             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46680 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
46681             cat >conftest.$ac_ext <<_ACEOF
46682 /* confdefs.h.  */
46683 _ACEOF
46684 cat confdefs.h >>conftest.$ac_ext
46685 cat >>conftest.$ac_ext <<_ACEOF
46686 /* end confdefs.h.  */
46687 #include <windows.h>
46688                             #include <ole2.h>
46689 int
46690 main ()
46691 {
46692
46693   ;
46694   return 0;
46695 }
46696 _ACEOF
46697 rm -f conftest.$ac_objext
46698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46699   (eval $ac_compile) 2>conftest.er1
46700   ac_status=$?
46701   grep -v '^ *+' conftest.er1 >conftest.err
46702   rm -f conftest.er1
46703   cat conftest.err >&5
46704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46705   (exit $ac_status); } &&
46706          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46708   (eval $ac_try) 2>&5
46709   ac_status=$?
46710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46711   (exit $ac_status); }; } &&
46712          { ac_try='test -s conftest.$ac_objext'
46713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46714   (eval $ac_try) 2>&5
46715   ac_status=$?
46716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46717   (exit $ac_status); }; }; then
46718   echo "$as_me:$LINENO: result: no" >&5
46719 echo "${ECHO_T}no" >&6
46720 else
46721   echo "$as_me: failed program was:" >&5
46722 sed 's/^/| /' conftest.$ac_ext >&5
46723
46724 echo "$as_me:$LINENO: result: yes" >&5
46725 echo "${ECHO_T}yes" >&6
46726                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
46727 fi
46728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46729             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46730             if test "$wxUSE_OLE" = "yes" ; then
46731                 cat >>confdefs.h <<\_ACEOF
46732 #define wxUSE_OLE 1
46733 _ACEOF
46734
46735                 cat >>confdefs.h <<\_ACEOF
46736 #define wxUSE_OLE_AUTOMATION 1
46737 _ACEOF
46738
46739                 cat >>confdefs.h <<\_ACEOF
46740 #define wxUSE_ACTIVEX 1
46741 _ACEOF
46742
46743                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
46744             fi
46745         fi
46746
46747                 if test "$wxUSE_DATAOBJ" = "yes" ; then
46748             cat >>confdefs.h <<\_ACEOF
46749 #define wxUSE_DATAOBJ 1
46750 _ACEOF
46751
46752         fi
46753     else
46754         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46755 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46756
46757         wxUSE_CLIPBOARD=no
46758         wxUSE_DRAG_AND_DROP=no
46759         wxUSE_DATAOBJ=no
46760         wxUSE_OLE=no
46761     fi
46762
46763     if test "$wxUSE_METAFILE" = "yes"; then
46764         cat >>confdefs.h <<\_ACEOF
46765 #define wxUSE_METAFILE 1
46766 _ACEOF
46767
46768
46769                 cat >>confdefs.h <<\_ACEOF
46770 #define wxUSE_ENH_METAFILE 1
46771 _ACEOF
46772
46773     fi
46774 fi
46775
46776 if test "$wxUSE_IPC" = "yes"; then
46777     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
46778         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46779 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
46780         wxUSE_IPC=no
46781     fi
46782
46783     if test "$wxUSE_IPC" = "yes"; then
46784         cat >>confdefs.h <<\_ACEOF
46785 #define wxUSE_IPC 1
46786 _ACEOF
46787
46788         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46789     fi
46790 fi
46791
46792 if test "$wxUSE_DATAOBJ" = "yes"; then
46793     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46794         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
46795 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
46796         wxUSE_DATAOBJ=no
46797     else
46798         cat >>confdefs.h <<\_ACEOF
46799 #define wxUSE_DATAOBJ 1
46800 _ACEOF
46801
46802     fi
46803 else
46804     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46805 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46806     wxUSE_CLIPBOARD=no
46807     wxUSE_DRAG_AND_DROP=no
46808 fi
46809
46810 if test "$wxUSE_CLIPBOARD" = "yes"; then
46811     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
46812         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
46813 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
46814         wxUSE_CLIPBOARD=no
46815     fi
46816
46817     if test "$wxUSE_CLIPBOARD" = "yes"; then
46818         cat >>confdefs.h <<\_ACEOF
46819 #define wxUSE_CLIPBOARD 1
46820 _ACEOF
46821
46822     fi
46823 fi
46824
46825 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46826     if test "$wxUSE_GTK" = 1; then
46827         if test "$WXGTK12" != 1; then
46828             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46829 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46830             wxUSE_DRAG_AND_DROP=no
46831         fi
46832     fi
46833
46834     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
46835             "$wxUSE_DFB" = 1; then
46836         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
46837 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
46838         wxUSE_DRAG_AND_DROP=no
46839     fi
46840
46841     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46842         cat >>confdefs.h <<\_ACEOF
46843 #define wxUSE_DRAG_AND_DROP 1
46844 _ACEOF
46845
46846     fi
46847
46848 fi
46849
46850 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46851     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46852 fi
46853
46854 if test "$wxUSE_SPLINES" = "yes" ; then
46855   cat >>confdefs.h <<\_ACEOF
46856 #define wxUSE_SPLINES 1
46857 _ACEOF
46858
46859 fi
46860
46861 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46862   cat >>confdefs.h <<\_ACEOF
46863 #define wxUSE_MOUSEWHEEL 1
46864 _ACEOF
46865
46866 fi
46867
46868
46869 USES_CONTROLS=0
46870 if test "$wxUSE_CONTROLS" = "yes"; then
46871   USES_CONTROLS=1
46872 fi
46873
46874 if test "$wxUSE_ACCEL" = "yes"; then
46875   cat >>confdefs.h <<\_ACEOF
46876 #define wxUSE_ACCEL 1
46877 _ACEOF
46878
46879   USES_CONTROLS=1
46880 fi
46881
46882 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
46883   cat >>confdefs.h <<\_ACEOF
46884 #define wxUSE_ANIMATIONCTRL 1
46885 _ACEOF
46886
46887   USES_CONTROLS=1
46888   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46889 fi
46890
46891 if test "$wxUSE_BUTTON" = "yes"; then
46892   cat >>confdefs.h <<\_ACEOF
46893 #define wxUSE_BUTTON 1
46894 _ACEOF
46895
46896   USES_CONTROLS=1
46897 fi
46898
46899 if test "$wxUSE_BMPBUTTON" = "yes"; then
46900   cat >>confdefs.h <<\_ACEOF
46901 #define wxUSE_BMPBUTTON 1
46902 _ACEOF
46903
46904   USES_CONTROLS=1
46905 fi
46906
46907 if test "$wxUSE_CALCTRL" = "yes"; then
46908   cat >>confdefs.h <<\_ACEOF
46909 #define wxUSE_CALENDARCTRL 1
46910 _ACEOF
46911
46912   USES_CONTROLS=1
46913   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46914 fi
46915
46916 if test "$wxUSE_CARET" = "yes"; then
46917   cat >>confdefs.h <<\_ACEOF
46918 #define wxUSE_CARET 1
46919 _ACEOF
46920
46921   USES_CONTROLS=1
46922   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46923 fi
46924
46925 if test "$wxUSE_COLLPANE" = "yes"; then
46926     cat >>confdefs.h <<\_ACEOF
46927 #define wxUSE_COLLPANE 1
46928 _ACEOF
46929
46930     USES_CONTROLS=1
46931     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46932 fi
46933
46934 if test "$wxUSE_COMBOBOX" = "yes"; then
46935   cat >>confdefs.h <<\_ACEOF
46936 #define wxUSE_COMBOBOX 1
46937 _ACEOF
46938
46939   USES_CONTROLS=1
46940 fi
46941
46942 if test "$wxUSE_COMBOCTRL" = "yes"; then
46943   cat >>confdefs.h <<\_ACEOF
46944 #define wxUSE_COMBOCTRL 1
46945 _ACEOF
46946
46947   USES_CONTROLS=1
46948 fi
46949
46950 if test "$wxUSE_CHOICE" = "yes"; then
46951   cat >>confdefs.h <<\_ACEOF
46952 #define wxUSE_CHOICE 1
46953 _ACEOF
46954
46955   USES_CONTROLS=1
46956 fi
46957
46958 if test "$wxUSE_CHOICEBOOK" = "yes"; then
46959     cat >>confdefs.h <<\_ACEOF
46960 #define wxUSE_CHOICEBOOK 1
46961 _ACEOF
46962
46963     USES_CONTROLS=1
46964 fi
46965
46966 if test "$wxUSE_CHECKBOX" = "yes"; then
46967   cat >>confdefs.h <<\_ACEOF
46968 #define wxUSE_CHECKBOX 1
46969 _ACEOF
46970
46971   USES_CONTROLS=1
46972 fi
46973
46974 if test "$wxUSE_CHECKLST" = "yes"; then
46975   cat >>confdefs.h <<\_ACEOF
46976 #define wxUSE_CHECKLISTBOX 1
46977 _ACEOF
46978
46979   USES_CONTROLS=1
46980   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46981 fi
46982
46983 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46984   cat >>confdefs.h <<\_ACEOF
46985 #define wxUSE_COLOURPICKERCTRL 1
46986 _ACEOF
46987
46988   USES_CONTROLS=1
46989 fi
46990
46991 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46992   cat >>confdefs.h <<\_ACEOF
46993 #define wxUSE_DATEPICKCTRL 1
46994 _ACEOF
46995
46996   USES_CONTROLS=1
46997 fi
46998
46999 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47000   cat >>confdefs.h <<\_ACEOF
47001 #define wxUSE_DIRPICKERCTRL 1
47002 _ACEOF
47003
47004   USES_CONTROLS=1
47005 fi
47006
47007 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47008   cat >>confdefs.h <<\_ACEOF
47009 #define wxUSE_FILEPICKERCTRL 1
47010 _ACEOF
47011
47012   USES_CONTROLS=1
47013 fi
47014
47015 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47016   cat >>confdefs.h <<\_ACEOF
47017 #define wxUSE_FONTPICKERCTRL 1
47018 _ACEOF
47019
47020   USES_CONTROLS=1
47021 fi
47022
47023 if test "$wxUSE_DISPLAY" = "yes"; then
47024     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47025         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47026 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47027         wxUSE_DISPLAY=no
47028     else
47029         cat >>confdefs.h <<\_ACEOF
47030 #define wxUSE_DISPLAY 1
47031 _ACEOF
47032
47033         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
47034     fi
47035 fi
47036
47037 if test "$wxUSE_DETECT_SM" = "yes"; then
47038     cat >>confdefs.h <<\_ACEOF
47039 #define wxUSE_DETECT_SM 1
47040 _ACEOF
47041
47042 fi
47043
47044 if test "$wxUSE_GAUGE" = "yes"; then
47045   cat >>confdefs.h <<\_ACEOF
47046 #define wxUSE_GAUGE 1
47047 _ACEOF
47048
47049   USES_CONTROLS=1
47050 fi
47051
47052 if test "$wxUSE_GRID" = "yes"; then
47053   cat >>confdefs.h <<\_ACEOF
47054 #define wxUSE_GRID 1
47055 _ACEOF
47056
47057   USES_CONTROLS=1
47058   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47059 fi
47060
47061 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47062   cat >>confdefs.h <<\_ACEOF
47063 #define wxUSE_HYPERLINKCTRL 1
47064 _ACEOF
47065
47066   USES_CONTROLS=1
47067 fi
47068
47069 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47070   cat >>confdefs.h <<\_ACEOF
47071 #define wxUSE_BITMAPCOMBOBOX 1
47072 _ACEOF
47073
47074   USES_CONTROLS=1
47075 fi
47076
47077 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47078   cat >>confdefs.h <<\_ACEOF
47079 #define wxUSE_DATAVIEWCTRL 1
47080 _ACEOF
47081
47082   USES_CONTROLS=1
47083   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47084 fi
47085
47086 if test "$wxUSE_IMAGLIST" = "yes"; then
47087     cat >>confdefs.h <<\_ACEOF
47088 #define wxUSE_IMAGLIST 1
47089 _ACEOF
47090
47091 fi
47092
47093 if test "$wxUSE_LISTBOOK" = "yes"; then
47094     cat >>confdefs.h <<\_ACEOF
47095 #define wxUSE_LISTBOOK 1
47096 _ACEOF
47097
47098     USES_CONTROLS=1
47099 fi
47100
47101 if test "$wxUSE_LISTBOX" = "yes"; then
47102     cat >>confdefs.h <<\_ACEOF
47103 #define wxUSE_LISTBOX 1
47104 _ACEOF
47105
47106     USES_CONTROLS=1
47107     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
47108 fi
47109
47110 if test "$wxUSE_LISTCTRL" = "yes"; then
47111     if test "$wxUSE_IMAGLIST" = "yes"; then
47112         cat >>confdefs.h <<\_ACEOF
47113 #define wxUSE_LISTCTRL 1
47114 _ACEOF
47115
47116         USES_CONTROLS=1
47117         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47118     else
47119         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47120 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47121     fi
47122 fi
47123
47124 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47125     cat >>confdefs.h <<\_ACEOF
47126 #define wxUSE_EDITABLELISTBOX 1
47127 _ACEOF
47128
47129     USES_CONTROLS=1
47130     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
47131 fi
47132
47133 if test "$wxUSE_NOTEBOOK" = "yes"; then
47134     cat >>confdefs.h <<\_ACEOF
47135 #define wxUSE_NOTEBOOK 1
47136 _ACEOF
47137
47138     USES_CONTROLS=1
47139     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47140 fi
47141
47142 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47143   cat >>confdefs.h <<\_ACEOF
47144 #define wxUSE_ODCOMBOBOX 1
47145 _ACEOF
47146
47147   USES_CONTROLS=1
47148   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47149 fi
47150
47151
47152 if test "$wxUSE_RADIOBOX" = "yes"; then
47153     cat >>confdefs.h <<\_ACEOF
47154 #define wxUSE_RADIOBOX 1
47155 _ACEOF
47156
47157     USES_CONTROLS=1
47158 fi
47159
47160 if test "$wxUSE_RADIOBTN" = "yes"; then
47161     cat >>confdefs.h <<\_ACEOF
47162 #define wxUSE_RADIOBTN 1
47163 _ACEOF
47164
47165     USES_CONTROLS=1
47166 fi
47167
47168 if test "$wxUSE_SASH" = "yes"; then
47169     cat >>confdefs.h <<\_ACEOF
47170 #define wxUSE_SASH 1
47171 _ACEOF
47172
47173     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47174 fi
47175
47176 if test "$wxUSE_SCROLLBAR" = "yes"; then
47177     cat >>confdefs.h <<\_ACEOF
47178 #define wxUSE_SCROLLBAR 1
47179 _ACEOF
47180
47181     USES_CONTROLS=1
47182     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
47183 fi
47184
47185 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47186     cat >>confdefs.h <<\_ACEOF
47187 #define wxUSE_SEARCHCTRL 1
47188 _ACEOF
47189
47190     USES_CONTROLS=1
47191 fi
47192
47193 if test "$wxUSE_SLIDER" = "yes"; then
47194     cat >>confdefs.h <<\_ACEOF
47195 #define wxUSE_SLIDER 1
47196 _ACEOF
47197
47198     USES_CONTROLS=1
47199 fi
47200
47201 if test "$wxUSE_SPINBTN" = "yes"; then
47202     cat >>confdefs.h <<\_ACEOF
47203 #define wxUSE_SPINBTN 1
47204 _ACEOF
47205
47206     USES_CONTROLS=1
47207 fi
47208
47209 if test "$wxUSE_SPINCTRL" = "yes"; then
47210     cat >>confdefs.h <<\_ACEOF
47211 #define wxUSE_SPINCTRL 1
47212 _ACEOF
47213
47214     USES_CONTROLS=1
47215 fi
47216
47217 if test "$wxUSE_SPLITTER" = "yes"; then
47218     cat >>confdefs.h <<\_ACEOF
47219 #define wxUSE_SPLITTER 1
47220 _ACEOF
47221
47222     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47223 fi
47224
47225 if test "$wxUSE_STATBMP" = "yes"; then
47226     cat >>confdefs.h <<\_ACEOF
47227 #define wxUSE_STATBMP 1
47228 _ACEOF
47229
47230     USES_CONTROLS=1
47231 fi
47232
47233 if test "$wxUSE_STATBOX" = "yes"; then
47234     cat >>confdefs.h <<\_ACEOF
47235 #define wxUSE_STATBOX 1
47236 _ACEOF
47237
47238     USES_CONTROLS=1
47239 fi
47240
47241 if test "$wxUSE_STATTEXT" = "yes"; then
47242     cat >>confdefs.h <<\_ACEOF
47243 #define wxUSE_STATTEXT 1
47244 _ACEOF
47245
47246     USES_CONTROLS=1
47247 fi
47248
47249 if test "$wxUSE_STATLINE" = "yes"; then
47250     cat >>confdefs.h <<\_ACEOF
47251 #define wxUSE_STATLINE 1
47252 _ACEOF
47253
47254     USES_CONTROLS=1
47255 fi
47256
47257 if test "$wxUSE_STATUSBAR" = "yes"; then
47258         cat >>confdefs.h <<\_ACEOF
47259 #define wxUSE_NATIVE_STATUSBAR 1
47260 _ACEOF
47261
47262     cat >>confdefs.h <<\_ACEOF
47263 #define wxUSE_STATUSBAR 1
47264 _ACEOF
47265
47266     USES_CONTROLS=1
47267
47268     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
47269 fi
47270
47271 if test "$wxUSE_TAB_DIALOG" = "yes"; then
47272     cat >>confdefs.h <<\_ACEOF
47273 #define wxUSE_TAB_DIALOG 1
47274 _ACEOF
47275
47276 fi
47277
47278 if test "$wxUSE_TEXTCTRL" = "yes"; then
47279     cat >>confdefs.h <<\_ACEOF
47280 #define wxUSE_TEXTCTRL 1
47281 _ACEOF
47282
47283     USES_CONTROLS=1
47284     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
47285 fi
47286
47287 if test "$wxUSE_TOGGLEBTN" = "yes"; then
47288     if test "$wxUSE_COCOA" = 1 ; then
47289         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
47290 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
47291         wxUSE_TOGGLEBTN=no
47292     fi
47293
47294     if test "$wxUSE_TOGGLEBTN" = "yes"; then
47295         cat >>confdefs.h <<\_ACEOF
47296 #define wxUSE_TOGGLEBTN 1
47297 _ACEOF
47298
47299         USES_CONTROLS=1
47300     fi
47301 fi
47302
47303 if test "$wxUSE_TOOLBAR" = "yes"; then
47304     cat >>confdefs.h <<\_ACEOF
47305 #define wxUSE_TOOLBAR 1
47306 _ACEOF
47307
47308     USES_CONTROLS=1
47309
47310     if test "$wxUSE_UNIVERSAL" = "yes"; then
47311         wxUSE_TOOLBAR_NATIVE="no"
47312     else
47313         wxUSE_TOOLBAR_NATIVE="yes"
47314         cat >>confdefs.h <<\_ACEOF
47315 #define wxUSE_TOOLBAR_NATIVE 1
47316 _ACEOF
47317
47318     fi
47319
47320     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
47321 fi
47322
47323 if test "$wxUSE_TOOLTIPS" = "yes"; then
47324     if test "$wxUSE_MOTIF" = 1; then
47325         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
47326 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
47327     else
47328         if test "$wxUSE_UNIVERSAL" = "yes"; then
47329             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
47330 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
47331         else
47332             cat >>confdefs.h <<\_ACEOF
47333 #define wxUSE_TOOLTIPS 1
47334 _ACEOF
47335
47336         fi
47337     fi
47338 fi
47339
47340 if test "$wxUSE_TREEBOOK" = "yes"; then
47341     cat >>confdefs.h <<\_ACEOF
47342 #define wxUSE_TREEBOOK 1
47343 _ACEOF
47344
47345     USES_CONTROLS=1
47346 fi
47347
47348 if test "$wxUSE_TOOLBOOK" = "yes"; then
47349     cat >>confdefs.h <<\_ACEOF
47350 #define wxUSE_TOOLBOOK 1
47351 _ACEOF
47352
47353     USES_CONTROLS=1
47354 fi
47355
47356 if test "$wxUSE_TREECTRL" = "yes"; then
47357     if test "$wxUSE_IMAGLIST" = "yes"; then
47358         cat >>confdefs.h <<\_ACEOF
47359 #define wxUSE_TREECTRL 1
47360 _ACEOF
47361
47362         USES_CONTROLS=1
47363         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
47364     else
47365         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
47366 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
47367     fi
47368 fi
47369
47370 if test "$wxUSE_POPUPWIN" = "yes"; then
47371     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
47372         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
47373 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
47374     else
47375         if test "$wxUSE_PM" = 1; then
47376             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
47377 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
47378         else
47379             cat >>confdefs.h <<\_ACEOF
47380 #define wxUSE_POPUPWIN 1
47381 _ACEOF
47382
47383             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
47384
47385             USES_CONTROLS=1
47386         fi
47387     fi
47388 fi
47389
47390 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
47391     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
47392         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
47393 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
47394     else
47395         cat >>confdefs.h <<\_ACEOF
47396 #define wxUSE_DIALUP_MANAGER 1
47397 _ACEOF
47398
47399         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
47400     fi
47401 fi
47402
47403 if test "$wxUSE_TIPWINDOW" = "yes"; then
47404     if test "$wxUSE_PM" = 1; then
47405         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
47406 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
47407     else
47408         cat >>confdefs.h <<\_ACEOF
47409 #define wxUSE_TIPWINDOW 1
47410 _ACEOF
47411
47412     fi
47413 fi
47414
47415 if test "$USES_CONTROLS" = 1; then
47416     cat >>confdefs.h <<\_ACEOF
47417 #define wxUSE_CONTROLS 1
47418 _ACEOF
47419
47420 fi
47421
47422
47423 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
47424     cat >>confdefs.h <<\_ACEOF
47425 #define wxUSE_ACCESSIBILITY 1
47426 _ACEOF
47427
47428     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
47429 fi
47430
47431 if test "$wxUSE_DC_CACHEING" = "yes"; then
47432     cat >>confdefs.h <<\_ACEOF
47433 #define wxUSE_DC_CACHEING 1
47434 _ACEOF
47435
47436 fi
47437
47438 if test "$wxUSE_DRAGIMAGE" = "yes"; then
47439     cat >>confdefs.h <<\_ACEOF
47440 #define wxUSE_DRAGIMAGE 1
47441 _ACEOF
47442
47443     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
47444 fi
47445
47446 if test "$wxUSE_EXCEPTIONS" = "yes"; then
47447     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47448         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
47449 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
47450     else
47451         cat >>confdefs.h <<\_ACEOF
47452 #define wxUSE_EXCEPTIONS 1
47453 _ACEOF
47454
47455         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
47456     fi
47457 fi
47458
47459 USE_HTML=0
47460 if test "$wxUSE_HTML" = "yes"; then
47461     cat >>confdefs.h <<\_ACEOF
47462 #define wxUSE_HTML 1
47463 _ACEOF
47464
47465     USE_HTML=1
47466     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
47467     if test "$wxUSE_MAC" = 1; then
47468         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
47469     fi
47470 fi
47471 if test "$wxUSE_WEBKIT" = "yes"; then
47472     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
47473         old_CPPFLAGS="$CPPFLAGS"
47474         CPPFLAGS="-x objective-c++ $CPPFLAGS"
47475         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
47476 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
47477 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
47478   echo $ECHO_N "(cached) $ECHO_C" >&6
47479 else
47480   cat >conftest.$ac_ext <<_ACEOF
47481 /* confdefs.h.  */
47482 _ACEOF
47483 cat confdefs.h >>conftest.$ac_ext
47484 cat >>conftest.$ac_ext <<_ACEOF
47485 /* end confdefs.h.  */
47486
47487                            #include <Carbon/Carbon.h>
47488                            #include <WebKit/WebKit.h>
47489
47490
47491 #include <WebKit/HIWebView.h>
47492 _ACEOF
47493 rm -f conftest.$ac_objext
47494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47495   (eval $ac_compile) 2>conftest.er1
47496   ac_status=$?
47497   grep -v '^ *+' conftest.er1 >conftest.err
47498   rm -f conftest.er1
47499   cat conftest.err >&5
47500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47501   (exit $ac_status); } &&
47502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47504   (eval $ac_try) 2>&5
47505   ac_status=$?
47506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507   (exit $ac_status); }; } &&
47508          { ac_try='test -s conftest.$ac_objext'
47509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47510   (eval $ac_try) 2>&5
47511   ac_status=$?
47512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47513   (exit $ac_status); }; }; then
47514   ac_cv_header_WebKit_HIWebView_h=yes
47515 else
47516   echo "$as_me: failed program was:" >&5
47517 sed 's/^/| /' conftest.$ac_ext >&5
47518
47519 ac_cv_header_WebKit_HIWebView_h=no
47520 fi
47521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47522 fi
47523 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
47524 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
47525 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
47526
47527                            cat >>confdefs.h <<\_ACEOF
47528 #define wxUSE_WEBKIT 1
47529 _ACEOF
47530
47531                            WEBKIT_LINK="-framework WebKit"
47532
47533 else
47534
47535                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
47536 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
47537                            wxUSE_WEBKIT=no
47538
47539 fi
47540
47541
47542         CPPFLAGS="$old_CPPFLAGS"
47543     elif test "$wxUSE_COCOA" = 1; then
47544         cat >>confdefs.h <<\_ACEOF
47545 #define wxUSE_WEBKIT 1
47546 _ACEOF
47547
47548     else
47549         wxUSE_WEBKIT=no
47550     fi
47551 fi
47552
47553 USE_XRC=0
47554 if test "$wxUSE_XRC" = "yes"; then
47555     if test "$wxUSE_XML" != "yes"; then
47556         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
47557 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
47558         wxUSE_XRC=no
47559     else
47560         cat >>confdefs.h <<\_ACEOF
47561 #define wxUSE_XRC 1
47562 _ACEOF
47563
47564         USE_XRC=1
47565         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
47566     fi
47567 fi
47568
47569 USE_AUI=0
47570 if test "$wxUSE_AUI" = "yes"; then
47571    cat >>confdefs.h <<\_ACEOF
47572 #define wxUSE_AUI 1
47573 _ACEOF
47574
47575    USE_AUI=1
47576    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
47577 fi
47578
47579 USE_STC=0
47580 if test "$wxUSE_STC" = "yes"; then
47581    cat >>confdefs.h <<\_ACEOF
47582 #define wxUSE_STC 1
47583 _ACEOF
47584
47585    USE_STC=1
47586    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
47587 fi
47588
47589 if test "$wxUSE_MENUS" = "yes"; then
47590     cat >>confdefs.h <<\_ACEOF
47591 #define wxUSE_MENUS 1
47592 _ACEOF
47593
47594     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
47595 fi
47596
47597 if test "$wxUSE_METAFILE" = "yes"; then
47598     cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_METAFILE 1
47600 _ACEOF
47601
47602 fi
47603
47604 if test "$wxUSE_MIMETYPE" = "yes"; then
47605     cat >>confdefs.h <<\_ACEOF
47606 #define wxUSE_MIMETYPE 1
47607 _ACEOF
47608
47609 fi
47610
47611 if test "$wxUSE_MINIFRAME" = "yes"; then
47612     cat >>confdefs.h <<\_ACEOF
47613 #define wxUSE_MINIFRAME 1
47614 _ACEOF
47615
47616     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
47617 fi
47618
47619 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
47620     cat >>confdefs.h <<\_ACEOF
47621 #define wxUSE_SYSTEM_OPTIONS 1
47622 _ACEOF
47623
47624     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
47625         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
47626         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
47627     fi
47628 fi
47629
47630
47631 if test "$wxUSE_VALIDATORS" = "yes"; then
47632     cat >>confdefs.h <<\_ACEOF
47633 #define wxUSE_VALIDATORS 1
47634 _ACEOF
47635
47636     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
47637 fi
47638
47639 if test "$wxUSE_PALETTE" = "yes" ; then
47640     if test "$wxUSE_DFB" = 1; then
47641         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
47642 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
47643         wxUSE_PALETTE=no
47644     else
47645         cat >>confdefs.h <<\_ACEOF
47646 #define wxUSE_PALETTE 1
47647 _ACEOF
47648
47649     fi
47650 fi
47651
47652 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
47653     LIBS=" -lunicows $LIBS"
47654 fi
47655
47656 USE_RICHTEXT=0
47657 if test "$wxUSE_RICHTEXT" = "yes"; then
47658     cat >>confdefs.h <<\_ACEOF
47659 #define wxUSE_RICHTEXT 1
47660 _ACEOF
47661
47662     USE_RICHTEXT=1
47663     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
47664 fi
47665
47666
47667 if test "$wxUSE_IMAGE" = "yes" ; then
47668     cat >>confdefs.h <<\_ACEOF
47669 #define wxUSE_IMAGE 1
47670 _ACEOF
47671
47672
47673     if test "$wxUSE_GIF" = "yes" ; then
47674       cat >>confdefs.h <<\_ACEOF
47675 #define wxUSE_GIF 1
47676 _ACEOF
47677
47678     fi
47679
47680     if test "$wxUSE_PCX" = "yes" ; then
47681       cat >>confdefs.h <<\_ACEOF
47682 #define wxUSE_PCX 1
47683 _ACEOF
47684
47685     fi
47686
47687     if test "$wxUSE_TGA" = "yes" ; then
47688       cat >>confdefs.h <<\_ACEOF
47689 #define wxUSE_TGA 1
47690 _ACEOF
47691
47692     fi
47693
47694     if test "$wxUSE_IFF" = "yes" ; then
47695       cat >>confdefs.h <<\_ACEOF
47696 #define wxUSE_IFF 1
47697 _ACEOF
47698
47699     fi
47700
47701     if test "$wxUSE_PNM" = "yes" ; then
47702       cat >>confdefs.h <<\_ACEOF
47703 #define wxUSE_PNM 1
47704 _ACEOF
47705
47706     fi
47707
47708     if test "$wxUSE_XPM" = "yes" ; then
47709       cat >>confdefs.h <<\_ACEOF
47710 #define wxUSE_XPM 1
47711 _ACEOF
47712
47713     fi
47714
47715     if test "$wxUSE_ICO_CUR" = "yes" ; then
47716       cat >>confdefs.h <<\_ACEOF
47717 #define wxUSE_ICO_CUR 1
47718 _ACEOF
47719
47720     fi
47721 fi
47722
47723
47724 if test "$wxUSE_ABOUTDLG" = "yes"; then
47725     cat >>confdefs.h <<\_ACEOF
47726 #define wxUSE_ABOUTDLG 1
47727 _ACEOF
47728
47729 fi
47730
47731 if test "$wxUSE_CHOICEDLG" = "yes"; then
47732     cat >>confdefs.h <<\_ACEOF
47733 #define wxUSE_CHOICEDLG 1
47734 _ACEOF
47735
47736 fi
47737
47738 if test "$wxUSE_COLOURDLG" = "yes"; then
47739     cat >>confdefs.h <<\_ACEOF
47740 #define wxUSE_COLOURDLG 1
47741 _ACEOF
47742
47743 fi
47744
47745 if test "$wxUSE_FILEDLG" = "yes"; then
47746     cat >>confdefs.h <<\_ACEOF
47747 #define wxUSE_FILEDLG 1
47748 _ACEOF
47749
47750 fi
47751
47752 if test "$wxUSE_FINDREPLDLG" = "yes"; then
47753     cat >>confdefs.h <<\_ACEOF
47754 #define wxUSE_FINDREPLDLG 1
47755 _ACEOF
47756
47757 fi
47758
47759 if test "$wxUSE_FONTDLG" = "yes"; then
47760     cat >>confdefs.h <<\_ACEOF
47761 #define wxUSE_FONTDLG 1
47762 _ACEOF
47763
47764 fi
47765
47766 if test "$wxUSE_DIRDLG" = "yes"; then
47767     if test "$wxUSE_TREECTRL" != "yes"; then
47768         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47769 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
47770     else
47771         cat >>confdefs.h <<\_ACEOF
47772 #define wxUSE_DIRDLG 1
47773 _ACEOF
47774
47775     fi
47776 fi
47777
47778 if test "$wxUSE_MSGDLG" = "yes"; then
47779     cat >>confdefs.h <<\_ACEOF
47780 #define wxUSE_MSGDLG 1
47781 _ACEOF
47782
47783 fi
47784
47785 if test "$wxUSE_NUMBERDLG" = "yes"; then
47786     cat >>confdefs.h <<\_ACEOF
47787 #define wxUSE_NUMBERDLG 1
47788 _ACEOF
47789
47790 fi
47791
47792 if test "$wxUSE_PROGRESSDLG" = "yes"; then
47793     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47794        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
47795 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
47796     else
47797         cat >>confdefs.h <<\_ACEOF
47798 #define wxUSE_PROGRESSDLG 1
47799 _ACEOF
47800
47801     fi
47802 fi
47803
47804 if test "$wxUSE_SPLASH" = "yes"; then
47805     cat >>confdefs.h <<\_ACEOF
47806 #define wxUSE_SPLASH 1
47807 _ACEOF
47808
47809     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
47810 fi
47811
47812 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47813     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47814        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
47815 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
47816     else
47817         cat >>confdefs.h <<\_ACEOF
47818 #define wxUSE_STARTUP_TIPS 1
47819 _ACEOF
47820
47821     fi
47822 fi
47823
47824 if test "$wxUSE_TEXTDLG" = "yes"; then
47825     cat >>confdefs.h <<\_ACEOF
47826 #define wxUSE_TEXTDLG 1
47827 _ACEOF
47828
47829 fi
47830
47831 if test "$wxUSE_WIZARDDLG" = "yes"; then
47832     cat >>confdefs.h <<\_ACEOF
47833 #define wxUSE_WIZARDDLG 1
47834 _ACEOF
47835
47836     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47837 fi
47838
47839
47840 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47841    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
47842       cat >>confdefs.h <<\_ACEOF
47843 #define wxUSE_GRAPHICS_CONTEXT 1
47844 _ACEOF
47845
47846    elif test "$wxUSE_GTK" != 1; then
47847             cat >>confdefs.h <<\_ACEOF
47848 #define wxUSE_GRAPHICS_CONTEXT 1
47849 _ACEOF
47850
47851    else
47852
47853 pkg_failed=no
47854 echo "$as_me:$LINENO: checking for CAIRO" >&5
47855 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
47856
47857 if test -n "$PKG_CONFIG"; then
47858     if test -n "$CAIRO_CFLAGS"; then
47859         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47860     else
47861         if test -n "$PKG_CONFIG" && \
47862     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47863   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47864   ac_status=$?
47865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47866   (exit $ac_status); }; then
47867   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47868 else
47869   pkg_failed=yes
47870 fi
47871     fi
47872 else
47873         pkg_failed=untried
47874 fi
47875 if test -n "$PKG_CONFIG"; then
47876     if test -n "$CAIRO_LIBS"; then
47877         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47878     else
47879         if test -n "$PKG_CONFIG" && \
47880     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47881   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47882   ac_status=$?
47883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884   (exit $ac_status); }; then
47885   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47886 else
47887   pkg_failed=yes
47888 fi
47889     fi
47890 else
47891         pkg_failed=untried
47892 fi
47893
47894
47895
47896 if test $pkg_failed = yes; then
47897
47898 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47899         _pkg_short_errors_supported=yes
47900 else
47901         _pkg_short_errors_supported=no
47902 fi
47903         if test $_pkg_short_errors_supported = yes; then
47904                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47905         else
47906                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47907         fi
47908         # Put the nasty error message in config.log where it belongs
47909         echo "$CAIRO_PKG_ERRORS" >&5
47910
47911         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
47912 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47913
47914 elif test $pkg_failed = untried; then
47915         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
47916 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47917
47918 else
47919         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47920         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47921         echo "$as_me:$LINENO: result: yes" >&5
47922 echo "${ECHO_T}yes" >&6
47923         cat >>confdefs.h <<\_ACEOF
47924 #define wxUSE_GRAPHICS_CONTEXT 1
47925 _ACEOF
47926
47927 fi
47928    fi
47929 fi
47930
47931
47932 USE_MEDIA=0
47933
47934 if test "$wxUSE_MEDIACTRL" = "yes"; then
47935     USE_MEDIA=1
47936
47937                 if test "$wxUSE_GTK" = 1; then
47938         wxUSE_GSTREAMER="no"
47939
47940                                                                 GST_VERSION_MAJOR=0
47941         GST_VERSION_MINOR=10
47942         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
47943
47944         if test "$wxUSE_GSTREAMER8" = "no"; then
47945
47946 pkg_failed=no
47947 echo "$as_me:$LINENO: checking for GST" >&5
47948 echo $ECHO_N "checking for GST... $ECHO_C" >&6
47949
47950 if test -n "$PKG_CONFIG"; then
47951     if test -n "$GST_CFLAGS"; then
47952         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47953     else
47954         if test -n "$PKG_CONFIG" && \
47955     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47956   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47957   ac_status=$?
47958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47959   (exit $ac_status); }; then
47960   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47961 else
47962   pkg_failed=yes
47963 fi
47964     fi
47965 else
47966         pkg_failed=untried
47967 fi
47968 if test -n "$PKG_CONFIG"; then
47969     if test -n "$GST_LIBS"; then
47970         pkg_cv_GST_LIBS="$GST_LIBS"
47971     else
47972         if test -n "$PKG_CONFIG" && \
47973     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47974   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47975   ac_status=$?
47976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47977   (exit $ac_status); }; then
47978   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
47979 else
47980   pkg_failed=yes
47981 fi
47982     fi
47983 else
47984         pkg_failed=untried
47985 fi
47986
47987
47988
47989 if test $pkg_failed = yes; then
47990
47991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47992         _pkg_short_errors_supported=yes
47993 else
47994         _pkg_short_errors_supported=no
47995 fi
47996         if test $_pkg_short_errors_supported = yes; then
47997                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47998         else
47999                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48000         fi
48001         # Put the nasty error message in config.log where it belongs
48002         echo "$GST_PKG_ERRORS" >&5
48003
48004
48005                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48006 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48007                     GST_VERSION_MINOR=8
48008
48009
48010 elif test $pkg_failed = untried; then
48011
48012                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48013 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48014                     GST_VERSION_MINOR=8
48015
48016
48017 else
48018         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48019         GST_LIBS=$pkg_cv_GST_LIBS
48020         echo "$as_me:$LINENO: result: yes" >&5
48021 echo "${ECHO_T}yes" >&6
48022
48023                     wxUSE_GSTREAMER="yes"
48024                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48025
48026 fi
48027         else
48028                         GST_VERSION_MINOR=8
48029         fi
48030
48031         if test $GST_VERSION_MINOR = "8"; then
48032             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48033
48034 pkg_failed=no
48035 echo "$as_me:$LINENO: checking for GST" >&5
48036 echo $ECHO_N "checking for GST... $ECHO_C" >&6
48037
48038 if test -n "$PKG_CONFIG"; then
48039     if test -n "$GST_CFLAGS"; then
48040         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48041     else
48042         if test -n "$PKG_CONFIG" && \
48043     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48044   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48045   ac_status=$?
48046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48047   (exit $ac_status); }; then
48048   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48049 else
48050   pkg_failed=yes
48051 fi
48052     fi
48053 else
48054         pkg_failed=untried
48055 fi
48056 if test -n "$PKG_CONFIG"; then
48057     if test -n "$GST_LIBS"; then
48058         pkg_cv_GST_LIBS="$GST_LIBS"
48059     else
48060         if test -n "$PKG_CONFIG" && \
48061     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48062   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48063   ac_status=$?
48064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48065   (exit $ac_status); }; then
48066   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48067 else
48068   pkg_failed=yes
48069 fi
48070     fi
48071 else
48072         pkg_failed=untried
48073 fi
48074
48075
48076
48077 if test $pkg_failed = yes; then
48078
48079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48080         _pkg_short_errors_supported=yes
48081 else
48082         _pkg_short_errors_supported=no
48083 fi
48084         if test $_pkg_short_errors_supported = yes; then
48085                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48086         else
48087                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48088         fi
48089         # Put the nasty error message in config.log where it belongs
48090         echo "$GST_PKG_ERRORS" >&5
48091
48092
48093                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48094 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48095
48096 elif test $pkg_failed = untried; then
48097
48098                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48099 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48100
48101 else
48102         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48103         GST_LIBS=$pkg_cv_GST_LIBS
48104         echo "$as_me:$LINENO: result: yes" >&5
48105 echo "${ECHO_T}yes" >&6
48106         wxUSE_GSTREAMER="yes"
48107 fi
48108         fi
48109
48110
48111         if test "$wxUSE_GSTREAMER" = "yes"; then
48112             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48113             LIBS="$GST_LIBS $LIBS"
48114
48115             cat >>confdefs.h <<\_ACEOF
48116 #define wxUSE_GSTREAMER 1
48117 _ACEOF
48118
48119         else
48120             USE_MEDIA=0
48121         fi
48122     fi
48123
48124     if test $USE_MEDIA = 1; then
48125         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48126         cat >>confdefs.h <<\_ACEOF
48127 #define wxUSE_MEDIACTRL 1
48128 _ACEOF
48129
48130     fi
48131 fi
48132
48133
48134 if test "$cross_compiling" = "yes"; then
48135         OSINFO="\"$host\""
48136 else
48137         OSINFO=`uname -s -r -m`
48138     OSINFO="\"$OSINFO\""
48139 fi
48140
48141 cat >>confdefs.h <<_ACEOF
48142 #define WXWIN_OS_DESCRIPTION $OSINFO
48143 _ACEOF
48144
48145
48146
48147 if test "x$prefix" != "xNONE"; then
48148     wxPREFIX=$prefix
48149 else
48150     wxPREFIX=$ac_default_prefix
48151 fi
48152
48153 cat >>confdefs.h <<_ACEOF
48154 #define wxINSTALL_PREFIX "$wxPREFIX"
48155 _ACEOF
48156
48157
48158
48159
48160 STD_BASE_LIBS="base"
48161 STD_GUI_LIBS=""
48162 BUILT_WX_LIBS="base"
48163 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
48164
48165 if test "$wxUSE_SOCKETS" = "yes" ; then
48166     STD_BASE_LIBS="net $STD_BASE_LIBS"
48167     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
48168 fi
48169 if test "$wxUSE_ODBC" != "no" ; then
48170     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
48171 fi
48172 if test "$wxUSE_XML" = "yes" ; then
48173     STD_BASE_LIBS="xml $STD_BASE_LIBS"
48174     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
48175 fi
48176
48177 if test "$wxUSE_GUI" = "yes"; then
48178     STD_GUI_LIBS="adv core"
48179
48180     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48181         STD_GUI_LIBS="qa $STD_GUI_LIBS"
48182         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
48183     fi
48184     if test "$wxUSE_ODBC" != "no" ; then
48185         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
48186     fi
48187     if test "$wxUSE_HTML" = "yes" ; then
48188         STD_GUI_LIBS="html $STD_GUI_LIBS"
48189         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
48190     fi
48191     if test "$wxUSE_MEDIACTRL" = "yes" ; then
48192         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
48193     fi
48194     if test "$wxUSE_OPENGL" = "yes" ; then
48195         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
48196     fi
48197     if test "$wxUSE_AUI" = "yes" ; then
48198         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
48199     fi
48200     if test "$wxUSE_STC" = "yes" ; then
48201         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
48202     fi
48203     if test "$wxUSE_XRC" = "yes" ; then
48204         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48205         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48206     fi
48207 fi
48208
48209
48210
48211
48212
48213
48214
48215
48216 if test "$wxUSE_MAC" = 1 ; then
48217     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
48218         if test "$USE_DARWIN" = 1; then
48219             LDFLAGS="$LDFLAGS -framework QuickTime"
48220         else
48221             LDFLAGS="$LDFLAGS -lQuickTimeLib"
48222         fi
48223     fi
48224     if test "$USE_DARWIN" = 1; then
48225         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
48226     else
48227         LDFLAGS="$LDFLAGS -lCarbonLib"
48228     fi
48229 fi
48230 if test "$wxUSE_COCOA" = 1 ; then
48231     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
48232     if test "$wxUSE_MEDIACTRL" = "yes"; then
48233         LDFLAGS="$LDFLAGS -framework QuickTime"
48234     fi
48235 fi
48236 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
48237     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
48238 fi
48239
48240 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
48241
48242 if test "$wxUSE_GUI" = "yes"; then
48243
48244
48245         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
48246                      dynamic erase event exec font image minimal mobile \
48247                      mobile/wxedit mobile/styles propsize render \
48248                      rotate shaped svg taborder vscroll widgets"
48249
48250     if test "$wxUSE_MONOLITHIC" != "yes"; then
48251         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
48252     fi
48253     if test "$TOOLKIT" = "MSW"; then
48254         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
48255         if test "$wxUSE_UNIVERSAL" != "yes"; then
48256             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
48257         fi
48258     fi
48259     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
48260         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
48261     fi
48262 else
48263     SAMPLES_SUBDIRS="console"
48264 fi
48265
48266
48267 if test "x$INTELCC" = "xyes" ; then
48268                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
48269 elif test "$GCC" = yes ; then
48270     CWARNINGS="-Wall -Wundef"
48271 fi
48272
48273 if test "x$INTELCXX" = "xyes" ; then
48274                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
48275 elif test "$GXX" = yes ; then
48276         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
48277 fi
48278
48279
48280 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
48281 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
48282
48283
48284 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
48285  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
48286  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
48287  $CPPFLAGS `
48288
48289 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
48290 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
48291 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
48292
48293 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
48294
48295
48296 if test "x$MWCC" = "xyes"; then
48297
48298             CC="$CC -cwd source -I-"
48299     CXX="$CXX -cwd source -I-"
48300 fi
48301
48302
48303 LIBS=`echo $LIBS`
48304 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
48305 EXTRALIBS_XML="$EXPAT_LINK"
48306 EXTRALIBS_HTML="$MSPACK_LINK"
48307 EXTRALIBS_ODBC="$ODBC_LINK"
48308 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
48309 if test "$wxUSE_GUI" = "yes"; then
48310     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
48311 fi
48312 if test "$wxUSE_OPENGL" = "yes"; then
48313     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
48314 fi
48315
48316 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
48317
48318 WXCONFIG_LIBS="$LIBS"
48319
48320 if test "$wxUSE_REGEX" = "builtin" ; then
48321     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
48322 fi
48323 if test "$wxUSE_EXPAT" = "builtin" ; then
48324     wxconfig_3rdparty="expat $wxconfig_3rdparty"
48325 fi
48326 if test "$wxUSE_ODBC" = "builtin" ; then
48327     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
48328 fi
48329 if test "$wxUSE_LIBTIFF" = "builtin" ; then
48330     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
48331 fi
48332 if test "$wxUSE_LIBJPEG" = "builtin" ; then
48333     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
48334 fi
48335 if test "$wxUSE_LIBPNG" = "builtin" ; then
48336     wxconfig_3rdparty="png $wxconfig_3rdparty"
48337 fi
48338 if test "$wxUSE_ZLIB" = "builtin" ; then
48339     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
48340 fi
48341
48342 for i in $wxconfig_3rdparty ; do
48343     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
48344 done
48345
48346
48347 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
48348     WXUNIV=1
48349
48350     case "$wxUNIV_THEMES" in
48351         ''|all)
48352             cat >>confdefs.h <<\_ACEOF
48353 #define wxUSE_ALL_THEMES 1
48354 _ACEOF
48355
48356             ;;
48357
48358         *)
48359             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
48360                 cat >>confdefs.h <<_ACEOF
48361 #define wxUSE_THEME_$t 1
48362 _ACEOF
48363
48364             done
48365     esac
48366 else
48367     WXUNIV=0
48368 fi
48369
48370
48371
48372
48373
48374
48375
48376
48377
48378 if test $wxUSE_MONOLITHIC = "yes" ; then
48379     MONOLITHIC=1
48380 else
48381     MONOLITHIC=0
48382 fi
48383
48384 if test $wxUSE_PLUGINS = "yes" ; then
48385     USE_PLUGINS=1
48386 else
48387     USE_PLUGINS=0
48388 fi
48389
48390 if test $wxUSE_ODBC != "no" ; then
48391     USE_ODBC=1
48392 else
48393     USE_ODBC=0
48394 fi
48395
48396 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48397     USE_QA=1
48398 else
48399     USE_QA=0
48400 fi
48401
48402 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
48403     OFFICIAL_BUILD=1
48404 else
48405     OFFICIAL_BUILD=0
48406 fi
48407
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
48434
48435
48436
48437
48438
48439
48440
48441
48442 case "$TOOLKIT" in
48443     GTK)
48444         TOOLKIT_DESC="GTK+"
48445         if test "$WXGTK20" = 1; then
48446             TOOLKIT_DESC="$TOOLKIT_DESC 2"
48447             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
48448                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
48449             fi
48450             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
48451                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
48452             fi
48453             if test "$wxUSE_LIBHILDON" = "yes"; then
48454                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
48455             fi
48456
48457             if test "$TOOLKIT_EXTRA" != ""; then
48458                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
48459             fi
48460         fi
48461         ;;
48462
48463     ?*)
48464         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
48465         ;;
48466
48467     *)
48468         TOOLKIT_DESC="base only"
48469         ;;
48470 esac
48471
48472 if test "$wxUSE_WINE" = "yes"; then
48473     BAKEFILE_FORCE_PLATFORM=win32
48474 fi
48475
48476 if test "$wxUSE_MAC" = 1 ; then
48477     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
48478                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
48479             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
48480         else
48481                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
48482         fi
48483         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
48484         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
48485         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
48486         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
48487         bk_use_pch=no
48488     fi
48489     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
48490     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
48491 fi
48492
48493 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
48494 then
48495     echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
48496 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
48497 if test "${wx_cv_gcc_pch_bug+set}" = set; then
48498   echo $ECHO_N "(cached) $ECHO_C" >&6
48499 else
48500
48501             echo '#include <stdio.h>
48502                   const wchar_t test_var[] = L"awidetest";' > conftest.h
48503
48504             echo '#include "conftest.h"
48505                   int main()
48506                   {
48507                      printf("%ls", test_var);
48508                      return 0;
48509                   }' > conftest.cpp
48510
48511             wx_cv_gcc_pch_bug="pch not supported"
48512
48513             if $CXX conftest.h >/dev/null 2>&1
48514             then
48515                 wx_cv_gcc_pch_bug=
48516
48517                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
48518                 then
48519                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
48520                         grep awidetest >/dev/null
48521                     then
48522                         wx_cv_gcc_pch_bug=no
48523                     else
48524                         wx_cv_gcc_pch_bug=yes
48525                     fi
48526                 fi
48527             fi
48528
48529             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
48530
48531 fi
48532 echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
48533 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
48534
48535     if test "$wx_cv_gcc_pch_bug" = yes; then
48536                         bk_use_pch=no
48537     fi
48538 fi
48539
48540
48541
48542
48543     if test "x$BAKEFILE_HOST" = "x"; then
48544                if test "x${host}" = "x" ; then
48545                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
48546 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
48547    { (exit 1); exit 1; }; }
48548                fi
48549
48550         BAKEFILE_HOST="${host}"
48551     fi
48552
48553     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
48554
48555     if test -n "$ac_tool_prefix"; then
48556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
48557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
48558 echo "$as_me:$LINENO: checking for $ac_word" >&5
48559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48560 if test "${ac_cv_prog_RANLIB+set}" = set; then
48561   echo $ECHO_N "(cached) $ECHO_C" >&6
48562 else
48563   if test -n "$RANLIB"; then
48564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
48565 else
48566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48567 for as_dir in $PATH
48568 do
48569   IFS=$as_save_IFS
48570   test -z "$as_dir" && as_dir=.
48571   for ac_exec_ext in '' $ac_executable_extensions; do
48572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
48574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48575     break 2
48576   fi
48577 done
48578 done
48579
48580 fi
48581 fi
48582 RANLIB=$ac_cv_prog_RANLIB
48583 if test -n "$RANLIB"; then
48584   echo "$as_me:$LINENO: result: $RANLIB" >&5
48585 echo "${ECHO_T}$RANLIB" >&6
48586 else
48587   echo "$as_me:$LINENO: result: no" >&5
48588 echo "${ECHO_T}no" >&6
48589 fi
48590
48591 fi
48592 if test -z "$ac_cv_prog_RANLIB"; then
48593   ac_ct_RANLIB=$RANLIB
48594   # Extract the first word of "ranlib", so it can be a program name with args.
48595 set dummy ranlib; ac_word=$2
48596 echo "$as_me:$LINENO: checking for $ac_word" >&5
48597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
48599   echo $ECHO_N "(cached) $ECHO_C" >&6
48600 else
48601   if test -n "$ac_ct_RANLIB"; then
48602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
48603 else
48604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48605 for as_dir in $PATH
48606 do
48607   IFS=$as_save_IFS
48608   test -z "$as_dir" && as_dir=.
48609   for ac_exec_ext in '' $ac_executable_extensions; do
48610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48611     ac_cv_prog_ac_ct_RANLIB="ranlib"
48612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48613     break 2
48614   fi
48615 done
48616 done
48617
48618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
48619 fi
48620 fi
48621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
48622 if test -n "$ac_ct_RANLIB"; then
48623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
48624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
48625 else
48626   echo "$as_me:$LINENO: result: no" >&5
48627 echo "${ECHO_T}no" >&6
48628 fi
48629
48630   RANLIB=$ac_ct_RANLIB
48631 else
48632   RANLIB="$ac_cv_prog_RANLIB"
48633 fi
48634
48635     # Find a good install program.  We prefer a C program (faster),
48636 # so one script is as good as another.  But avoid the broken or
48637 # incompatible versions:
48638 # SysV /etc/install, /usr/sbin/install
48639 # SunOS /usr/etc/install
48640 # IRIX /sbin/install
48641 # AIX /bin/install
48642 # AmigaOS /C/install, which installs bootblocks on floppy discs
48643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
48644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
48645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
48646 # OS/2's system install, which has a completely different semantic
48647 # ./install, which can be erroneously created by make from ./install.sh.
48648 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
48649 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
48650 if test -z "$INSTALL"; then
48651 if test "${ac_cv_path_install+set}" = set; then
48652   echo $ECHO_N "(cached) $ECHO_C" >&6
48653 else
48654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48655 for as_dir in $PATH
48656 do
48657   IFS=$as_save_IFS
48658   test -z "$as_dir" && as_dir=.
48659   # Account for people who put trailing slashes in PATH elements.
48660 case $as_dir/ in
48661   ./ | .// | /cC/* | \
48662   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
48663   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
48664   /usr/ucb/* ) ;;
48665   *)
48666     # OSF1 and SCO ODT 3.0 have their own names for install.
48667     # Don't use installbsd from OSF since it installs stuff as root
48668     # by default.
48669     for ac_prog in ginstall scoinst install; do
48670       for ac_exec_ext in '' $ac_executable_extensions; do
48671         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
48672           if test $ac_prog = install &&
48673             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48674             # AIX install.  It has an incompatible calling convention.
48675             :
48676           elif test $ac_prog = install &&
48677             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
48678             # program-specific install script used by HP pwplus--don't use.
48679             :
48680           else
48681             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
48682             break 3
48683           fi
48684         fi
48685       done
48686     done
48687     ;;
48688 esac
48689 done
48690
48691
48692 fi
48693   if test "${ac_cv_path_install+set}" = set; then
48694     INSTALL=$ac_cv_path_install
48695   else
48696     # As a last resort, use the slow shell script.  We don't cache a
48697     # path for INSTALL within a source directory, because that will
48698     # break other packages using the cache if that directory is
48699     # removed, or if the path is relative.
48700     INSTALL=$ac_install_sh
48701   fi
48702 fi
48703 echo "$as_me:$LINENO: result: $INSTALL" >&5
48704 echo "${ECHO_T}$INSTALL" >&6
48705
48706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
48707 # It thinks the first close brace ends the variable substitution.
48708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
48709
48710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
48711
48712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
48713
48714     echo "$as_me:$LINENO: checking whether ln -s works" >&5
48715 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
48716 LN_S=$as_ln_s
48717 if test "$LN_S" = "ln -s"; then
48718   echo "$as_me:$LINENO: result: yes" >&5
48719 echo "${ECHO_T}yes" >&6
48720 else
48721   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48722 echo "${ECHO_T}no, using $LN_S" >&6
48723 fi
48724
48725
48726     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48727 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
48728 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
48729 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48730   echo $ECHO_N "(cached) $ECHO_C" >&6
48731 else
48732   cat >conftest.make <<\_ACEOF
48733 all:
48734         @echo 'ac_maketemp="$(MAKE)"'
48735 _ACEOF
48736 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48737 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48738 if test -n "$ac_maketemp"; then
48739   eval ac_cv_prog_make_${ac_make}_set=yes
48740 else
48741   eval ac_cv_prog_make_${ac_make}_set=no
48742 fi
48743 rm -f conftest.make
48744 fi
48745 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48746   echo "$as_me:$LINENO: result: yes" >&5
48747 echo "${ECHO_T}yes" >&6
48748   SET_MAKE=
48749 else
48750   echo "$as_me:$LINENO: result: no" >&5
48751 echo "${ECHO_T}no" >&6
48752   SET_MAKE="MAKE=${MAKE-make}"
48753 fi
48754
48755
48756
48757     if test "x$SUNCXX" = "xyes"; then
48758                                 AR=$CXX
48759         AROPTIONS="-xar -o"
48760
48761     elif test "x$SGICC" = "xyes"; then
48762                 AR=$CXX
48763         AROPTIONS="-ar -o"
48764
48765     else
48766         if test -n "$ac_tool_prefix"; then
48767   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48768 set dummy ${ac_tool_prefix}ar; ac_word=$2
48769 echo "$as_me:$LINENO: checking for $ac_word" >&5
48770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48771 if test "${ac_cv_prog_AR+set}" = set; then
48772   echo $ECHO_N "(cached) $ECHO_C" >&6
48773 else
48774   if test -n "$AR"; then
48775   ac_cv_prog_AR="$AR" # Let the user override the test.
48776 else
48777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48778 for as_dir in $PATH
48779 do
48780   IFS=$as_save_IFS
48781   test -z "$as_dir" && as_dir=.
48782   for ac_exec_ext in '' $ac_executable_extensions; do
48783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48784     ac_cv_prog_AR="${ac_tool_prefix}ar"
48785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48786     break 2
48787   fi
48788 done
48789 done
48790
48791 fi
48792 fi
48793 AR=$ac_cv_prog_AR
48794 if test -n "$AR"; then
48795   echo "$as_me:$LINENO: result: $AR" >&5
48796 echo "${ECHO_T}$AR" >&6
48797 else
48798   echo "$as_me:$LINENO: result: no" >&5
48799 echo "${ECHO_T}no" >&6
48800 fi
48801
48802 fi
48803 if test -z "$ac_cv_prog_AR"; then
48804   ac_ct_AR=$AR
48805   # Extract the first word of "ar", so it can be a program name with args.
48806 set dummy ar; ac_word=$2
48807 echo "$as_me:$LINENO: checking for $ac_word" >&5
48808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48809 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
48810   echo $ECHO_N "(cached) $ECHO_C" >&6
48811 else
48812   if test -n "$ac_ct_AR"; then
48813   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48814 else
48815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48816 for as_dir in $PATH
48817 do
48818   IFS=$as_save_IFS
48819   test -z "$as_dir" && as_dir=.
48820   for ac_exec_ext in '' $ac_executable_extensions; do
48821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48822     ac_cv_prog_ac_ct_AR="ar"
48823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48824     break 2
48825   fi
48826 done
48827 done
48828
48829   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
48830 fi
48831 fi
48832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
48833 if test -n "$ac_ct_AR"; then
48834   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48835 echo "${ECHO_T}$ac_ct_AR" >&6
48836 else
48837   echo "$as_me:$LINENO: result: no" >&5
48838 echo "${ECHO_T}no" >&6
48839 fi
48840
48841   AR=$ac_ct_AR
48842 else
48843   AR="$ac_cv_prog_AR"
48844 fi
48845
48846         AROPTIONS=rcu
48847     fi
48848
48849
48850     if test -n "$ac_tool_prefix"; then
48851   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48852 set dummy ${ac_tool_prefix}strip; ac_word=$2
48853 echo "$as_me:$LINENO: checking for $ac_word" >&5
48854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48855 if test "${ac_cv_prog_STRIP+set}" = set; then
48856   echo $ECHO_N "(cached) $ECHO_C" >&6
48857 else
48858   if test -n "$STRIP"; then
48859   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48860 else
48861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48862 for as_dir in $PATH
48863 do
48864   IFS=$as_save_IFS
48865   test -z "$as_dir" && as_dir=.
48866   for ac_exec_ext in '' $ac_executable_extensions; do
48867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48868     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48870     break 2
48871   fi
48872 done
48873 done
48874
48875 fi
48876 fi
48877 STRIP=$ac_cv_prog_STRIP
48878 if test -n "$STRIP"; then
48879   echo "$as_me:$LINENO: result: $STRIP" >&5
48880 echo "${ECHO_T}$STRIP" >&6
48881 else
48882   echo "$as_me:$LINENO: result: no" >&5
48883 echo "${ECHO_T}no" >&6
48884 fi
48885
48886 fi
48887 if test -z "$ac_cv_prog_STRIP"; then
48888   ac_ct_STRIP=$STRIP
48889   # Extract the first word of "strip", so it can be a program name with args.
48890 set dummy strip; ac_word=$2
48891 echo "$as_me:$LINENO: checking for $ac_word" >&5
48892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48893 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48894   echo $ECHO_N "(cached) $ECHO_C" >&6
48895 else
48896   if test -n "$ac_ct_STRIP"; then
48897   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48898 else
48899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48900 for as_dir in $PATH
48901 do
48902   IFS=$as_save_IFS
48903   test -z "$as_dir" && as_dir=.
48904   for ac_exec_ext in '' $ac_executable_extensions; do
48905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48906     ac_cv_prog_ac_ct_STRIP="strip"
48907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48908     break 2
48909   fi
48910 done
48911 done
48912
48913   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
48914 fi
48915 fi
48916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48917 if test -n "$ac_ct_STRIP"; then
48918   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48919 echo "${ECHO_T}$ac_ct_STRIP" >&6
48920 else
48921   echo "$as_me:$LINENO: result: no" >&5
48922 echo "${ECHO_T}no" >&6
48923 fi
48924
48925   STRIP=$ac_ct_STRIP
48926 else
48927   STRIP="$ac_cv_prog_STRIP"
48928 fi
48929
48930     if test -n "$ac_tool_prefix"; then
48931   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48932 set dummy ${ac_tool_prefix}nm; ac_word=$2
48933 echo "$as_me:$LINENO: checking for $ac_word" >&5
48934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48935 if test "${ac_cv_prog_NM+set}" = set; then
48936   echo $ECHO_N "(cached) $ECHO_C" >&6
48937 else
48938   if test -n "$NM"; then
48939   ac_cv_prog_NM="$NM" # Let the user override the test.
48940 else
48941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48942 for as_dir in $PATH
48943 do
48944   IFS=$as_save_IFS
48945   test -z "$as_dir" && as_dir=.
48946   for ac_exec_ext in '' $ac_executable_extensions; do
48947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48948     ac_cv_prog_NM="${ac_tool_prefix}nm"
48949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48950     break 2
48951   fi
48952 done
48953 done
48954
48955 fi
48956 fi
48957 NM=$ac_cv_prog_NM
48958 if test -n "$NM"; then
48959   echo "$as_me:$LINENO: result: $NM" >&5
48960 echo "${ECHO_T}$NM" >&6
48961 else
48962   echo "$as_me:$LINENO: result: no" >&5
48963 echo "${ECHO_T}no" >&6
48964 fi
48965
48966 fi
48967 if test -z "$ac_cv_prog_NM"; then
48968   ac_ct_NM=$NM
48969   # Extract the first word of "nm", so it can be a program name with args.
48970 set dummy nm; ac_word=$2
48971 echo "$as_me:$LINENO: checking for $ac_word" >&5
48972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48973 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48974   echo $ECHO_N "(cached) $ECHO_C" >&6
48975 else
48976   if test -n "$ac_ct_NM"; then
48977   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48978 else
48979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48980 for as_dir in $PATH
48981 do
48982   IFS=$as_save_IFS
48983   test -z "$as_dir" && as_dir=.
48984   for ac_exec_ext in '' $ac_executable_extensions; do
48985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48986     ac_cv_prog_ac_ct_NM="nm"
48987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48988     break 2
48989   fi
48990 done
48991 done
48992
48993   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
48994 fi
48995 fi
48996 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48997 if test -n "$ac_ct_NM"; then
48998   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48999 echo "${ECHO_T}$ac_ct_NM" >&6
49000 else
49001   echo "$as_me:$LINENO: result: no" >&5
49002 echo "${ECHO_T}no" >&6
49003 fi
49004
49005   NM=$ac_ct_NM
49006 else
49007   NM="$ac_cv_prog_NM"
49008 fi
49009
49010
49011     case ${BAKEFILE_HOST} in
49012         *-hp-hpux* )
49013                                     INSTALL_DIR="mkdir -p"
49014             ;;
49015         * )
49016                                     INSTALL_DIR='$(INSTALL) -d'
49017             ;;
49018     esac
49019
49020
49021     LDFLAGS_GUI=
49022     case ${BAKEFILE_HOST} in
49023         *-*-cygwin* | *-*-mingw32* )
49024         LDFLAGS_GUI="-mwindows"
49025     esac
49026
49027
49028     fi
49029
49030         echo "$as_me:$LINENO: checking if make is GNU make" >&5
49031 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49032 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49033   echo $ECHO_N "(cached) $ECHO_C" >&6
49034 else
49035
49036         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49037                 egrep -s GNU > /dev/null); then
49038             bakefile_cv_prog_makeisgnu="yes"
49039         else
49040             bakefile_cv_prog_makeisgnu="no"
49041         fi
49042
49043 fi
49044 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49045 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
49046
49047     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49048         IF_GNU_MAKE=""
49049     else
49050         IF_GNU_MAKE="#"
49051     fi
49052
49053
49054
49055     PLATFORM_UNIX=0
49056     PLATFORM_WIN32=0
49057     PLATFORM_MSDOS=0
49058     PLATFORM_MAC=0
49059     PLATFORM_MACOS=0
49060     PLATFORM_MACOSX=0
49061     PLATFORM_OS2=0
49062     PLATFORM_BEOS=0
49063
49064     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49065         case "${BAKEFILE_HOST}" in
49066             *-*-mingw32* )
49067                 PLATFORM_WIN32=1
49068             ;;
49069             *-pc-msdosdjgpp )
49070                 PLATFORM_MSDOS=1
49071             ;;
49072             *-pc-os2_emx | *-pc-os2-emx )
49073                 PLATFORM_OS2=1
49074             ;;
49075             *-*-darwin* )
49076                 PLATFORM_MAC=1
49077                 PLATFORM_MACOSX=1
49078             ;;
49079             *-*-beos* )
49080                 PLATFORM_BEOS=1
49081             ;;
49082             powerpc-apple-macos* )
49083                 PLATFORM_MAC=1
49084                 PLATFORM_MACOS=1
49085             ;;
49086             * )
49087                 PLATFORM_UNIX=1
49088             ;;
49089         esac
49090     else
49091         case "$BAKEFILE_FORCE_PLATFORM" in
49092             win32 )
49093                 PLATFORM_WIN32=1
49094             ;;
49095             msdos )
49096                 PLATFORM_MSDOS=1
49097             ;;
49098             os2 )
49099                 PLATFORM_OS2=1
49100             ;;
49101             darwin )
49102                 PLATFORM_MAC=1
49103                 PLATFORM_MACOSX=1
49104             ;;
49105             unix )
49106                 PLATFORM_UNIX=1
49107             ;;
49108             beos )
49109                 PLATFORM_BEOS=1
49110             ;;
49111             * )
49112                                             ;;
49113         esac
49114     fi
49115
49116
49117
49118
49119
49120
49121
49122
49123
49124
49125
49126     # Check whether --enable-omf or --disable-omf was given.
49127 if test "${enable_omf+set}" = set; then
49128   enableval="$enable_omf"
49129   bk_os2_use_omf="$enableval"
49130 fi;
49131
49132     case "${BAKEFILE_HOST}" in
49133       *-*-darwin* )
49134                         if test "x$GCC" = "xyes"; then
49135             CFLAGS="$CFLAGS -fno-common"
49136             CXXFLAGS="$CXXFLAGS -fno-common"
49137         fi
49138         if test "x$XLCC" = "xyes"; then
49139             CFLAGS="$CFLAGS -qnocommon"
49140             CXXFLAGS="$CXXFLAGS -qnocommon"
49141         fi
49142         ;;
49143
49144       *-pc-os2_emx | *-pc-os2-emx )
49145         if test "x$bk_os2_use_omf" = "xyes" ; then
49146             AR=emxomfar
49147             RANLIB=:
49148             LDFLAGS="-Zomf $LDFLAGS"
49149             CFLAGS="-Zomf $CFLAGS"
49150             CXXFLAGS="-Zomf $CXXFLAGS"
49151             OS2_LIBEXT="lib"
49152         else
49153             OS2_LIBEXT="a"
49154         fi
49155         ;;
49156
49157       i*86-*-beos* )
49158         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49159         ;;
49160     esac
49161
49162
49163     SO_SUFFIX="so"
49164     SO_SUFFIX_MODULE="so"
49165     EXEEXT=""
49166     LIBPREFIX="lib"
49167     LIBEXT=".a"
49168     DLLPREFIX="lib"
49169     DLLPREFIX_MODULE=""
49170     DLLIMP_SUFFIX=""
49171     dlldir="$libdir"
49172
49173     case "${BAKEFILE_HOST}" in
49174         *-hp-hpux* )
49175             SO_SUFFIX="sl"
49176             SO_SUFFIX_MODULE="sl"
49177         ;;
49178         *-*-aix* )
49179                                                                         SO_SUFFIX="a"
49180             SO_SUFFIX_MODULE="a"
49181         ;;
49182         *-*-cygwin* )
49183             SO_SUFFIX="dll"
49184             SO_SUFFIX_MODULE="dll"
49185             DLLIMP_SUFFIX="dll.a"
49186             EXEEXT=".exe"
49187             DLLPREFIX="cyg"
49188             dlldir="$bindir"
49189         ;;
49190         *-*-mingw32* )
49191             SO_SUFFIX="dll"
49192             SO_SUFFIX_MODULE="dll"
49193             DLLIMP_SUFFIX="dll.a"
49194             EXEEXT=".exe"
49195             DLLPREFIX=""
49196             dlldir="$bindir"
49197         ;;
49198         *-pc-msdosdjgpp )
49199             EXEEXT=".exe"
49200             DLLPREFIX=""
49201             dlldir="$bindir"
49202         ;;
49203         *-pc-os2_emx | *-pc-os2-emx )
49204             SO_SUFFIX="dll"
49205             SO_SUFFIX_MODULE="dll"
49206             DLLIMP_SUFFIX=$OS2_LIBEXT
49207             EXEEXT=".exe"
49208             DLLPREFIX=""
49209             LIBPREFIX=""
49210             LIBEXT=".$OS2_LIBEXT"
49211             dlldir="$bindir"
49212         ;;
49213         *-*-darwin* )
49214             SO_SUFFIX="dylib"
49215             SO_SUFFIX_MODULE="bundle"
49216         ;;
49217     esac
49218
49219     if test "x$DLLIMP_SUFFIX" = "x" ; then
49220         DLLIMP_SUFFIX="$SO_SUFFIX"
49221     fi
49222
49223
49224
49225
49226
49227
49228
49229
49230
49231
49232
49233
49234         PIC_FLAG=""
49235     if test "x$GCC" = "xyes"; then
49236                 PIC_FLAG="-fPIC"
49237     fi
49238
49239         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
49240     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
49241     WINDOWS_IMPLIB=0
49242
49243     case "${BAKEFILE_HOST}" in
49244       *-hp-hpux* )
49245                 if test "x$GCC" != "xyes"; then
49246                         LDFLAGS="$LDFLAGS -L/usr/lib"
49247
49248             SHARED_LD_CC="${CC} -b -o"
49249             SHARED_LD_CXX="${CXX} -b -o"
49250             PIC_FLAG="+Z"
49251         fi
49252       ;;
49253
49254       *-*-linux* )
49255         if test "$INTELCC" = "yes"; then
49256             PIC_FLAG="-KPIC"
49257         elif test "x$SUNCXX" = "xyes"; then
49258             SHARED_LD_CC="${CC} -G -o"
49259             SHARED_LD_CXX="${CXX} -G -o"
49260             PIC_FLAG="-KPIC"
49261         fi
49262       ;;
49263
49264       *-*-solaris2* )
49265         if test "x$SUNCXX" = xyes ; then
49266             SHARED_LD_CC="${CC} -G -o"
49267             SHARED_LD_CXX="${CXX} -G -o"
49268             PIC_FLAG="-KPIC"
49269         fi
49270       ;;
49271
49272       *-*-darwin* )
49273
49274 D='$'
49275 cat <<EOF >shared-ld-sh
49276 #!/bin/sh
49277 #-----------------------------------------------------------------------------
49278 #-- Name:        distrib/mac/shared-ld-sh
49279 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
49280 #-- Author:      Gilles Depeyrot
49281 #-- Copyright:   (c) 2002 Gilles Depeyrot
49282 #-- Licence:     any use permitted
49283 #-----------------------------------------------------------------------------
49284
49285 verbose=0
49286 args=""
49287 objects=""
49288 linking_flag="-dynamiclib"
49289 ldargs="-r -keep_private_externs -nostdlib"
49290
49291 while test ${D}# -gt 0; do
49292     case ${D}1 in
49293
49294        -v)
49295         verbose=1
49296         ;;
49297
49298        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
49299         # collect these options and values
49300         args="${D}{args} ${D}1 ${D}2"
49301         shift
49302         ;;
49303
49304        -s|-Wl,*)
49305         # collect these load args
49306         ldargs="${D}{ldargs} ${D}1"
49307         ;;
49308
49309        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
49310         # collect these options
49311         args="${D}{args} ${D}1"
49312         ;;
49313
49314        -dynamiclib|-bundle)
49315         linking_flag="${D}1"
49316         ;;
49317
49318        -*)
49319         echo "shared-ld: unhandled option '${D}1'"
49320         exit 1
49321         ;;
49322
49323         *.o | *.a | *.dylib)
49324         # collect object files
49325         objects="${D}{objects} ${D}1"
49326         ;;
49327
49328         *)
49329         echo "shared-ld: unhandled argument '${D}1'"
49330         exit 1
49331         ;;
49332
49333     esac
49334     shift
49335 done
49336
49337 status=0
49338
49339 #
49340 # Link one module containing all the others
49341 #
49342 if test ${D}{verbose} = 1; then
49343     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
49344 fi
49345 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
49346 status=${D}?
49347
49348 #
49349 # Link the shared library from the single module created, but only if the
49350 # previous command didn't fail:
49351 #
49352 if test ${D}{status} = 0; then
49353     if test ${D}{verbose} = 1; then
49354         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
49355     fi
49356     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
49357     status=${D}?
49358 fi
49359
49360 #
49361 # Remove intermediate module
49362 #
49363 rm -f master.${D}${D}.o
49364
49365 exit ${D}status
49366 EOF
49367
49368         chmod +x shared-ld-sh
49369
49370         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
49371         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
49372
49373
49374                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
49375 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
49376 if test "${bakefile_cv_gcc31+set}" = set; then
49377   echo $ECHO_N "(cached) $ECHO_C" >&6
49378 else
49379
49380            cat >conftest.$ac_ext <<_ACEOF
49381 /* confdefs.h.  */
49382 _ACEOF
49383 cat confdefs.h >>conftest.$ac_ext
49384 cat >>conftest.$ac_ext <<_ACEOF
49385 /* end confdefs.h.  */
49386
49387 int
49388 main ()
49389 {
49390
49391                    #if (__GNUC__ < 3) || \
49392                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
49393                        This is old gcc
49394                    #endif
49395
49396   ;
49397   return 0;
49398 }
49399 _ACEOF
49400 rm -f conftest.$ac_objext
49401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49402   (eval $ac_compile) 2>conftest.er1
49403   ac_status=$?
49404   grep -v '^ *+' conftest.er1 >conftest.err
49405   rm -f conftest.er1
49406   cat conftest.err >&5
49407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49408   (exit $ac_status); } &&
49409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
49410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49411   (eval $ac_try) 2>&5
49412   ac_status=$?
49413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49414   (exit $ac_status); }; } &&
49415          { ac_try='test -s conftest.$ac_objext'
49416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49417   (eval $ac_try) 2>&5
49418   ac_status=$?
49419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49420   (exit $ac_status); }; }; then
49421
49422                    bakefile_cv_gcc31=yes
49423
49424 else
49425   echo "$as_me: failed program was:" >&5
49426 sed 's/^/| /' conftest.$ac_ext >&5
49427
49428
49429                    bakefile_cv_gcc31=no
49430
49431
49432 fi
49433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49434
49435 fi
49436 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
49437 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
49438         if test "$bakefile_cv_gcc31" = "no"; then
49439                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
49440             SHARED_LD_CXX="$SHARED_LD_CC"
49441         else
49442                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
49443             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
49444         fi
49445
49446         if test "x$GCC" == "xyes"; then
49447             PIC_FLAG="-dynamic -fPIC"
49448         fi
49449         if test "x$XLCC" = "xyes"; then
49450             PIC_FLAG="-dynamic -DPIC"
49451         fi
49452       ;;
49453
49454       *-*-aix* )
49455         if test "x$GCC" = "xyes"; then
49456                                                             PIC_FLAG=""
49457
49458                                                                                     case "${BAKEFILE_HOST}" in
49459                 *-*-aix5* )
49460                     LD_EXPFULL="-Wl,-bexpfull"
49461                     ;;
49462             esac
49463
49464             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
49465             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
49466         else
49467                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
49468 set dummy makeC++SharedLib; ac_word=$2
49469 echo "$as_me:$LINENO: checking for $ac_word" >&5
49470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49471 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
49472   echo $ECHO_N "(cached) $ECHO_C" >&6
49473 else
49474   if test -n "$AIX_CXX_LD"; then
49475   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
49476 else
49477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49478 for as_dir in $PATH
49479 do
49480   IFS=$as_save_IFS
49481   test -z "$as_dir" && as_dir=.
49482   for ac_exec_ext in '' $ac_executable_extensions; do
49483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49484     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
49485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49486     break 2
49487   fi
49488 done
49489 done
49490
49491   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
49492 fi
49493 fi
49494 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
49495 if test -n "$AIX_CXX_LD"; then
49496   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
49497 echo "${ECHO_T}$AIX_CXX_LD" >&6
49498 else
49499   echo "$as_me:$LINENO: result: no" >&5
49500 echo "${ECHO_T}no" >&6
49501 fi
49502
49503             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
49504             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
49505         fi
49506       ;;
49507
49508       *-*-beos* )
49509                         SHARED_LD_CC="${LD} -nostart -o"
49510         SHARED_LD_CXX="${LD} -nostart -o"
49511       ;;
49512
49513       *-*-irix* )
49514                 if test "x$GCC" != "xyes"; then
49515             PIC_FLAG="-KPIC"
49516         fi
49517       ;;
49518
49519       *-*-cygwin* | *-*-mingw32* )
49520         PIC_FLAG=""
49521         SHARED_LD_CC="\$(CC) -shared -o"
49522         SHARED_LD_CXX="\$(CXX) -shared -o"
49523         WINDOWS_IMPLIB=1
49524       ;;
49525
49526       *-pc-os2_emx | *-pc-os2-emx )
49527         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49528         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49529         PIC_FLAG=""
49530
49531 D='$'
49532 cat <<EOF >dllar.sh
49533 #!/bin/sh
49534 #
49535 # dllar - a tool to build both a .dll and an .a file
49536 # from a set of object (.o) files for EMX/OS2.
49537 #
49538 #  Written by Andrew Zabolotny, bit@freya.etu.ru
49539 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
49540 #
49541 #  This script will accept a set of files on the command line.
49542 #  All the public symbols from the .o files will be exported into
49543 #  a .DEF file, then linker will be run (through gcc) against them to
49544 #  build a shared library consisting of all given .o files. All libraries
49545 #  (.a) will be first decompressed into component .o files then act as
49546 #  described above. You can optionally give a description (-d "description")
49547 #  which will be put into .DLL. To see the list of accepted options (as well
49548 #  as command-line format) simply run this program without options. The .DLL
49549 #  is built to be imported by name (there is no guarantee that new versions
49550 #  of the library you build will have same ordinals for same symbols).
49551 #
49552 #  dllar is free software; you can redistribute it and/or modify
49553 #  it under the terms of the GNU General Public License as published by
49554 #  the Free Software Foundation; either version 2, or (at your option)
49555 #  any later version.
49556 #
49557 #  dllar is distributed in the hope that it will be useful,
49558 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
49559 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
49560 #  GNU General Public License for more details.
49561 #
49562 #  You should have received a copy of the GNU General Public License
49563 #  along with dllar; see the file COPYING.  If not, write to the Free
49564 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
49565 #  02111-1307, USA.
49566
49567 # To successfuly run this program you will need:
49568 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
49569 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
49570 #  - gcc
49571 #    (used to build the .dll)
49572 #  - emxexp
49573 #    (used to create .def file from .o files)
49574 #  - emximp
49575 #    (used to create .a file from .def file)
49576 #  - GNU text utilites (cat, sort, uniq)
49577 #    used to process emxexp output
49578 #  - GNU file utilities (mv, rm)
49579 #  - GNU sed
49580 #  - lxlite (optional, see flag below)
49581 #    (used for general .dll cleanup)
49582 #
49583
49584 flag_USE_LXLITE=1;
49585
49586 #
49587 # helper functions
49588 # basnam, variant of basename, which does _not_ remove the path, _iff_
49589 #                              second argument (suffix to remove) is given
49590 basnam(){
49591     case ${D}# in
49592     1)
49593         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
49594         ;;
49595     2)
49596         echo ${D}1 | sed 's/'${D}2'${D}//'
49597         ;;
49598     *)
49599         echo "error in basnam ${D}*"
49600         exit 8
49601         ;;
49602     esac
49603 }
49604
49605 # Cleanup temporary files and output
49606 CleanUp() {
49607     cd ${D}curDir
49608     for i in ${D}inputFiles ; do
49609         case ${D}i in
49610         *!)
49611             rm -rf \`basnam ${D}i !\`
49612             ;;
49613         *)
49614             ;;
49615         esac
49616     done
49617
49618     # Kill result in case of failure as there is just to many stupid make/nmake
49619     # things out there which doesn't do this.
49620     if [ ${D}# -eq 0 ]; then
49621         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
49622     fi
49623 }
49624
49625 # Print usage and exit script with rc=1.
49626 PrintHelp() {
49627  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
49628  echo '       [-name-mangler-script script.sh]'
49629  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
49630  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
49631  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
49632  echo '       [*.o] [*.a]'
49633  echo '*> "output_file" should have no extension.'
49634  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
49635  echo '   The import library name is derived from this and is set to "name".a,'
49636  echo '   unless overridden by -import'
49637  echo '*> "importlib_name" should have no extension.'
49638  echo '   If it has the .o, or .a extension, it is automatically removed.'
49639  echo '   This name is used as the import library name and may be longer and'
49640  echo '   more descriptive than the DLL name which has to follow the old '
49641  echo '   8.3 convention of FAT.'
49642  echo '*> "script.sh may be given to override the output_file name by a'
49643  echo '   different name. It is mainly useful if the regular make process'
49644  echo '   of some package does not take into account OS/2 restriction of'
49645  echo '   DLL name lengths. It takes the importlib name as input and is'
49646  echo '   supposed to procude a shorter name as output. The script should'
49647  echo '   expect to get importlib_name without extension and should produce'
49648  echo '   a (max.) 8 letter name without extension.'
49649  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
49650  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
49651  echo '   These flags will be put at the start of GCC command line.'
49652  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
49653  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
49654  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
49655  echo '   If the last character of a symbol is "*", all symbols beginning'
49656  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
49657  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
49658  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
49659  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
49660  echo '   C runtime DLLs.'
49661  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
49662  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
49663  echo '   unchanged to GCC at the end of command line.'
49664  echo '*> If you create a DLL from a library and you do not specify -o,'
49665  echo '   the basename for DLL and import library will be set to library name,'
49666  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
49667  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
49668  echo '   library will be renamed into gcc_s.a.'
49669  echo '--------'
49670  echo 'Example:'
49671  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
49672  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
49673  CleanUp
49674  exit 1
49675 }
49676
49677 # Execute a command.
49678 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
49679 # @Uses    Whatever CleanUp() uses.
49680 doCommand() {
49681     echo "${D}*"
49682     eval ${D}*
49683     rcCmd=${D}?
49684
49685     if [ ${D}rcCmd -ne 0 ]; then
49686         echo "command failed, exit code="${D}rcCmd
49687         CleanUp
49688         exit ${D}rcCmd
49689     fi
49690 }
49691
49692 # main routine
49693 # setup globals
49694 cmdLine=${D}*
49695 outFile=""
49696 outimpFile=""
49697 inputFiles=""
49698 renameScript=""
49699 description=""
49700 CC=gcc.exe
49701 CFLAGS="-s -Zcrtdll"
49702 EXTRA_CFLAGS=""
49703 EXPORT_BY_ORDINALS=0
49704 exclude_symbols=""
49705 library_flags=""
49706 curDir=\`pwd\`
49707 curDirS=curDir
49708 case ${D}curDirS in
49709 */)
49710   ;;
49711 *)
49712   curDirS=${D}{curDirS}"/"
49713   ;;
49714 esac
49715 # Parse commandline
49716 libsToLink=0
49717 omfLinking=0
49718 while [ ${D}1 ]; do
49719     case ${D}1 in
49720     -ord*)
49721         EXPORT_BY_ORDINALS=1;
49722         ;;
49723     -o*)
49724         shift
49725         outFile=${D}1
49726         ;;
49727     -i*)
49728         shift
49729         outimpFile=${D}1
49730         ;;
49731     -name-mangler-script)
49732         shift
49733         renameScript=${D}1
49734         ;;
49735     -d*)
49736         shift
49737         description=${D}1
49738         ;;
49739     -f*)
49740         shift
49741         CFLAGS=${D}1
49742         ;;
49743     -c*)
49744         shift
49745         CC=${D}1
49746         ;;
49747     -h*)
49748         PrintHelp
49749         ;;
49750     -ex*)
49751         shift
49752         exclude_symbols=${D}{exclude_symbols}${D}1" "
49753         ;;
49754     -libf*)
49755         shift
49756         library_flags=${D}{library_flags}${D}1" "
49757         ;;
49758     -nocrt*)
49759         CFLAGS="-s"
49760         ;;
49761     -nolxl*)
49762         flag_USE_LXLITE=0
49763         ;;
49764     -* | /*)
49765         case ${D}1 in
49766         -L* | -l*)
49767             libsToLink=1
49768             ;;
49769         -Zomf)
49770             omfLinking=1
49771             ;;
49772         *)
49773             ;;
49774         esac
49775         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49776         ;;
49777     *.dll)
49778         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49779         if [ ${D}omfLinking -eq 1 ]; then
49780             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49781         else
49782             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49783         fi
49784         ;;
49785     *)
49786         found=0;
49787         if [ ${D}libsToLink -ne 0 ]; then
49788             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49789         else
49790             for file in ${D}1 ; do
49791                 if [ -f ${D}file ]; then
49792                     inputFiles="${D}{inputFiles} ${D}file"
49793                     found=1
49794                 fi
49795             done
49796             if [ ${D}found -eq 0 ]; then
49797                 echo "ERROR: No file(s) found: "${D}1
49798                 exit 8
49799             fi
49800         fi
49801       ;;
49802     esac
49803     shift
49804 done # iterate cmdline words
49805
49806 #
49807 if [ -z "${D}inputFiles" ]; then
49808     echo "dllar: no input files"
49809     PrintHelp
49810 fi
49811
49812 # Now extract all .o files from .a files
49813 newInputFiles=""
49814 for file in ${D}inputFiles ; do
49815     case ${D}file in
49816     *.a | *.lib)
49817         case ${D}file in
49818         *.a)
49819             suffix=".a"
49820             AR="ar"
49821             ;;
49822         *.lib)
49823             suffix=".lib"
49824             AR="emxomfar"
49825             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49826             ;;
49827         *)
49828             ;;
49829         esac
49830         dirname=\`basnam ${D}file ${D}suffix\`"_%"
49831         mkdir ${D}dirname
49832         if [ ${D}? -ne 0 ]; then
49833             echo "Failed to create subdirectory ./${D}dirname"
49834             CleanUp
49835             exit 8;
49836         fi
49837         # Append '!' to indicate archive
49838         newInputFiles="${D}newInputFiles ${D}{dirname}!"
49839         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49840         cd ${D}curDir
49841         found=0;
49842         for subfile in ${D}dirname/*.o* ; do
49843             if [ -f ${D}subfile ]; then
49844                 found=1
49845                 if [ -s ${D}subfile ]; then
49846                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49847                     newInputFiles="${D}newInputFiles ${D}subfile"
49848                 fi
49849             fi
49850         done
49851         if [ ${D}found -eq 0 ]; then
49852             echo "WARNING: there are no files in archive \\'${D}file\\'"
49853         fi
49854         ;;
49855     *)
49856         newInputFiles="${D}{newInputFiles} ${D}file"
49857         ;;
49858     esac
49859 done
49860 inputFiles="${D}newInputFiles"
49861
49862 # Output filename(s).
49863 do_backup=0;
49864 if [ -z ${D}outFile ]; then
49865     do_backup=1;
49866     set outFile ${D}inputFiles; outFile=${D}2
49867 fi
49868
49869 # If it is an archive, remove the '!' and the '_%' suffixes
49870 case ${D}outFile in
49871 *_%!)
49872     outFile=\`basnam ${D}outFile _%!\`
49873     ;;
49874 *)
49875     ;;
49876 esac
49877 case ${D}outFile in
49878 *.dll)
49879     outFile=\`basnam ${D}outFile .dll\`
49880     ;;
49881 *.DLL)
49882     outFile=\`basnam ${D}outFile .DLL\`
49883     ;;
49884 *.o)
49885     outFile=\`basnam ${D}outFile .o\`
49886     ;;
49887 *.obj)
49888     outFile=\`basnam ${D}outFile .obj\`
49889     ;;
49890 *.a)
49891     outFile=\`basnam ${D}outFile .a\`
49892     ;;
49893 *.lib)
49894     outFile=\`basnam ${D}outFile .lib\`
49895     ;;
49896 *)
49897     ;;
49898 esac
49899 case ${D}outimpFile in
49900 *.a)
49901     outimpFile=\`basnam ${D}outimpFile .a\`
49902     ;;
49903 *.lib)
49904     outimpFile=\`basnam ${D}outimpFile .lib\`
49905     ;;
49906 *)
49907     ;;
49908 esac
49909 if [ -z ${D}outimpFile ]; then
49910     outimpFile=${D}outFile
49911 fi
49912 defFile="${D}{outFile}.def"
49913 arcFile="${D}{outimpFile}.a"
49914 arcFile2="${D}{outimpFile}.lib"
49915
49916 #create ${D}dllFile as something matching 8.3 restrictions,
49917 if [ -z ${D}renameScript ] ; then
49918     dllFile="${D}outFile"
49919 else
49920     dllFile=\`${D}renameScript ${D}outimpFile\`
49921 fi
49922
49923 if [ ${D}do_backup -ne 0 ] ; then
49924     if [ -f ${D}arcFile ] ; then
49925         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49926     fi
49927     if [ -f ${D}arcFile2 ] ; then
49928         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49929     fi
49930 fi
49931
49932 # Extract public symbols from all the object files.
49933 tmpdefFile=${D}{defFile}_%
49934 rm -f ${D}tmpdefFile
49935 for file in ${D}inputFiles ; do
49936     case ${D}file in
49937     *!)
49938         ;;
49939     *)
49940         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49941         ;;
49942     esac
49943 done
49944
49945 # Create the def file.
49946 rm -f ${D}defFile
49947 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49948 dllFile="${D}{dllFile}.dll"
49949 if [ ! -z ${D}description ]; then
49950     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49951 fi
49952 echo "EXPORTS" >> ${D}defFile
49953
49954 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49955 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49956
49957 # Checks if the export is ok or not.
49958 for word in ${D}exclude_symbols; do
49959     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49960     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49961 done
49962
49963
49964 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49965     sed "=" < ${D}tmpdefFile | \\
49966     sed '
49967       N
49968       : loop
49969       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49970       t loop
49971     ' > ${D}{tmpdefFile}%
49972     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49973 else
49974     rm -f ${D}{tmpdefFile}%
49975 fi
49976 cat ${D}tmpdefFile >> ${D}defFile
49977 rm -f ${D}tmpdefFile
49978
49979 # Do linking, create implib, and apply lxlite.
49980 gccCmdl="";
49981 for file in ${D}inputFiles ; do
49982     case ${D}file in
49983     *!)
49984         ;;
49985     *)
49986         gccCmdl="${D}gccCmdl ${D}file"
49987         ;;
49988     esac
49989 done
49990 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49991 touch "${D}{outFile}.dll"
49992
49993 doCommand "emximp -o ${D}arcFile ${D}defFile"
49994 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49995     add_flags="";
49996     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49997         add_flags="-ynd"
49998     fi
49999     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50000 fi
50001 doCommand "emxomf -s -l ${D}arcFile"
50002
50003 # Successful exit.
50004 CleanUp 1
50005 exit 0
50006 EOF
50007
50008         chmod +x dllar.sh
50009       ;;
50010
50011       powerpc-apple-macos* | \
50012       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50013       *-*-mirbsd* | \
50014       *-*-sunos4* | \
50015       *-*-osf* | \
50016       *-*-dgux5* | \
50017       *-*-sysv5* | \
50018       *-pc-msdosdjgpp )
50019               ;;
50020
50021       *)
50022         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50023 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50024    { (exit 1); exit 1; }; }
50025     esac
50026
50027     if test "x$PIC_FLAG" != "x" ; then
50028         PIC_FLAG="$PIC_FLAG -DPIC"
50029     fi
50030
50031     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50032         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50033     fi
50034     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50035         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50036     fi
50037
50038
50039
50040
50041
50042
50043
50044
50045
50046     USE_SOVERSION=0
50047     USE_SOVERLINUX=0
50048     USE_SOVERSOLARIS=0
50049     USE_SOVERCYGWIN=0
50050     USE_SOSYMLINKS=0
50051     USE_MACVERSION=0
50052     SONAME_FLAG=
50053
50054     case "${BAKEFILE_HOST}" in
50055       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
50056         if test "x$SUNCXX" = "xyes"; then
50057             SONAME_FLAG="-h "
50058         else
50059             SONAME_FLAG="-Wl,-soname,"
50060         fi
50061         USE_SOVERSION=1
50062         USE_SOVERLINUX=1
50063         USE_SOSYMLINKS=1
50064       ;;
50065
50066       *-*-solaris2* )
50067         SONAME_FLAG="-h "
50068         USE_SOVERSION=1
50069         USE_SOVERSOLARIS=1
50070         USE_SOSYMLINKS=1
50071       ;;
50072
50073       *-*-darwin* )
50074         USE_MACVERSION=1
50075         USE_SOVERSION=1
50076         USE_SOSYMLINKS=1
50077       ;;
50078
50079       *-*-cygwin* )
50080         USE_SOVERSION=1
50081         USE_SOVERCYGWIN=1
50082       ;;
50083     esac
50084
50085
50086
50087
50088
50089
50090
50091
50092
50093
50094     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
50095 if test "${enable_dependency_tracking+set}" = set; then
50096   enableval="$enable_dependency_tracking"
50097   bk_use_trackdeps="$enableval"
50098 fi;
50099
50100     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50101 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
50102
50103     BK_DEPS=""
50104     if test "x$bk_use_trackdeps" = "xno" ; then
50105         DEPS_TRACKING=0
50106         echo "$as_me:$LINENO: result: disabled" >&5
50107 echo "${ECHO_T}disabled" >&6
50108     else
50109         DEPS_TRACKING=1
50110
50111         if test "x$GCC" = "xyes"; then
50112             DEPSMODE=gcc
50113             case "${BAKEFILE_HOST}" in
50114                 *-*-darwin* )
50115                                                             DEPSFLAG="-no-cpp-precomp -MMD"
50116                 ;;
50117                 * )
50118                     DEPSFLAG="-MMD"
50119                 ;;
50120             esac
50121             echo "$as_me:$LINENO: result: gcc" >&5
50122 echo "${ECHO_T}gcc" >&6
50123         elif test "x$MWCC" = "xyes"; then
50124             DEPSMODE=mwcc
50125             DEPSFLAG="-MM"
50126             echo "$as_me:$LINENO: result: mwcc" >&5
50127 echo "${ECHO_T}mwcc" >&6
50128         elif test "x$SUNCC" = "xyes"; then
50129             DEPSMODE=unixcc
50130             DEPSFLAG="-xM1"
50131             echo "$as_me:$LINENO: result: Sun cc" >&5
50132 echo "${ECHO_T}Sun cc" >&6
50133         elif test "x$SGICC" = "xyes"; then
50134             DEPSMODE=unixcc
50135             DEPSFLAG="-M"
50136             echo "$as_me:$LINENO: result: SGI cc" >&5
50137 echo "${ECHO_T}SGI cc" >&6
50138         elif test "x$HPCC" = "xyes"; then
50139             DEPSMODE=unixcc
50140             DEPSFLAG="+make"
50141             echo "$as_me:$LINENO: result: HP cc" >&5
50142 echo "${ECHO_T}HP cc" >&6
50143         elif test "x$COMPAQCC" = "xyes"; then
50144             DEPSMODE=gcc
50145             DEPSFLAG="-MD"
50146             echo "$as_me:$LINENO: result: Compaq cc" >&5
50147 echo "${ECHO_T}Compaq cc" >&6
50148         else
50149             DEPS_TRACKING=0
50150             echo "$as_me:$LINENO: result: none" >&5
50151 echo "${ECHO_T}none" >&6
50152         fi
50153
50154         if test $DEPS_TRACKING = 1 ; then
50155
50156 D='$'
50157 cat <<EOF >bk-deps
50158 #!/bin/sh
50159
50160 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
50161 # script. It is used to track C/C++ files dependencies in portable way.
50162 #
50163 # Permission is given to use this file in any way.
50164
50165 DEPSMODE=${DEPSMODE}
50166 DEPSDIR=.deps
50167 DEPSFLAG="${DEPSFLAG}"
50168
50169 mkdir -p ${D}DEPSDIR
50170
50171 if test ${D}DEPSMODE = gcc ; then
50172     ${D}* ${D}{DEPSFLAG}
50173     status=${D}?
50174     if test ${D}{status} != 0 ; then
50175         exit ${D}{status}
50176     fi
50177     # move created file to the location we want it in:
50178     while test ${D}# -gt 0; do
50179         case "${D}1" in
50180             -o )
50181                 shift
50182                 objfile=${D}1
50183             ;;
50184             -* )
50185             ;;
50186             * )
50187                 srcfile=${D}1
50188             ;;
50189         esac
50190         shift
50191     done
50192     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
50193     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
50194     if test -f ${D}depfile ; then
50195         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
50196         rm -f ${D}depfile
50197     else
50198         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
50199         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
50200         if test ! -f ${D}depfile ; then
50201             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
50202             depfile="${D}objfile.d"
50203         fi
50204         if test -f ${D}depfile ; then
50205             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
50206             rm -f ${D}depfile
50207         fi
50208     fi
50209     exit 0
50210 elif test ${D}DEPSMODE = mwcc ; then
50211     ${D}* || exit ${D}?
50212     # Run mwcc again with -MM and redirect into the dep file we want
50213     # NOTE: We can't use shift here because we need ${D}* to be valid
50214     prevarg=
50215     for arg in ${D}* ; do
50216         if test "${D}prevarg" = "-o"; then
50217             objfile=${D}arg
50218         else
50219             case "${D}arg" in
50220                 -* )
50221                 ;;
50222                 * )
50223                     srcfile=${D}arg
50224                 ;;
50225             esac
50226         fi
50227         prevarg="${D}arg"
50228     done
50229     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
50230     exit 0
50231 elif test ${D}DEPSMODE = unixcc; then
50232     ${D}* || exit ${D}?
50233     # Run compiler again with deps flag and redirect into the dep file.
50234     # It doesn't work if the '-o FILE' option is used, but without it the
50235     # dependency file will contain the wrong name for the object. So it is
50236     # removed from the command line, and the dep file is fixed with sed.
50237     cmd=""
50238     while test ${D}# -gt 0; do
50239         case "${D}1" in
50240             -o )
50241                 shift
50242                 objfile=${D}1
50243             ;;
50244             * )
50245                 eval arg${D}#=\\${D}1
50246                 cmd="${D}cmd \\${D}arg${D}#"
50247             ;;
50248         esac
50249         shift
50250     done
50251     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
50252     exit 0
50253 else
50254     ${D}*
50255     exit ${D}?
50256 fi
50257 EOF
50258
50259             chmod +x bk-deps
50260                                     BK_DEPS="`pwd`/bk-deps"
50261         fi
50262     fi
50263
50264
50265
50266
50267
50268     case ${BAKEFILE_HOST} in
50269         *-*-cygwin* | *-*-mingw32* )
50270                         if test -n "$ac_tool_prefix"; then
50271   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
50272 set dummy ${ac_tool_prefix}windres; ac_word=$2
50273 echo "$as_me:$LINENO: checking for $ac_word" >&5
50274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50275 if test "${ac_cv_prog_WINDRES+set}" = set; then
50276   echo $ECHO_N "(cached) $ECHO_C" >&6
50277 else
50278   if test -n "$WINDRES"; then
50279   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50280 else
50281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50282 for as_dir in $PATH
50283 do
50284   IFS=$as_save_IFS
50285   test -z "$as_dir" && as_dir=.
50286   for ac_exec_ext in '' $ac_executable_extensions; do
50287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50288     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
50289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50290     break 2
50291   fi
50292 done
50293 done
50294
50295 fi
50296 fi
50297 WINDRES=$ac_cv_prog_WINDRES
50298 if test -n "$WINDRES"; then
50299   echo "$as_me:$LINENO: result: $WINDRES" >&5
50300 echo "${ECHO_T}$WINDRES" >&6
50301 else
50302   echo "$as_me:$LINENO: result: no" >&5
50303 echo "${ECHO_T}no" >&6
50304 fi
50305
50306 fi
50307 if test -z "$ac_cv_prog_WINDRES"; then
50308   ac_ct_WINDRES=$WINDRES
50309   # Extract the first word of "windres", so it can be a program name with args.
50310 set dummy windres; ac_word=$2
50311 echo "$as_me:$LINENO: checking for $ac_word" >&5
50312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50313 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
50314   echo $ECHO_N "(cached) $ECHO_C" >&6
50315 else
50316   if test -n "$ac_ct_WINDRES"; then
50317   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
50318 else
50319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50320 for as_dir in $PATH
50321 do
50322   IFS=$as_save_IFS
50323   test -z "$as_dir" && as_dir=.
50324   for ac_exec_ext in '' $ac_executable_extensions; do
50325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50326     ac_cv_prog_ac_ct_WINDRES="windres"
50327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50328     break 2
50329   fi
50330 done
50331 done
50332
50333 fi
50334 fi
50335 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
50336 if test -n "$ac_ct_WINDRES"; then
50337   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
50338 echo "${ECHO_T}$ac_ct_WINDRES" >&6
50339 else
50340   echo "$as_me:$LINENO: result: no" >&5
50341 echo "${ECHO_T}no" >&6
50342 fi
50343
50344   WINDRES=$ac_ct_WINDRES
50345 else
50346   WINDRES="$ac_cv_prog_WINDRES"
50347 fi
50348
50349          ;;
50350
50351       *-*-darwin* | powerpc-apple-macos* )
50352             # Extract the first word of "Rez", so it can be a program name with args.
50353 set dummy Rez; ac_word=$2
50354 echo "$as_me:$LINENO: checking for $ac_word" >&5
50355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50356 if test "${ac_cv_prog_REZ+set}" = set; then
50357   echo $ECHO_N "(cached) $ECHO_C" >&6
50358 else
50359   if test -n "$REZ"; then
50360   ac_cv_prog_REZ="$REZ" # Let the user override the test.
50361 else
50362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50363 for as_dir in $PATH
50364 do
50365   IFS=$as_save_IFS
50366   test -z "$as_dir" && as_dir=.
50367   for ac_exec_ext in '' $ac_executable_extensions; do
50368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50369     ac_cv_prog_REZ="Rez"
50370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50371     break 2
50372   fi
50373 done
50374 done
50375
50376   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
50377 fi
50378 fi
50379 REZ=$ac_cv_prog_REZ
50380 if test -n "$REZ"; then
50381   echo "$as_me:$LINENO: result: $REZ" >&5
50382 echo "${ECHO_T}$REZ" >&6
50383 else
50384   echo "$as_me:$LINENO: result: no" >&5
50385 echo "${ECHO_T}no" >&6
50386 fi
50387
50388             # Extract the first word of "SetFile", so it can be a program name with args.
50389 set dummy SetFile; ac_word=$2
50390 echo "$as_me:$LINENO: checking for $ac_word" >&5
50391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50392 if test "${ac_cv_prog_SETFILE+set}" = set; then
50393   echo $ECHO_N "(cached) $ECHO_C" >&6
50394 else
50395   if test -n "$SETFILE"; then
50396   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
50397 else
50398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50399 for as_dir in $PATH
50400 do
50401   IFS=$as_save_IFS
50402   test -z "$as_dir" && as_dir=.
50403   for ac_exec_ext in '' $ac_executable_extensions; do
50404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50405     ac_cv_prog_SETFILE="SetFile"
50406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50407     break 2
50408   fi
50409 done
50410 done
50411
50412   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
50413 fi
50414 fi
50415 SETFILE=$ac_cv_prog_SETFILE
50416 if test -n "$SETFILE"; then
50417   echo "$as_me:$LINENO: result: $SETFILE" >&5
50418 echo "${ECHO_T}$SETFILE" >&6
50419 else
50420   echo "$as_me:$LINENO: result: no" >&5
50421 echo "${ECHO_T}no" >&6
50422 fi
50423
50424         ;;
50425     esac
50426
50427
50428
50429
50430
50431
50432     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
50433
50434
50435 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
50436
50437
50438
50439     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
50440 if test "${enable_precomp_headers+set}" = set; then
50441   enableval="$enable_precomp_headers"
50442   bk_use_pch="$enableval"
50443 fi;
50444
50445     GCC_PCH=0
50446     ICC_PCH=0
50447     USE_PCH=0
50448     BK_MAKE_PCH=""
50449
50450     case ${BAKEFILE_HOST} in
50451         *-*-cygwin* )
50452                                                 bk_use_pch="no"
50453             ;;
50454     esac
50455
50456     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
50457         if test "x$GCC" = "xyes"; then
50458                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
50459 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
50460             cat >conftest.$ac_ext <<_ACEOF
50461 /* confdefs.h.  */
50462 _ACEOF
50463 cat confdefs.h >>conftest.$ac_ext
50464 cat >>conftest.$ac_ext <<_ACEOF
50465 /* end confdefs.h.  */
50466
50467 int
50468 main ()
50469 {
50470
50471                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
50472                         There is no PCH support
50473                     #endif
50474                     #if (__GNUC__ < 3)
50475                         There is no PCH support
50476                     #endif
50477                     #if (__GNUC__ == 3) && \
50478                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
50479                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
50480                        ( defined(__INTEL_COMPILER) )
50481                         There is no PCH support
50482                     #endif
50483
50484   ;
50485   return 0;
50486 }
50487 _ACEOF
50488 rm -f conftest.$ac_objext
50489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50490   (eval $ac_compile) 2>conftest.er1
50491   ac_status=$?
50492   grep -v '^ *+' conftest.er1 >conftest.err
50493   rm -f conftest.er1
50494   cat conftest.err >&5
50495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50496   (exit $ac_status); } &&
50497          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
50498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50499   (eval $ac_try) 2>&5
50500   ac_status=$?
50501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50502   (exit $ac_status); }; } &&
50503          { ac_try='test -s conftest.$ac_objext'
50504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50505   (eval $ac_try) 2>&5
50506   ac_status=$?
50507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50508   (exit $ac_status); }; }; then
50509
50510                     echo "$as_me:$LINENO: result: yes" >&5
50511 echo "${ECHO_T}yes" >&6
50512                     GCC_PCH=1
50513
50514 else
50515   echo "$as_me: failed program was:" >&5
50516 sed 's/^/| /' conftest.$ac_ext >&5
50517
50518
50519                     cat >conftest.$ac_ext <<_ACEOF
50520 /* confdefs.h.  */
50521 _ACEOF
50522 cat confdefs.h >>conftest.$ac_ext
50523 cat >>conftest.$ac_ext <<_ACEOF
50524 /* end confdefs.h.  */
50525
50526 int
50527 main ()
50528 {
50529
50530                             #if !defined(__INTEL_COMPILER) || \
50531                                 (__INTEL_COMPILER < 800)
50532                                 There is no PCH support
50533                             #endif
50534
50535   ;
50536   return 0;
50537 }
50538 _ACEOF
50539 rm -f conftest.$ac_objext
50540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50541   (eval $ac_compile) 2>conftest.er1
50542   ac_status=$?
50543   grep -v '^ *+' conftest.er1 >conftest.err
50544   rm -f conftest.er1
50545   cat conftest.err >&5
50546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50547   (exit $ac_status); } &&
50548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
50549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50550   (eval $ac_try) 2>&5
50551   ac_status=$?
50552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50553   (exit $ac_status); }; } &&
50554          { ac_try='test -s conftest.$ac_objext'
50555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50556   (eval $ac_try) 2>&5
50557   ac_status=$?
50558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50559   (exit $ac_status); }; }; then
50560
50561                             echo "$as_me:$LINENO: result: yes" >&5
50562 echo "${ECHO_T}yes" >&6
50563                             ICC_PCH=1
50564
50565 else
50566   echo "$as_me: failed program was:" >&5
50567 sed 's/^/| /' conftest.$ac_ext >&5
50568
50569
50570                             echo "$as_me:$LINENO: result: no" >&5
50571 echo "${ECHO_T}no" >&6
50572
50573 fi
50574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50575
50576 fi
50577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50578             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
50579                 USE_PCH=1
50580
50581 D='$'
50582 cat <<EOF >bk-make-pch
50583 #!/bin/sh
50584
50585 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
50586 # script. It is used to generated precompiled headers.
50587 #
50588 # Permission is given to use this file in any way.
50589
50590 outfile="${D}{1}"
50591 header="${D}{2}"
50592 shift
50593 shift
50594
50595 compiler=""
50596 headerfile=""
50597
50598 while test ${D}{#} -gt 0; do
50599     add_to_cmdline=1
50600     case "${D}{1}" in
50601         -I* )
50602             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
50603             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
50604                 headerfile="${D}{incdir}/${D}{header}"
50605             fi
50606         ;;
50607         -use-pch|-use_pch )
50608             shift
50609             add_to_cmdline=0
50610         ;;
50611     esac
50612     if test ${D}add_to_cmdline = 1 ; then
50613         compiler="${D}{compiler} ${D}{1}"
50614     fi
50615     shift
50616 done
50617
50618 if test "x${D}{headerfile}" = "x" ; then
50619     echo "error: can't find header ${D}{header} in include paths" >&2
50620 else
50621     if test -f ${D}{outfile} ; then
50622         rm -f ${D}{outfile}
50623     else
50624         mkdir -p \`dirname ${D}{outfile}\`
50625     fi
50626     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
50627     mkdir -p .deps
50628     if test "x${GCC_PCH}" = "x1" ; then
50629         # can do this because gcc is >= 3.4:
50630         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
50631     elif test "x${ICC_PCH}" = "x1" ; then
50632         filename=pch_gen-${D}${D}
50633         file=${D}{filename}.c
50634         dfile=${D}{filename}.d
50635         cat > ${D}file <<EOT
50636 #include "${D}header"
50637 EOT
50638         # using -MF icc complains about differing command lines in creation/use
50639         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
50640           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
50641           rm -f ${D}file ${D}dfile ${D}{filename}.o
50642     fi
50643     exit ${D}{?}
50644 fi
50645 EOF
50646
50647                 chmod +x bk-make-pch
50648                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
50649             fi
50650         fi
50651     fi
50652
50653
50654
50655
50656
50657     COND_BUILD_DEBUG="#"
50658     if test "x$BUILD" = "xdebug" ; then
50659         COND_BUILD_DEBUG=""
50660     fi
50661
50662     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
50663     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50664         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
50665     fi
50666
50667     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
50668     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50669         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
50670     fi
50671
50672     COND_BUILD_DEBUG_UNICODE_0="#"
50673     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50674         COND_BUILD_DEBUG_UNICODE_0=""
50675     fi
50676
50677     COND_BUILD_DEBUG_UNICODE_1="#"
50678     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50679         COND_BUILD_DEBUG_UNICODE_1=""
50680     fi
50681
50682     COND_BUILD_RELEASE="#"
50683     if test "x$BUILD" = "xrelease" ; then
50684         COND_BUILD_RELEASE=""
50685     fi
50686
50687     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
50688     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50689         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
50690     fi
50691
50692     COND_BUILD_RELEASE_UNICODE_0="#"
50693     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50694         COND_BUILD_RELEASE_UNICODE_0=""
50695     fi
50696
50697     COND_BUILD_RELEASE_UNICODE_1="#"
50698     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50699         COND_BUILD_RELEASE_UNICODE_1=""
50700     fi
50701
50702     COND_DEBUG_FLAG_1="#"
50703     if test "x$DEBUG_FLAG" = "x1" ; then
50704         COND_DEBUG_FLAG_1=""
50705     fi
50706
50707     COND_DEBUG_INFO_0="#"
50708     if test "x$DEBUG_INFO" = "x0" ; then
50709         COND_DEBUG_INFO_0=""
50710     fi
50711
50712     COND_DEBUG_INFO_1="#"
50713     if test "x$DEBUG_INFO" = "x1" ; then
50714         COND_DEBUG_INFO_1=""
50715     fi
50716
50717     COND_DEPS_TRACKING_0="#"
50718     if test "x$DEPS_TRACKING" = "x0" ; then
50719         COND_DEPS_TRACKING_0=""
50720     fi
50721
50722     COND_DEPS_TRACKING_1="#"
50723     if test "x$DEPS_TRACKING" = "x1" ; then
50724         COND_DEPS_TRACKING_1=""
50725     fi
50726
50727     COND_GCC_PCH_1="#"
50728     if test "x$GCC_PCH" = "x1" ; then
50729         COND_GCC_PCH_1=""
50730     fi
50731
50732     COND_ICC_PCH_1="#"
50733     if test "x$ICC_PCH" = "x1" ; then
50734         COND_ICC_PCH_1=""
50735     fi
50736
50737     COND_MONOLITHIC_0="#"
50738     if test "x$MONOLITHIC" = "x0" ; then
50739         COND_MONOLITHIC_0=""
50740     fi
50741
50742     COND_MONOLITHIC_0_SHARED_0="#"
50743     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50744         COND_MONOLITHIC_0_SHARED_0=""
50745     fi
50746
50747     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50748     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50749         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50750     fi
50751
50752     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50753     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50754         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50755     fi
50756
50757     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50758     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50759         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50760     fi
50761
50762     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50763     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50764         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50765     fi
50766
50767     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
50768     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50769         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
50770     fi
50771
50772     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50773     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50774         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50775     fi
50776
50777     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
50778     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
50779         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
50780     fi
50781
50782     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50783     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50784         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50785     fi
50786
50787     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
50788     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50789         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
50790     fi
50791
50792     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50793     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50794         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50795     fi
50796
50797     COND_MONOLITHIC_0_SHARED_1="#"
50798     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50799         COND_MONOLITHIC_0_SHARED_1=""
50800     fi
50801
50802     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50803     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50804         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50805     fi
50806
50807     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50808     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50809         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50810     fi
50811
50812     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50813     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50814         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50815     fi
50816
50817     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50818     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50819         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50820     fi
50821
50822     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
50823     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50824         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
50825     fi
50826
50827     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50828     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50829         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50830     fi
50831
50832     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
50833     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
50834         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
50835     fi
50836
50837     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50838     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50839         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50840     fi
50841
50842     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
50843     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
50844         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
50845     fi
50846
50847     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50848     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50849         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50850     fi
50851
50852     COND_MONOLITHIC_0_USE_AUI_1="#"
50853     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
50854         COND_MONOLITHIC_0_USE_AUI_1=""
50855     fi
50856
50857     COND_MONOLITHIC_0_USE_GUI_1="#"
50858     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
50859         COND_MONOLITHIC_0_USE_GUI_1=""
50860     fi
50861
50862     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50863     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50864         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50865     fi
50866
50867     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
50868     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50869         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
50870     fi
50871
50872     COND_MONOLITHIC_0_USE_HTML_1="#"
50873     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50874         COND_MONOLITHIC_0_USE_HTML_1=""
50875     fi
50876
50877     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50878     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50879         COND_MONOLITHIC_0_USE_MEDIA_1=""
50880     fi
50881
50882     COND_MONOLITHIC_0_USE_ODBC_1="#"
50883     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
50884         COND_MONOLITHIC_0_USE_ODBC_1=""
50885     fi
50886
50887     COND_MONOLITHIC_0_USE_QA_1="#"
50888     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50889         COND_MONOLITHIC_0_USE_QA_1=""
50890     fi
50891
50892     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50893     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50894         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50895     fi
50896
50897     COND_MONOLITHIC_0_USE_STC_1="#"
50898     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50899         COND_MONOLITHIC_0_USE_STC_1=""
50900     fi
50901
50902     COND_MONOLITHIC_0_USE_XRC_1="#"
50903     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50904         COND_MONOLITHIC_0_USE_XRC_1=""
50905     fi
50906
50907     COND_MONOLITHIC_1="#"
50908     if test "x$MONOLITHIC" = "x1" ; then
50909         COND_MONOLITHIC_1=""
50910     fi
50911
50912     COND_MONOLITHIC_1_SHARED_0="#"
50913     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50914         COND_MONOLITHIC_1_SHARED_0=""
50915     fi
50916
50917     COND_MONOLITHIC_1_SHARED_1="#"
50918     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50919         COND_MONOLITHIC_1_SHARED_1=""
50920     fi
50921
50922     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50923     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50924         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50925     fi
50926
50927     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50928     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50929         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50930     fi
50931
50932     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50933     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50934         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50935     fi
50936
50937     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50938     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50939         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50940     fi
50941
50942     COND_PLATFORM_MACOSX_1="#"
50943     if test "x$PLATFORM_MACOSX" = "x1" ; then
50944         COND_PLATFORM_MACOSX_1=""
50945     fi
50946
50947     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
50948     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
50949         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
50950     fi
50951
50952     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
50953     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
50954         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
50955     fi
50956
50957     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
50958     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
50959         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
50960     fi
50961
50962     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
50963     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
50964         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
50965     fi
50966
50967     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
50968     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50969         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
50970     fi
50971
50972     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
50973     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
50974         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
50975     fi
50976
50977     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
50978     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
50979         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
50980     fi
50981
50982     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50983     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50984         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50985     fi
50986
50987     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50988     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50989         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50990     fi
50991
50992     COND_PLATFORM_MACOS_1="#"
50993     if test "x$PLATFORM_MACOS" = "x1" ; then
50994         COND_PLATFORM_MACOS_1=""
50995     fi
50996
50997     COND_PLATFORM_MAC_1="#"
50998     if test "x$PLATFORM_MAC" = "x1" ; then
50999         COND_PLATFORM_MAC_1=""
51000     fi
51001
51002     COND_PLATFORM_MSDOS_0="#"
51003     if test "x$PLATFORM_MSDOS" = "x0" ; then
51004         COND_PLATFORM_MSDOS_0=""
51005     fi
51006
51007     COND_PLATFORM_MSDOS_1="#"
51008     if test "x$PLATFORM_MSDOS" = "x1" ; then
51009         COND_PLATFORM_MSDOS_1=""
51010     fi
51011
51012     COND_PLATFORM_OS2_1="#"
51013     if test "x$PLATFORM_OS2" = "x1" ; then
51014         COND_PLATFORM_OS2_1=""
51015     fi
51016
51017     COND_PLATFORM_UNIX_0="#"
51018     if test "x$PLATFORM_UNIX" = "x0" ; then
51019         COND_PLATFORM_UNIX_0=""
51020     fi
51021
51022     COND_PLATFORM_UNIX_1="#"
51023     if test "x$PLATFORM_UNIX" = "x1" ; then
51024         COND_PLATFORM_UNIX_1=""
51025     fi
51026
51027     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51028     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51029         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51030     fi
51031
51032     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51033     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51034         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51035     fi
51036
51037     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51038     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51039         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51040     fi
51041
51042     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51043     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51044         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51045     fi
51046
51047     COND_PLATFORM_WIN32_0="#"
51048     if test "x$PLATFORM_WIN32" = "x0" ; then
51049         COND_PLATFORM_WIN32_0=""
51050     fi
51051
51052     COND_PLATFORM_WIN32_1="#"
51053     if test "x$PLATFORM_WIN32" = "x1" ; then
51054         COND_PLATFORM_WIN32_1=""
51055     fi
51056
51057     COND_SHARED_0="#"
51058     if test "x$SHARED" = "x0" ; then
51059         COND_SHARED_0=""
51060     fi
51061
51062     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51063     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51064         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51065     fi
51066
51067     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51068     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51069         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51070     fi
51071
51072     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51073     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51074         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51075     fi
51076
51077     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51078     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51079         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51080     fi
51081
51082     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51083     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51084         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51085     fi
51086
51087     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51088     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51089         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51090     fi
51091
51092     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51093     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51094         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51095     fi
51096
51097     COND_SHARED_0_USE_STC_1="#"
51098     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51099         COND_SHARED_0_USE_STC_1=""
51100     fi
51101
51102     COND_SHARED_0_USE_XRC_1="#"
51103     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51104         COND_SHARED_0_USE_XRC_1=""
51105     fi
51106
51107     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
51108     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51109         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
51110     fi
51111
51112     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
51113     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
51114         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
51115     fi
51116
51117     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
51118     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51119         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
51120     fi
51121
51122     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
51123     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51124         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
51125     fi
51126
51127     COND_SHARED_1="#"
51128     if test "x$SHARED" = "x1" ; then
51129         COND_SHARED_1=""
51130     fi
51131
51132     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51133     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51134         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51135     fi
51136
51137     COND_SHARED_1_USE_XRC_1="#"
51138     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51139         COND_SHARED_1_USE_XRC_1=""
51140     fi
51141
51142     COND_TOOLKIT_="#"
51143     if test "x$TOOLKIT" = "x" ; then
51144         COND_TOOLKIT_=""
51145     fi
51146
51147     COND_TOOLKIT_COCOA="#"
51148     if test "x$TOOLKIT" = "xCOCOA" ; then
51149         COND_TOOLKIT_COCOA=""
51150     fi
51151
51152     COND_TOOLKIT_COCOA_USE_GUI_1="#"
51153     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51154         COND_TOOLKIT_COCOA_USE_GUI_1=""
51155     fi
51156
51157     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
51158     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51159         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
51160     fi
51161
51162     COND_TOOLKIT_DFB="#"
51163     if test "x$TOOLKIT" = "xDFB" ; then
51164         COND_TOOLKIT_DFB=""
51165     fi
51166
51167     COND_TOOLKIT_DFB_USE_GUI_1="#"
51168     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
51169         COND_TOOLKIT_DFB_USE_GUI_1=""
51170     fi
51171
51172     COND_TOOLKIT_GTK="#"
51173     if test "x$TOOLKIT" = "xGTK" ; then
51174         COND_TOOLKIT_GTK=""
51175     fi
51176
51177     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
51178     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
51179         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
51180     fi
51181
51182     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
51183     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
51184         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
51185     fi
51186
51187     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
51188     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
51189         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
51190     fi
51191
51192     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
51193     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51194         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
51195     fi
51196
51197     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
51198     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
51199         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
51200     fi
51201
51202     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
51203     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51204         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
51205     fi
51206
51207     COND_TOOLKIT_GTK_USE_GUI_1="#"
51208     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
51209         COND_TOOLKIT_GTK_USE_GUI_1=""
51210     fi
51211
51212     COND_TOOLKIT_MAC="#"
51213     if test "x$TOOLKIT" = "xMAC" ; then
51214         COND_TOOLKIT_MAC=""
51215     fi
51216
51217     COND_TOOLKIT_MAC_USE_GUI_1="#"
51218     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
51219         COND_TOOLKIT_MAC_USE_GUI_1=""
51220     fi
51221
51222     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
51223     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51224         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
51225     fi
51226
51227     COND_TOOLKIT_MGL="#"
51228     if test "x$TOOLKIT" = "xMGL" ; then
51229         COND_TOOLKIT_MGL=""
51230     fi
51231
51232     COND_TOOLKIT_MGL_USE_GUI_1="#"
51233     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51234         COND_TOOLKIT_MGL_USE_GUI_1=""
51235     fi
51236
51237     COND_TOOLKIT_MOTIF="#"
51238     if test "x$TOOLKIT" = "xMOTIF" ; then
51239         COND_TOOLKIT_MOTIF=""
51240     fi
51241
51242     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
51243     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
51244         COND_TOOLKIT_MOTIF_USE_GUI_1=""
51245     fi
51246
51247     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
51248     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51249         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
51250     fi
51251
51252     COND_TOOLKIT_MSW="#"
51253     if test "x$TOOLKIT" = "xMSW" ; then
51254         COND_TOOLKIT_MSW=""
51255     fi
51256
51257     COND_TOOLKIT_MSW_USE_GUI_1="#"
51258     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
51259         COND_TOOLKIT_MSW_USE_GUI_1=""
51260     fi
51261
51262     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
51263     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51264         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
51265     fi
51266
51267     COND_TOOLKIT_MSW_WXUNIV_0="#"
51268     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51269         COND_TOOLKIT_MSW_WXUNIV_0=""
51270     fi
51271
51272     COND_TOOLKIT_PM="#"
51273     if test "x$TOOLKIT" = "xPM" ; then
51274         COND_TOOLKIT_PM=""
51275     fi
51276
51277     COND_TOOLKIT_PM_USE_GUI_1="#"
51278     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
51279         COND_TOOLKIT_PM_USE_GUI_1=""
51280     fi
51281
51282     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
51283     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51284         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
51285     fi
51286
51287     COND_TOOLKIT_WINCE="#"
51288     if test "x$TOOLKIT" = "xWINCE" ; then
51289         COND_TOOLKIT_WINCE=""
51290     fi
51291
51292     COND_TOOLKIT_WINCE_USE_GUI_1="#"
51293     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
51294         COND_TOOLKIT_WINCE_USE_GUI_1=""
51295     fi
51296
51297     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
51298     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51299         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
51300     fi
51301
51302     COND_TOOLKIT_WINCE_WXUNIV_0="#"
51303     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
51304         COND_TOOLKIT_WINCE_WXUNIV_0=""
51305     fi
51306
51307     COND_TOOLKIT_X11="#"
51308     if test "x$TOOLKIT" = "xX11" ; then
51309         COND_TOOLKIT_X11=""
51310     fi
51311
51312     COND_TOOLKIT_X11_USE_GUI_1="#"
51313     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
51314         COND_TOOLKIT_X11_USE_GUI_1=""
51315     fi
51316
51317     COND_UNICODE_1="#"
51318     if test "x$UNICODE" = "x1" ; then
51319         COND_UNICODE_1=""
51320     fi
51321
51322     COND_USE_EXCEPTIONS_0="#"
51323     if test "x$USE_EXCEPTIONS" = "x0" ; then
51324         COND_USE_EXCEPTIONS_0=""
51325     fi
51326
51327     COND_USE_EXCEPTIONS_1="#"
51328     if test "x$USE_EXCEPTIONS" = "x1" ; then
51329         COND_USE_EXCEPTIONS_1=""
51330     fi
51331
51332     COND_USE_GUI_0="#"
51333     if test "x$USE_GUI" = "x0" ; then
51334         COND_USE_GUI_0=""
51335     fi
51336
51337     COND_USE_GUI_1="#"
51338     if test "x$USE_GUI" = "x1" ; then
51339         COND_USE_GUI_1=""
51340     fi
51341
51342     COND_USE_GUI_1_USE_OPENGL_1="#"
51343     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51344         COND_USE_GUI_1_USE_OPENGL_1=""
51345     fi
51346
51347     COND_USE_GUI_1_WXUNIV_0="#"
51348     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
51349         COND_USE_GUI_1_WXUNIV_0=""
51350     fi
51351
51352     COND_USE_GUI_1_WXUNIV_1="#"
51353     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
51354         COND_USE_GUI_1_WXUNIV_1=""
51355     fi
51356
51357     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51358     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51359         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51360     fi
51361
51362     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51363     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51364         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51365     fi
51366
51367     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51368     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51369         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51370     fi
51371
51372     COND_USE_ODBC_1="#"
51373     if test "x$USE_ODBC" = "x1" ; then
51374         COND_USE_ODBC_1=""
51375     fi
51376
51377     COND_USE_OPENGL_1="#"
51378     if test "x$USE_OPENGL" = "x1" ; then
51379         COND_USE_OPENGL_1=""
51380     fi
51381
51382     COND_USE_PCH_1="#"
51383     if test "x$USE_PCH" = "x1" ; then
51384         COND_USE_PCH_1=""
51385     fi
51386
51387     COND_USE_PLUGINS_0="#"
51388     if test "x$USE_PLUGINS" = "x0" ; then
51389         COND_USE_PLUGINS_0=""
51390     fi
51391
51392     COND_USE_RTTI_0="#"
51393     if test "x$USE_RTTI" = "x0" ; then
51394         COND_USE_RTTI_0=""
51395     fi
51396
51397     COND_USE_RTTI_1="#"
51398     if test "x$USE_RTTI" = "x1" ; then
51399         COND_USE_RTTI_1=""
51400     fi
51401
51402     COND_USE_SOSYMLINKS_1="#"
51403     if test "x$USE_SOSYMLINKS" = "x1" ; then
51404         COND_USE_SOSYMLINKS_1=""
51405     fi
51406
51407     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
51408     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51409         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
51410     fi
51411
51412     COND_USE_SOVERLINUX_1="#"
51413     if test "x$USE_SOVERLINUX" = "x1" ; then
51414         COND_USE_SOVERLINUX_1=""
51415     fi
51416
51417     COND_USE_SOVERSION_0="#"
51418     if test "x$USE_SOVERSION" = "x0" ; then
51419         COND_USE_SOVERSION_0=""
51420     fi
51421
51422     COND_USE_SOVERSOLARIS_1="#"
51423     if test "x$USE_SOVERSOLARIS" = "x1" ; then
51424         COND_USE_SOVERSOLARIS_1=""
51425     fi
51426
51427     COND_USE_STC_1="#"
51428     if test "x$USE_STC" = "x1" ; then
51429         COND_USE_STC_1=""
51430     fi
51431
51432     COND_USE_THREADS_0="#"
51433     if test "x$USE_THREADS" = "x0" ; then
51434         COND_USE_THREADS_0=""
51435     fi
51436
51437     COND_USE_THREADS_1="#"
51438     if test "x$USE_THREADS" = "x1" ; then
51439         COND_USE_THREADS_1=""
51440     fi
51441
51442     COND_USE_XRC_1="#"
51443     if test "x$USE_XRC" = "x1" ; then
51444         COND_USE_XRC_1=""
51445     fi
51446
51447     COND_WINDOWS_IMPLIB_1="#"
51448     if test "x$WINDOWS_IMPLIB" = "x1" ; then
51449         COND_WINDOWS_IMPLIB_1=""
51450     fi
51451
51452     COND_WITH_PLUGIN_SDL_1="#"
51453     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
51454         COND_WITH_PLUGIN_SDL_1=""
51455     fi
51456
51457     COND_WXUNIV_0="#"
51458     if test "x$WXUNIV" = "x0" ; then
51459         COND_WXUNIV_0=""
51460     fi
51461
51462     COND_WXUNIV_1="#"
51463     if test "x$WXUNIV" = "x1" ; then
51464         COND_WXUNIV_1=""
51465     fi
51466
51467     COND_WXUSE_EXPAT_BUILTIN="#"
51468     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
51469         COND_WXUSE_EXPAT_BUILTIN=""
51470     fi
51471
51472     COND_WXUSE_LIBJPEG_BUILTIN="#"
51473     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51474         COND_WXUSE_LIBJPEG_BUILTIN=""
51475     fi
51476
51477     COND_WXUSE_LIBPNG_BUILTIN="#"
51478     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51479         COND_WXUSE_LIBPNG_BUILTIN=""
51480     fi
51481
51482     COND_WXUSE_LIBTIFF_BUILTIN="#"
51483     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51484         COND_WXUSE_LIBTIFF_BUILTIN=""
51485     fi
51486
51487     COND_WXUSE_ODBC_BUILTIN="#"
51488     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
51489         COND_WXUSE_ODBC_BUILTIN=""
51490     fi
51491
51492     COND_WXUSE_REGEX_BUILTIN="#"
51493     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
51494         COND_WXUSE_REGEX_BUILTIN=""
51495     fi
51496
51497     COND_WXUSE_ZLIB_BUILTIN="#"
51498     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
51499         COND_WXUSE_ZLIB_BUILTIN=""
51500     fi
51501
51502
51503
51504     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
51505         { { 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
51506 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;}
51507    { (exit 1); exit 1; }; }
51508     fi
51509
51510     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
51511         { { 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
51512 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;}
51513    { (exit 1); exit 1; }; }
51514     fi
51515
51516
51517 if test $GCC_PCH = 1
51518 then
51519     if test "$wx_cv_gcc_pch_bug" = yes; then
51520         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
51521 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
51522         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
51523 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
51524         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
51525 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
51526     fi
51527
51528     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
51529 fi
51530
51531
51532 if test "$wxUSE_MAC" = 1 ; then
51533     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
51534         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
51535         mv temp bk-deps
51536         chmod +x bk-deps
51537     fi
51538 fi
51539
51540 if test "$wxUSE_SHARED" = "yes"; then
51541
51542                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
51543     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
51544
51545                 case "${host}" in
51546       *-pc-os2_emx | *-pc-os2-emx )
51547         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51548         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51549         cp -p ${srcdir}/src/os2/dllnames.sh .
51550         cp -p ${srcdir}/src/os2/dllar.sh .
51551       ;;
51552     esac
51553 else
51554
51555         EXE_LINKER="$CXX -o"
51556
51557 fi
51558 if test "$wxUSE_OMF" = "yes"; then
51559     case "${host}" in
51560       *-pc-os2_emx | *-pc-os2-emx )
51561         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
51562         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51563         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
51564       ;;
51565     esac
51566 fi
51567
51568 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
51569
51570
51571 case "${host}" in
51572     *-*-solaris2* )
51573                         if "$GCC" = yes; then
51574             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
51575             LIBS=`echo $LIBS | sed 's/-mt//'`
51576             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
51577         fi
51578         ;;
51579
51580     *-*-linux* )
51581                         if test "x$SUNCXX" = xyes; then
51582             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
51583             LIBS=`echo $LIBS | sed 's/-pthread//'`
51584             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
51585         fi
51586         ;;
51587 esac
51588
51589 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
51590 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
51591
51592 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
51593
51594
51595
51596
51597
51598
51599
51600
51601
51602
51603
51604
51605
51606
51607
51608
51609
51610
51611
51612
51613
51614
51615
51616
51617
51618
51619
51620
51621
51622
51623
51624
51625
51626
51627
51628
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638
51639
51640
51641
51642
51643
51644
51645
51646
51647
51648
51649
51650
51651
51652
51653
51654 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
51655 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
51656 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
51657 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
51658   echo $ECHO_N "(cached) $ECHO_C" >&6
51659 else
51660   cat >conftest.make <<\_ACEOF
51661 all:
51662         @echo 'ac_maketemp="$(MAKE)"'
51663 _ACEOF
51664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
51665 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
51666 if test -n "$ac_maketemp"; then
51667   eval ac_cv_prog_make_${ac_make}_set=yes
51668 else
51669   eval ac_cv_prog_make_${ac_make}_set=no
51670 fi
51671 rm -f conftest.make
51672 fi
51673 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
51674   echo "$as_me:$LINENO: result: yes" >&5
51675 echo "${ECHO_T}yes" >&6
51676   SET_MAKE=
51677 else
51678   echo "$as_me:$LINENO: result: no" >&5
51679 echo "${ECHO_T}no" >&6
51680   SET_MAKE="MAKE=${MAKE-make}"
51681 fi
51682
51683
51684
51685           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
51686
51687
51688 if test "$USE_WIN32" = 1; then
51689               ac_config_commands="$ac_config_commands
51690             rcdefs.h
51691         "
51692
51693 fi
51694
51695           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
51696
51697
51698           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
51699
51700
51701 if test "$wx_cv_version_script" = "yes"; then
51702               ac_config_files="$ac_config_files version-script"
51703
51704 fi
51705           ac_config_files="$ac_config_files Makefile"
51706
51707
51708           ac_config_commands="$ac_config_commands wx-config"
51709
51710
51711
51712 if test "$wxWITH_SUBDIRS" != "no"; then
51713 if test "$wxUSE_GUI" = "yes"; then
51714     SUBDIRS="samples demos utils"
51715 else         SUBDIRS="samples utils"
51716 fi
51717
51718
51719
51720 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
51721 if test "${with_cppunit_prefix+set}" = set; then
51722   withval="$with_cppunit_prefix"
51723   cppunit_config_prefix="$withval"
51724 else
51725   cppunit_config_prefix=""
51726 fi;
51727
51728 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
51729 if test "${with_cppunit_exec_prefix+set}" = set; then
51730   withval="$with_cppunit_exec_prefix"
51731   cppunit_config_exec_prefix="$withval"
51732 else
51733   cppunit_config_exec_prefix=""
51734 fi;
51735
51736   if test x$cppunit_config_exec_prefix != x ; then
51737      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51738      if test x${CPPUNIT_CONFIG+set} != xset ; then
51739         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51740      fi
51741   fi
51742   if test x$cppunit_config_prefix != x ; then
51743      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51744      if test x${CPPUNIT_CONFIG+set} != xset ; then
51745         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51746      fi
51747   fi
51748
51749   # Extract the first word of "cppunit-config", so it can be a program name with args.
51750 set dummy cppunit-config; ac_word=$2
51751 echo "$as_me:$LINENO: checking for $ac_word" >&5
51752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
51753 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51754   echo $ECHO_N "(cached) $ECHO_C" >&6
51755 else
51756   case $CPPUNIT_CONFIG in
51757   [\\/]* | ?:[\\/]*)
51758   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51759   ;;
51760   *)
51761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51762 for as_dir in $PATH
51763 do
51764   IFS=$as_save_IFS
51765   test -z "$as_dir" && as_dir=.
51766   for ac_exec_ext in '' $ac_executable_extensions; do
51767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
51768     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51770     break 2
51771   fi
51772 done
51773 done
51774
51775   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51776   ;;
51777 esac
51778 fi
51779 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51780
51781 if test -n "$CPPUNIT_CONFIG"; then
51782   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51783 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
51784 else
51785   echo "$as_me:$LINENO: result: no" >&5
51786 echo "${ECHO_T}no" >&6
51787 fi
51788
51789   cppunit_version_min=1.8.0
51790
51791   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51792 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
51793   no_cppunit=""
51794   if test "$CPPUNIT_CONFIG" = "no" ; then
51795     echo "$as_me:$LINENO: result: no" >&5
51796 echo "${ECHO_T}no" >&6
51797     no_cppunit=yes
51798   else
51799     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51800     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51801     cppunit_version=`$CPPUNIT_CONFIG --version`
51802
51803     cppunit_major_version=`echo $cppunit_version | \
51804            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51805     cppunit_minor_version=`echo $cppunit_version | \
51806            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51807     cppunit_micro_version=`echo $cppunit_version | \
51808            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51809
51810     cppunit_major_min=`echo $cppunit_version_min | \
51811            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51812     cppunit_minor_min=`echo $cppunit_version_min | \
51813            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51814     cppunit_micro_min=`echo $cppunit_version_min | \
51815            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51816
51817     cppunit_version_proper=`expr \
51818         $cppunit_major_version \> $cppunit_major_min \| \
51819         $cppunit_major_version \= $cppunit_major_min \& \
51820         $cppunit_minor_version \> $cppunit_minor_min \| \
51821         $cppunit_major_version \= $cppunit_major_min \& \
51822         $cppunit_minor_version \= $cppunit_minor_min \& \
51823         $cppunit_micro_version \>= $cppunit_micro_min `
51824
51825     if test "$cppunit_version_proper" = "1" ; then
51826       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51827 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
51828     else
51829       echo "$as_me:$LINENO: result: no" >&5
51830 echo "${ECHO_T}no" >&6
51831       no_cppunit=yes
51832     fi
51833   fi
51834
51835   if test "x$no_cppunit" = x ; then
51836      SUBDIRS="$SUBDIRS tests"
51837   else
51838      CPPUNIT_CFLAGS=""
51839      CPPUNIT_LIBS=""
51840      :
51841   fi
51842
51843
51844
51845
51846
51847 for subdir in `echo $SUBDIRS`; do
51848     if test -d ${srcdir}/${subdir} ; then
51849         if test "$wxUSE_GUI" = "yes"; then
51850             if test ${subdir} = "samples"; then
51851                                                 makefiles="samples/Makefile.in $makefiles"
51852                 for sample in `echo $SAMPLES_SUBDIRS`; do
51853                     if test -d $srcdir/samples/$sample; then
51854                         makefiles="samples/$sample/Makefile.in $makefiles"
51855                     fi
51856                 done
51857             else
51858                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
51859                 eval "disabled=\$$disabled_var"
51860                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51861                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51862             fi
51863         else                                     if test ${subdir} = "samples"; then
51864                 makefiles="samples/Makefile.in samples/console/Makefile.in"
51865             elif test ${subdir} = "utils"; then
51866                 makefiles=""
51867                 for util in HelpGen tex2rtf ; do
51868                     if test -d $srcdir/utils/$util ; then
51869                         makefiles="utils/$util/Makefile.in \
51870                                    utils/$util/src/Makefile.in \
51871                                    $makefiles"
51872                     fi
51873                 done
51874             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51875             fi
51876         fi
51877
51878         for mkin in $makefiles ; do
51879             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51880                       ac_config_files="$ac_config_files $mk"
51881
51882         done
51883     fi
51884 done
51885 fi
51886 cat >confcache <<\_ACEOF
51887 # This file is a shell script that caches the results of configure
51888 # tests run on this system so they can be shared between configure
51889 # scripts and configure runs, see configure's option --config-cache.
51890 # It is not useful on other systems.  If it contains results you don't
51891 # want to keep, you may remove or edit it.
51892 #
51893 # config.status only pays attention to the cache file if you give it
51894 # the --recheck option to rerun configure.
51895 #
51896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51898 # following values.
51899
51900 _ACEOF
51901
51902 # The following way of writing the cache mishandles newlines in values,
51903 # but we know of no workaround that is simple, portable, and efficient.
51904 # So, don't put newlines in cache variables' values.
51905 # Ultrix sh set writes to stderr and can't be redirected directly,
51906 # and sets the high bit in the cache file unless we assign to the vars.
51907 {
51908   (set) 2>&1 |
51909     case `(ac_space=' '; set | grep ac_space) 2>&1` in
51910     *ac_space=\ *)
51911       # `set' does not quote correctly, so add quotes (double-quote
51912       # substitution turns \\\\ into \\, and sed turns \\ into \).
51913       sed -n \
51914         "s/'/'\\\\''/g;
51915           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51916       ;;
51917     *)
51918       # `set' quotes correctly as required by POSIX, so do not add quotes.
51919       sed -n \
51920         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
51921       ;;
51922     esac;
51923 } |
51924   sed '
51925      t clear
51926      : clear
51927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51928      t end
51929      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51930      : end' >>confcache
51931 if diff $cache_file confcache >/dev/null 2>&1; then :; else
51932   if test -w $cache_file; then
51933     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
51934     cat confcache >$cache_file
51935   else
51936     echo "not updating unwritable cache $cache_file"
51937   fi
51938 fi
51939 rm -f confcache
51940
51941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51942 # Let make expand exec_prefix.
51943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51944
51945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51947 # trailing colons and then remove the whole line if VPATH becomes empty
51948 # (actually we leave an empty line to preserve line numbers).
51949 if test "x$srcdir" = x.; then
51950   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51951 s/:*\$(srcdir):*/:/;
51952 s/:*\${srcdir}:*/:/;
51953 s/:*@srcdir@:*/:/;
51954 s/^\([^=]*=[     ]*\):*/\1/;
51955 s/:*$//;
51956 s/^[^=]*=[       ]*$//;
51957 }'
51958 fi
51959
51960 DEFS=-DHAVE_CONFIG_H
51961
51962 ac_libobjs=
51963 ac_ltlibobjs=
51964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51965   # 1. Remove the extension, and $U if already installed.
51966   ac_i=`echo "$ac_i" |
51967          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51968   # 2. Add them.
51969   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51970   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51971 done
51972 LIBOBJS=$ac_libobjs
51973
51974 LTLIBOBJS=$ac_ltlibobjs
51975
51976
51977
51978 : ${CONFIG_STATUS=./config.status}
51979 ac_clean_files_save=$ac_clean_files
51980 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51981 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51982 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51983 cat >$CONFIG_STATUS <<_ACEOF
51984 #! $SHELL
51985 # Generated by $as_me.
51986 # Run this file to recreate the current configuration.
51987 # Compiler output produced by configure, useful for debugging
51988 # configure, is in config.log if it exists.
51989
51990 debug=false
51991 ac_cs_recheck=false
51992 ac_cs_silent=false
51993 SHELL=\${CONFIG_SHELL-$SHELL}
51994 _ACEOF
51995
51996 cat >>$CONFIG_STATUS <<\_ACEOF
51997 ## --------------------- ##
51998 ## M4sh Initialization.  ##
51999 ## --------------------- ##
52000
52001 # Be Bourne compatible
52002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52003   emulate sh
52004   NULLCMD=:
52005   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52006   # is contrary to our usage.  Disable this feature.
52007   alias -g '${1+"$@"}'='"$@"'
52008 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52009   set -o posix
52010 fi
52011 DUALCASE=1; export DUALCASE # for MKS sh
52012
52013 # Support unset when possible.
52014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52015   as_unset=unset
52016 else
52017   as_unset=false
52018 fi
52019
52020
52021 # Work around bugs in pre-3.0 UWIN ksh.
52022 $as_unset ENV MAIL MAILPATH
52023 PS1='$ '
52024 PS2='> '
52025 PS4='+ '
52026
52027 # NLS nuisances.
52028 for as_var in \
52029   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52030   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52031   LC_TELEPHONE LC_TIME
52032 do
52033   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52034     eval $as_var=C; export $as_var
52035   else
52036     $as_unset $as_var
52037   fi
52038 done
52039
52040 # Required to use basename.
52041 if expr a : '\(a\)' >/dev/null 2>&1; then
52042   as_expr=expr
52043 else
52044   as_expr=false
52045 fi
52046
52047 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
52048   as_basename=basename
52049 else
52050   as_basename=false
52051 fi
52052
52053
52054 # Name of the executable.
52055 as_me=`$as_basename "$0" ||
52056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52057          X"$0" : 'X\(//\)$' \| \
52058          X"$0" : 'X\(/\)$' \| \
52059          .     : '\(.\)' 2>/dev/null ||
52060 echo X/"$0" |
52061     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
52062           /^X\/\(\/\/\)$/{ s//\1/; q; }
52063           /^X\/\(\/\).*/{ s//\1/; q; }
52064           s/.*/./; q'`
52065
52066
52067 # PATH needs CR, and LINENO needs CR and PATH.
52068 # Avoid depending upon Character Ranges.
52069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52072 as_cr_digits='0123456789'
52073 as_cr_alnum=$as_cr_Letters$as_cr_digits
52074
52075 # The user is always right.
52076 if test "${PATH_SEPARATOR+set}" != set; then
52077   echo "#! /bin/sh" >conf$$.sh
52078   echo  "exit 0"   >>conf$$.sh
52079   chmod +x conf$$.sh
52080   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52081     PATH_SEPARATOR=';'
52082   else
52083     PATH_SEPARATOR=:
52084   fi
52085   rm -f conf$$.sh
52086 fi
52087
52088
52089   as_lineno_1=$LINENO
52090   as_lineno_2=$LINENO
52091   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52092   test "x$as_lineno_1" != "x$as_lineno_2" &&
52093   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
52094   # Find who we are.  Look in the path if we contain no path at all
52095   # relative or not.
52096   case $0 in
52097     *[\\/]* ) as_myself=$0 ;;
52098     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52099 for as_dir in $PATH
52100 do
52101   IFS=$as_save_IFS
52102   test -z "$as_dir" && as_dir=.
52103   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52104 done
52105
52106        ;;
52107   esac
52108   # We did not find ourselves, most probably we were run as `sh COMMAND'
52109   # in which case we are not to be found in the path.
52110   if test "x$as_myself" = x; then
52111     as_myself=$0
52112   fi
52113   if test ! -f "$as_myself"; then
52114     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
52115 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
52116    { (exit 1); exit 1; }; }
52117   fi
52118   case $CONFIG_SHELL in
52119   '')
52120     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52121 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
52122 do
52123   IFS=$as_save_IFS
52124   test -z "$as_dir" && as_dir=.
52125   for as_base in sh bash ksh sh5; do
52126          case $as_dir in
52127          /*)
52128            if ("$as_dir/$as_base" -c '
52129   as_lineno_1=$LINENO
52130   as_lineno_2=$LINENO
52131   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52132   test "x$as_lineno_1" != "x$as_lineno_2" &&
52133   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
52134              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
52135              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
52136              CONFIG_SHELL=$as_dir/$as_base
52137              export CONFIG_SHELL
52138              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
52139            fi;;
52140          esac
52141        done
52142 done
52143 ;;
52144   esac
52145
52146   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52147   # uniformly replaced by the line number.  The first 'sed' inserts a
52148   # line-number line before each line; the second 'sed' does the real
52149   # work.  The second script uses 'N' to pair each line-number line
52150   # with the numbered line, and appends trailing '-' during
52151   # substitution so that $LINENO is not a special case at line end.
52152   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52153   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
52154   sed '=' <$as_myself |
52155     sed '
52156       N
52157       s,$,-,
52158       : loop
52159       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
52160       t loop
52161       s,-$,,
52162       s,^['$as_cr_digits']*\n,,
52163     ' >$as_me.lineno &&
52164   chmod +x $as_me.lineno ||
52165     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
52166 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
52167    { (exit 1); exit 1; }; }
52168
52169   # Don't try to exec as it changes $[0], causing all sort of problems
52170   # (the dirname of $[0] is not the place where we might find the
52171   # original and so on.  Autoconf is especially sensible to this).
52172   . ./$as_me.lineno
52173   # Exit status is that of the last command.
52174   exit
52175 }
52176
52177
52178 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
52179   *c*,-n*) ECHO_N= ECHO_C='
52180 ' ECHO_T='      ' ;;
52181   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
52182   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
52183 esac
52184
52185 if expr a : '\(a\)' >/dev/null 2>&1; then
52186   as_expr=expr
52187 else
52188   as_expr=false
52189 fi
52190
52191 rm -f conf$$ conf$$.exe conf$$.file
52192 echo >conf$$.file
52193 if ln -s conf$$.file conf$$ 2>/dev/null; then
52194   # We could just check for DJGPP; but this test a) works b) is more generic
52195   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
52196   if test -f conf$$.exe; then
52197     # Don't use ln at all; we don't have any links
52198     as_ln_s='cp -p'
52199   else
52200     as_ln_s='ln -s'
52201   fi
52202 elif ln conf$$.file conf$$ 2>/dev/null; then
52203   as_ln_s=ln
52204 else
52205   as_ln_s='cp -p'
52206 fi
52207 rm -f conf$$ conf$$.exe conf$$.file
52208
52209 if mkdir -p . 2>/dev/null; then
52210   as_mkdir_p=:
52211 else
52212   test -d ./-p && rmdir ./-p
52213   as_mkdir_p=false
52214 fi
52215
52216 as_executable_p="test -f"
52217
52218 # Sed expression to map a string onto a valid CPP name.
52219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52220
52221 # Sed expression to map a string onto a valid variable name.
52222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52223
52224
52225 # IFS
52226 # We need space, tab and new line, in precisely that order.
52227 as_nl='
52228 '
52229 IFS="   $as_nl"
52230
52231 # CDPATH.
52232 $as_unset CDPATH
52233
52234 exec 6>&1
52235
52236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
52237 # report actual input values of CONFIG_FILES etc. instead of their
52238 # values after options handling.  Logging --version etc. is OK.
52239 exec 5>>config.log
52240 {
52241   echo
52242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52243 ## Running $as_me. ##
52244 _ASBOX
52245 } >&5
52246 cat >&5 <<_CSEOF
52247
52248 This file was extended by wxWidgets $as_me 2.9.0, which was
52249 generated by GNU Autoconf 2.59.  Invocation command line was
52250
52251   CONFIG_FILES    = $CONFIG_FILES
52252   CONFIG_HEADERS  = $CONFIG_HEADERS
52253   CONFIG_LINKS    = $CONFIG_LINKS
52254   CONFIG_COMMANDS = $CONFIG_COMMANDS
52255   $ $0 $@
52256
52257 _CSEOF
52258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
52259 echo >&5
52260 _ACEOF
52261
52262 # Files that config.status was made for.
52263 if test -n "$ac_config_files"; then
52264   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
52265 fi
52266
52267 if test -n "$ac_config_headers"; then
52268   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
52269 fi
52270
52271 if test -n "$ac_config_links"; then
52272   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
52273 fi
52274
52275 if test -n "$ac_config_commands"; then
52276   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
52277 fi
52278
52279 cat >>$CONFIG_STATUS <<\_ACEOF
52280
52281 ac_cs_usage="\
52282 \`$as_me' instantiates files from templates according to the
52283 current configuration.
52284
52285 Usage: $0 [OPTIONS] [FILE]...
52286
52287   -h, --help       print this help, then exit
52288   -V, --version    print version number, then exit
52289   -q, --quiet      do not print progress messages
52290   -d, --debug      don't remove temporary files
52291       --recheck    update $as_me by reconfiguring in the same conditions
52292   --file=FILE[:TEMPLATE]
52293                    instantiate the configuration file FILE
52294   --header=FILE[:TEMPLATE]
52295                    instantiate the configuration header FILE
52296
52297 Configuration files:
52298 $config_files
52299
52300 Configuration headers:
52301 $config_headers
52302
52303 Configuration commands:
52304 $config_commands
52305
52306 Report bugs to <bug-autoconf@gnu.org>."
52307 _ACEOF
52308
52309 cat >>$CONFIG_STATUS <<_ACEOF
52310 ac_cs_version="\\
52311 wxWidgets config.status 2.9.0
52312 configured by $0, generated by GNU Autoconf 2.59,
52313   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
52314
52315 Copyright (C) 2003 Free Software Foundation, Inc.
52316 This config.status script is free software; the Free Software Foundation
52317 gives unlimited permission to copy, distribute and modify it."
52318 srcdir=$srcdir
52319 INSTALL="$INSTALL"
52320 _ACEOF
52321
52322 cat >>$CONFIG_STATUS <<\_ACEOF
52323 # If no file are specified by the user, then we need to provide default
52324 # value.  By we need to know if files were specified by the user.
52325 ac_need_defaults=:
52326 while test $# != 0
52327 do
52328   case $1 in
52329   --*=*)
52330     ac_option=`expr "x$1" : 'x\([^=]*\)='`
52331     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
52332     ac_shift=:
52333     ;;
52334   -*)
52335     ac_option=$1
52336     ac_optarg=$2
52337     ac_shift=shift
52338     ;;
52339   *) # This is not an option, so the user has probably given explicit
52340      # arguments.
52341      ac_option=$1
52342      ac_need_defaults=false;;
52343   esac
52344
52345   case $ac_option in
52346   # Handling of the options.
52347 _ACEOF
52348 cat >>$CONFIG_STATUS <<\_ACEOF
52349   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52350     ac_cs_recheck=: ;;
52351   --version | --vers* | -V )
52352     echo "$ac_cs_version"; exit 0 ;;
52353   --he | --h)
52354     # Conflict between --help and --header
52355     { { echo "$as_me:$LINENO: error: ambiguous option: $1
52356 Try \`$0 --help' for more information." >&5
52357 echo "$as_me: error: ambiguous option: $1
52358 Try \`$0 --help' for more information." >&2;}
52359    { (exit 1); exit 1; }; };;
52360   --help | --hel | -h )
52361     echo "$ac_cs_usage"; exit 0 ;;
52362   --debug | --d* | -d )
52363     debug=: ;;
52364   --file | --fil | --fi | --f )
52365     $ac_shift
52366     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
52367     ac_need_defaults=false;;
52368   --header | --heade | --head | --hea )
52369     $ac_shift
52370     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
52371     ac_need_defaults=false;;
52372   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52373   | -silent | --silent | --silen | --sile | --sil | --si | --s)
52374     ac_cs_silent=: ;;
52375
52376   # This is an error.
52377   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
52378 Try \`$0 --help' for more information." >&5
52379 echo "$as_me: error: unrecognized option: $1
52380 Try \`$0 --help' for more information." >&2;}
52381    { (exit 1); exit 1; }; } ;;
52382
52383   *) ac_config_targets="$ac_config_targets $1" ;;
52384
52385   esac
52386   shift
52387 done
52388
52389 ac_configure_extra_args=
52390
52391 if $ac_cs_silent; then
52392   exec 6>/dev/null
52393   ac_configure_extra_args="$ac_configure_extra_args --silent"
52394 fi
52395
52396 _ACEOF
52397 cat >>$CONFIG_STATUS <<_ACEOF
52398 if \$ac_cs_recheck; then
52399   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
52400   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
52401 fi
52402
52403 _ACEOF
52404
52405 cat >>$CONFIG_STATUS <<_ACEOF
52406 #
52407 # INIT-COMMANDS section.
52408 #
52409
52410
52411             CPP="$CPP"
52412             infile="$srcdir/include/wx/msw/genrcdefs.h"
52413             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
52414
52415
52416  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52417  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52418  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
52419                      LN_S="${LN_S}"
52420
52421
52422 _ACEOF
52423
52424
52425
52426 cat >>$CONFIG_STATUS <<\_ACEOF
52427 for ac_config_target in $ac_config_targets
52428 do
52429   case "$ac_config_target" in
52430   # Handling of arguments.
52431   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
52432   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
52433   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
52434   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
52435   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
52436   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
52437   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
52438   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
52439   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
52440 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
52441    { (exit 1); exit 1; }; };;
52442   esac
52443 done
52444
52445 # If the user did not use the arguments to specify the items to instantiate,
52446 # then the envvar interface is used.  Set only those that are not.
52447 # We use the long form for the default assignment because of an extremely
52448 # bizarre bug on SunOS 4.1.3.
52449 if $ac_need_defaults; then
52450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
52451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
52452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52453 fi
52454
52455 # Have a temporary directory for convenience.  Make it in the build tree
52456 # simply because there is no reason to put it here, and in addition,
52457 # creating and moving files from /tmp can sometimes cause problems.
52458 # Create a temporary directory, and hook for its removal unless debugging.
52459 $debug ||
52460 {
52461   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
52462   trap '{ (exit 1); exit 1; }' 1 2 13 15
52463 }
52464
52465 # Create a (secure) tmp directory for tmp files.
52466
52467 {
52468   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
52469   test -n "$tmp" && test -d "$tmp"
52470 }  ||
52471 {
52472   tmp=./confstat$$-$RANDOM
52473   (umask 077 && mkdir $tmp)
52474 } ||
52475 {
52476    echo "$me: cannot create a temporary directory in ." >&2
52477    { (exit 1); exit 1; }
52478 }
52479
52480 _ACEOF
52481
52482 cat >>$CONFIG_STATUS <<_ACEOF
52483
52484 #
52485 # CONFIG_FILES section.
52486 #
52487
52488 # No need to generate the scripts if there are no CONFIG_FILES.
52489 # This happens for instance when ./config.status config.h
52490 if test -n "\$CONFIG_FILES"; then
52491   # Protect against being on the right side of a sed subst in config.status.
52492   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
52493    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
52494 s,@SHELL@,$SHELL,;t t
52495 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
52496 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
52497 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
52498 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
52499 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
52500 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
52501 s,@exec_prefix@,$exec_prefix,;t t
52502 s,@prefix@,$prefix,;t t
52503 s,@program_transform_name@,$program_transform_name,;t t
52504 s,@bindir@,$bindir,;t t
52505 s,@sbindir@,$sbindir,;t t
52506 s,@libexecdir@,$libexecdir,;t t
52507 s,@datadir@,$datadir,;t t
52508 s,@sysconfdir@,$sysconfdir,;t t
52509 s,@sharedstatedir@,$sharedstatedir,;t t
52510 s,@localstatedir@,$localstatedir,;t t
52511 s,@libdir@,$libdir,;t t
52512 s,@includedir@,$includedir,;t t
52513 s,@oldincludedir@,$oldincludedir,;t t
52514 s,@infodir@,$infodir,;t t
52515 s,@mandir@,$mandir,;t t
52516 s,@build_alias@,$build_alias,;t t
52517 s,@host_alias@,$host_alias,;t t
52518 s,@target_alias@,$target_alias,;t t
52519 s,@DEFS@,$DEFS,;t t
52520 s,@ECHO_C@,$ECHO_C,;t t
52521 s,@ECHO_N@,$ECHO_N,;t t
52522 s,@ECHO_T@,$ECHO_T,;t t
52523 s,@LIBS@,$LIBS,;t t
52524 s,@build@,$build,;t t
52525 s,@build_cpu@,$build_cpu,;t t
52526 s,@build_vendor@,$build_vendor,;t t
52527 s,@build_os@,$build_os,;t t
52528 s,@host@,$host,;t t
52529 s,@host_cpu@,$host_cpu,;t t
52530 s,@host_vendor@,$host_vendor,;t t
52531 s,@host_os@,$host_os,;t t
52532 s,@target@,$target,;t t
52533 s,@target_cpu@,$target_cpu,;t t
52534 s,@target_vendor@,$target_vendor,;t t
52535 s,@target_os@,$target_os,;t t
52536 s,@wx_top_builddir@,$wx_top_builddir,;t t
52537 s,@CC@,$CC,;t t
52538 s,@CFLAGS@,$CFLAGS,;t t
52539 s,@LDFLAGS@,$LDFLAGS,;t t
52540 s,@CPPFLAGS@,$CPPFLAGS,;t t
52541 s,@ac_ct_CC@,$ac_ct_CC,;t t
52542 s,@EXEEXT@,$EXEEXT,;t t
52543 s,@OBJEXT@,$OBJEXT,;t t
52544 s,@CPP@,$CPP,;t t
52545 s,@EGREP@,$EGREP,;t t
52546 s,@CXX@,$CXX,;t t
52547 s,@CXXFLAGS@,$CXXFLAGS,;t t
52548 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
52549 s,@RANLIB@,$RANLIB,;t t
52550 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
52551 s,@AR@,$AR,;t t
52552 s,@ac_ct_AR@,$ac_ct_AR,;t t
52553 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
52554 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
52555 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
52556 s,@STRIP@,$STRIP,;t t
52557 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
52558 s,@WINDRES@,$WINDRES,;t t
52559 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
52560 s,@DLLTOOL@,$DLLTOOL,;t t
52561 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
52562 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
52563 s,@LN_S@,$LN_S,;t t
52564 s,@subdirs@,$subdirs,;t t
52565 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
52566 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
52567 s,@GTK_LIBS@,$GTK_LIBS,;t t
52568 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
52569 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
52570 s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
52571 s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
52572 s,@X_CFLAGS@,$X_CFLAGS,;t t
52573 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
52574 s,@X_LIBS@,$X_LIBS,;t t
52575 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
52576 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
52577 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
52578 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
52579 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
52580 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
52581 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
52582 s,@CFLAGS_VISIBILITY@,$CFLAGS_VISIBILITY,;t t
52583 s,@CXXFLAGS_VISIBILITY@,$CXXFLAGS_VISIBILITY,;t t
52584 s,@REZ@,$REZ,;t t
52585 s,@DEREZ@,$DEREZ,;t t
52586 s,@SETFILE@,$SETFILE,;t t
52587 s,@LIBICONV@,$LIBICONV,;t t
52588 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
52589 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
52590 s,@SDL_LIBS@,$SDL_LIBS,;t t
52591 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
52592 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
52593 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
52594 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
52595 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
52596 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
52597 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
52598 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
52599 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
52600 s,@GST_LIBS@,$GST_LIBS,;t t
52601 s,@ALL_WX_LIBS@,$ALL_WX_LIBS,;t t
52602 s,@BUILT_WX_LIBS@,$BUILT_WX_LIBS,;t t
52603 s,@STD_BASE_LIBS@,$STD_BASE_LIBS,;t t
52604 s,@STD_GUI_LIBS@,$STD_GUI_LIBS,;t t
52605 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
52606 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
52607 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
52608 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
52609 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
52610 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
52611 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
52612 s,@VENDOR@,$VENDOR,;t t
52613 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
52614 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
52615 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
52616 s,@WXUNIV@,$WXUNIV,;t t
52617 s,@MONOLITHIC@,$MONOLITHIC,;t t
52618 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
52619 s,@CXXWARNINGS@,$CXXWARNINGS,;t t
52620 s,@EXTRALIBS@,$EXTRALIBS,;t t
52621 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
52622 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
52623 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
52624 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
52625 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
52626 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
52627 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
52628 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
52629 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
52630 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
52631 s,@UNICODE@,$UNICODE,;t t
52632 s,@BUILD@,$BUILD,;t t
52633 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
52634 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
52635 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
52636 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
52637 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
52638 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
52639 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
52640 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
52641 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
52642 s,@SET_MAKE@,$SET_MAKE,;t t
52643 s,@MAKE_SET@,$MAKE_SET,;t t
52644 s,@AROPTIONS@,$AROPTIONS,;t t
52645 s,@NM@,$NM,;t t
52646 s,@ac_ct_NM@,$ac_ct_NM,;t t
52647 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
52648 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
52649 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
52650 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
52651 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
52652 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
52653 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
52654 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
52655 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
52656 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
52657 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
52658 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
52659 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
52660 s,@LIBPREFIX@,$LIBPREFIX,;t t
52661 s,@LIBEXT@,$LIBEXT,;t t
52662 s,@DLLPREFIX@,$DLLPREFIX,;t t
52663 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
52664 s,@dlldir@,$dlldir,;t t
52665 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
52666 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
52667 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
52668 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
52669 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
52670 s,@PIC_FLAG@,$PIC_FLAG,;t t
52671 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
52672 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
52673 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
52674 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
52675 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
52676 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
52677 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
52678 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
52679 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
52680 s,@BK_DEPS@,$BK_DEPS,;t t
52681 s,@GCC_PCH@,$GCC_PCH,;t t
52682 s,@ICC_PCH@,$ICC_PCH,;t t
52683 s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
52684 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
52685 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
52686 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
52687 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
52688 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
52689 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
52690 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
52691 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
52692 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
52693 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
52694 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
52695 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
52696 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
52697 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
52698 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
52699 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
52700 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
52701 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
52702 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
52703 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
52704 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
52705 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
52706 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
52707 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
52708 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
52709 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
52710 s,@COND_MONOLITHIC_0_SHARED_0_USE_STC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_STC_1,;t t
52711 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
52712 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
52713 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
52714 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
52715 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
52716 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
52717 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
52718 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
52719 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
52720 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
52721 s,@COND_MONOLITHIC_0_SHARED_1_USE_STC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_STC_1,;t t
52722 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
52723 s,@COND_MONOLITHIC_0_USE_AUI_1@,$COND_MONOLITHIC_0_USE_AUI_1,;t t
52724 s,@COND_MONOLITHIC_0_USE_GUI_1@,$COND_MONOLITHIC_0_USE_GUI_1,;t t
52725 s,@COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1,;t t
52726 s,@COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1,;t t
52727 s,@COND_MONOLITHIC_0_USE_HTML_1@,$COND_MONOLITHIC_0_USE_HTML_1,;t t
52728 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
52729 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
52730 s,@COND_MONOLITHIC_0_USE_QA_1@,$COND_MONOLITHIC_0_USE_QA_1,;t t
52731 s,@COND_MONOLITHIC_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_USE_RICHTEXT_1,;t t
52732 s,@COND_MONOLITHIC_0_USE_STC_1@,$COND_MONOLITHIC_0_USE_STC_1,;t t
52733 s,@COND_MONOLITHIC_0_USE_XRC_1@,$COND_MONOLITHIC_0_USE_XRC_1,;t t
52734 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
52735 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
52736 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
52737 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
52738 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
52739 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
52740 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
52741 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
52742 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
52743 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
52744 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
52745 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
52746 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
52747 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
52748 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
52749 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
52750 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
52751 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
52752 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
52753 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
52754 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
52755 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
52756 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
52757 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
52758 s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL,;t t
52759 s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1,;t t
52760 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
52761 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
52762 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
52763 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
52764 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
52765 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
52766 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
52767 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
52768 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52769 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
52770 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
52771 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52772 s,@COND_SHARED_0_USE_STC_1@,$COND_SHARED_0_USE_STC_1,;t t
52773 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
52774 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
52775 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
52776 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
52777 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
52778 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
52779 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52780 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
52781 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
52782 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
52783 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
52784 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
52785 s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
52786 s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
52787 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
52788 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
52789 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
52790 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
52791 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
52792 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
52793 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
52794 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
52795 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
52796 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
52797 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
52798 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
52799 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
52800 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
52801 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
52802 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
52803 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
52804 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
52805 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
52806 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
52807 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
52808 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
52809 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
52810 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
52811 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
52812 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
52813 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
52814 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
52815 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
52816 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
52817 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
52818 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
52819 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
52820 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
52821 s,@COND_USE_GUI_1_USE_OPENGL_1@,$COND_USE_GUI_1_USE_OPENGL_1,;t t
52822 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
52823 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
52824 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
52825 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
52826 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52827 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
52828 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
52829 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
52830 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
52831 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
52832 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
52833 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
52834 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
52835 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
52836 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
52837 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
52838 s,@COND_USE_STC_1@,$COND_USE_STC_1,;t t
52839 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
52840 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
52841 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
52842 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
52843 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
52844 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
52845 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
52846 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
52847 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
52848 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
52849 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
52850 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
52851 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
52852 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
52853 s,@SHARED@,$SHARED,;t t
52854 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
52855 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
52856 s,@USE_GUI@,$USE_GUI,;t t
52857 s,@AFMINSTALL@,$AFMINSTALL,;t t
52858 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
52859 s,@TOOLKIT@,$TOOLKIT,;t t
52860 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
52861 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
52862 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
52863 s,@cross_compiling@,$cross_compiling,;t t
52864 s,@WIDGET_SET@,$WIDGET_SET,;t t
52865 s,@WX_RELEASE@,$WX_RELEASE,;t t
52866 s,@WX_VERSION@,$WX_VERSION,;t t
52867 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
52868 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
52869 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
52870 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
52871 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
52872 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
52873 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
52874 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
52875 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
52876 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
52877 s,@EXE_LINKER@,$EXE_LINKER,;t t
52878 s,@GUIDIST@,$GUIDIST,;t t
52879 s,@DISTDIR@,$DISTDIR,;t t
52880 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
52881 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
52882 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
52883 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
52884 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
52885 s,@RESCOMP@,$RESCOMP,;t t
52886 s,@RESFLAGS@,$RESFLAGS,;t t
52887 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
52888 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
52889 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
52890 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
52891 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
52892 s,@MACSETFILE@,$MACSETFILE,;t t
52893 s,@GCC@,$GCC,;t t
52894 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
52895 s,@LIBOBJS@,$LIBOBJS,;t t
52896 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
52897 CEOF
52898
52899 _ACEOF
52900
52901   cat >>$CONFIG_STATUS <<\_ACEOF
52902   # Split the substitutions into bite-sized pieces for seds with
52903   # small command number limits, like on Digital OSF/1 and HP-UX.
52904   ac_max_sed_lines=48
52905   ac_sed_frag=1 # Number of current file.
52906   ac_beg=1 # First line for current file.
52907   ac_end=$ac_max_sed_lines # Line after last line for current file.
52908   ac_more_lines=:
52909   ac_sed_cmds=
52910   while $ac_more_lines; do
52911     if test $ac_beg -gt 1; then
52912       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52913     else
52914       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52915     fi
52916     if test ! -s $tmp/subs.frag; then
52917       ac_more_lines=false
52918     else
52919       # The purpose of the label and of the branching condition is to
52920       # speed up the sed processing (if there are no `@' at all, there
52921       # is no need to browse any of the substitutions).
52922       # These are the two extra sed commands mentioned above.
52923       (echo ':t
52924   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52925       if test -z "$ac_sed_cmds"; then
52926         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52927       else
52928         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52929       fi
52930       ac_sed_frag=`expr $ac_sed_frag + 1`
52931       ac_beg=$ac_end
52932       ac_end=`expr $ac_end + $ac_max_sed_lines`
52933     fi
52934   done
52935   if test -z "$ac_sed_cmds"; then
52936     ac_sed_cmds=cat
52937   fi
52938 fi # test -n "$CONFIG_FILES"
52939
52940 _ACEOF
52941 cat >>$CONFIG_STATUS <<\_ACEOF
52942 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52943   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52944   case $ac_file in
52945   - | *:- | *:-:* ) # input from stdin
52946         cat >$tmp/stdin
52947         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52949   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52951   * )   ac_file_in=$ac_file.in ;;
52952   esac
52953
52954   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52955   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52957          X"$ac_file" : 'X\(//\)[^/]' \| \
52958          X"$ac_file" : 'X\(//\)$' \| \
52959          X"$ac_file" : 'X\(/\)' \| \
52960          .     : '\(.\)' 2>/dev/null ||
52961 echo X"$ac_file" |
52962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52964           /^X\(\/\/\)$/{ s//\1/; q; }
52965           /^X\(\/\).*/{ s//\1/; q; }
52966           s/.*/./; q'`
52967   { if $as_mkdir_p; then
52968     mkdir -p "$ac_dir"
52969   else
52970     as_dir="$ac_dir"
52971     as_dirs=
52972     while test ! -d "$as_dir"; do
52973       as_dirs="$as_dir $as_dirs"
52974       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52976          X"$as_dir" : 'X\(//\)[^/]' \| \
52977          X"$as_dir" : 'X\(//\)$' \| \
52978          X"$as_dir" : 'X\(/\)' \| \
52979          .     : '\(.\)' 2>/dev/null ||
52980 echo X"$as_dir" |
52981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52983           /^X\(\/\/\)$/{ s//\1/; q; }
52984           /^X\(\/\).*/{ s//\1/; q; }
52985           s/.*/./; q'`
52986     done
52987     test ! -n "$as_dirs" || mkdir $as_dirs
52988   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52990    { (exit 1); exit 1; }; }; }
52991
52992   ac_builddir=.
52993
52994 if test "$ac_dir" != .; then
52995   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52996   # A "../" for each directory in $ac_dir_suffix.
52997   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52998 else
52999   ac_dir_suffix= ac_top_builddir=
53000 fi
53001
53002 case $srcdir in
53003   .)  # No --srcdir option.  We are building in place.
53004     ac_srcdir=.
53005     if test -z "$ac_top_builddir"; then
53006        ac_top_srcdir=.
53007     else
53008        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53009     fi ;;
53010   [\\/]* | ?:[\\/]* )  # Absolute path.
53011     ac_srcdir=$srcdir$ac_dir_suffix;
53012     ac_top_srcdir=$srcdir ;;
53013   *) # Relative path.
53014     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53015     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53016 esac
53017
53018 # Do not use `cd foo && pwd` to compute absolute paths, because
53019 # the directories may not exist.
53020 case `pwd` in
53021 .) ac_abs_builddir="$ac_dir";;
53022 *)
53023   case "$ac_dir" in
53024   .) ac_abs_builddir=`pwd`;;
53025   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53026   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53027   esac;;
53028 esac
53029 case $ac_abs_builddir in
53030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53031 *)
53032   case ${ac_top_builddir}. in
53033   .) ac_abs_top_builddir=$ac_abs_builddir;;
53034   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53035   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53036   esac;;
53037 esac
53038 case $ac_abs_builddir in
53039 .) ac_abs_srcdir=$ac_srcdir;;
53040 *)
53041   case $ac_srcdir in
53042   .) ac_abs_srcdir=$ac_abs_builddir;;
53043   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53044   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53045   esac;;
53046 esac
53047 case $ac_abs_builddir in
53048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53049 *)
53050   case $ac_top_srcdir in
53051   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53052   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53053   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53054   esac;;
53055 esac
53056
53057
53058   case $INSTALL in
53059   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53060   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53061   esac
53062
53063   # Let's still pretend it is `configure' which instantiates (i.e., don't
53064   # use $as_me), people would be surprised to read:
53065   #    /* config.h.  Generated by config.status.  */
53066   if test x"$ac_file" = x-; then
53067     configure_input=
53068   else
53069     configure_input="$ac_file.  "
53070   fi
53071   configure_input=$configure_input"Generated from `echo $ac_file_in |
53072                                      sed 's,.*/,,'` by configure."
53073
53074   # First look for the input files in the build tree, otherwise in the
53075   # src tree.
53076   ac_file_inputs=`IFS=:
53077     for f in $ac_file_in; do
53078       case $f in
53079       -) echo $tmp/stdin ;;
53080       [\\/$]*)
53081          # Absolute (can't be DOS-style, as IFS=:)
53082          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53083 echo "$as_me: error: cannot find input file: $f" >&2;}
53084    { (exit 1); exit 1; }; }
53085          echo "$f";;
53086       *) # Relative
53087          if test -f "$f"; then
53088            # Build tree
53089            echo "$f"
53090          elif test -f "$srcdir/$f"; then
53091            # Source tree
53092            echo "$srcdir/$f"
53093          else
53094            # /dev/null tree
53095            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53096 echo "$as_me: error: cannot find input file: $f" >&2;}
53097    { (exit 1); exit 1; }; }
53098          fi;;
53099       esac
53100     done` || { (exit 1); exit 1; }
53101
53102   if test x"$ac_file" != x-; then
53103     { echo "$as_me:$LINENO: creating $ac_file" >&5
53104 echo "$as_me: creating $ac_file" >&6;}
53105     rm -f "$ac_file"
53106   fi
53107 _ACEOF
53108 cat >>$CONFIG_STATUS <<_ACEOF
53109   sed "$ac_vpsub
53110 $extrasub
53111 _ACEOF
53112 cat >>$CONFIG_STATUS <<\_ACEOF
53113 :t
53114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53115 s,@configure_input@,$configure_input,;t t
53116 s,@srcdir@,$ac_srcdir,;t t
53117 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53118 s,@top_srcdir@,$ac_top_srcdir,;t t
53119 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53120 s,@builddir@,$ac_builddir,;t t
53121 s,@abs_builddir@,$ac_abs_builddir,;t t
53122 s,@top_builddir@,$ac_top_builddir,;t t
53123 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53124 s,@INSTALL@,$ac_INSTALL,;t t
53125 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53126   rm -f $tmp/stdin
53127   if test x"$ac_file" != x-; then
53128     mv $tmp/out $ac_file
53129   else
53130     cat $tmp/out
53131     rm -f $tmp/out
53132   fi
53133
53134   # Run the commands associated with the file.
53135   case $ac_file in
53136     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
53137     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
53138   esac
53139 done
53140 _ACEOF
53141 cat >>$CONFIG_STATUS <<\_ACEOF
53142
53143 #
53144 # CONFIG_HEADER section.
53145 #
53146
53147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53149 #
53150 # ac_d sets the value in "#define NAME VALUE" lines.
53151 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
53152 ac_dB='[         ].*$,\1#\2'
53153 ac_dC=' '
53154 ac_dD=',;t'
53155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53156 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
53157 ac_uB='$,\1#\2define\3'
53158 ac_uC=' '
53159 ac_uD=',;t'
53160
53161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53162   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53163   case $ac_file in
53164   - | *:- | *:-:* ) # input from stdin
53165         cat >$tmp/stdin
53166         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53167         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53168   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53169         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53170   * )   ac_file_in=$ac_file.in ;;
53171   esac
53172
53173   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53174 echo "$as_me: creating $ac_file" >&6;}
53175
53176   # First look for the input files in the build tree, otherwise in the
53177   # src tree.
53178   ac_file_inputs=`IFS=:
53179     for f in $ac_file_in; do
53180       case $f in
53181       -) echo $tmp/stdin ;;
53182       [\\/$]*)
53183          # Absolute (can't be DOS-style, as IFS=:)
53184          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53185 echo "$as_me: error: cannot find input file: $f" >&2;}
53186    { (exit 1); exit 1; }; }
53187          # Do quote $f, to prevent DOS paths from being IFS'd.
53188          echo "$f";;
53189       *) # Relative
53190          if test -f "$f"; then
53191            # Build tree
53192            echo "$f"
53193          elif test -f "$srcdir/$f"; then
53194            # Source tree
53195            echo "$srcdir/$f"
53196          else
53197            # /dev/null tree
53198            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53199 echo "$as_me: error: cannot find input file: $f" >&2;}
53200    { (exit 1); exit 1; }; }
53201          fi;;
53202       esac
53203     done` || { (exit 1); exit 1; }
53204   # Remove the trailing spaces.
53205   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
53206
53207 _ACEOF
53208
53209 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53210 # `conftest.undefs', that substitutes the proper values into
53211 # config.h.in to produce config.h.  The first handles `#define'
53212 # templates, and the second `#undef' templates.
53213 # And first: Protect against being on the right side of a sed subst in
53214 # config.status.  Protect against being in an unquoted here document
53215 # in config.status.
53216 rm -f conftest.defines conftest.undefs
53217 # Using a here document instead of a string reduces the quoting nightmare.
53218 # Putting comments in sed scripts is not portable.
53219 #
53220 # `end' is used to avoid that the second main sed command (meant for
53221 # 0-ary CPP macros) applies to n-ary macro definitions.
53222 # See the Autoconf documentation for `clear'.
53223 cat >confdef2sed.sed <<\_ACEOF
53224 s/[\\&,]/\\&/g
53225 s,[\\$`],\\&,g
53226 t clear
53227 : clear
53228 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53229 t end
53230 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53231 : end
53232 _ACEOF
53233 # If some macros were called several times there might be several times
53234 # the same #defines, which is useless.  Nevertheless, we may not want to
53235 # sort them, since we want the *last* AC-DEFINE to be honored.
53236 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
53237 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
53238 rm -f confdef2sed.sed
53239
53240 # This sed command replaces #undef with comments.  This is necessary, for
53241 # example, in the case of _POSIX_SOURCE, which is predefined and required
53242 # on some systems where configure will not decide to define it.
53243 cat >>conftest.undefs <<\_ACEOF
53244 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
53245 _ACEOF
53246
53247 # Break up conftest.defines because some shells have a limit on the size
53248 # of here documents, and old seds have small limits too (100 cmds).
53249 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
53250 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
53251 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
53252 echo '  :' >>$CONFIG_STATUS
53253 rm -f conftest.tail
53254 while grep . conftest.defines >/dev/null
53255 do
53256   # Write a limited-size here document to $tmp/defines.sed.
53257   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
53258   # Speed up: don't consider the non `#define' lines.
53259   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
53260   # Work around the forget-to-reset-the-flag bug.
53261   echo 't clr' >>$CONFIG_STATUS
53262   echo ': clr' >>$CONFIG_STATUS
53263   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
53264   echo 'CEOF
53265   sed -f $tmp/defines.sed $tmp/in >$tmp/out
53266   rm -f $tmp/in
53267   mv $tmp/out $tmp/in
53268 ' >>$CONFIG_STATUS
53269   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
53270   rm -f conftest.defines
53271   mv conftest.tail conftest.defines
53272 done
53273 rm -f conftest.defines
53274 echo '  fi # grep' >>$CONFIG_STATUS
53275 echo >>$CONFIG_STATUS
53276
53277 # Break up conftest.undefs because some shells have a limit on the size
53278 # of here documents, and old seds have small limits too (100 cmds).
53279 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
53280 rm -f conftest.tail
53281 while grep . conftest.undefs >/dev/null
53282 do
53283   # Write a limited-size here document to $tmp/undefs.sed.
53284   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
53285   # Speed up: don't consider the non `#undef'
53286   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
53287   # Work around the forget-to-reset-the-flag bug.
53288   echo 't clr' >>$CONFIG_STATUS
53289   echo ': clr' >>$CONFIG_STATUS
53290   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
53291   echo 'CEOF
53292   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
53293   rm -f $tmp/in
53294   mv $tmp/out $tmp/in
53295 ' >>$CONFIG_STATUS
53296   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
53297   rm -f conftest.undefs
53298   mv conftest.tail conftest.undefs
53299 done
53300 rm -f conftest.undefs
53301
53302 cat >>$CONFIG_STATUS <<\_ACEOF
53303   # Let's still pretend it is `configure' which instantiates (i.e., don't
53304   # use $as_me), people would be surprised to read:
53305   #    /* config.h.  Generated by config.status.  */
53306   if test x"$ac_file" = x-; then
53307     echo "/* Generated by configure.  */" >$tmp/config.h
53308   else
53309     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
53310   fi
53311   cat $tmp/in >>$tmp/config.h
53312   rm -f $tmp/in
53313   if test x"$ac_file" != x-; then
53314     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
53315       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53316 echo "$as_me: $ac_file is unchanged" >&6;}
53317     else
53318       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53320          X"$ac_file" : 'X\(//\)[^/]' \| \
53321          X"$ac_file" : 'X\(//\)$' \| \
53322          X"$ac_file" : 'X\(/\)' \| \
53323          .     : '\(.\)' 2>/dev/null ||
53324 echo X"$ac_file" |
53325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53326           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53327           /^X\(\/\/\)$/{ s//\1/; q; }
53328           /^X\(\/\).*/{ s//\1/; q; }
53329           s/.*/./; q'`
53330       { if $as_mkdir_p; then
53331     mkdir -p "$ac_dir"
53332   else
53333     as_dir="$ac_dir"
53334     as_dirs=
53335     while test ! -d "$as_dir"; do
53336       as_dirs="$as_dir $as_dirs"
53337       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53339          X"$as_dir" : 'X\(//\)[^/]' \| \
53340          X"$as_dir" : 'X\(//\)$' \| \
53341          X"$as_dir" : 'X\(/\)' \| \
53342          .     : '\(.\)' 2>/dev/null ||
53343 echo X"$as_dir" |
53344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53345           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53346           /^X\(\/\/\)$/{ s//\1/; q; }
53347           /^X\(\/\).*/{ s//\1/; q; }
53348           s/.*/./; q'`
53349     done
53350     test ! -n "$as_dirs" || mkdir $as_dirs
53351   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53353    { (exit 1); exit 1; }; }; }
53354
53355       rm -f $ac_file
53356       mv $tmp/config.h $ac_file
53357     fi
53358   else
53359     cat $tmp/config.h
53360     rm -f $tmp/config.h
53361   fi
53362 done
53363 _ACEOF
53364 cat >>$CONFIG_STATUS <<\_ACEOF
53365
53366 #
53367 # CONFIG_COMMANDS section.
53368 #
53369 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
53370   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
53371   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
53372   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
53373 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53374          X"$ac_dest" : 'X\(//\)[^/]' \| \
53375          X"$ac_dest" : 'X\(//\)$' \| \
53376          X"$ac_dest" : 'X\(/\)' \| \
53377          .     : '\(.\)' 2>/dev/null ||
53378 echo X"$ac_dest" |
53379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53380           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53381           /^X\(\/\/\)$/{ s//\1/; q; }
53382           /^X\(\/\).*/{ s//\1/; q; }
53383           s/.*/./; q'`
53384   { if $as_mkdir_p; then
53385     mkdir -p "$ac_dir"
53386   else
53387     as_dir="$ac_dir"
53388     as_dirs=
53389     while test ! -d "$as_dir"; do
53390       as_dirs="$as_dir $as_dirs"
53391       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53393          X"$as_dir" : 'X\(//\)[^/]' \| \
53394          X"$as_dir" : 'X\(//\)$' \| \
53395          X"$as_dir" : 'X\(/\)' \| \
53396          .     : '\(.\)' 2>/dev/null ||
53397 echo X"$as_dir" |
53398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53399           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53400           /^X\(\/\/\)$/{ s//\1/; q; }
53401           /^X\(\/\).*/{ s//\1/; q; }
53402           s/.*/./; q'`
53403     done
53404     test ! -n "$as_dirs" || mkdir $as_dirs
53405   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53406 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53407    { (exit 1); exit 1; }; }; }
53408
53409   ac_builddir=.
53410
53411 if test "$ac_dir" != .; then
53412   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53413   # A "../" for each directory in $ac_dir_suffix.
53414   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53415 else
53416   ac_dir_suffix= ac_top_builddir=
53417 fi
53418
53419 case $srcdir in
53420   .)  # No --srcdir option.  We are building in place.
53421     ac_srcdir=.
53422     if test -z "$ac_top_builddir"; then
53423        ac_top_srcdir=.
53424     else
53425        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53426     fi ;;
53427   [\\/]* | ?:[\\/]* )  # Absolute path.
53428     ac_srcdir=$srcdir$ac_dir_suffix;
53429     ac_top_srcdir=$srcdir ;;
53430   *) # Relative path.
53431     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53432     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53433 esac
53434
53435 # Do not use `cd foo && pwd` to compute absolute paths, because
53436 # the directories may not exist.
53437 case `pwd` in
53438 .) ac_abs_builddir="$ac_dir";;
53439 *)
53440   case "$ac_dir" in
53441   .) ac_abs_builddir=`pwd`;;
53442   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53443   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53444   esac;;
53445 esac
53446 case $ac_abs_builddir in
53447 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53448 *)
53449   case ${ac_top_builddir}. in
53450   .) ac_abs_top_builddir=$ac_abs_builddir;;
53451   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53452   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53453   esac;;
53454 esac
53455 case $ac_abs_builddir in
53456 .) ac_abs_srcdir=$ac_srcdir;;
53457 *)
53458   case $ac_srcdir in
53459   .) ac_abs_srcdir=$ac_abs_builddir;;
53460   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53461   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53462   esac;;
53463 esac
53464 case $ac_abs_builddir in
53465 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53466 *)
53467   case $ac_top_srcdir in
53468   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53469   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53470   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53471   esac;;
53472 esac
53473
53474
53475   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
53476 echo "$as_me: executing $ac_dest commands" >&6;}
53477   case $ac_dest in
53478     rcdefs.h )
53479             mkdir -p $outdir &&
53480             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
53481          ;;
53482     wx-config )  rm -f wx-config
53483                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
53484                     ;;
53485   esac
53486 done
53487 _ACEOF
53488
53489 cat >>$CONFIG_STATUS <<\_ACEOF
53490
53491 { (exit 0); exit 0; }
53492 _ACEOF
53493 chmod +x $CONFIG_STATUS
53494 ac_clean_files=$ac_clean_files_save
53495
53496
53497 # configure is writing to config.log, and then calls config.status.
53498 # config.status does its own redirection, appending to config.log.
53499 # Unfortunately, on DOS this fails, as config.log is still kept open
53500 # by configure, so config.status won't be able to write to it; its
53501 # output is simply discarded.  So we exec the FD to /dev/null,
53502 # effectively closing config.log, so it can be properly (re)opened and
53503 # appended to by config.status.  When coming back to configure, we
53504 # need to make the FD available again.
53505 if test "$no_create" != yes; then
53506   ac_cs_success=:
53507   ac_config_status_args=
53508   test "$silent" = yes &&
53509     ac_config_status_args="$ac_config_status_args --quiet"
53510   exec 5>/dev/null
53511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53512   exec 5>>config.log
53513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53514   # would make configure fail if this is the last instruction.
53515   $ac_cs_success || { (exit 1); exit 1; }
53516 fi
53517
53518 #
53519 # CONFIG_SUBDIRS section.
53520 #
53521 if test "$no_recursion" != yes; then
53522
53523   # Remove --cache-file and --srcdir arguments so they do not pile up.
53524   ac_sub_configure_args=
53525   ac_prev=
53526   for ac_arg in $ac_configure_args; do
53527     if test -n "$ac_prev"; then
53528       ac_prev=
53529       continue
53530     fi
53531     case $ac_arg in
53532     -cache-file | --cache-file | --cache-fil | --cache-fi \
53533     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
53534       ac_prev=cache_file ;;
53535     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
53536     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
53537     | --c=*)
53538       ;;
53539     --config-cache | -C)
53540       ;;
53541     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
53542       ac_prev=srcdir ;;
53543     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
53544       ;;
53545     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
53546       ac_prev=prefix ;;
53547     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
53548       ;;
53549     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
53550     esac
53551   done
53552
53553   # Always prepend --prefix to ensure using the same prefix
53554   # in subdir configurations.
53555   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
53556
53557   ac_popdir=`pwd`
53558   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
53559
53560     # Do not complain, so a configure script can configure whichever
53561     # parts of a large source tree are present.
53562     test -d $srcdir/$ac_dir || continue
53563
53564     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
53565 echo "$as_me: configuring in $ac_dir" >&6;}
53566     { if $as_mkdir_p; then
53567     mkdir -p "$ac_dir"
53568   else
53569     as_dir="$ac_dir"
53570     as_dirs=
53571     while test ! -d "$as_dir"; do
53572       as_dirs="$as_dir $as_dirs"
53573       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53575          X"$as_dir" : 'X\(//\)[^/]' \| \
53576          X"$as_dir" : 'X\(//\)$' \| \
53577          X"$as_dir" : 'X\(/\)' \| \
53578          .     : '\(.\)' 2>/dev/null ||
53579 echo X"$as_dir" |
53580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53582           /^X\(\/\/\)$/{ s//\1/; q; }
53583           /^X\(\/\).*/{ s//\1/; q; }
53584           s/.*/./; q'`
53585     done
53586     test ! -n "$as_dirs" || mkdir $as_dirs
53587   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53589    { (exit 1); exit 1; }; }; }
53590
53591     ac_builddir=.
53592
53593 if test "$ac_dir" != .; then
53594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53595   # A "../" for each directory in $ac_dir_suffix.
53596   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53597 else
53598   ac_dir_suffix= ac_top_builddir=
53599 fi
53600
53601 case $srcdir in
53602   .)  # No --srcdir option.  We are building in place.
53603     ac_srcdir=.
53604     if test -z "$ac_top_builddir"; then
53605        ac_top_srcdir=.
53606     else
53607        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53608     fi ;;
53609   [\\/]* | ?:[\\/]* )  # Absolute path.
53610     ac_srcdir=$srcdir$ac_dir_suffix;
53611     ac_top_srcdir=$srcdir ;;
53612   *) # Relative path.
53613     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53614     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53615 esac
53616
53617 # Do not use `cd foo && pwd` to compute absolute paths, because
53618 # the directories may not exist.
53619 case `pwd` in
53620 .) ac_abs_builddir="$ac_dir";;
53621 *)
53622   case "$ac_dir" in
53623   .) ac_abs_builddir=`pwd`;;
53624   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53625   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53626   esac;;
53627 esac
53628 case $ac_abs_builddir in
53629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53630 *)
53631   case ${ac_top_builddir}. in
53632   .) ac_abs_top_builddir=$ac_abs_builddir;;
53633   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53634   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53635   esac;;
53636 esac
53637 case $ac_abs_builddir in
53638 .) ac_abs_srcdir=$ac_srcdir;;
53639 *)
53640   case $ac_srcdir in
53641   .) ac_abs_srcdir=$ac_abs_builddir;;
53642   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53643   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53644   esac;;
53645 esac
53646 case $ac_abs_builddir in
53647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53648 *)
53649   case $ac_top_srcdir in
53650   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53651   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53652   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53653   esac;;
53654 esac
53655
53656
53657     cd $ac_dir
53658
53659     # Check for guested configure; otherwise get Cygnus style configure.
53660     if test -f $ac_srcdir/configure.gnu; then
53661       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
53662     elif test -f $ac_srcdir/configure; then
53663       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
53664     elif test -f $ac_srcdir/configure.in; then
53665       ac_sub_configure=$ac_configure
53666     else
53667       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
53669       ac_sub_configure=
53670     fi
53671
53672     # The recursion is here.
53673     if test -n "$ac_sub_configure"; then
53674       # Make the cache file name correct relative to the subdirectory.
53675       case $cache_file in
53676       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
53677       *) # Relative path.
53678         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
53679       esac
53680
53681       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53682 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53683       # The eval makes quoting arguments work.
53684       eval $ac_sub_configure $ac_sub_configure_args \
53685            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
53686         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53687 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53688    { (exit 1); exit 1; }; }
53689     fi
53690
53691     cd "$ac_popdir"
53692   done
53693 fi
53694
53695
53696 echo
53697 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53698 echo ""
53699 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53700 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53701
53702 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
53703 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53704 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
53705 if test "$wxUSE_UNICODE" = "yes"; then
53706     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53707         echo " (using UTF-8)"
53708     else
53709         echo " (using wchar_t)"
53710     fi
53711 else
53712     echo
53713 fi
53714
53715 echo "  What level of wxWidgets compatibility should be enabled?"
53716 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53717 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53718
53719 echo "  Which libraries should wxWidgets use?"
53720 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53721 echo "                                       png                ${wxUSE_LIBPNG-none}"
53722 echo "                                       regex              ${wxUSE_REGEX}"
53723 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53724 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53725 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53726 fi
53727 echo "                                       zlib               ${wxUSE_ZLIB}"
53728 echo "                                       odbc               ${wxUSE_ODBC}"
53729 echo "                                       expat              ${wxUSE_EXPAT}"
53730 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53731 echo "                                       sdl                ${wxUSE_LIBSDL}"
53732
53733 echo ""
53734