GPE generic font dialogs change.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='wxWindows'
271 PACKAGE_TARNAME='wxwindows'
272 PACKAGE_VERSION='2.5.1'
273 PACKAGE_STRING='wxWindows 2.5.1'
274 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276 ac_unique_file="wx-config.in"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subdirs_all="$ac_subdirs_all src/expat"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_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_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_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_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_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 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_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 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 PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
788
789 #
790 # Report the --help message.
791 #
792 if test "$ac_init_help" = "long"; then
793   # Omit some internal or obsolete options to make the list less imposing.
794   # This message is too long to be a string in the A/UX 3.1 sh.
795   cat <<_ACEOF
796 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
797
798 Usage: $0 [OPTION]... [VAR=VALUE]...
799
800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
801 VAR=VALUE.  See below for descriptions of some of the useful variables.
802
803 Defaults for the options are specified in brackets.
804
805 Configuration:
806   -h, --help              display this help and exit
807       --help=short        display options specific to this package
808       --help=recursive    display the short help of all the included packages
809   -V, --version           display version information and exit
810   -q, --quiet, --silent   do not print \`checking...' messages
811       --cache-file=FILE   cache test results in FILE [disabled]
812   -C, --config-cache      alias for \`--cache-file=config.cache'
813   -n, --no-create         do not create output files
814       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
815
816 _ACEOF
817
818   cat <<_ACEOF
819 Installation directories:
820   --prefix=PREFIX         install architecture-independent files in PREFIX
821                           [$ac_default_prefix]
822   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
823                           [PREFIX]
824
825 By default, \`make install' will install all the files in
826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828 for instance \`--prefix=\$HOME'.
829
830 For better control, use the options below.
831
832 Fine tuning of the installation directories:
833   --bindir=DIR           user executables [EPREFIX/bin]
834   --sbindir=DIR          system admin executables [EPREFIX/sbin]
835   --libexecdir=DIR       program executables [EPREFIX/libexec]
836   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
837   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
838   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
839   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
840   --libdir=DIR           object code libraries [EPREFIX/lib]
841   --includedir=DIR       C header files [PREFIX/include]
842   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
843   --infodir=DIR          info documentation [PREFIX/info]
844   --mandir=DIR           man documentation [PREFIX/man]
845 _ACEOF
846
847   cat <<\_ACEOF
848
849 X features:
850   --x-includes=DIR    X include files are in DIR
851   --x-libraries=DIR   X library files are in DIR
852
853 System types:
854   --build=BUILD     configure for building on BUILD [guessed]
855   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856   --target=TARGET   configure for building compilers for TARGET [HOST]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861   case $ac_init_help in
862      short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
863    esac
864   cat <<\_ACEOF
865
866 Optional Features:
867   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
868   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
869   --enable-gui            use GUI classes
870   --enable-monolithic     build wxWindows as single library
871   --enable-plugins        build parts of wxWindows as loadable components
872   --enable-universal      use wxWindows GUI controls instead of native ones
873   --enable-nanox          use NanoX
874   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
875   --enable-gpe            use GNOME PDA Environment features if possible
876   --enable-shared         create shared library code
877   --enable-optimise       create optimised code
878   --enable-debug          same as debug_flag and debug_info
879   --enable-stl            use STL for containers
880   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
881   --enable-debug_info     create code with debugging information
882   --enable-debug_gdb      create code with extra GDB debugging information
883   --enable-debug_cntxt    use wxDebugContext
884   --enable-mem_tracing    create code with memory tracing
885   --enable-profile        create code with profiling information
886   --enable-no_rtti        create code without RTTI information
887   --enable-no_exceptions  create code without C++ exceptions handling
888   --enable-permissive     compile code disregarding strict ANSI
889   --enable-no_deps        create code without dependency information
890   --enable-compat22       enable wxWindows 2.2 compatibility
891   --disable-compat24      disable wxWindows 2.4 compatibility
892   --enable-rpath=DIR      output the rpath flag from wx-config
893   --enable-intl           use internationalization system
894   --enable-config         use wxConfig (and derived) classes
895   --enable-protocols      use wxProtocol and derived classes
896   --enable-ftp            use wxFTP (requires wxProtocol
897   --enable-http           use wxHTTP (requires wxProtocol
898   --enable-fileproto      use wxFileProto class (requires wxProtocol
899   --enable-sockets        use socket/network classes
900   --enable-ole            use OLE classes (Win32 only)
901   --enable-dataobj        use data object classes
902   --enable-ipc            use interprocess communication (wxSocket etc.)
903   --enable-apple_ieee     use the Apple IEEE codec
904   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
905   --enable-cmdline        use wxCmdLineParser class
906   --enable-datetime       use wxDateTime class
907   --enable-dialupman      use dialup network classes
908   --enable-dynlib         use wxLibrary class for DLL loading
909   --enable-dynamicloader  use (new) wxDynamicLibrary class
910   --enable-exceptions     build exception-safe library
911   --enable-ffile          use wxFFile class
912   --enable-file           use wxFile class
913   --enable-filesystem     use virtual file systems classes
914   --enable-fontmap        use font encodings conversion classes
915   --enable-fs_inet        use virtual HTTP/FTP filesystems
916   --enable-fs_zip         use virtual ZIP filesystems
917   --enable-geometry       use geometry class
918   --enable-log            use logging system
919   --enable-longlong       use wxLongLong class
920   --enable-mimetype       use wxMimeTypesManager
921   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
922   --enable-snglinst       use wxSingleInstanceChecker class
923   --enable-streams        use wxStream etc classes
924   --enable-std_iostreams  use standard C++ stream classes
925   --enable-stopwatch      use wxStopWatch class
926   --enable-sysoptions     use wxSystemOptions
927   --enable-textbuf        use wxTextBuffer class
928   --enable-textfile       use wxTextFile class
929   --enable-timer          use wxTimer class
930   --enable-unicode        compile wxString with Unicode support
931   --enable-sound          use wxSound class
932   --enable-wxprintfv      use wxWindows implementation of vprintf()
933   --enable-zipstream      use wxZipInputStream
934   --enable-gzstream       use wxGzipInputStream
935   --enable-url            use wxURL class
936   --enable-protocol       use wxProtocol class
937   --enable-protocol-http  HTTP support in wxProtocol
938   --enable-protocol-ftp   FTP support in wxProtocol
939   --enable-protocol-file  FILE support in wxProtocol
940   --enable-threads        use threads
941   --enable-docview        use document view architecture
942   --enable-help           use help subsystem
943   --enable-mshtmlhelp     use MS HTML Help (win32)
944   --enable-html           use wxHTML sub-library
945   --enable-htmlhelp       use wxHTML-based help
946   --enable-constraints    use layout-constraints system
947   --enable-printarch      use printing architecture
948   --enable-mdi            use multiple document interface architecture
949   --enable-loggui         use standard GUI logger
950   --enable-logwin         use wxLogWindow
951   --enable-logdialog      use wxLogDialog
952   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
953   --enable-prologio       not available; see contrib
954   --enable-resources      not available; see contrib
955   --enable-clipboard      use wxClipboard class
956   --enable-dnd            use Drag'n'Drop classes
957   --enable-metafile       use win32 metafiles
958   --enable-controls       use all usual controls
959   --enable-accel          use accelerators
960   --enable-button         use wxButton class
961   --enable-bmpbutton      use wxBitmapButton class
962   --enable-calendar       use wxCalendarCtrl class
963   --enable-caret          use wxCaret class
964   --enable-checkbox       use wxCheckBox class
965   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
966   --enable-choice         use wxChoice class
967   --enable-combobox       use wxComboBox class
968   --enable-display        use wxDisplay class
969   --enable-gauge          use wxGauge class
970   --enable-grid           use wxGrid class
971   --enable-imaglist       use wxImageList class
972   --enable-listbook       use wxListbook class
973   --enable-listbox        use wxListBox class
974   --enable-listctrl       use wxListCtrl class
975   --enable-notebook       use wxNotebook class
976   --enable-radiobox       use wxRadioBox class
977   --enable-radiobtn       use wxRadioButton class
978   --enable-sash           use wxSashWindow class
979   --enable-scrollbar      use wxScrollBar class and scrollable windows
980   --enable-slider         use wxSlider class
981   --enable-spinbtn        use wxSpinButton class
982   --enable-spinctrl       use wxSpinCtrl class
983   --enable-splitter       use wxSplitterWindow class
984   --enable-statbmp        use wxStaticBitmap class
985   --enable-statbox        use wxStaticBox class
986   --enable-statline       use wxStaticLine class
987   --enable-stattext       use wxStaticText class
988   --enable-statusbar      use wxStatusBar class
989   --enable-tabdialog      use wxTabControl class
990   --enable-textctrl       use wxTextCtrl class
991   --enable-togglebtn      use wxToggleButton class
992   --enable-toolbar        use wxToolBar class
993   --enable-tbarnative     use native wxToolBar class
994   --enable-tbarsmpl       use wxToolBarSimple class
995   --enable-treectrl       use wxTreeCtrl class
996   --enable-tipwindow      use wxTipWindow class
997   --enable-popupwin       use wxPopUpWindow class
998   --enable-commondlg      use all common dialogs
999   --enable-choicedlg      use wxChoiceDialog
1000   --enable-coldlg         use wxColourDialog
1001   --enable-filedlg        use wxFileDialog
1002   --enable-finddlg        use wxFindReplaceDialog
1003   --enable-fontdlg        use wxFontDialog
1004   --enable-dirdlg         use wxDirDialog
1005   --enable-msgdlg         use wxMessageDialog
1006   --enable-numberdlg      use wxNumberEntryDialog
1007   --enable-splash         use wxSplashScreen
1008   --enable-textdlg        use wxTextDialog
1009   --enable-tipdlg         use startup tips
1010   --enable-progressdlg    use wxProgressDialog
1011   --enable-wizarddlg      use wxWizard
1012   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1013   --enable-miniframe      use wxMiniFrame class
1014   --enable-tooltips       use wxToolTip class
1015   --enable-splines        use spline drawing code
1016   --enable-validators     use wxValidator and derived classes
1017   --enable-busyinfo       use wxBusyInfo
1018   --enable-joystick       use wxJoystick (Linux only)
1019   --enable-metafiles      use wxMetaFile (Windows only)
1020   --enable-dragimage      use wxDragImage
1021   --enable-accessibility  enable accessibility support
1022   --enable-palette        use wxPalette class
1023   --enable-image          use wxImage class
1024   --enable-gif            use gif images (GIF file format)
1025   --enable-pcx            use pcx images (PCX file format)
1026   --enable-iff            use iff images (IFF file format)
1027   --enable-pnm            use pnm images (PNM file format)
1028   --enable-xpm            use xpm images (XPM file format)
1029   --enable-icocur         use Windows ICO and CUR formats
1030   --enable-official_build official build of wxWindows (win32 DLL only)
1031   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1032   --disable-largefile     omit support for large files
1033   --disable-gtktest       do not try to compile and run a test GTK+ program
1034   --disable-gtktest       Do not try to compile and run a test GTK program
1035   --disable-sdltest       Do not try to compile and run a test SDL program
1036   --disable-precomp-headers  don't use precompiled headers even if compiler can
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gtk              use GTK+
1042   --with-motif            use Motif/Lesstif
1043   --with-mac              use Mac OS X
1044   --with-cocoa            use Cocoa
1045   --with-wine             use Wine
1046   --with-msw              use MS-Windows
1047   --with-pm               use OS/2 Presentation Manager
1048   --with-mgl              use SciTech MGL
1049   --with-microwin         use MicroWindows
1050   --with-x11              use X11
1051   --with-libpng           use libpng (PNG image format)
1052   --with-libjpeg          use libjpeg (JPEG file format)
1053   --with-libtiff          use libtiff (TIFF file format)
1054   --with-libxpm           use libxpm (XPM file format)
1055   --with-libmspack        use libmspack (CHM help files loading)
1056   --with-sdl              use SDL for audio on Unix
1057   --with-opengl           use OpenGL (or Mesa)
1058   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1059   --with-regex            enable support for wxRegEx class
1060   --with-zlib             use zlib for LZW compression
1061   --with-odbc             use the IODBC and wxODBC classes
1062   --with-expat            enable XML support using expat parser
1063   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1064   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1065   --with-x                use the X Window System
1066   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1067   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1068   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1069
1070 Some influential environment variables:
1071   CC          C compiler command
1072   CFLAGS      C compiler flags
1073   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1074               nonstandard directory <lib dir>
1075   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1076               headers in a nonstandard directory <include dir>
1077   CPP         C preprocessor
1078   CXX         C++ compiler command
1079   CXXFLAGS    C++ compiler flags
1080   CXXCPP      C++ preprocessor
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <wx-dev@lists.wxwindows.org>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1120 # absolute.
1121 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1122 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1123 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1124 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1125
1126     cd $ac_dir
1127     # Check for guested configure; otherwise get Cygnus style configure.
1128     if test -f $ac_srcdir/configure.gnu; then
1129       echo
1130       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1131     elif test -f $ac_srcdir/configure; then
1132       echo
1133       $SHELL $ac_srcdir/configure  --help=recursive
1134     elif test -f $ac_srcdir/configure.ac ||
1135            test -f $ac_srcdir/configure.in; then
1136       echo
1137       $ac_configure --help
1138     else
1139       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140     fi
1141     cd $ac_popdir
1142   done
1143 fi
1144
1145 test -n "$ac_init_help" && exit 0
1146 if $ac_init_version; then
1147   cat <<\_ACEOF
1148 wxWindows configure 2.5.1
1149 generated by GNU Autoconf 2.57
1150
1151 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1152 Free Software Foundation, Inc.
1153 This configure script is free software; the Free Software Foundation
1154 gives unlimited permission to copy, distribute and modify it.
1155 _ACEOF
1156   exit 0
1157 fi
1158 exec 5>config.log
1159 cat >&5 <<_ACEOF
1160 This file contains any messages produced by compilers while
1161 running configure, to aid debugging if configure makes a mistake.
1162
1163 It was created by wxWindows $as_me 2.5.1, which was
1164 generated by GNU Autoconf 2.57.  Invocation command line was
1165
1166   $ $0 $@
1167
1168 _ACEOF
1169 {
1170 cat <<_ASUNAME
1171 ## --------- ##
1172 ## Platform. ##
1173 ## --------- ##
1174
1175 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1180
1181 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1183
1184 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1185 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1186 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1188 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1189 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1190 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1191
1192 _ASUNAME
1193
1194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1195 for as_dir in $PATH
1196 do
1197   IFS=$as_save_IFS
1198   test -z "$as_dir" && as_dir=.
1199   echo "PATH: $as_dir"
1200 done
1201
1202 } >&5
1203
1204 cat >&5 <<_ACEOF
1205
1206
1207 ## ----------- ##
1208 ## Core tests. ##
1209 ## ----------- ##
1210
1211 _ACEOF
1212
1213
1214 # Keep a trace of the command line.
1215 # Strip out --no-create and --no-recursion so they do not pile up.
1216 # Strip out --silent because we don't want to record it for future runs.
1217 # Also quote any args containing shell meta-characters.
1218 # Make two passes to allow for proper duplicate-argument suppression.
1219 ac_configure_args=
1220 ac_configure_args0=
1221 ac_configure_args1=
1222 ac_sep=
1223 ac_must_keep_next=false
1224 for ac_pass in 1 2
1225 do
1226   for ac_arg
1227   do
1228     case $ac_arg in
1229     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231     | -silent | --silent | --silen | --sile | --sil)
1232       continue ;;
1233     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1235     esac
1236     case $ac_pass in
1237     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1238     2)
1239       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240       if test $ac_must_keep_next = true; then
1241         ac_must_keep_next=false # Got value, back to normal.
1242       else
1243         case $ac_arg in
1244           *=* | --config-cache | -C | -disable-* | --disable-* \
1245           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247           | -with-* | --with-* | -without-* | --without-* | --x)
1248             case "$ac_configure_args0 " in
1249               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1250             esac
1251             ;;
1252           -* ) ac_must_keep_next=true ;;
1253         esac
1254       fi
1255       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256       # Get rid of the leading space.
1257       ac_sep=" "
1258       ;;
1259     esac
1260   done
1261 done
1262 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1264
1265 # When interrupted or exit'd, cleanup temporary files, and complete
1266 # config.log.  We remove comments because anyway the quotes in there
1267 # would cause problems or look ugly.
1268 # WARNING: Be sure not to use single quotes in there, as some shells,
1269 # such as our DU 5.0 friend, will then `close' the trap.
1270 trap 'exit_status=$?
1271   # Save into config.log some information that might help in debugging.
1272   {
1273     echo
1274
1275     cat <<\_ASBOX
1276 ## ---------------- ##
1277 ## Cache variables. ##
1278 ## ---------------- ##
1279 _ASBOX
1280     echo
1281     # The following way of writing the cache mishandles newlines in values,
1282 {
1283   (set) 2>&1 |
1284     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1285     *ac_space=\ *)
1286       sed -n \
1287         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1289       ;;
1290     *)
1291       sed -n \
1292         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293       ;;
1294     esac;
1295 }
1296     echo
1297
1298     cat <<\_ASBOX
1299 ## ----------------- ##
1300 ## Output variables. ##
1301 ## ----------------- ##
1302 _ASBOX
1303     echo
1304     for ac_var in $ac_subst_vars
1305     do
1306       eval ac_val=$`echo $ac_var`
1307       echo "$ac_var='"'"'$ac_val'"'"'"
1308     done | sort
1309     echo
1310
1311     if test -n "$ac_subst_files"; then
1312       cat <<\_ASBOX
1313 ## ------------- ##
1314 ## Output files. ##
1315 ## ------------- ##
1316 _ASBOX
1317       echo
1318       for ac_var in $ac_subst_files
1319       do
1320         eval ac_val=$`echo $ac_var`
1321         echo "$ac_var='"'"'$ac_val'"'"'"
1322       done | sort
1323       echo
1324     fi
1325
1326     if test -s confdefs.h; then
1327       cat <<\_ASBOX
1328 ## ----------- ##
1329 ## confdefs.h. ##
1330 ## ----------- ##
1331 _ASBOX
1332       echo
1333       sed "/^$/d" confdefs.h | sort
1334       echo
1335     fi
1336     test "$ac_signal" != 0 &&
1337       echo "$as_me: caught signal $ac_signal"
1338     echo "$as_me: exit $exit_status"
1339   } >&5
1340   rm -f core core.* *.core &&
1341   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1342     exit $exit_status
1343      ' 0
1344 for ac_signal in 1 2 13 15; do
1345   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1346 done
1347 ac_signal=0
1348
1349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1350 rm -rf conftest* confdefs.h
1351 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1352 echo >confdefs.h
1353
1354 # Predefined preprocessor variables.
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_NAME "$PACKAGE_NAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1368 _ACEOF
1369
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_STRING "$PACKAGE_STRING"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1378 _ACEOF
1379
1380
1381 # Let the site file select an alternate cache file if it wants to.
1382 # Prefer explicitly selected file to automatically selected ones.
1383 if test -z "$CONFIG_SITE"; then
1384   if test "x$prefix" != xNONE; then
1385     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1386   else
1387     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1388   fi
1389 fi
1390 for ac_site_file in $CONFIG_SITE; do
1391   if test -r "$ac_site_file"; then
1392     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393 echo "$as_me: loading site script $ac_site_file" >&6;}
1394     sed 's/^/| /' "$ac_site_file" >&5
1395     . "$ac_site_file"
1396   fi
1397 done
1398
1399 if test -r "$cache_file"; then
1400   # Some versions of bash will fail to source /dev/null (special
1401   # files actually), so we avoid doing that.
1402   if test -f "$cache_file"; then
1403     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404 echo "$as_me: loading cache $cache_file" >&6;}
1405     case $cache_file in
1406       [\\/]* | ?:[\\/]* ) . $cache_file;;
1407       *)                      . ./$cache_file;;
1408     esac
1409   fi
1410 else
1411   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412 echo "$as_me: creating cache $cache_file" >&6;}
1413   >$cache_file
1414 fi
1415
1416 # Check that the precious variables saved in the cache have kept the same
1417 # value.
1418 ac_cache_corrupted=false
1419 for ac_var in `(set) 2>&1 |
1420                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422   eval ac_new_set=\$ac_env_${ac_var}_set
1423   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424   eval ac_new_val="\$ac_env_${ac_var}_value"
1425   case $ac_old_set,$ac_new_set in
1426     set,)
1427       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429       ac_cache_corrupted=: ;;
1430     ,set)
1431       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433       ac_cache_corrupted=: ;;
1434     ,);;
1435     *)
1436       if test "x$ac_old_val" != "x$ac_new_val"; then
1437         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1440 echo "$as_me:   former value:  $ac_old_val" >&2;}
1441         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1442 echo "$as_me:   current value: $ac_new_val" >&2;}
1443         ac_cache_corrupted=:
1444       fi;;
1445   esac
1446   # Pass precious variables to config.status.
1447   if test "$ac_new_set" = set; then
1448     case $ac_new_val in
1449     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451     *) ac_arg=$ac_var=$ac_new_val ;;
1452     esac
1453     case " $ac_configure_args " in
1454       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1455       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456     esac
1457   fi
1458 done
1459 if $ac_cache_corrupted; then
1460   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464    { (exit 1); exit 1; }; }
1465 fi
1466
1467 ac_ext=c
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502 ac_aux_dir=
1503 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504   if test -f $ac_dir/install-sh; then
1505     ac_aux_dir=$ac_dir
1506     ac_install_sh="$ac_aux_dir/install-sh -c"
1507     break
1508   elif test -f $ac_dir/install.sh; then
1509     ac_aux_dir=$ac_dir
1510     ac_install_sh="$ac_aux_dir/install.sh -c"
1511     break
1512   elif test -f $ac_dir/shtool; then
1513     ac_aux_dir=$ac_dir
1514     ac_install_sh="$ac_aux_dir/shtool install -c"
1515     break
1516   fi
1517 done
1518 if test -z "$ac_aux_dir"; then
1519   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521    { (exit 1); exit 1; }; }
1522 fi
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527 # Make sure we can run config.sub.
1528 $ac_config_sub sun4 >/dev/null 2>&1 ||
1529   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531    { (exit 1); exit 1; }; }
1532
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536   echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538   ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540   ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544    { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1553 build=$ac_cv_build
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566   ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570    { (exit 1); exit 1; }; }
1571
1572 fi
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1575 host=$ac_cv_host
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588   ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592    { (exit 1); exit 1; }; }
1593
1594 fi
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603 # The aliases save the names the user supplied, while $host etc.
1604 # will get canonicalized.
1605 test -n "$target_alias" &&
1606   test "$program_prefix$program_suffix$program_transform_name" = \
1607     NONENONEs,x,x, &&
1608   program_prefix=${target_alias}-
1609
1610
1611
1612 WX_MAJOR_VERSION_NUMBER=2
1613 WX_MINOR_VERSION_NUMBER=5
1614 WX_RELEASE_NUMBER=1
1615
1616 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1617 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1618
1619 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1620
1621 WX_CURRENT=1
1622 WX_REVISION=0
1623 WX_AGE=0
1624
1625
1626
1627 USE_UNIX=1
1628 USE_OS2=0
1629 USE_WIN32=0
1630 USE_DOS=0
1631 USE_BEOS=0
1632 USE_MAC=0
1633
1634 USE_AIX=
1635 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1636 USE_GNU=                            USE_HPUX=
1637 USE_LINUX=
1638 USE_NETBSD=
1639 USE_OPENBSD=
1640 USE_OSF=                            USE_SGI=
1641 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1642 USE_ULTRIX=
1643 USE_UNIXWARE=
1644
1645 USE_ALPHA=
1646
1647 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1648
1649 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1650
1651 DEFAULT_wxUSE_COCOA=0
1652 DEFAULT_wxUSE_GTK=0
1653 DEFAULT_wxUSE_MAC=0
1654 DEFAULT_wxUSE_MGL=0
1655 DEFAULT_wxUSE_MICROWIN=0
1656 DEFAULT_wxUSE_MOTIF=0
1657 DEFAULT_wxUSE_MSW=0
1658 DEFAULT_wxUSE_PM=0
1659 DEFAULT_wxUSE_X11=0
1660
1661 DEFAULT_DEFAULT_wxUSE_COCOA=0
1662 DEFAULT_DEFAULT_wxUSE_GTK=0
1663 DEFAULT_DEFAULT_wxUSE_MAC=0
1664 DEFAULT_DEFAULT_wxUSE_MGL=0
1665 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1666 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1667 DEFAULT_DEFAULT_wxUSE_MSW=0
1668 DEFAULT_DEFAULT_wxUSE_PM=0
1669 DEFAULT_DEFAULT_wxUSE_X11=0
1670
1671 PROGRAM_EXT=
1672 SO_SUFFIX=so
1673 SAMPLES_RPATH_FLAG=
1674 SAMPLES_RPATH_POSTLINK=
1675
1676 case "${host}" in
1677   *-hp-hpux* )
1678     USE_HPUX=1
1679     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1680     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1681     SO_SUFFIX=sl
1682     cat >>confdefs.h <<\_ACEOF
1683 #define __HPUX__ 1
1684 _ACEOF
1685
1686   ;;
1687   *-*-linux* )
1688     USE_LINUX=1
1689     cat >>confdefs.h <<\_ACEOF
1690 #define __LINUX__ 1
1691 _ACEOF
1692
1693     TMP=`uname -m`
1694     if test "x$TMP" = "xalpha"; then
1695       USE_ALPHA=1
1696       cat >>confdefs.h <<\_ACEOF
1697 #define __ALPHA__ 1
1698 _ACEOF
1699
1700     fi
1701     DEFAULT_DEFAULT_wxUSE_GTK=1
1702   ;;
1703   *-*-gnu* )
1704     USE_GNU=1
1705     cat >>confdefs.h <<\_ACEOF
1706 #define __GNU__ 1
1707 _ACEOF
1708
1709     TMP=`uname -m`
1710     if test "x$TMP" = "xalpha"; then
1711       USE_ALPHA=1
1712       cat >>confdefs.h <<\_ACEOF
1713 #define __ALPHA__ 1
1714 _ACEOF
1715
1716     fi
1717     DEFAULT_DEFAULT_wxUSE_GTK=1
1718   ;;
1719   *-*-irix5* | *-*-irix6* )
1720     USE_SGI=1
1721     USE_SVR4=1
1722     cat >>confdefs.h <<\_ACEOF
1723 #define __SGI__ 1
1724 _ACEOF
1725
1726     cat >>confdefs.h <<\_ACEOF
1727 #define __SVR4__ 1
1728 _ACEOF
1729
1730     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731   ;;
1732   *-*-solaris2* )
1733     USE_SUN=1
1734     USE_SOLARIS=1
1735     USE_SVR4=1
1736     cat >>confdefs.h <<\_ACEOF
1737 #define __SUN__ 1
1738 _ACEOF
1739
1740     cat >>confdefs.h <<\_ACEOF
1741 #define __SOLARIS__ 1
1742 _ACEOF
1743
1744     cat >>confdefs.h <<\_ACEOF
1745 #define __SVR4__ 1
1746 _ACEOF
1747
1748     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1749     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1750   ;;
1751   *-*-sunos4* )
1752     USE_SUN=1
1753     USE_SUNOS=1
1754     USE_BSD=1
1755     cat >>confdefs.h <<\_ACEOF
1756 #define __SUN__ 1
1757 _ACEOF
1758
1759     cat >>confdefs.h <<\_ACEOF
1760 #define __SUNOS__ 1
1761 _ACEOF
1762
1763     cat >>confdefs.h <<\_ACEOF
1764 #define __BSD__ 1
1765 _ACEOF
1766
1767     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1768   ;;
1769   *-*-freebsd*)
1770     USE_BSD=1
1771     USE_FREEBSD=1
1772     cat >>confdefs.h <<\_ACEOF
1773 #define __FREEBSD__ 1
1774 _ACEOF
1775
1776     cat >>confdefs.h <<\_ACEOF
1777 #define __BSD__ 1
1778 _ACEOF
1779
1780     DEFAULT_DEFAULT_wxUSE_GTK=1
1781   ;;
1782   *-*-openbsd*)
1783     USE_BSD=1
1784     USE_OPENBSD=1
1785     cat >>confdefs.h <<\_ACEOF
1786 #define __OPENBSD__ 1
1787 _ACEOF
1788
1789     cat >>confdefs.h <<\_ACEOF
1790 #define __BSD__ 1
1791 _ACEOF
1792
1793     DEFAULT_DEFAULT_wxUSE_GTK=1
1794   ;;
1795   *-*-netbsd*)
1796     USE_BSD=1
1797     USE_NETBSD=1
1798     cat >>confdefs.h <<\_ACEOF
1799 #define __NETBSD__ 1
1800 _ACEOF
1801
1802     cat >>confdefs.h <<\_ACEOF
1803 #define __BSD__ 1
1804 _ACEOF
1805
1806     DEFAULT_DEFAULT_wxUSE_GTK=1
1807   ;;
1808   *-*-osf* )
1809     USE_ALPHA=1
1810     USE_OSF=1
1811     cat >>confdefs.h <<\_ACEOF
1812 #define __ALPHA__ 1
1813 _ACEOF
1814
1815     cat >>confdefs.h <<\_ACEOF
1816 #define __OSF__ 1
1817 _ACEOF
1818
1819     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821   ;;
1822   *-*-dgux5* )
1823     USE_ALPHA=1
1824     USE_SVR4=1
1825     cat >>confdefs.h <<\_ACEOF
1826 #define __ALPHA__ 1
1827 _ACEOF
1828
1829     cat >>confdefs.h <<\_ACEOF
1830 #define __SVR4__ 1
1831 _ACEOF
1832
1833     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1834   ;;
1835   *-*-sysv5* )
1836     USE_SYSV=1
1837     USE_SVR4=1
1838     cat >>confdefs.h <<\_ACEOF
1839 #define __SYSV__ 1
1840 _ACEOF
1841
1842     cat >>confdefs.h <<\_ACEOF
1843 #define __SVR4__ 1
1844 _ACEOF
1845
1846     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1847   ;;
1848   *-*-aix* )
1849     USE_AIX=1
1850     USE_SYSV=1
1851     USE_SVR4=1
1852                         SO_SUFFIX=a
1853     cat >>confdefs.h <<\_ACEOF
1854 #define __AIX__ 1
1855 _ACEOF
1856
1857     cat >>confdefs.h <<\_ACEOF
1858 #define __SYSV__ 1
1859 _ACEOF
1860
1861     cat >>confdefs.h <<\_ACEOF
1862 #define __SVR4__ 1
1863 _ACEOF
1864
1865     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866   ;;
1867
1868   *-*-*UnixWare*)
1869     USE_SYSV=1
1870     USE_SVR4=1
1871     USE_UNIXWARE=1
1872     cat >>confdefs.h <<\_ACEOF
1873 #define __UNIXWARE__ 1
1874 _ACEOF
1875
1876   ;;
1877
1878   *-*-cygwin* | *-*-mingw32* )
1879                 SO_SUFFIX=dll
1880     PROGRAM_EXT=".exe"
1881     RESCOMP=windres
1882     DEFAULT_DEFAULT_wxUSE_MSW=1
1883   ;;
1884
1885   *-pc-msdosdjgpp )
1886     USE_UNIX=0
1887     USE_DOS=1
1888     cat >>confdefs.h <<\_ACEOF
1889 #define __DOS__ 1
1890 _ACEOF
1891
1892     PROGRAM_EXT=".exe"
1893     DEFAULT_DEFAULT_wxUSE_MGL=1
1894         LIBS="$LIBS -lstdc++"
1895   ;;
1896
1897   *-pc-os2_emx | *-pc-os2-emx )
1898     cat >>confdefs.h <<\_ACEOF
1899 #define __EMX__ 1
1900 _ACEOF
1901
1902     USE_OS2=1
1903     cat >>confdefs.h <<\_ACEOF
1904 #define __OS2__ 1
1905 _ACEOF
1906
1907     PROGRAM_EXT=".exe"
1908     DEFAULT_DEFAULT_wxUSE_PM=1
1909         CXX=gcc
1910     LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
1911                         ac_executable_extensions=".exe"
1912     export ac_executable_extensions
1913             ac_save_IFS="$IFS"
1914     IFS='\\'
1915     ac_TEMP_PATH=
1916     for ac_dir in $PATH; do
1917       IFS=$ac_save_IFS
1918       if test -z "$ac_TEMP_PATH"; then
1919         ac_TEMP_PATH="$ac_dir"
1920       else
1921         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1922       fi
1923     done
1924     export PATH="$ac_TEMP_PATH"
1925     unset ac_TEMP_PATH
1926   ;;
1927
1928   powerpc-*-darwin* )
1929         USE_BSD=1
1930     USE_DARWIN=1
1931     SO_SUFFIX=dylib
1932     cat >>confdefs.h <<\_ACEOF
1933 #define __BSD__ 1
1934 _ACEOF
1935
1936     cat >>confdefs.h <<\_ACEOF
1937 #define __DARWIN__ 1
1938 _ACEOF
1939
1940     cat >>confdefs.h <<\_ACEOF
1941 #define __POWERPC__ 1
1942 _ACEOF
1943
1944     cat >>confdefs.h <<\_ACEOF
1945 #define TARGET_CARBON 1
1946 _ACEOF
1947
1948     DEFAULT_DEFAULT_wxUSE_MAC=1
1949   ;;
1950
1951   *-*-beos* )
1952         USE_BEOS=1
1953     cat >>confdefs.h <<\_ACEOF
1954 #define __BEOS__ 1
1955 _ACEOF
1956
1957   ;;
1958
1959   *)
1960     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1961 echo "$as_me: error: unknown system type ${host}." >&2;}
1962    { (exit 1); exit 1; }; }
1963 esac
1964
1965
1966
1967
1968           wx_arg_cache_file="configarg.cache"
1969           echo "loading argument cache $wx_arg_cache_file"
1970           rm -f ${wx_arg_cache_file}.tmp
1971           touch ${wx_arg_cache_file}.tmp
1972           touch ${wx_arg_cache_file}
1973
1974
1975 DEBUG_CONFIGURE=0
1976 if test $DEBUG_CONFIGURE = 1; then
1977   DEFAULT_wxUSE_UNIVERSAL=no
1978   DEFAULT_wxUSE_STL=no
1979
1980   DEFAULT_wxUSE_NANOX=no
1981
1982   DEFAULT_wxUSE_THREADS=yes
1983
1984   DEFAULT_wxUSE_SHARED=yes
1985   DEFAULT_wxUSE_OPTIMISE=no
1986   DEFAULT_wxUSE_PROFILE=no
1987   DEFAULT_wxUSE_NO_DEPS=no
1988   DEFAULT_wxUSE_NO_RTTI=no
1989   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1990   DEFAULT_wxUSE_PERMISSIVE=no
1991   DEFAULT_wxUSE_DEBUG_FLAG=yes
1992   DEFAULT_wxUSE_DEBUG_INFO=yes
1993   DEFAULT_wxUSE_DEBUG_GDB=yes
1994   DEFAULT_wxUSE_MEM_TRACING=no
1995   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1996   DEFAULT_wxUSE_DMALLOC=no
1997   DEFAULT_wxUSE_APPLE_IEEE=no
1998
1999   DEFAULT_wxUSE_EXCEPTIONS=no
2000   DEFAULT_wxUSE_LOG=yes
2001   DEFAULT_wxUSE_LOGWINDOW=no
2002   DEFAULT_wxUSE_LOGGUI=no
2003   DEFAULT_wxUSE_LOGDIALOG=no
2004
2005   DEFAULT_wxUSE_GUI=yes
2006   DEFAULT_wxUSE_CONTROLS=no
2007
2008   DEFAULT_wxUSE_REGEX=no
2009   DEFAULT_wxUSE_XML=no
2010   DEFAULT_wxUSE_EXPAT=no
2011   DEFAULT_wxUSE_ZLIB=no
2012   DEFAULT_wxUSE_LIBPNG=no
2013   DEFAULT_wxUSE_LIBJPEG=no
2014   DEFAULT_wxUSE_LIBTIFF=no
2015   DEFAULT_wxUSE_LIBXPM=no
2016   DEFAULT_wxUSE_LIBMSPACK=no
2017   DEFAULT_wxUSE_LIBSDL=no
2018   DEFAULT_wxUSE_ODBC=no
2019   DEFAULT_wxUSE_OPENGL=no
2020
2021   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2022   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2023   DEFAULT_wxUSE_STD_IOSTREAM=no
2024   DEFAULT_wxUSE_CMDLINE_PARSER=no
2025   DEFAULT_wxUSE_DATETIME=no
2026   DEFAULT_wxUSE_TIMER=no
2027   DEFAULT_wxUSE_STOPWATCH=no
2028   DEFAULT_wxUSE_FILE=no
2029   DEFAULT_wxUSE_FFILE=no
2030   DEFAULT_wxUSE_TEXTBUFFER=no
2031   DEFAULT_wxUSE_TEXTFILE=no
2032   DEFAULT_wxUSE_SOUND=no
2033   DEFAULT_wxUSE_INTL=no
2034   DEFAULT_wxUSE_CONFIG=no
2035   DEFAULT_wxUSE_FONTMAP=no
2036   DEFAULT_wxUSE_STREAMS=no
2037   DEFAULT_wxUSE_SOCKETS=no
2038   DEFAULT_wxUSE_OLE=no
2039   DEFAULT_wxUSE_DATAOBJ=no
2040   DEFAULT_wxUSE_DIALUP_MANAGER=no
2041   DEFAULT_wxUSE_JOYSTICK=no
2042   DEFAULT_wxUSE_DYNLIB_CLASS=no
2043   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2044   DEFAULT_wxUSE_LONGLONG=no
2045   DEFAULT_wxUSE_GEOMETRY=no
2046
2047   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2048   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2049   DEFAULT_wxUSE_POSTSCRIPT=no
2050
2051   DEFAULT_wxUSE_CLIPBOARD=no
2052   DEFAULT_wxUSE_TOOLTIPS=no
2053   DEFAULT_wxUSE_DRAG_AND_DROP=no
2054   DEFAULT_wxUSE_DRAGIMAGE=no
2055   DEFAULT_wxUSE_SPLINES=no
2056
2057   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2058   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2059   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2060
2061   DEFAULT_wxUSE_RESOURCES=no
2062   DEFAULT_wxUSE_CONSTRAINTS=no
2063   DEFAULT_wxUSE_IPC=no
2064   DEFAULT_wxUSE_HELP=no
2065   DEFAULT_wxUSE_MS_HTML_HELP=no
2066   DEFAULT_wxUSE_WXHTML_HELP=no
2067   DEFAULT_wxUSE_TREELAYOUT=no
2068   DEFAULT_wxUSE_METAFILE=no
2069   DEFAULT_wxUSE_MIMETYPE=no
2070   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2071   DEFAULT_wxUSE_PROTOCOL=no
2072   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2073   DEFAULT_wxUSE_PROTOCOL_FTP=no
2074   DEFAULT_wxUSE_PROTOCOL_FILE=no
2075   DEFAULT_wxUSE_URL=no
2076
2077   DEFAULT_wxUSE_COMMONDLGS=no
2078   DEFAULT_wxUSE_CHOICEDLG=no
2079   DEFAULT_wxUSE_COLOURDLG=no
2080   DEFAULT_wxUSE_DIRDLG=no
2081   DEFAULT_wxUSE_FILEDLG=no
2082   DEFAULT_wxUSE_FINDREPLDLG=no
2083   DEFAULT_wxUSE_FONTDLG=no
2084   DEFAULT_wxUSE_MSGDLG=no
2085   DEFAULT_wxUSE_NUMBERDLG=no
2086   DEFAULT_wxUSE_TEXTDLG=no
2087   DEFAULT_wxUSE_SPLASH=no
2088   DEFAULT_wxUSE_STARTUP_TIPS=no
2089   DEFAULT_wxUSE_PROGRESSDLG=no
2090   DEFAULT_wxUSE_WIZARDDLG=no
2091
2092   DEFAULT_wxUSE_MENUS=no
2093   DEFAULT_wxUSE_MINIFRAME=no
2094   DEFAULT_wxUSE_HTML=no
2095   DEFAULT_wxUSE_FILESYSTEM=no
2096   DEFAULT_wxUSE_FS_INET=no
2097   DEFAULT_wxUSE_FS_ZIP=no
2098   DEFAULT_wxUSE_BUSYINFO=no
2099   DEFAULT_wxUSE_ZIPSTREAM=no
2100   DEFAULT_wxUSE_GZSTREAM=no
2101   DEFAULT_wxUSE_VALIDATORS=no
2102
2103   DEFAULT_wxUSE_ACCEL=no
2104   DEFAULT_wxUSE_BUTTON=no
2105   DEFAULT_wxUSE_BMPBUTTON=no
2106   DEFAULT_wxUSE_CALCTRL=no
2107   DEFAULT_wxUSE_CARET=no
2108   DEFAULT_wxUSE_CHECKBOX=no
2109   DEFAULT_wxUSE_CHECKLST=no
2110   DEFAULT_wxUSE_CHOICE=no
2111   DEFAULT_wxUSE_COMBOBOX=no
2112   DEFAULT_wxUSE_DISPLAY=no
2113   DEFAULT_wxUSE_GAUGE=no
2114   DEFAULT_wxUSE_GRID=no
2115   DEFAULT_wxUSE_IMAGLIST=no
2116   DEFAULT_wxUSE_LISTBOOK=no
2117   DEFAULT_wxUSE_LISTBOX=no
2118   DEFAULT_wxUSE_LISTCTRL=no
2119   DEFAULT_wxUSE_NOTEBOOK=no
2120   DEFAULT_wxUSE_RADIOBOX=no
2121   DEFAULT_wxUSE_RADIOBTN=no
2122   DEFAULT_wxUSE_SASH=no
2123   DEFAULT_wxUSE_SCROLLBAR=no
2124   DEFAULT_wxUSE_SLIDER=no
2125   DEFAULT_wxUSE_SPINBTN=no
2126   DEFAULT_wxUSE_SPINCTRL=no
2127   DEFAULT_wxUSE_SPLITTER=no
2128   DEFAULT_wxUSE_STATBMP=no
2129   DEFAULT_wxUSE_STATBOX=no
2130   DEFAULT_wxUSE_STATLINE=no
2131   DEFAULT_wxUSE_STATTEXT=no
2132   DEFAULT_wxUSE_STATUSBAR=yes
2133   DEFAULT_wxUSE_TABDIALOG=no
2134   DEFAULT_wxUSE_TEXTCTRL=no
2135   DEFAULT_wxUSE_TOGGLEBTN=no
2136   DEFAULT_wxUSE_TOOLBAR=no
2137   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2138   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2139   DEFAULT_wxUSE_TREECTRL=no
2140   DEFAULT_wxUSE_POPUPWIN=no
2141   DEFAULT_wxUSE_TIPWINDOW=no
2142
2143   DEFAULT_wxUSE_UNICODE=no
2144   DEFAULT_wxUSE_UNICODE_MSLU=no
2145   DEFAULT_wxUSE_WCSRTOMBS=no
2146
2147   DEFAULT_wxUSE_PALETTE=no
2148   DEFAULT_wxUSE_IMAGE=no
2149   DEFAULT_wxUSE_GIF=no
2150   DEFAULT_wxUSE_PCX=no
2151   DEFAULT_wxUSE_PNM=no
2152   DEFAULT_wxUSE_IFF=no
2153   DEFAULT_wxUSE_XPM=no
2154   DEFAULT_wxUSE_ICO_CUR=no
2155   DEFAULT_wxUSE_ACCESSIBILITY=no
2156
2157   DEFAULT_wxUSE_MONOLITHIC=no
2158   DEFAULT_wxUSE_PLUGINS=no
2159   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2160 else
2161   DEFAULT_wxUSE_UNIVERSAL=no
2162   DEFAULT_wxUSE_STL=no
2163
2164   DEFAULT_wxUSE_NANOX=no
2165
2166   DEFAULT_wxUSE_THREADS=yes
2167
2168   DEFAULT_wxUSE_SHARED=yes
2169   DEFAULT_wxUSE_OPTIMISE=yes
2170   DEFAULT_wxUSE_PROFILE=no
2171   DEFAULT_wxUSE_NO_DEPS=no
2172   DEFAULT_wxUSE_NO_RTTI=no
2173   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2174   DEFAULT_wxUSE_PERMISSIVE=no
2175   DEFAULT_wxUSE_DEBUG_FLAG=no
2176   DEFAULT_wxUSE_DEBUG_INFO=no
2177   DEFAULT_wxUSE_DEBUG_GDB=no
2178   DEFAULT_wxUSE_MEM_TRACING=no
2179   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2180   DEFAULT_wxUSE_DMALLOC=no
2181   DEFAULT_wxUSE_APPLE_IEEE=yes
2182
2183   DEFAULT_wxUSE_EXCEPTIONS=yes
2184   DEFAULT_wxUSE_LOG=yes
2185   DEFAULT_wxUSE_LOGWINDOW=yes
2186   DEFAULT_wxUSE_LOGGUI=yes
2187   DEFAULT_wxUSE_LOGDIALOG=yes
2188
2189   DEFAULT_wxUSE_GUI=yes
2190
2191   DEFAULT_wxUSE_REGEX=yes
2192   DEFAULT_wxUSE_XML=yes
2193   DEFAULT_wxUSE_EXPAT=yes
2194   DEFAULT_wxUSE_ZLIB=yes
2195   DEFAULT_wxUSE_LIBPNG=yes
2196   DEFAULT_wxUSE_LIBJPEG=yes
2197   DEFAULT_wxUSE_LIBTIFF=yes
2198   DEFAULT_wxUSE_LIBXPM=yes
2199   DEFAULT_wxUSE_LIBMSPACK=yes
2200   DEFAULT_wxUSE_LIBSDL=no
2201   DEFAULT_wxUSE_ODBC=no
2202   DEFAULT_wxUSE_OPENGL=no
2203
2204   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2205   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2206   DEFAULT_wxUSE_STD_IOSTREAM=no
2207   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2208   DEFAULT_wxUSE_DATETIME=yes
2209   DEFAULT_wxUSE_TIMER=yes
2210   DEFAULT_wxUSE_STOPWATCH=yes
2211   DEFAULT_wxUSE_FILE=yes
2212   DEFAULT_wxUSE_FFILE=yes
2213   DEFAULT_wxUSE_TEXTBUFFER=yes
2214   DEFAULT_wxUSE_TEXTFILE=yes
2215   DEFAULT_wxUSE_SOUND=yes
2216   DEFAULT_wxUSE_INTL=yes
2217   DEFAULT_wxUSE_CONFIG=yes
2218   DEFAULT_wxUSE_FONTMAP=yes
2219   DEFAULT_wxUSE_STREAMS=yes
2220   DEFAULT_wxUSE_SOCKETS=yes
2221   DEFAULT_wxUSE_OLE=yes
2222   DEFAULT_wxUSE_DATAOBJ=yes
2223   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2224   DEFAULT_wxUSE_JOYSTICK=yes
2225   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2226   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2227   DEFAULT_wxUSE_LONGLONG=yes
2228   DEFAULT_wxUSE_GEOMETRY=yes
2229
2230   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2231   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2232   DEFAULT_wxUSE_POSTSCRIPT=yes
2233
2234   DEFAULT_wxUSE_CLIPBOARD=yes
2235   DEFAULT_wxUSE_TOOLTIPS=yes
2236   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2237   DEFAULT_wxUSE_DRAGIMAGE=yes
2238   DEFAULT_wxUSE_SPLINES=yes
2239
2240   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2241   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2242   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2243
2244   DEFAULT_wxUSE_RESOURCES=no
2245   DEFAULT_wxUSE_CONSTRAINTS=yes
2246   DEFAULT_wxUSE_IPC=yes
2247   DEFAULT_wxUSE_HELP=yes
2248   DEFAULT_wxUSE_MS_HTML_HELP=yes
2249   DEFAULT_wxUSE_WXHTML_HELP=yes
2250   DEFAULT_wxUSE_TREELAYOUT=yes
2251   DEFAULT_wxUSE_METAFILE=yes
2252   DEFAULT_wxUSE_MIMETYPE=yes
2253   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2254   DEFAULT_wxUSE_PROTOCOL=yes
2255   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2256   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2257   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2258   DEFAULT_wxUSE_URL=yes
2259
2260   DEFAULT_wxUSE_COMMONDLGS=yes
2261   DEFAULT_wxUSE_CHOICEDLG=yes
2262   DEFAULT_wxUSE_COLOURDLG=yes
2263   DEFAULT_wxUSE_DIRDLG=yes
2264   DEFAULT_wxUSE_FILEDLG=yes
2265   DEFAULT_wxUSE_FINDREPLDLG=yes
2266   DEFAULT_wxUSE_FONTDLG=yes
2267   DEFAULT_wxUSE_MSGDLG=yes
2268   DEFAULT_wxUSE_NUMBERDLG=yes
2269   DEFAULT_wxUSE_TEXTDLG=yes
2270   DEFAULT_wxUSE_SPLASH=yes
2271   DEFAULT_wxUSE_STARTUP_TIPS=yes
2272   DEFAULT_wxUSE_PROGRESSDLG=yes
2273   DEFAULT_wxUSE_WIZARDDLG=yes
2274
2275   DEFAULT_wxUSE_MENUS=yes
2276   DEFAULT_wxUSE_MINIFRAME=yes
2277   DEFAULT_wxUSE_HTML=yes
2278   DEFAULT_wxUSE_FILESYSTEM=yes
2279   DEFAULT_wxUSE_FS_INET=yes
2280   DEFAULT_wxUSE_FS_ZIP=yes
2281   DEFAULT_wxUSE_BUSYINFO=yes
2282   DEFAULT_wxUSE_ZIPSTREAM=yes
2283   DEFAULT_wxUSE_GZSTREAM=yes
2284   DEFAULT_wxUSE_VALIDATORS=yes
2285
2286   DEFAULT_wxUSE_ACCEL=yes
2287   DEFAULT_wxUSE_BUTTON=yes
2288   DEFAULT_wxUSE_BMPBUTTON=yes
2289   DEFAULT_wxUSE_CALCTRL=yes
2290   DEFAULT_wxUSE_CARET=yes
2291   DEFAULT_wxUSE_CHECKBOX=yes
2292   DEFAULT_wxUSE_CHECKLST=yes
2293   DEFAULT_wxUSE_CHOICE=yes
2294   DEFAULT_wxUSE_COMBOBOX=yes
2295   DEFAULT_wxUSE_DISPLAY=no
2296   DEFAULT_wxUSE_GAUGE=yes
2297   DEFAULT_wxUSE_GRID=yes
2298   DEFAULT_wxUSE_IMAGLIST=yes
2299   DEFAULT_wxUSE_LISTBOOK=yes
2300   DEFAULT_wxUSE_LISTBOX=yes
2301   DEFAULT_wxUSE_LISTCTRL=yes
2302   DEFAULT_wxUSE_NOTEBOOK=yes
2303   DEFAULT_wxUSE_RADIOBOX=yes
2304   DEFAULT_wxUSE_RADIOBTN=yes
2305   DEFAULT_wxUSE_SASH=yes
2306   DEFAULT_wxUSE_SCROLLBAR=yes
2307   DEFAULT_wxUSE_SLIDER=yes
2308   DEFAULT_wxUSE_SPINBTN=yes
2309   DEFAULT_wxUSE_SPINCTRL=yes
2310   DEFAULT_wxUSE_SPLITTER=yes
2311   DEFAULT_wxUSE_STATBMP=yes
2312   DEFAULT_wxUSE_STATBOX=yes
2313   DEFAULT_wxUSE_STATLINE=yes
2314   DEFAULT_wxUSE_STATTEXT=yes
2315   DEFAULT_wxUSE_STATUSBAR=yes
2316   DEFAULT_wxUSE_TABDIALOG=no
2317   DEFAULT_wxUSE_TEXTCTRL=yes
2318   DEFAULT_wxUSE_TOGGLEBTN=yes
2319   DEFAULT_wxUSE_TOOLBAR=yes
2320   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2321   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2322   DEFAULT_wxUSE_TREECTRL=yes
2323   DEFAULT_wxUSE_POPUPWIN=yes
2324   DEFAULT_wxUSE_TIPWINDOW=yes
2325
2326   DEFAULT_wxUSE_UNICODE=no
2327   DEFAULT_wxUSE_UNICODE_MSLU=yes
2328   DEFAULT_wxUSE_WCSRTOMBS=no
2329
2330   DEFAULT_wxUSE_PALETTE=yes
2331   DEFAULT_wxUSE_IMAGE=yes
2332   DEFAULT_wxUSE_GIF=yes
2333   DEFAULT_wxUSE_PCX=yes
2334   DEFAULT_wxUSE_IFF=no
2335   DEFAULT_wxUSE_PNM=yes
2336   DEFAULT_wxUSE_XPM=yes
2337   DEFAULT_wxUSE_ICO_CUR=yes
2338   DEFAULT_wxUSE_ACCESSIBILITY=no
2339
2340   DEFAULT_wxUSE_MONOLITHIC=no
2341   DEFAULT_wxUSE_PLUGINS=no
2342   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2343 fi
2344
2345
2346
2347 for toolkit in `echo $ALL_TOOLKITS`; do
2348   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2349   if test "x$LINE" != "x" ; then
2350     has_toolkit_in_cache=1
2351     eval "DEFAULT_$LINE"
2352     eval "CACHE_$toolkit=1"
2353   fi
2354 done
2355
2356
2357
2358           enablestring=
2359           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2360 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2361           no_cache=0
2362           # Check whether --enable-gui or --disable-gui was given.
2363 if test "${enable_gui+set}" = set; then
2364   enableval="$enable_gui"
2365
2366                           if test "$enableval" = yes; then
2367                             ac_cv_use_gui='wxUSE_GUI=yes'
2368                           else
2369                             ac_cv_use_gui='wxUSE_GUI=no'
2370                           fi
2371
2372 else
2373
2374                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2375                           if test "x$LINE" != x ; then
2376                             eval "DEFAULT_$LINE"
2377                           else
2378                             no_cache=1
2379                           fi
2380
2381                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2382
2383 fi;
2384
2385           eval "$ac_cv_use_gui"
2386           if test "$no_cache" != 1; then
2387             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2388           fi
2389
2390           if test "$wxUSE_GUI" = yes; then
2391             echo "$as_me:$LINENO: result: yes" >&5
2392 echo "${ECHO_T}yes" >&6
2393           else
2394             echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396           fi
2397
2398
2399           enablestring=
2400           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2401 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2402           no_cache=0
2403           # Check whether --enable-monolithic or --disable-monolithic was given.
2404 if test "${enable_monolithic+set}" = set; then
2405   enableval="$enable_monolithic"
2406
2407                           if test "$enableval" = yes; then
2408                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2409                           else
2410                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2411                           fi
2412
2413 else
2414
2415                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2416                           if test "x$LINE" != x ; then
2417                             eval "DEFAULT_$LINE"
2418                           else
2419                             no_cache=1
2420                           fi
2421
2422                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2423
2424 fi;
2425
2426           eval "$ac_cv_use_monolithic"
2427           if test "$no_cache" != 1; then
2428             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2429           fi
2430
2431           if test "$wxUSE_MONOLITHIC" = yes; then
2432             echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2434           else
2435             echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437           fi
2438
2439
2440           enablestring=
2441           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2442 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2443           no_cache=0
2444           # Check whether --enable-plugins or --disable-plugins was given.
2445 if test "${enable_plugins+set}" = set; then
2446   enableval="$enable_plugins"
2447
2448                           if test "$enableval" = yes; then
2449                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2450                           else
2451                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2452                           fi
2453
2454 else
2455
2456                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2457                           if test "x$LINE" != x ; then
2458                             eval "DEFAULT_$LINE"
2459                           else
2460                             no_cache=1
2461                           fi
2462
2463                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2464
2465 fi;
2466
2467           eval "$ac_cv_use_plugins"
2468           if test "$no_cache" != 1; then
2469             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2470           fi
2471
2472           if test "$wxUSE_PLUGINS" = yes; then
2473             echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2475           else
2476             echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6
2478           fi
2479
2480
2481 if test "$wxUSE_GUI" = "yes"; then
2482
2483
2484           enablestring=
2485           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2486 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2487           no_cache=0
2488           # Check whether --enable-universal or --disable-universal was given.
2489 if test "${enable_universal+set}" = set; then
2490   enableval="$enable_universal"
2491
2492                           if test "$enableval" = yes; then
2493                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2494                           else
2495                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2496                           fi
2497
2498 else
2499
2500                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2501                           if test "x$LINE" != x ; then
2502                             eval "DEFAULT_$LINE"
2503                           else
2504                             no_cache=1
2505                           fi
2506
2507                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2508
2509 fi;
2510
2511           eval "$ac_cv_use_universal"
2512           if test "$no_cache" != 1; then
2513             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2514           fi
2515
2516           if test "$wxUSE_UNIVERSAL" = yes; then
2517             echo "$as_me:$LINENO: result: yes" >&5
2518 echo "${ECHO_T}yes" >&6
2519           else
2520             echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6
2522           fi
2523
2524
2525 # Check whether --with-gtk or --without-gtk was given.
2526 if test "${with_gtk+set}" = set; then
2527   withval="$with_gtk"
2528   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2529 fi;
2530
2531 # Check whether --with-motif or --without-motif was given.
2532 if test "${with_motif+set}" = set; then
2533   withval="$with_motif"
2534   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2535 fi;
2536
2537 # Check whether --with-mac or --without-mac was given.
2538 if test "${with_mac+set}" = set; then
2539   withval="$with_mac"
2540   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2541 fi;
2542
2543 # Check whether --with-cocoa or --without-cocoa was given.
2544 if test "${with_cocoa+set}" = set; then
2545   withval="$with_cocoa"
2546   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2547 fi;
2548
2549 # Check whether --with-wine or --without-wine was given.
2550 if test "${with_wine+set}" = set; then
2551   withval="$with_wine"
2552   wxUSE_WINE="$withval" CACHE_WINE=1
2553 fi;
2554
2555 # Check whether --with-msw or --without-msw was given.
2556 if test "${with_msw+set}" = set; then
2557   withval="$with_msw"
2558   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2559 fi;
2560
2561 # Check whether --with-pm or --without-pm was given.
2562 if test "${with_pm+set}" = set; then
2563   withval="$with_pm"
2564   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2565 fi;
2566
2567 # Check whether --with-mgl or --without-mgl was given.
2568 if test "${with_mgl+set}" = set; then
2569   withval="$with_mgl"
2570   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2571 fi;
2572
2573 # Check whether --with-microwin or --without-microwin was given.
2574 if test "${with_microwin+set}" = set; then
2575   withval="$with_microwin"
2576   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2577 fi;
2578
2579 # Check whether --with-x11 or --without-x11 was given.
2580 if test "${with_x11+set}" = set; then
2581   withval="$with_x11"
2582   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2583 fi;
2584
2585           enablestring=
2586           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2587 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2588           no_cache=0
2589           # Check whether --enable-nanox or --disable-nanox was given.
2590 if test "${enable_nanox+set}" = set; then
2591   enableval="$enable_nanox"
2592
2593                           if test "$enableval" = yes; then
2594                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2595                           else
2596                             ac_cv_use_nanox='wxUSE_NANOX=no'
2597                           fi
2598
2599 else
2600
2601                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2602                           if test "x$LINE" != x ; then
2603                             eval "DEFAULT_$LINE"
2604                           else
2605                             no_cache=1
2606                           fi
2607
2608                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2609
2610 fi;
2611
2612           eval "$ac_cv_use_nanox"
2613           if test "$no_cache" != 1; then
2614             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2615           fi
2616
2617           if test "$wxUSE_NANOX" = yes; then
2618             echo "$as_me:$LINENO: result: yes" >&5
2619 echo "${ECHO_T}yes" >&6
2620           else
2621             echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6
2623           fi
2624
2625
2626
2627           enablestring=
2628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2629 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2630           no_cache=0
2631           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2632 if test "${enable_gtk2+set}" = set; then
2633   enableval="$enable_gtk2"
2634
2635                           if test "$enableval" = yes; then
2636                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2637                           else
2638                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2639                           fi
2640
2641 else
2642
2643                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2644                           if test "x$LINE" != x ; then
2645                             eval "DEFAULT_$LINE"
2646                           else
2647                             no_cache=1
2648                           fi
2649
2650                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2651
2652 fi;
2653
2654           eval "$ac_cv_use_gtk2"
2655           if test "$no_cache" != 1; then
2656             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2657           fi
2658
2659           if test "$wxUSE_GTK2" = yes; then
2660             echo "$as_me:$LINENO: result: yes" >&5
2661 echo "${ECHO_T}yes" >&6
2662           else
2663             echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6
2665           fi
2666
2667
2668           enablestring=
2669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2670 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2671           no_cache=0
2672           # Check whether --enable-gpe or --disable-gpe was given.
2673 if test "${enable_gpe+set}" = set; then
2674   enableval="$enable_gpe"
2675
2676                           if test "$enableval" = yes; then
2677                             ac_cv_use_gpe='wxUSE_GPE=yes'
2678                           else
2679                             ac_cv_use_gpe='wxUSE_GPE=no'
2680                           fi
2681
2682 else
2683
2684                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2685                           if test "x$LINE" != x ; then
2686                             eval "DEFAULT_$LINE"
2687                           else
2688                             no_cache=1
2689                           fi
2690
2691                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2692
2693 fi;
2694
2695           eval "$ac_cv_use_gpe"
2696           if test "$no_cache" != 1; then
2697             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2698           fi
2699
2700           if test "$wxUSE_GPE" = yes; then
2701             echo "$as_me:$LINENO: result: yes" >&5
2702 echo "${ECHO_T}yes" >&6
2703           else
2704             echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2706           fi
2707
2708
2709
2710           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2711 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2712           no_cache=0
2713
2714 # Check whether --with-libpng or --without-libpng was given.
2715 if test "${with_libpng+set}" = set; then
2716   withval="$with_libpng"
2717
2718                         if test "$withval" = yes; then
2719                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2720                         elif test "$withval" = no; then
2721                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2722                         elif test "$withval" = sys; then
2723                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2724                         elif test "$withval" = builtin; then
2725                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2726                         else
2727                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2728 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2729    { (exit 1); exit 1; }; }
2730                         fi
2731
2732 else
2733
2734                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2735                         if test "x$LINE" != x ; then
2736                           eval "DEFAULT_$LINE"
2737                         else
2738                           no_cache=1
2739                         fi
2740
2741                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2742
2743 fi;
2744
2745           eval "$ac_cv_use_libpng"
2746           if test "$no_cache" != 1; then
2747             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2748           fi
2749
2750           if test "$wxUSE_LIBPNG" = yes; then
2751             echo "$as_me:$LINENO: result: yes" >&5
2752 echo "${ECHO_T}yes" >&6
2753           elif test "$wxUSE_LIBPNG" = no; then
2754             echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2756           elif test "$wxUSE_LIBPNG" = sys; then
2757             echo "$as_me:$LINENO: result: system version" >&5
2758 echo "${ECHO_T}system version" >&6
2759           elif test "$wxUSE_LIBPNG" = builtin; then
2760             echo "$as_me:$LINENO: result: builtin version" >&5
2761 echo "${ECHO_T}builtin version" >&6
2762           else
2763             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2764 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2765    { (exit 1); exit 1; }; }
2766           fi
2767
2768
2769           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2770 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2771           no_cache=0
2772
2773 # Check whether --with-libjpeg or --without-libjpeg was given.
2774 if test "${with_libjpeg+set}" = set; then
2775   withval="$with_libjpeg"
2776
2777                         if test "$withval" = yes; then
2778                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2779                         elif test "$withval" = no; then
2780                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2781                         elif test "$withval" = sys; then
2782                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2783                         elif test "$withval" = builtin; then
2784                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2785                         else
2786                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2787 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2788    { (exit 1); exit 1; }; }
2789                         fi
2790
2791 else
2792
2793                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2794                         if test "x$LINE" != x ; then
2795                           eval "DEFAULT_$LINE"
2796                         else
2797                           no_cache=1
2798                         fi
2799
2800                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2801
2802 fi;
2803
2804           eval "$ac_cv_use_libjpeg"
2805           if test "$no_cache" != 1; then
2806             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2807           fi
2808
2809           if test "$wxUSE_LIBJPEG" = yes; then
2810             echo "$as_me:$LINENO: result: yes" >&5
2811 echo "${ECHO_T}yes" >&6
2812           elif test "$wxUSE_LIBJPEG" = no; then
2813             echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2815           elif test "$wxUSE_LIBJPEG" = sys; then
2816             echo "$as_me:$LINENO: result: system version" >&5
2817 echo "${ECHO_T}system version" >&6
2818           elif test "$wxUSE_LIBJPEG" = builtin; then
2819             echo "$as_me:$LINENO: result: builtin version" >&5
2820 echo "${ECHO_T}builtin version" >&6
2821           else
2822             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2823 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2824    { (exit 1); exit 1; }; }
2825           fi
2826
2827
2828           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2829 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2830           no_cache=0
2831
2832 # Check whether --with-libtiff or --without-libtiff was given.
2833 if test "${with_libtiff+set}" = set; then
2834   withval="$with_libtiff"
2835
2836                         if test "$withval" = yes; then
2837                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2838                         elif test "$withval" = no; then
2839                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2840                         elif test "$withval" = sys; then
2841                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2842                         elif test "$withval" = builtin; then
2843                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2844                         else
2845                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2846 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2847    { (exit 1); exit 1; }; }
2848                         fi
2849
2850 else
2851
2852                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2853                         if test "x$LINE" != x ; then
2854                           eval "DEFAULT_$LINE"
2855                         else
2856                           no_cache=1
2857                         fi
2858
2859                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2860
2861 fi;
2862
2863           eval "$ac_cv_use_libtiff"
2864           if test "$no_cache" != 1; then
2865             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2866           fi
2867
2868           if test "$wxUSE_LIBTIFF" = yes; then
2869             echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2871           elif test "$wxUSE_LIBTIFF" = no; then
2872             echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6
2874           elif test "$wxUSE_LIBTIFF" = sys; then
2875             echo "$as_me:$LINENO: result: system version" >&5
2876 echo "${ECHO_T}system version" >&6
2877           elif test "$wxUSE_LIBTIFF" = builtin; then
2878             echo "$as_me:$LINENO: result: builtin version" >&5
2879 echo "${ECHO_T}builtin version" >&6
2880           else
2881             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2882 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2883    { (exit 1); exit 1; }; }
2884           fi
2885
2886
2887           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2888 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2889           no_cache=0
2890
2891 # Check whether --with-libxpm or --without-libxpm was given.
2892 if test "${with_libxpm+set}" = set; then
2893   withval="$with_libxpm"
2894
2895                         if test "$withval" = yes; then
2896                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2897                         elif test "$withval" = no; then
2898                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2899                         elif test "$withval" = sys; then
2900                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2901                         elif test "$withval" = builtin; then
2902                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2903                         else
2904                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2905 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2906    { (exit 1); exit 1; }; }
2907                         fi
2908
2909 else
2910
2911                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2912                         if test "x$LINE" != x ; then
2913                           eval "DEFAULT_$LINE"
2914                         else
2915                           no_cache=1
2916                         fi
2917
2918                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2919
2920 fi;
2921
2922           eval "$ac_cv_use_libxpm"
2923           if test "$no_cache" != 1; then
2924             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2925           fi
2926
2927           if test "$wxUSE_LIBXPM" = yes; then
2928             echo "$as_me:$LINENO: result: yes" >&5
2929 echo "${ECHO_T}yes" >&6
2930           elif test "$wxUSE_LIBXPM" = no; then
2931             echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933           elif test "$wxUSE_LIBXPM" = sys; then
2934             echo "$as_me:$LINENO: result: system version" >&5
2935 echo "${ECHO_T}system version" >&6
2936           elif test "$wxUSE_LIBXPM" = builtin; then
2937             echo "$as_me:$LINENO: result: builtin version" >&5
2938 echo "${ECHO_T}builtin version" >&6
2939           else
2940             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2941 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2942    { (exit 1); exit 1; }; }
2943           fi
2944
2945
2946           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2947 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2948           no_cache=0
2949
2950 # Check whether --with-libmspack or --without-libmspack was given.
2951 if test "${with_libmspack+set}" = set; then
2952   withval="$with_libmspack"
2953
2954                         if test "$withval" = yes; then
2955                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2956                         else
2957                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2958                         fi
2959
2960 else
2961
2962                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2963                         if test "x$LINE" != x ; then
2964                           eval "DEFAULT_$LINE"
2965                         else
2966                           no_cache=1
2967                         fi
2968
2969                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2970
2971 fi;
2972
2973           eval "$ac_cv_use_libmspack"
2974           if test "$no_cache" != 1; then
2975             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2976           fi
2977
2978           if test "$wxUSE_LIBMSPACK" = yes; then
2979             echo "$as_me:$LINENO: result: yes" >&5
2980 echo "${ECHO_T}yes" >&6
2981           else
2982             echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6
2984           fi
2985
2986
2987           echo "$as_me:$LINENO: checking for --with-sdl" >&5
2988 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2989           no_cache=0
2990
2991 # Check whether --with-sdl or --without-sdl was given.
2992 if test "${with_sdl+set}" = set; then
2993   withval="$with_sdl"
2994
2995                         if test "$withval" = yes; then
2996                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2997                         else
2998                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
2999                         fi
3000
3001 else
3002
3003                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3004                         if test "x$LINE" != x ; then
3005                           eval "DEFAULT_$LINE"
3006                         else
3007                           no_cache=1
3008                         fi
3009
3010                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3011
3012 fi;
3013
3014           eval "$ac_cv_use_sdl"
3015           if test "$no_cache" != 1; then
3016             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3017           fi
3018
3019           if test "$wxUSE_LIBSDL" = yes; then
3020             echo "$as_me:$LINENO: result: yes" >&5
3021 echo "${ECHO_T}yes" >&6
3022           else
3023             echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3025           fi
3026
3027
3028           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3029 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3030           no_cache=0
3031
3032 # Check whether --with-opengl or --without-opengl was given.
3033 if test "${with_opengl+set}" = set; then
3034   withval="$with_opengl"
3035
3036                         if test "$withval" = yes; then
3037                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3038                         else
3039                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3040                         fi
3041
3042 else
3043
3044                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3045                         if test "x$LINE" != x ; then
3046                           eval "DEFAULT_$LINE"
3047                         else
3048                           no_cache=1
3049                         fi
3050
3051                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3052
3053 fi;
3054
3055           eval "$ac_cv_use_opengl"
3056           if test "$no_cache" != 1; then
3057             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3058           fi
3059
3060           if test "$wxUSE_OPENGL" = yes; then
3061             echo "$as_me:$LINENO: result: yes" >&5
3062 echo "${ECHO_T}yes" >&6
3063           else
3064             echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3066           fi
3067
3068
3069 fi
3070
3071
3072           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3073 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3074           no_cache=0
3075
3076 # Check whether --with-dmalloc or --without-dmalloc was given.
3077 if test "${with_dmalloc+set}" = set; then
3078   withval="$with_dmalloc"
3079
3080                         if test "$withval" = yes; then
3081                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3082                         else
3083                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3084                         fi
3085
3086 else
3087
3088                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3089                         if test "x$LINE" != x ; then
3090                           eval "DEFAULT_$LINE"
3091                         else
3092                           no_cache=1
3093                         fi
3094
3095                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3096
3097 fi;
3098
3099           eval "$ac_cv_use_dmalloc"
3100           if test "$no_cache" != 1; then
3101             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3102           fi
3103
3104           if test "$wxUSE_DMALLOC" = yes; then
3105             echo "$as_me:$LINENO: result: yes" >&5
3106 echo "${ECHO_T}yes" >&6
3107           else
3108             echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3110           fi
3111
3112
3113           echo "$as_me:$LINENO: checking for --with-regex" >&5
3114 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3115           no_cache=0
3116
3117 # Check whether --with-regex or --without-regex was given.
3118 if test "${with_regex+set}" = set; then
3119   withval="$with_regex"
3120
3121                         if test "$withval" = yes; then
3122                           ac_cv_use_regex='wxUSE_REGEX=yes'
3123                         elif test "$withval" = no; then
3124                           ac_cv_use_regex='wxUSE_REGEX=no'
3125                         elif test "$withval" = sys; then
3126                           ac_cv_use_regex='wxUSE_REGEX=sys'
3127                         elif test "$withval" = builtin; then
3128                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3129                         else
3130                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3131 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3132    { (exit 1); exit 1; }; }
3133                         fi
3134
3135 else
3136
3137                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3138                         if test "x$LINE" != x ; then
3139                           eval "DEFAULT_$LINE"
3140                         else
3141                           no_cache=1
3142                         fi
3143
3144                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3145
3146 fi;
3147
3148           eval "$ac_cv_use_regex"
3149           if test "$no_cache" != 1; then
3150             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3151           fi
3152
3153           if test "$wxUSE_REGEX" = yes; then
3154             echo "$as_me:$LINENO: result: yes" >&5
3155 echo "${ECHO_T}yes" >&6
3156           elif test "$wxUSE_REGEX" = no; then
3157             echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3159           elif test "$wxUSE_REGEX" = sys; then
3160             echo "$as_me:$LINENO: result: system version" >&5
3161 echo "${ECHO_T}system version" >&6
3162           elif test "$wxUSE_REGEX" = builtin; then
3163             echo "$as_me:$LINENO: result: builtin version" >&5
3164 echo "${ECHO_T}builtin version" >&6
3165           else
3166             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3167 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3168    { (exit 1); exit 1; }; }
3169           fi
3170
3171
3172           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3173 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3174           no_cache=0
3175
3176 # Check whether --with-zlib or --without-zlib was given.
3177 if test "${with_zlib+set}" = set; then
3178   withval="$with_zlib"
3179
3180                         if test "$withval" = yes; then
3181                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3182                         elif test "$withval" = no; then
3183                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3184                         elif test "$withval" = sys; then
3185                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3186                         elif test "$withval" = builtin; then
3187                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3188                         else
3189                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3190 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3191    { (exit 1); exit 1; }; }
3192                         fi
3193
3194 else
3195
3196                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3197                         if test "x$LINE" != x ; then
3198                           eval "DEFAULT_$LINE"
3199                         else
3200                           no_cache=1
3201                         fi
3202
3203                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3204
3205 fi;
3206
3207           eval "$ac_cv_use_zlib"
3208           if test "$no_cache" != 1; then
3209             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3210           fi
3211
3212           if test "$wxUSE_ZLIB" = yes; then
3213             echo "$as_me:$LINENO: result: yes" >&5
3214 echo "${ECHO_T}yes" >&6
3215           elif test "$wxUSE_ZLIB" = no; then
3216             echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218           elif test "$wxUSE_ZLIB" = sys; then
3219             echo "$as_me:$LINENO: result: system version" >&5
3220 echo "${ECHO_T}system version" >&6
3221           elif test "$wxUSE_ZLIB" = builtin; then
3222             echo "$as_me:$LINENO: result: builtin version" >&5
3223 echo "${ECHO_T}builtin version" >&6
3224           else
3225             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3226 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3227    { (exit 1); exit 1; }; }
3228           fi
3229
3230
3231           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3232 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3233           no_cache=0
3234
3235 # Check whether --with-odbc or --without-odbc was given.
3236 if test "${with_odbc+set}" = set; then
3237   withval="$with_odbc"
3238
3239                         if test "$withval" = yes; then
3240                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3241                         elif test "$withval" = no; then
3242                           ac_cv_use_odbc='wxUSE_ODBC=no'
3243                         elif test "$withval" = sys; then
3244                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3245                         elif test "$withval" = builtin; then
3246                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3247                         else
3248                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3249 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3250    { (exit 1); exit 1; }; }
3251                         fi
3252
3253 else
3254
3255                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3256                         if test "x$LINE" != x ; then
3257                           eval "DEFAULT_$LINE"
3258                         else
3259                           no_cache=1
3260                         fi
3261
3262                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3263
3264 fi;
3265
3266           eval "$ac_cv_use_odbc"
3267           if test "$no_cache" != 1; then
3268             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3269           fi
3270
3271           if test "$wxUSE_ODBC" = yes; then
3272             echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3274           elif test "$wxUSE_ODBC" = no; then
3275             echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277           elif test "$wxUSE_ODBC" = sys; then
3278             echo "$as_me:$LINENO: result: system version" >&5
3279 echo "${ECHO_T}system version" >&6
3280           elif test "$wxUSE_ODBC" = builtin; then
3281             echo "$as_me:$LINENO: result: builtin version" >&5
3282 echo "${ECHO_T}builtin version" >&6
3283           else
3284             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3285 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3286    { (exit 1); exit 1; }; }
3287           fi
3288
3289
3290           echo "$as_me:$LINENO: checking for --with-expat" >&5
3291 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3292           no_cache=0
3293
3294 # Check whether --with-expat or --without-expat was given.
3295 if test "${with_expat+set}" = set; then
3296   withval="$with_expat"
3297
3298                         if test "$withval" = yes; then
3299                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3300                         elif test "$withval" = no; then
3301                           ac_cv_use_expat='wxUSE_EXPAT=no'
3302                         elif test "$withval" = sys; then
3303                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3304                         elif test "$withval" = builtin; then
3305                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3306                         else
3307                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3308 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3309    { (exit 1); exit 1; }; }
3310                         fi
3311
3312 else
3313
3314                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3315                         if test "x$LINE" != x ; then
3316                           eval "DEFAULT_$LINE"
3317                         else
3318                           no_cache=1
3319                         fi
3320
3321                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3322
3323 fi;
3324
3325           eval "$ac_cv_use_expat"
3326           if test "$no_cache" != 1; then
3327             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3328           fi
3329
3330           if test "$wxUSE_EXPAT" = yes; then
3331             echo "$as_me:$LINENO: result: yes" >&5
3332 echo "${ECHO_T}yes" >&6
3333           elif test "$wxUSE_EXPAT" = no; then
3334             echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336           elif test "$wxUSE_EXPAT" = sys; then
3337             echo "$as_me:$LINENO: result: system version" >&5
3338 echo "${ECHO_T}system version" >&6
3339           elif test "$wxUSE_EXPAT" = builtin; then
3340             echo "$as_me:$LINENO: result: builtin version" >&5
3341 echo "${ECHO_T}builtin version" >&6
3342           else
3343             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3344 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3345    { (exit 1); exit 1; }; }
3346           fi
3347
3348
3349
3350
3351           enablestring=
3352           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3353 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3354           no_cache=0
3355           # Check whether --enable-shared or --disable-shared was given.
3356 if test "${enable_shared+set}" = set; then
3357   enableval="$enable_shared"
3358
3359                           if test "$enableval" = yes; then
3360                             ac_cv_use_shared='wxUSE_SHARED=yes'
3361                           else
3362                             ac_cv_use_shared='wxUSE_SHARED=no'
3363                           fi
3364
3365 else
3366
3367                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3368                           if test "x$LINE" != x ; then
3369                             eval "DEFAULT_$LINE"
3370                           else
3371                             no_cache=1
3372                           fi
3373
3374                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3375
3376 fi;
3377
3378           eval "$ac_cv_use_shared"
3379           if test "$no_cache" != 1; then
3380             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3381           fi
3382
3383           if test "$wxUSE_SHARED" = yes; then
3384             echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3386           else
3387             echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389           fi
3390
3391
3392           enablestring=
3393           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3394 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3395           no_cache=0
3396           # Check whether --enable-optimise or --disable-optimise was given.
3397 if test "${enable_optimise+set}" = set; then
3398   enableval="$enable_optimise"
3399
3400                           if test "$enableval" = yes; then
3401                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3402                           else
3403                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3404                           fi
3405
3406 else
3407
3408                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3409                           if test "x$LINE" != x ; then
3410                             eval "DEFAULT_$LINE"
3411                           else
3412                             no_cache=1
3413                           fi
3414
3415                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3416
3417 fi;
3418
3419           eval "$ac_cv_use_optimise"
3420           if test "$no_cache" != 1; then
3421             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3422           fi
3423
3424           if test "$wxUSE_OPTIMISE" = yes; then
3425             echo "$as_me:$LINENO: result: yes" >&5
3426 echo "${ECHO_T}yes" >&6
3427           else
3428             echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3430           fi
3431
3432
3433           enablestring=
3434           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3435 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3436           no_cache=0
3437           # Check whether --enable-debug or --disable-debug was given.
3438 if test "${enable_debug+set}" = set; then
3439   enableval="$enable_debug"
3440
3441                           if test "$enableval" = yes; then
3442                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3443                           else
3444                             ac_cv_use_debug='wxUSE_DEBUG=no'
3445                           fi
3446
3447 else
3448
3449                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3450                           if test "x$LINE" != x ; then
3451                             eval "DEFAULT_$LINE"
3452                           else
3453                             no_cache=1
3454                           fi
3455
3456                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3457
3458 fi;
3459
3460           eval "$ac_cv_use_debug"
3461           if test "$no_cache" != 1; then
3462             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3463           fi
3464
3465           if test "$wxUSE_DEBUG" = yes; then
3466             echo "$as_me:$LINENO: result: yes" >&5
3467 echo "${ECHO_T}yes" >&6
3468           else
3469             echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3471           fi
3472
3473
3474           enablestring=
3475           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3476 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3477           no_cache=0
3478           # Check whether --enable-stl or --disable-stl was given.
3479 if test "${enable_stl+set}" = set; then
3480   enableval="$enable_stl"
3481
3482                           if test "$enableval" = yes; then
3483                             ac_cv_use_stl='wxUSE_STL=yes'
3484                           else
3485                             ac_cv_use_stl='wxUSE_STL=no'
3486                           fi
3487
3488 else
3489
3490                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3491                           if test "x$LINE" != x ; then
3492                             eval "DEFAULT_$LINE"
3493                           else
3494                             no_cache=1
3495                           fi
3496
3497                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3498
3499 fi;
3500
3501           eval "$ac_cv_use_stl"
3502           if test "$no_cache" != 1; then
3503             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3504           fi
3505
3506           if test "$wxUSE_STL" = yes; then
3507             echo "$as_me:$LINENO: result: yes" >&5
3508 echo "${ECHO_T}yes" >&6
3509           else
3510             echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3512           fi
3513
3514
3515 if test "$wxUSE_DEBUG" = "yes"; then
3516   DEFAULT_wxUSE_DEBUG_FLAG=yes
3517   DEFAULT_wxUSE_DEBUG_INFO=yes
3518   BUILD=debug
3519 elif test "$wxUSE_DEBUG" = "no"; then
3520   DEFAULT_wxUSE_DEBUG_FLAG=no
3521   DEFAULT_wxUSE_DEBUG_INFO=no
3522   BUILD=release
3523 fi
3524
3525
3526           enablestring=
3527           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3528 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3529           no_cache=0
3530           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3531 if test "${enable_debug_flag+set}" = set; then
3532   enableval="$enable_debug_flag"
3533
3534                           if test "$enableval" = yes; then
3535                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3536                           else
3537                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3538                           fi
3539
3540 else
3541
3542                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3543                           if test "x$LINE" != x ; then
3544                             eval "DEFAULT_$LINE"
3545                           else
3546                             no_cache=1
3547                           fi
3548
3549                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3550
3551 fi;
3552
3553           eval "$ac_cv_use_debug_flag"
3554           if test "$no_cache" != 1; then
3555             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3556           fi
3557
3558           if test "$wxUSE_DEBUG_FLAG" = yes; then
3559             echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6
3561           else
3562             echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3564           fi
3565
3566
3567           enablestring=
3568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3569 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3570           no_cache=0
3571           # Check whether --enable-debug_info or --disable-debug_info was given.
3572 if test "${enable_debug_info+set}" = set; then
3573   enableval="$enable_debug_info"
3574
3575                           if test "$enableval" = yes; then
3576                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3577                           else
3578                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3579                           fi
3580
3581 else
3582
3583                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3584                           if test "x$LINE" != x ; then
3585                             eval "DEFAULT_$LINE"
3586                           else
3587                             no_cache=1
3588                           fi
3589
3590                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3591
3592 fi;
3593
3594           eval "$ac_cv_use_debug_info"
3595           if test "$no_cache" != 1; then
3596             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3597           fi
3598
3599           if test "$wxUSE_DEBUG_INFO" = yes; then
3600             echo "$as_me:$LINENO: result: yes" >&5
3601 echo "${ECHO_T}yes" >&6
3602           else
3603             echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605           fi
3606
3607
3608           enablestring=
3609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3610 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3611           no_cache=0
3612           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3613 if test "${enable_debug_gdb+set}" = set; then
3614   enableval="$enable_debug_gdb"
3615
3616                           if test "$enableval" = yes; then
3617                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3618                           else
3619                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3620                           fi
3621
3622 else
3623
3624                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3625                           if test "x$LINE" != x ; then
3626                             eval "DEFAULT_$LINE"
3627                           else
3628                             no_cache=1
3629                           fi
3630
3631                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3632
3633 fi;
3634
3635           eval "$ac_cv_use_debug_gdb"
3636           if test "$no_cache" != 1; then
3637             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3638           fi
3639
3640           if test "$wxUSE_DEBUG_GDB" = yes; then
3641             echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6
3643           else
3644             echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3646           fi
3647
3648
3649           enablestring=
3650           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3651 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3652           no_cache=0
3653           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3654 if test "${enable_debug_cntxt+set}" = set; then
3655   enableval="$enable_debug_cntxt"
3656
3657                           if test "$enableval" = yes; then
3658                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3659                           else
3660                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3661                           fi
3662
3663 else
3664
3665                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3666                           if test "x$LINE" != x ; then
3667                             eval "DEFAULT_$LINE"
3668                           else
3669                             no_cache=1
3670                           fi
3671
3672                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3673
3674 fi;
3675
3676           eval "$ac_cv_use_debug_cntxt"
3677           if test "$no_cache" != 1; then
3678             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3679           fi
3680
3681           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3682             echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6
3684           else
3685             echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687           fi
3688
3689
3690           enablestring=
3691           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3692 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3693           no_cache=0
3694           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3695 if test "${enable_mem_tracing+set}" = set; then
3696   enableval="$enable_mem_tracing"
3697
3698                           if test "$enableval" = yes; then
3699                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3700                           else
3701                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3702                           fi
3703
3704 else
3705
3706                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3707                           if test "x$LINE" != x ; then
3708                             eval "DEFAULT_$LINE"
3709                           else
3710                             no_cache=1
3711                           fi
3712
3713                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3714
3715 fi;
3716
3717           eval "$ac_cv_use_mem_tracing"
3718           if test "$no_cache" != 1; then
3719             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3720           fi
3721
3722           if test "$wxUSE_MEM_TRACING" = yes; then
3723             echo "$as_me:$LINENO: result: yes" >&5
3724 echo "${ECHO_T}yes" >&6
3725           else
3726             echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3728           fi
3729
3730
3731           enablestring=
3732           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3733 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3734           no_cache=0
3735           # Check whether --enable-profile or --disable-profile was given.
3736 if test "${enable_profile+set}" = set; then
3737   enableval="$enable_profile"
3738
3739                           if test "$enableval" = yes; then
3740                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3741                           else
3742                             ac_cv_use_profile='wxUSE_PROFILE=no'
3743                           fi
3744
3745 else
3746
3747                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3748                           if test "x$LINE" != x ; then
3749                             eval "DEFAULT_$LINE"
3750                           else
3751                             no_cache=1
3752                           fi
3753
3754                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3755
3756 fi;
3757
3758           eval "$ac_cv_use_profile"
3759           if test "$no_cache" != 1; then
3760             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3761           fi
3762
3763           if test "$wxUSE_PROFILE" = yes; then
3764             echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766           else
3767             echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3769           fi
3770
3771
3772           enablestring=
3773           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3774 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3775           no_cache=0
3776           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3777 if test "${enable_no_rtti+set}" = set; then
3778   enableval="$enable_no_rtti"
3779
3780                           if test "$enableval" = yes; then
3781                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3782                           else
3783                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3784                           fi
3785
3786 else
3787
3788                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3789                           if test "x$LINE" != x ; then
3790                             eval "DEFAULT_$LINE"
3791                           else
3792                             no_cache=1
3793                           fi
3794
3795                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3796
3797 fi;
3798
3799           eval "$ac_cv_use_no_rtti"
3800           if test "$no_cache" != 1; then
3801             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3802           fi
3803
3804           if test "$wxUSE_NO_RTTI" = yes; then
3805             echo "$as_me:$LINENO: result: yes" >&5
3806 echo "${ECHO_T}yes" >&6
3807           else
3808             echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3810           fi
3811
3812
3813           enablestring=
3814           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3815 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3816           no_cache=0
3817           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3818 if test "${enable_no_exceptions+set}" = set; then
3819   enableval="$enable_no_exceptions"
3820
3821                           if test "$enableval" = yes; then
3822                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3823                           else
3824                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3825                           fi
3826
3827 else
3828
3829                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3830                           if test "x$LINE" != x ; then
3831                             eval "DEFAULT_$LINE"
3832                           else
3833                             no_cache=1
3834                           fi
3835
3836                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3837
3838 fi;
3839
3840           eval "$ac_cv_use_no_exceptions"
3841           if test "$no_cache" != 1; then
3842             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3843           fi
3844
3845           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3846             echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3848           else
3849             echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3851           fi
3852
3853
3854           enablestring=
3855           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3856 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3857           no_cache=0
3858           # Check whether --enable-permissive or --disable-permissive was given.
3859 if test "${enable_permissive+set}" = set; then
3860   enableval="$enable_permissive"
3861
3862                           if test "$enableval" = yes; then
3863                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3864                           else
3865                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3866                           fi
3867
3868 else
3869
3870                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3871                           if test "x$LINE" != x ; then
3872                             eval "DEFAULT_$LINE"
3873                           else
3874                             no_cache=1
3875                           fi
3876
3877                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3878
3879 fi;
3880
3881           eval "$ac_cv_use_permissive"
3882           if test "$no_cache" != 1; then
3883             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3884           fi
3885
3886           if test "$wxUSE_PERMISSIVE" = yes; then
3887             echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6
3889           else
3890             echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3892           fi
3893
3894
3895           enablestring=
3896           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3897 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3898           no_cache=0
3899           # Check whether --enable-no_deps or --disable-no_deps was given.
3900 if test "${enable_no_deps+set}" = set; then
3901   enableval="$enable_no_deps"
3902
3903                           if test "$enableval" = yes; then
3904                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3905                           else
3906                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3907                           fi
3908
3909 else
3910
3911                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3912                           if test "x$LINE" != x ; then
3913                             eval "DEFAULT_$LINE"
3914                           else
3915                             no_cache=1
3916                           fi
3917
3918                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3919
3920 fi;
3921
3922           eval "$ac_cv_use_no_deps"
3923           if test "$no_cache" != 1; then
3924             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3925           fi
3926
3927           if test "$wxUSE_NO_DEPS" = yes; then
3928             echo "$as_me:$LINENO: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6
3930           else
3931             echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933           fi
3934
3935
3936
3937           enablestring=
3938           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3939 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3940           no_cache=0
3941           # Check whether --enable-compat22 or --disable-compat22 was given.
3942 if test "${enable_compat22+set}" = set; then
3943   enableval="$enable_compat22"
3944
3945                           if test "$enableval" = yes; then
3946                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3947                           else
3948                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3949                           fi
3950
3951 else
3952
3953                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3954                           if test "x$LINE" != x ; then
3955                             eval "DEFAULT_$LINE"
3956                           else
3957                             no_cache=1
3958                           fi
3959
3960                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3961
3962 fi;
3963
3964           eval "$ac_cv_use_compat22"
3965           if test "$no_cache" != 1; then
3966             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3967           fi
3968
3969           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3970             echo "$as_me:$LINENO: result: yes" >&5
3971 echo "${ECHO_T}yes" >&6
3972           else
3973             echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3975           fi
3976
3977
3978           enablestring=disable
3979           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3980 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3981           no_cache=0
3982           # Check whether --enable-compat24 or --disable-compat24 was given.
3983 if test "${enable_compat24+set}" = set; then
3984   enableval="$enable_compat24"
3985
3986                           if test "$enableval" = yes; then
3987                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3988                           else
3989                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3990                           fi
3991
3992 else
3993
3994                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3995                           if test "x$LINE" != x ; then
3996                             eval "DEFAULT_$LINE"
3997                           else
3998                             no_cache=1
3999                           fi
4000
4001                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4002
4003 fi;
4004
4005           eval "$ac_cv_use_compat24"
4006           if test "$no_cache" != 1; then
4007             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4008           fi
4009
4010           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4011             echo "$as_me:$LINENO: result: yes" >&5
4012 echo "${ECHO_T}yes" >&6
4013           else
4014             echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016           fi
4017
4018
4019 # Check whether --enable-rpath or --disable-rpath was given.
4020 if test "${enable_rpath+set}" = set; then
4021   enableval="$enable_rpath"
4022   wxRPATH_DIR="$enableval"
4023 fi;
4024
4025 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4026    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4027 fi
4028
4029
4030
4031
4032           enablestring=
4033           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4034 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4035           no_cache=0
4036           # Check whether --enable-intl or --disable-intl was given.
4037 if test "${enable_intl+set}" = set; then
4038   enableval="$enable_intl"
4039
4040                           if test "$enableval" = yes; then
4041                             ac_cv_use_intl='wxUSE_INTL=yes'
4042                           else
4043                             ac_cv_use_intl='wxUSE_INTL=no'
4044                           fi
4045
4046 else
4047
4048                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4049                           if test "x$LINE" != x ; then
4050                             eval "DEFAULT_$LINE"
4051                           else
4052                             no_cache=1
4053                           fi
4054
4055                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4056
4057 fi;
4058
4059           eval "$ac_cv_use_intl"
4060           if test "$no_cache" != 1; then
4061             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4062           fi
4063
4064           if test "$wxUSE_INTL" = yes; then
4065             echo "$as_me:$LINENO: result: yes" >&5
4066 echo "${ECHO_T}yes" >&6
4067           else
4068             echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070           fi
4071
4072
4073           enablestring=
4074           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4075 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4076           no_cache=0
4077           # Check whether --enable-config or --disable-config was given.
4078 if test "${enable_config+set}" = set; then
4079   enableval="$enable_config"
4080
4081                           if test "$enableval" = yes; then
4082                             ac_cv_use_config='wxUSE_CONFIG=yes'
4083                           else
4084                             ac_cv_use_config='wxUSE_CONFIG=no'
4085                           fi
4086
4087 else
4088
4089                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4090                           if test "x$LINE" != x ; then
4091                             eval "DEFAULT_$LINE"
4092                           else
4093                             no_cache=1
4094                           fi
4095
4096                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4097
4098 fi;
4099
4100           eval "$ac_cv_use_config"
4101           if test "$no_cache" != 1; then
4102             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4103           fi
4104
4105           if test "$wxUSE_CONFIG" = yes; then
4106             echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6
4108           else
4109             echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4111           fi
4112
4113
4114
4115           enablestring=
4116           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4117 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4118           no_cache=0
4119           # Check whether --enable-protocols or --disable-protocols was given.
4120 if test "${enable_protocols+set}" = set; then
4121   enableval="$enable_protocols"
4122
4123                           if test "$enableval" = yes; then
4124                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4125                           else
4126                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4127                           fi
4128
4129 else
4130
4131                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4132                           if test "x$LINE" != x ; then
4133                             eval "DEFAULT_$LINE"
4134                           else
4135                             no_cache=1
4136                           fi
4137
4138                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4139
4140 fi;
4141
4142           eval "$ac_cv_use_protocols"
4143           if test "$no_cache" != 1; then
4144             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4145           fi
4146
4147           if test "$wxUSE_PROTOCOL" = yes; then
4148             echo "$as_me:$LINENO: result: yes" >&5
4149 echo "${ECHO_T}yes" >&6
4150           else
4151             echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153           fi
4154
4155
4156           enablestring=
4157           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4158 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4159           no_cache=0
4160           # Check whether --enable-ftp or --disable-ftp was given.
4161 if test "${enable_ftp+set}" = set; then
4162   enableval="$enable_ftp"
4163
4164                           if test "$enableval" = yes; then
4165                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4166                           else
4167                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4168                           fi
4169
4170 else
4171
4172                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4173                           if test "x$LINE" != x ; then
4174                             eval "DEFAULT_$LINE"
4175                           else
4176                             no_cache=1
4177                           fi
4178
4179                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4180
4181 fi;
4182
4183           eval "$ac_cv_use_ftp"
4184           if test "$no_cache" != 1; then
4185             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4186           fi
4187
4188           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4189             echo "$as_me:$LINENO: result: yes" >&5
4190 echo "${ECHO_T}yes" >&6
4191           else
4192             echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194           fi
4195
4196
4197           enablestring=
4198           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4199 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4200           no_cache=0
4201           # Check whether --enable-http or --disable-http was given.
4202 if test "${enable_http+set}" = set; then
4203   enableval="$enable_http"
4204
4205                           if test "$enableval" = yes; then
4206                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4207                           else
4208                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4209                           fi
4210
4211 else
4212
4213                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4214                           if test "x$LINE" != x ; then
4215                             eval "DEFAULT_$LINE"
4216                           else
4217                             no_cache=1
4218                           fi
4219
4220                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4221
4222 fi;
4223
4224           eval "$ac_cv_use_http"
4225           if test "$no_cache" != 1; then
4226             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4227           fi
4228
4229           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4230             echo "$as_me:$LINENO: result: yes" >&5
4231 echo "${ECHO_T}yes" >&6
4232           else
4233             echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235           fi
4236
4237
4238           enablestring=
4239           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4240 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4241           no_cache=0
4242           # Check whether --enable-fileproto or --disable-fileproto was given.
4243 if test "${enable_fileproto+set}" = set; then
4244   enableval="$enable_fileproto"
4245
4246                           if test "$enableval" = yes; then
4247                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4248                           else
4249                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4250                           fi
4251
4252 else
4253
4254                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4255                           if test "x$LINE" != x ; then
4256                             eval "DEFAULT_$LINE"
4257                           else
4258                             no_cache=1
4259                           fi
4260
4261                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4262
4263 fi;
4264
4265           eval "$ac_cv_use_fileproto"
4266           if test "$no_cache" != 1; then
4267             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4268           fi
4269
4270           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4271             echo "$as_me:$LINENO: result: yes" >&5
4272 echo "${ECHO_T}yes" >&6
4273           else
4274             echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276           fi
4277
4278
4279           enablestring=
4280           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4281 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4282           no_cache=0
4283           # Check whether --enable-sockets or --disable-sockets was given.
4284 if test "${enable_sockets+set}" = set; then
4285   enableval="$enable_sockets"
4286
4287                           if test "$enableval" = yes; then
4288                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4289                           else
4290                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4291                           fi
4292
4293 else
4294
4295                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4296                           if test "x$LINE" != x ; then
4297                             eval "DEFAULT_$LINE"
4298                           else
4299                             no_cache=1
4300                           fi
4301
4302                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4303
4304 fi;
4305
4306           eval "$ac_cv_use_sockets"
4307           if test "$no_cache" != 1; then
4308             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4309           fi
4310
4311           if test "$wxUSE_SOCKETS" = yes; then
4312             echo "$as_me:$LINENO: result: yes" >&5
4313 echo "${ECHO_T}yes" >&6
4314           else
4315             echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4317           fi
4318
4319
4320           enablestring=
4321           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4322 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4323           no_cache=0
4324           # Check whether --enable-ole or --disable-ole was given.
4325 if test "${enable_ole+set}" = set; then
4326   enableval="$enable_ole"
4327
4328                           if test "$enableval" = yes; then
4329                             ac_cv_use_ole='wxUSE_OLE=yes'
4330                           else
4331                             ac_cv_use_ole='wxUSE_OLE=no'
4332                           fi
4333
4334 else
4335
4336                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4337                           if test "x$LINE" != x ; then
4338                             eval "DEFAULT_$LINE"
4339                           else
4340                             no_cache=1
4341                           fi
4342
4343                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4344
4345 fi;
4346
4347           eval "$ac_cv_use_ole"
4348           if test "$no_cache" != 1; then
4349             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4350           fi
4351
4352           if test "$wxUSE_OLE" = yes; then
4353             echo "$as_me:$LINENO: result: yes" >&5
4354 echo "${ECHO_T}yes" >&6
4355           else
4356             echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4358           fi
4359
4360
4361           enablestring=
4362           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4363 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4364           no_cache=0
4365           # Check whether --enable-dataobj or --disable-dataobj was given.
4366 if test "${enable_dataobj+set}" = set; then
4367   enableval="$enable_dataobj"
4368
4369                           if test "$enableval" = yes; then
4370                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4371                           else
4372                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4373                           fi
4374
4375 else
4376
4377                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4378                           if test "x$LINE" != x ; then
4379                             eval "DEFAULT_$LINE"
4380                           else
4381                             no_cache=1
4382                           fi
4383
4384                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4385
4386 fi;
4387
4388           eval "$ac_cv_use_dataobj"
4389           if test "$no_cache" != 1; then
4390             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4391           fi
4392
4393           if test "$wxUSE_DATAOBJ" = yes; then
4394             echo "$as_me:$LINENO: result: yes" >&5
4395 echo "${ECHO_T}yes" >&6
4396           else
4397             echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4399           fi
4400
4401
4402
4403           enablestring=
4404           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4405 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4406           no_cache=0
4407           # Check whether --enable-ipc or --disable-ipc was given.
4408 if test "${enable_ipc+set}" = set; then
4409   enableval="$enable_ipc"
4410
4411                           if test "$enableval" = yes; then
4412                             ac_cv_use_ipc='wxUSE_IPC=yes'
4413                           else
4414                             ac_cv_use_ipc='wxUSE_IPC=no'
4415                           fi
4416
4417 else
4418
4419                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4420                           if test "x$LINE" != x ; then
4421                             eval "DEFAULT_$LINE"
4422                           else
4423                             no_cache=1
4424                           fi
4425
4426                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4427
4428 fi;
4429
4430           eval "$ac_cv_use_ipc"
4431           if test "$no_cache" != 1; then
4432             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4433           fi
4434
4435           if test "$wxUSE_IPC" = yes; then
4436             echo "$as_me:$LINENO: result: yes" >&5
4437 echo "${ECHO_T}yes" >&6
4438           else
4439             echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441           fi
4442
4443
4444
4445           enablestring=
4446           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4447 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4448           no_cache=0
4449           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4450 if test "${enable_apple_ieee+set}" = set; then
4451   enableval="$enable_apple_ieee"
4452
4453                           if test "$enableval" = yes; then
4454                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4455                           else
4456                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4457                           fi
4458
4459 else
4460
4461                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4462                           if test "x$LINE" != x ; then
4463                             eval "DEFAULT_$LINE"
4464                           else
4465                             no_cache=1
4466                           fi
4467
4468                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4469
4470 fi;
4471
4472           eval "$ac_cv_use_apple_ieee"
4473           if test "$no_cache" != 1; then
4474             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4475           fi
4476
4477           if test "$wxUSE_APPLE_IEEE" = yes; then
4478             echo "$as_me:$LINENO: result: yes" >&5
4479 echo "${ECHO_T}yes" >&6
4480           else
4481             echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483           fi
4484
4485
4486           enablestring=
4487           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4488 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4489           no_cache=0
4490           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4491 if test "${enable_catch_segvs+set}" = set; then
4492   enableval="$enable_catch_segvs"
4493
4494                           if test "$enableval" = yes; then
4495                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4496                           else
4497                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4498                           fi
4499
4500 else
4501
4502                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4503                           if test "x$LINE" != x ; then
4504                             eval "DEFAULT_$LINE"
4505                           else
4506                             no_cache=1
4507                           fi
4508
4509                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4510
4511 fi;
4512
4513           eval "$ac_cv_use_catch_segvs"
4514           if test "$no_cache" != 1; then
4515             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4516           fi
4517
4518           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4519             echo "$as_me:$LINENO: result: yes" >&5
4520 echo "${ECHO_T}yes" >&6
4521           else
4522             echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4524           fi
4525
4526
4527           enablestring=
4528           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4529 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4530           no_cache=0
4531           # Check whether --enable-cmdline or --disable-cmdline was given.
4532 if test "${enable_cmdline+set}" = set; then
4533   enableval="$enable_cmdline"
4534
4535                           if test "$enableval" = yes; then
4536                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4537                           else
4538                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4539                           fi
4540
4541 else
4542
4543                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4544                           if test "x$LINE" != x ; then
4545                             eval "DEFAULT_$LINE"
4546                           else
4547                             no_cache=1
4548                           fi
4549
4550                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4551
4552 fi;
4553
4554           eval "$ac_cv_use_cmdline"
4555           if test "$no_cache" != 1; then
4556             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4557           fi
4558
4559           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4560             echo "$as_me:$LINENO: result: yes" >&5
4561 echo "${ECHO_T}yes" >&6
4562           else
4563             echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4565           fi
4566
4567
4568           enablestring=
4569           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4570 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4571           no_cache=0
4572           # Check whether --enable-datetime or --disable-datetime was given.
4573 if test "${enable_datetime+set}" = set; then
4574   enableval="$enable_datetime"
4575
4576                           if test "$enableval" = yes; then
4577                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4578                           else
4579                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4580                           fi
4581
4582 else
4583
4584                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4585                           if test "x$LINE" != x ; then
4586                             eval "DEFAULT_$LINE"
4587                           else
4588                             no_cache=1
4589                           fi
4590
4591                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4592
4593 fi;
4594
4595           eval "$ac_cv_use_datetime"
4596           if test "$no_cache" != 1; then
4597             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4598           fi
4599
4600           if test "$wxUSE_DATETIME" = yes; then
4601             echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6
4603           else
4604             echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4606           fi
4607
4608
4609           enablestring=
4610           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4611 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4612           no_cache=0
4613           # Check whether --enable-dialupman or --disable-dialupman was given.
4614 if test "${enable_dialupman+set}" = set; then
4615   enableval="$enable_dialupman"
4616
4617                           if test "$enableval" = yes; then
4618                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4619                           else
4620                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4621                           fi
4622
4623 else
4624
4625                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4626                           if test "x$LINE" != x ; then
4627                             eval "DEFAULT_$LINE"
4628                           else
4629                             no_cache=1
4630                           fi
4631
4632                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4633
4634 fi;
4635
4636           eval "$ac_cv_use_dialupman"
4637           if test "$no_cache" != 1; then
4638             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4639           fi
4640
4641           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4642             echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644           else
4645             echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4647           fi
4648
4649
4650           enablestring=
4651           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4652 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4653           no_cache=0
4654           # Check whether --enable-dynlib or --disable-dynlib was given.
4655 if test "${enable_dynlib+set}" = set; then
4656   enableval="$enable_dynlib"
4657
4658                           if test "$enableval" = yes; then
4659                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4660                           else
4661                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4662                           fi
4663
4664 else
4665
4666                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4667                           if test "x$LINE" != x ; then
4668                             eval "DEFAULT_$LINE"
4669                           else
4670                             no_cache=1
4671                           fi
4672
4673                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4674
4675 fi;
4676
4677           eval "$ac_cv_use_dynlib"
4678           if test "$no_cache" != 1; then
4679             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4680           fi
4681
4682           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4683             echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6
4685           else
4686             echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4688           fi
4689
4690
4691           enablestring=
4692           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4693 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4694           no_cache=0
4695           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4696 if test "${enable_dynamicloader+set}" = set; then
4697   enableval="$enable_dynamicloader"
4698
4699                           if test "$enableval" = yes; then
4700                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4701                           else
4702                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4703                           fi
4704
4705 else
4706
4707                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4708                           if test "x$LINE" != x ; then
4709                             eval "DEFAULT_$LINE"
4710                           else
4711                             no_cache=1
4712                           fi
4713
4714                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4715
4716 fi;
4717
4718           eval "$ac_cv_use_dynamicloader"
4719           if test "$no_cache" != 1; then
4720             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4721           fi
4722
4723           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4724             echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6
4726           else
4727             echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4729           fi
4730
4731
4732           enablestring=
4733           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4734 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4735           no_cache=0
4736           # Check whether --enable-exceptions or --disable-exceptions was given.
4737 if test "${enable_exceptions+set}" = set; then
4738   enableval="$enable_exceptions"
4739
4740                           if test "$enableval" = yes; then
4741                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4742                           else
4743                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4744                           fi
4745
4746 else
4747
4748                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4749                           if test "x$LINE" != x ; then
4750                             eval "DEFAULT_$LINE"
4751                           else
4752                             no_cache=1
4753                           fi
4754
4755                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4756
4757 fi;
4758
4759           eval "$ac_cv_use_exceptions"
4760           if test "$no_cache" != 1; then
4761             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4762           fi
4763
4764           if test "$wxUSE_EXCEPTIONS" = yes; then
4765             echo "$as_me:$LINENO: result: yes" >&5
4766 echo "${ECHO_T}yes" >&6
4767           else
4768             echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4770           fi
4771
4772
4773           enablestring=
4774           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4775 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4776           no_cache=0
4777           # Check whether --enable-ffile or --disable-ffile was given.
4778 if test "${enable_ffile+set}" = set; then
4779   enableval="$enable_ffile"
4780
4781                           if test "$enableval" = yes; then
4782                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4783                           else
4784                             ac_cv_use_ffile='wxUSE_FFILE=no'
4785                           fi
4786
4787 else
4788
4789                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4790                           if test "x$LINE" != x ; then
4791                             eval "DEFAULT_$LINE"
4792                           else
4793                             no_cache=1
4794                           fi
4795
4796                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4797
4798 fi;
4799
4800           eval "$ac_cv_use_ffile"
4801           if test "$no_cache" != 1; then
4802             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4803           fi
4804
4805           if test "$wxUSE_FFILE" = yes; then
4806             echo "$as_me:$LINENO: result: yes" >&5
4807 echo "${ECHO_T}yes" >&6
4808           else
4809             echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811           fi
4812
4813
4814           enablestring=
4815           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4816 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4817           no_cache=0
4818           # Check whether --enable-file or --disable-file was given.
4819 if test "${enable_file+set}" = set; then
4820   enableval="$enable_file"
4821
4822                           if test "$enableval" = yes; then
4823                             ac_cv_use_file='wxUSE_FILE=yes'
4824                           else
4825                             ac_cv_use_file='wxUSE_FILE=no'
4826                           fi
4827
4828 else
4829
4830                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4831                           if test "x$LINE" != x ; then
4832                             eval "DEFAULT_$LINE"
4833                           else
4834                             no_cache=1
4835                           fi
4836
4837                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4838
4839 fi;
4840
4841           eval "$ac_cv_use_file"
4842           if test "$no_cache" != 1; then
4843             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4844           fi
4845
4846           if test "$wxUSE_FILE" = yes; then
4847             echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6
4849           else
4850             echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4852           fi
4853
4854
4855           enablestring=
4856           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4857 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4858           no_cache=0
4859           # Check whether --enable-filesystem or --disable-filesystem was given.
4860 if test "${enable_filesystem+set}" = set; then
4861   enableval="$enable_filesystem"
4862
4863                           if test "$enableval" = yes; then
4864                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4865                           else
4866                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4867                           fi
4868
4869 else
4870
4871                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4872                           if test "x$LINE" != x ; then
4873                             eval "DEFAULT_$LINE"
4874                           else
4875                             no_cache=1
4876                           fi
4877
4878                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4879
4880 fi;
4881
4882           eval "$ac_cv_use_filesystem"
4883           if test "$no_cache" != 1; then
4884             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4885           fi
4886
4887           if test "$wxUSE_FILESYSTEM" = yes; then
4888             echo "$as_me:$LINENO: result: yes" >&5
4889 echo "${ECHO_T}yes" >&6
4890           else
4891             echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893           fi
4894
4895
4896           enablestring=
4897           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4898 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4899           no_cache=0
4900           # Check whether --enable-fontmap or --disable-fontmap was given.
4901 if test "${enable_fontmap+set}" = set; then
4902   enableval="$enable_fontmap"
4903
4904                           if test "$enableval" = yes; then
4905                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4906                           else
4907                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4908                           fi
4909
4910 else
4911
4912                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4913                           if test "x$LINE" != x ; then
4914                             eval "DEFAULT_$LINE"
4915                           else
4916                             no_cache=1
4917                           fi
4918
4919                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4920
4921 fi;
4922
4923           eval "$ac_cv_use_fontmap"
4924           if test "$no_cache" != 1; then
4925             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4926           fi
4927
4928           if test "$wxUSE_FONTMAP" = yes; then
4929             echo "$as_me:$LINENO: result: yes" >&5
4930 echo "${ECHO_T}yes" >&6
4931           else
4932             echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934           fi
4935
4936
4937           enablestring=
4938           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4939 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4940           no_cache=0
4941           # Check whether --enable-fs_inet or --disable-fs_inet was given.
4942 if test "${enable_fs_inet+set}" = set; then
4943   enableval="$enable_fs_inet"
4944
4945                           if test "$enableval" = yes; then
4946                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4947                           else
4948                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4949                           fi
4950
4951 else
4952
4953                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4954                           if test "x$LINE" != x ; then
4955                             eval "DEFAULT_$LINE"
4956                           else
4957                             no_cache=1
4958                           fi
4959
4960                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4961
4962 fi;
4963
4964           eval "$ac_cv_use_fs_inet"
4965           if test "$no_cache" != 1; then
4966             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4967           fi
4968
4969           if test "$wxUSE_FS_INET" = yes; then
4970             echo "$as_me:$LINENO: result: yes" >&5
4971 echo "${ECHO_T}yes" >&6
4972           else
4973             echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975           fi
4976
4977
4978           enablestring=
4979           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4980 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
4981           no_cache=0
4982           # Check whether --enable-fs_zip or --disable-fs_zip was given.
4983 if test "${enable_fs_zip+set}" = set; then
4984   enableval="$enable_fs_zip"
4985
4986                           if test "$enableval" = yes; then
4987                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4988                           else
4989                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4990                           fi
4991
4992 else
4993
4994                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4995                           if test "x$LINE" != x ; then
4996                             eval "DEFAULT_$LINE"
4997                           else
4998                             no_cache=1
4999                           fi
5000
5001                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5002
5003 fi;
5004
5005           eval "$ac_cv_use_fs_zip"
5006           if test "$no_cache" != 1; then
5007             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5008           fi
5009
5010           if test "$wxUSE_FS_ZIP" = yes; then
5011             echo "$as_me:$LINENO: result: yes" >&5
5012 echo "${ECHO_T}yes" >&6
5013           else
5014             echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6
5016           fi
5017
5018
5019           enablestring=
5020           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5021 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5022           no_cache=0
5023           # Check whether --enable-geometry or --disable-geometry was given.
5024 if test "${enable_geometry+set}" = set; then
5025   enableval="$enable_geometry"
5026
5027                           if test "$enableval" = yes; then
5028                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5029                           else
5030                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5031                           fi
5032
5033 else
5034
5035                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5036                           if test "x$LINE" != x ; then
5037                             eval "DEFAULT_$LINE"
5038                           else
5039                             no_cache=1
5040                           fi
5041
5042                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5043
5044 fi;
5045
5046           eval "$ac_cv_use_geometry"
5047           if test "$no_cache" != 1; then
5048             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5049           fi
5050
5051           if test "$wxUSE_GEOMETRY" = yes; then
5052             echo "$as_me:$LINENO: result: yes" >&5
5053 echo "${ECHO_T}yes" >&6
5054           else
5055             echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057           fi
5058
5059
5060           enablestring=
5061           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5062 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5063           no_cache=0
5064           # Check whether --enable-log or --disable-log was given.
5065 if test "${enable_log+set}" = set; then
5066   enableval="$enable_log"
5067
5068                           if test "$enableval" = yes; then
5069                             ac_cv_use_log='wxUSE_LOG=yes'
5070                           else
5071                             ac_cv_use_log='wxUSE_LOG=no'
5072                           fi
5073
5074 else
5075
5076                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5077                           if test "x$LINE" != x ; then
5078                             eval "DEFAULT_$LINE"
5079                           else
5080                             no_cache=1
5081                           fi
5082
5083                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5084
5085 fi;
5086
5087           eval "$ac_cv_use_log"
5088           if test "$no_cache" != 1; then
5089             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5090           fi
5091
5092           if test "$wxUSE_LOG" = yes; then
5093             echo "$as_me:$LINENO: result: yes" >&5
5094 echo "${ECHO_T}yes" >&6
5095           else
5096             echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6
5098           fi
5099
5100
5101           enablestring=
5102           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5103 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5104           no_cache=0
5105           # Check whether --enable-longlong or --disable-longlong was given.
5106 if test "${enable_longlong+set}" = set; then
5107   enableval="$enable_longlong"
5108
5109                           if test "$enableval" = yes; then
5110                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5111                           else
5112                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5113                           fi
5114
5115 else
5116
5117                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5118                           if test "x$LINE" != x ; then
5119                             eval "DEFAULT_$LINE"
5120                           else
5121                             no_cache=1
5122                           fi
5123
5124                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5125
5126 fi;
5127
5128           eval "$ac_cv_use_longlong"
5129           if test "$no_cache" != 1; then
5130             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5131           fi
5132
5133           if test "$wxUSE_LONGLONG" = yes; then
5134             echo "$as_me:$LINENO: result: yes" >&5
5135 echo "${ECHO_T}yes" >&6
5136           else
5137             echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5139           fi
5140
5141
5142           enablestring=
5143           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5144 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5145           no_cache=0
5146           # Check whether --enable-mimetype or --disable-mimetype was given.
5147 if test "${enable_mimetype+set}" = set; then
5148   enableval="$enable_mimetype"
5149
5150                           if test "$enableval" = yes; then
5151                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5152                           else
5153                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5154                           fi
5155
5156 else
5157
5158                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5159                           if test "x$LINE" != x ; then
5160                             eval "DEFAULT_$LINE"
5161                           else
5162                             no_cache=1
5163                           fi
5164
5165                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5166
5167 fi;
5168
5169           eval "$ac_cv_use_mimetype"
5170           if test "$no_cache" != 1; then
5171             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5172           fi
5173
5174           if test "$wxUSE_MIMETYPE" = yes; then
5175             echo "$as_me:$LINENO: result: yes" >&5
5176 echo "${ECHO_T}yes" >&6
5177           else
5178             echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5180           fi
5181
5182
5183           enablestring=
5184           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5185 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5186           no_cache=0
5187           # Check whether --enable-mslu or --disable-mslu was given.
5188 if test "${enable_mslu+set}" = set; then
5189   enableval="$enable_mslu"
5190
5191                           if test "$enableval" = yes; then
5192                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5193                           else
5194                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5195                           fi
5196
5197 else
5198
5199                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5200                           if test "x$LINE" != x ; then
5201                             eval "DEFAULT_$LINE"
5202                           else
5203                             no_cache=1
5204                           fi
5205
5206                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5207
5208 fi;
5209
5210           eval "$ac_cv_use_mslu"
5211           if test "$no_cache" != 1; then
5212             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5213           fi
5214
5215           if test "$wxUSE_UNICODE_MSLU" = yes; then
5216             echo "$as_me:$LINENO: result: yes" >&5
5217 echo "${ECHO_T}yes" >&6
5218           else
5219             echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221           fi
5222
5223
5224           enablestring=
5225           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5226 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5227           no_cache=0
5228           # Check whether --enable-snglinst or --disable-snglinst was given.
5229 if test "${enable_snglinst+set}" = set; then
5230   enableval="$enable_snglinst"
5231
5232                           if test "$enableval" = yes; then
5233                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5234                           else
5235                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5236                           fi
5237
5238 else
5239
5240                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5241                           if test "x$LINE" != x ; then
5242                             eval "DEFAULT_$LINE"
5243                           else
5244                             no_cache=1
5245                           fi
5246
5247                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5248
5249 fi;
5250
5251           eval "$ac_cv_use_snglinst"
5252           if test "$no_cache" != 1; then
5253             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5254           fi
5255
5256           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5257             echo "$as_me:$LINENO: result: yes" >&5
5258 echo "${ECHO_T}yes" >&6
5259           else
5260             echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5262           fi
5263
5264
5265           enablestring=
5266           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5267 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5268           no_cache=0
5269           # Check whether --enable-streams or --disable-streams was given.
5270 if test "${enable_streams+set}" = set; then
5271   enableval="$enable_streams"
5272
5273                           if test "$enableval" = yes; then
5274                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5275                           else
5276                             ac_cv_use_streams='wxUSE_STREAMS=no'
5277                           fi
5278
5279 else
5280
5281                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5282                           if test "x$LINE" != x ; then
5283                             eval "DEFAULT_$LINE"
5284                           else
5285                             no_cache=1
5286                           fi
5287
5288                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5289
5290 fi;
5291
5292           eval "$ac_cv_use_streams"
5293           if test "$no_cache" != 1; then
5294             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5295           fi
5296
5297           if test "$wxUSE_STREAMS" = yes; then
5298             echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6
5300           else
5301             echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303           fi
5304
5305
5306           enablestring=
5307           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5309           no_cache=0
5310           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5311 if test "${enable_std_iostreams+set}" = set; then
5312   enableval="$enable_std_iostreams"
5313
5314                           if test "$enableval" = yes; then
5315                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5316                           else
5317                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5318                           fi
5319
5320 else
5321
5322                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5323                           if test "x$LINE" != x ; then
5324                             eval "DEFAULT_$LINE"
5325                           else
5326                             no_cache=1
5327                           fi
5328
5329                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5330
5331 fi;
5332
5333           eval "$ac_cv_use_std_iostreams"
5334           if test "$no_cache" != 1; then
5335             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5336           fi
5337
5338           if test "$wxUSE_STD_IOSTREAM" = yes; then
5339             echo "$as_me:$LINENO: result: yes" >&5
5340 echo "${ECHO_T}yes" >&6
5341           else
5342             echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5344           fi
5345
5346
5347           enablestring=
5348           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5349 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5350           no_cache=0
5351           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5352 if test "${enable_stopwatch+set}" = set; then
5353   enableval="$enable_stopwatch"
5354
5355                           if test "$enableval" = yes; then
5356                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5357                           else
5358                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5359                           fi
5360
5361 else
5362
5363                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5364                           if test "x$LINE" != x ; then
5365                             eval "DEFAULT_$LINE"
5366                           else
5367                             no_cache=1
5368                           fi
5369
5370                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5371
5372 fi;
5373
5374           eval "$ac_cv_use_stopwatch"
5375           if test "$no_cache" != 1; then
5376             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5377           fi
5378
5379           if test "$wxUSE_STOPWATCH" = yes; then
5380             echo "$as_me:$LINENO: result: yes" >&5
5381 echo "${ECHO_T}yes" >&6
5382           else
5383             echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5385           fi
5386
5387
5388           enablestring=
5389           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5390 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5391           no_cache=0
5392           # Check whether --enable-system_options or --disable-system_options was given.
5393 if test "${enable_system_options+set}" = set; then
5394   enableval="$enable_system_options"
5395
5396                           if test "$enableval" = yes; then
5397                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5398                           else
5399                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5400                           fi
5401
5402 else
5403
5404                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5405                           if test "x$LINE" != x ; then
5406                             eval "DEFAULT_$LINE"
5407                           else
5408                             no_cache=1
5409                           fi
5410
5411                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5412
5413 fi;
5414
5415           eval "$ac_cv_use_system_options"
5416           if test "$no_cache" != 1; then
5417             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5418           fi
5419
5420           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5421             echo "$as_me:$LINENO: result: yes" >&5
5422 echo "${ECHO_T}yes" >&6
5423           else
5424             echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5426           fi
5427
5428
5429           enablestring=
5430           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5431 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5432           no_cache=0
5433           # Check whether --enable-textbuf or --disable-textbuf was given.
5434 if test "${enable_textbuf+set}" = set; then
5435   enableval="$enable_textbuf"
5436
5437                           if test "$enableval" = yes; then
5438                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5439                           else
5440                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5441                           fi
5442
5443 else
5444
5445                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5446                           if test "x$LINE" != x ; then
5447                             eval "DEFAULT_$LINE"
5448                           else
5449                             no_cache=1
5450                           fi
5451
5452                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5453
5454 fi;
5455
5456           eval "$ac_cv_use_textbuf"
5457           if test "$no_cache" != 1; then
5458             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5459           fi
5460
5461           if test "$wxUSE_TEXTBUFFER" = yes; then
5462             echo "$as_me:$LINENO: result: yes" >&5
5463 echo "${ECHO_T}yes" >&6
5464           else
5465             echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6
5467           fi
5468
5469
5470           enablestring=
5471           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5472 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5473           no_cache=0
5474           # Check whether --enable-textfile or --disable-textfile was given.
5475 if test "${enable_textfile+set}" = set; then
5476   enableval="$enable_textfile"
5477
5478                           if test "$enableval" = yes; then
5479                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5480                           else
5481                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5482                           fi
5483
5484 else
5485
5486                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5487                           if test "x$LINE" != x ; then
5488                             eval "DEFAULT_$LINE"
5489                           else
5490                             no_cache=1
5491                           fi
5492
5493                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5494
5495 fi;
5496
5497           eval "$ac_cv_use_textfile"
5498           if test "$no_cache" != 1; then
5499             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5500           fi
5501
5502           if test "$wxUSE_TEXTFILE" = yes; then
5503             echo "$as_me:$LINENO: result: yes" >&5
5504 echo "${ECHO_T}yes" >&6
5505           else
5506             echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508           fi
5509
5510
5511           enablestring=
5512           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5513 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5514           no_cache=0
5515           # Check whether --enable-timer or --disable-timer was given.
5516 if test "${enable_timer+set}" = set; then
5517   enableval="$enable_timer"
5518
5519                           if test "$enableval" = yes; then
5520                             ac_cv_use_timer='wxUSE_TIMER=yes'
5521                           else
5522                             ac_cv_use_timer='wxUSE_TIMER=no'
5523                           fi
5524
5525 else
5526
5527                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5528                           if test "x$LINE" != x ; then
5529                             eval "DEFAULT_$LINE"
5530                           else
5531                             no_cache=1
5532                           fi
5533
5534                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5535
5536 fi;
5537
5538           eval "$ac_cv_use_timer"
5539           if test "$no_cache" != 1; then
5540             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5541           fi
5542
5543           if test "$wxUSE_TIMER" = yes; then
5544             echo "$as_me:$LINENO: result: yes" >&5
5545 echo "${ECHO_T}yes" >&6
5546           else
5547             echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6
5549           fi
5550
5551
5552           enablestring=
5553           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5554 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5555           no_cache=0
5556           # Check whether --enable-unicode or --disable-unicode was given.
5557 if test "${enable_unicode+set}" = set; then
5558   enableval="$enable_unicode"
5559
5560                           if test "$enableval" = yes; then
5561                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5562                           else
5563                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5564                           fi
5565
5566 else
5567
5568                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5569                           if test "x$LINE" != x ; then
5570                             eval "DEFAULT_$LINE"
5571                           else
5572                             no_cache=1
5573                           fi
5574
5575                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5576
5577 fi;
5578
5579           eval "$ac_cv_use_unicode"
5580           if test "$no_cache" != 1; then
5581             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5582           fi
5583
5584           if test "$wxUSE_UNICODE" = yes; then
5585             echo "$as_me:$LINENO: result: yes" >&5
5586 echo "${ECHO_T}yes" >&6
5587           else
5588             echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590           fi
5591
5592
5593           enablestring=
5594           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5595 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5596           no_cache=0
5597           # Check whether --enable-sound or --disable-sound was given.
5598 if test "${enable_sound+set}" = set; then
5599   enableval="$enable_sound"
5600
5601                           if test "$enableval" = yes; then
5602                             ac_cv_use_sound='wxUSE_SOUND=yes'
5603                           else
5604                             ac_cv_use_sound='wxUSE_SOUND=no'
5605                           fi
5606
5607 else
5608
5609                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5610                           if test "x$LINE" != x ; then
5611                             eval "DEFAULT_$LINE"
5612                           else
5613                             no_cache=1
5614                           fi
5615
5616                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5617
5618 fi;
5619
5620           eval "$ac_cv_use_sound"
5621           if test "$no_cache" != 1; then
5622             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5623           fi
5624
5625           if test "$wxUSE_SOUND" = yes; then
5626             echo "$as_me:$LINENO: result: yes" >&5
5627 echo "${ECHO_T}yes" >&6
5628           else
5629             echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5631           fi
5632
5633
5634           enablestring=
5635           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5636 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5637           no_cache=0
5638           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5639 if test "${enable_wxprintfv+set}" = set; then
5640   enableval="$enable_wxprintfv"
5641
5642                           if test "$enableval" = yes; then
5643                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5644                           else
5645                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5646                           fi
5647
5648 else
5649
5650                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5651                           if test "x$LINE" != x ; then
5652                             eval "DEFAULT_$LINE"
5653                           else
5654                             no_cache=1
5655                           fi
5656
5657                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5658
5659 fi;
5660
5661           eval "$ac_cv_use_wxprintfv"
5662           if test "$no_cache" != 1; then
5663             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5664           fi
5665
5666           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5667             echo "$as_me:$LINENO: result: yes" >&5
5668 echo "${ECHO_T}yes" >&6
5669           else
5670             echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5672           fi
5673
5674
5675           enablestring=
5676           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5677 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5678           no_cache=0
5679           # Check whether --enable-zipstream or --disable-zipstream was given.
5680 if test "${enable_zipstream+set}" = set; then
5681   enableval="$enable_zipstream"
5682
5683                           if test "$enableval" = yes; then
5684                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5685                           else
5686                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5687                           fi
5688
5689 else
5690
5691                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5692                           if test "x$LINE" != x ; then
5693                             eval "DEFAULT_$LINE"
5694                           else
5695                             no_cache=1
5696                           fi
5697
5698                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5699
5700 fi;
5701
5702           eval "$ac_cv_use_zipstream"
5703           if test "$no_cache" != 1; then
5704             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5705           fi
5706
5707           if test "$wxUSE_ZIPSTREAM" = yes; then
5708             echo "$as_me:$LINENO: result: yes" >&5
5709 echo "${ECHO_T}yes" >&6
5710           else
5711             echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713           fi
5714
5715
5716           enablestring=
5717           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5718 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5719           no_cache=0
5720           # Check whether --enable-gzstream or --disable-gzstream was given.
5721 if test "${enable_gzstream+set}" = set; then
5722   enableval="$enable_gzstream"
5723
5724                           if test "$enableval" = yes; then
5725                             ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5726                           else
5727                             ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5728                           fi
5729
5730 else
5731
5732                           LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5733                           if test "x$LINE" != x ; then
5734                             eval "DEFAULT_$LINE"
5735                           else
5736                             no_cache=1
5737                           fi
5738
5739                           ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5740
5741 fi;
5742
5743           eval "$ac_cv_use_gzstream"
5744           if test "$no_cache" != 1; then
5745             echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5746           fi
5747
5748           if test "$wxUSE_GZSTREAM" = yes; then
5749             echo "$as_me:$LINENO: result: yes" >&5
5750 echo "${ECHO_T}yes" >&6
5751           else
5752             echo "$as_me:$LINENO: result: no" >&5
5753 echo "${ECHO_T}no" >&6
5754           fi
5755
5756
5757
5758           enablestring=
5759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5760 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5761           no_cache=0
5762           # Check whether --enable-url or --disable-url was given.
5763 if test "${enable_url+set}" = set; then
5764   enableval="$enable_url"
5765
5766                           if test "$enableval" = yes; then
5767                             ac_cv_use_url='wxUSE_URL=yes'
5768                           else
5769                             ac_cv_use_url='wxUSE_URL=no'
5770                           fi
5771
5772 else
5773
5774                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5775                           if test "x$LINE" != x ; then
5776                             eval "DEFAULT_$LINE"
5777                           else
5778                             no_cache=1
5779                           fi
5780
5781                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5782
5783 fi;
5784
5785           eval "$ac_cv_use_url"
5786           if test "$no_cache" != 1; then
5787             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5788           fi
5789
5790           if test "$wxUSE_URL" = yes; then
5791             echo "$as_me:$LINENO: result: yes" >&5
5792 echo "${ECHO_T}yes" >&6
5793           else
5794             echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796           fi
5797
5798
5799           enablestring=
5800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5801 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5802           no_cache=0
5803           # Check whether --enable-protocol or --disable-protocol was given.
5804 if test "${enable_protocol+set}" = set; then
5805   enableval="$enable_protocol"
5806
5807                           if test "$enableval" = yes; then
5808                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5809                           else
5810                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5811                           fi
5812
5813 else
5814
5815                           LINE=`grep "wxUSE_PROTOCOL" ${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_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5823
5824 fi;
5825
5826           eval "$ac_cv_use_protocol"
5827           if test "$no_cache" != 1; then
5828             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5829           fi
5830
5831           if test "$wxUSE_PROTOCOL" = yes; then
5832             echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6
5834           else
5835             echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837           fi
5838
5839
5840           enablestring=
5841           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5842 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5843           no_cache=0
5844           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5845 if test "${enable_protocol_http+set}" = set; then
5846   enableval="$enable_protocol_http"
5847
5848                           if test "$enableval" = yes; then
5849                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5850                           else
5851                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5852                           fi
5853
5854 else
5855
5856                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5857                           if test "x$LINE" != x ; then
5858                             eval "DEFAULT_$LINE"
5859                           else
5860                             no_cache=1
5861                           fi
5862
5863                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5864
5865 fi;
5866
5867           eval "$ac_cv_use_protocol_http"
5868           if test "$no_cache" != 1; then
5869             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5870           fi
5871
5872           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5873             echo "$as_me:$LINENO: result: yes" >&5
5874 echo "${ECHO_T}yes" >&6
5875           else
5876             echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5878           fi
5879
5880
5881           enablestring=
5882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5883 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5884           no_cache=0
5885           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5886 if test "${enable_protocol_ftp+set}" = set; then
5887   enableval="$enable_protocol_ftp"
5888
5889                           if test "$enableval" = yes; then
5890                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5891                           else
5892                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5893                           fi
5894
5895 else
5896
5897                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5898                           if test "x$LINE" != x ; then
5899                             eval "DEFAULT_$LINE"
5900                           else
5901                             no_cache=1
5902                           fi
5903
5904                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5905
5906 fi;
5907
5908           eval "$ac_cv_use_protocol_ftp"
5909           if test "$no_cache" != 1; then
5910             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5911           fi
5912
5913           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5914             echo "$as_me:$LINENO: result: yes" >&5
5915 echo "${ECHO_T}yes" >&6
5916           else
5917             echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919           fi
5920
5921
5922           enablestring=
5923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5924 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5925           no_cache=0
5926           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5927 if test "${enable_protocol_file+set}" = set; then
5928   enableval="$enable_protocol_file"
5929
5930                           if test "$enableval" = yes; then
5931                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5932                           else
5933                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5934                           fi
5935
5936 else
5937
5938                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5939                           if test "x$LINE" != x ; then
5940                             eval "DEFAULT_$LINE"
5941                           else
5942                             no_cache=1
5943                           fi
5944
5945                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5946
5947 fi;
5948
5949           eval "$ac_cv_use_protocol_file"
5950           if test "$no_cache" != 1; then
5951             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5952           fi
5953
5954           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5955             echo "$as_me:$LINENO: result: yes" >&5
5956 echo "${ECHO_T}yes" >&6
5957           else
5958             echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960           fi
5961
5962
5963
5964
5965
5966           enablestring=
5967           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5968 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5969           no_cache=0
5970           # Check whether --enable-threads or --disable-threads was given.
5971 if test "${enable_threads+set}" = set; then
5972   enableval="$enable_threads"
5973
5974                           if test "$enableval" = yes; then
5975                             ac_cv_use_threads='wxUSE_THREADS=yes'
5976                           else
5977                             ac_cv_use_threads='wxUSE_THREADS=no'
5978                           fi
5979
5980 else
5981
5982                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5983                           if test "x$LINE" != x ; then
5984                             eval "DEFAULT_$LINE"
5985                           else
5986                             no_cache=1
5987                           fi
5988
5989                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5990
5991 fi;
5992
5993           eval "$ac_cv_use_threads"
5994           if test "$no_cache" != 1; then
5995             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5996           fi
5997
5998           if test "$wxUSE_THREADS" = yes; then
5999             echo "$as_me:$LINENO: result: yes" >&5
6000 echo "${ECHO_T}yes" >&6
6001           else
6002             echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6
6004           fi
6005
6006
6007 if test "$wxUSE_GUI" = "yes"; then
6008
6009
6010
6011           enablestring=
6012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6013 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6014           no_cache=0
6015           # Check whether --enable-docview or --disable-docview was given.
6016 if test "${enable_docview+set}" = set; then
6017   enableval="$enable_docview"
6018
6019                           if test "$enableval" = yes; then
6020                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6021                           else
6022                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6023                           fi
6024
6025 else
6026
6027                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6028                           if test "x$LINE" != x ; then
6029                             eval "DEFAULT_$LINE"
6030                           else
6031                             no_cache=1
6032                           fi
6033
6034                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6035
6036 fi;
6037
6038           eval "$ac_cv_use_docview"
6039           if test "$no_cache" != 1; then
6040             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6041           fi
6042
6043           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6044             echo "$as_me:$LINENO: result: yes" >&5
6045 echo "${ECHO_T}yes" >&6
6046           else
6047             echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6049           fi
6050
6051
6052           enablestring=
6053           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6054 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6055           no_cache=0
6056           # Check whether --enable-help or --disable-help was given.
6057 if test "${enable_help+set}" = set; then
6058   enableval="$enable_help"
6059
6060                           if test "$enableval" = yes; then
6061                             ac_cv_use_help='wxUSE_HELP=yes'
6062                           else
6063                             ac_cv_use_help='wxUSE_HELP=no'
6064                           fi
6065
6066 else
6067
6068                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6069                           if test "x$LINE" != x ; then
6070                             eval "DEFAULT_$LINE"
6071                           else
6072                             no_cache=1
6073                           fi
6074
6075                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6076
6077 fi;
6078
6079           eval "$ac_cv_use_help"
6080           if test "$no_cache" != 1; then
6081             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6082           fi
6083
6084           if test "$wxUSE_HELP" = yes; then
6085             echo "$as_me:$LINENO: result: yes" >&5
6086 echo "${ECHO_T}yes" >&6
6087           else
6088             echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6
6090           fi
6091
6092
6093           enablestring=
6094           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6095 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6096           no_cache=0
6097           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6098 if test "${enable_mshtmlhelp+set}" = set; then
6099   enableval="$enable_mshtmlhelp"
6100
6101                           if test "$enableval" = yes; then
6102                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6103                           else
6104                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6105                           fi
6106
6107 else
6108
6109                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6110                           if test "x$LINE" != x ; then
6111                             eval "DEFAULT_$LINE"
6112                           else
6113                             no_cache=1
6114                           fi
6115
6116                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6117
6118 fi;
6119
6120           eval "$ac_cv_use_mshtmlhelp"
6121           if test "$no_cache" != 1; then
6122             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6123           fi
6124
6125           if test "$wxUSE_MS_HTML_HELP" = yes; then
6126             echo "$as_me:$LINENO: result: yes" >&5
6127 echo "${ECHO_T}yes" >&6
6128           else
6129             echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6
6131           fi
6132
6133
6134           enablestring=
6135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6136 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6137           no_cache=0
6138           # Check whether --enable-html or --disable-html was given.
6139 if test "${enable_html+set}" = set; then
6140   enableval="$enable_html"
6141
6142                           if test "$enableval" = yes; then
6143                             ac_cv_use_html='wxUSE_HTML=yes'
6144                           else
6145                             ac_cv_use_html='wxUSE_HTML=no'
6146                           fi
6147
6148 else
6149
6150                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6151                           if test "x$LINE" != x ; then
6152                             eval "DEFAULT_$LINE"
6153                           else
6154                             no_cache=1
6155                           fi
6156
6157                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6158
6159 fi;
6160
6161           eval "$ac_cv_use_html"
6162           if test "$no_cache" != 1; then
6163             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6164           fi
6165
6166           if test "$wxUSE_HTML" = yes; then
6167             echo "$as_me:$LINENO: result: yes" >&5
6168 echo "${ECHO_T}yes" >&6
6169           else
6170             echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6
6172           fi
6173
6174
6175           enablestring=
6176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6177 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6178           no_cache=0
6179           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6180 if test "${enable_htmlhelp+set}" = set; then
6181   enableval="$enable_htmlhelp"
6182
6183                           if test "$enableval" = yes; then
6184                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6185                           else
6186                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6187                           fi
6188
6189 else
6190
6191                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6192                           if test "x$LINE" != x ; then
6193                             eval "DEFAULT_$LINE"
6194                           else
6195                             no_cache=1
6196                           fi
6197
6198                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6199
6200 fi;
6201
6202           eval "$ac_cv_use_htmlhelp"
6203           if test "$no_cache" != 1; then
6204             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6205           fi
6206
6207           if test "$wxUSE_WXHTML_HELP" = yes; then
6208             echo "$as_me:$LINENO: result: yes" >&5
6209 echo "${ECHO_T}yes" >&6
6210           else
6211             echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6
6213           fi
6214
6215
6216           enablestring=
6217           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6218 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6219           no_cache=0
6220           # Check whether --enable-constraints or --disable-constraints was given.
6221 if test "${enable_constraints+set}" = set; then
6222   enableval="$enable_constraints"
6223
6224                           if test "$enableval" = yes; then
6225                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6226                           else
6227                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6228                           fi
6229
6230 else
6231
6232                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6233                           if test "x$LINE" != x ; then
6234                             eval "DEFAULT_$LINE"
6235                           else
6236                             no_cache=1
6237                           fi
6238
6239                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6240
6241 fi;
6242
6243           eval "$ac_cv_use_constraints"
6244           if test "$no_cache" != 1; then
6245             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6246           fi
6247
6248           if test "$wxUSE_CONSTRAINTS" = yes; then
6249             echo "$as_me:$LINENO: result: yes" >&5
6250 echo "${ECHO_T}yes" >&6
6251           else
6252             echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6254           fi
6255
6256
6257           enablestring=
6258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6259 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6260           no_cache=0
6261           # Check whether --enable-printarch or --disable-printarch was given.
6262 if test "${enable_printarch+set}" = set; then
6263   enableval="$enable_printarch"
6264
6265                           if test "$enableval" = yes; then
6266                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6267                           else
6268                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6269                           fi
6270
6271 else
6272
6273                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6274                           if test "x$LINE" != x ; then
6275                             eval "DEFAULT_$LINE"
6276                           else
6277                             no_cache=1
6278                           fi
6279
6280                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6281
6282 fi;
6283
6284           eval "$ac_cv_use_printarch"
6285           if test "$no_cache" != 1; then
6286             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6287           fi
6288
6289           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6290             echo "$as_me:$LINENO: result: yes" >&5
6291 echo "${ECHO_T}yes" >&6
6292           else
6293             echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6
6295           fi
6296
6297
6298           enablestring=
6299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6300 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6301           no_cache=0
6302           # Check whether --enable-mdi or --disable-mdi was given.
6303 if test "${enable_mdi+set}" = set; then
6304   enableval="$enable_mdi"
6305
6306                           if test "$enableval" = yes; then
6307                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6308                           else
6309                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6310                           fi
6311
6312 else
6313
6314                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6315                           if test "x$LINE" != x ; then
6316                             eval "DEFAULT_$LINE"
6317                           else
6318                             no_cache=1
6319                           fi
6320
6321                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6322
6323 fi;
6324
6325           eval "$ac_cv_use_mdi"
6326           if test "$no_cache" != 1; then
6327             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6328           fi
6329
6330           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6331             echo "$as_me:$LINENO: result: yes" >&5
6332 echo "${ECHO_T}yes" >&6
6333           else
6334             echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6
6336           fi
6337
6338
6339           enablestring=
6340           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6341 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6342           no_cache=0
6343           # Check whether --enable-loggui or --disable-loggui was given.
6344 if test "${enable_loggui+set}" = set; then
6345   enableval="$enable_loggui"
6346
6347                           if test "$enableval" = yes; then
6348                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6349                           else
6350                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6351                           fi
6352
6353 else
6354
6355                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6356                           if test "x$LINE" != x ; then
6357                             eval "DEFAULT_$LINE"
6358                           else
6359                             no_cache=1
6360                           fi
6361
6362                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6363
6364 fi;
6365
6366           eval "$ac_cv_use_loggui"
6367           if test "$no_cache" != 1; then
6368             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6369           fi
6370
6371           if test "$wxUSE_LOGGUI" = yes; then
6372             echo "$as_me:$LINENO: result: yes" >&5
6373 echo "${ECHO_T}yes" >&6
6374           else
6375             echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6377           fi
6378
6379
6380           enablestring=
6381           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6382 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6383           no_cache=0
6384           # Check whether --enable-logwin or --disable-logwin was given.
6385 if test "${enable_logwin+set}" = set; then
6386   enableval="$enable_logwin"
6387
6388                           if test "$enableval" = yes; then
6389                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6390                           else
6391                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6392                           fi
6393
6394 else
6395
6396                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6397                           if test "x$LINE" != x ; then
6398                             eval "DEFAULT_$LINE"
6399                           else
6400                             no_cache=1
6401                           fi
6402
6403                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6404
6405 fi;
6406
6407           eval "$ac_cv_use_logwin"
6408           if test "$no_cache" != 1; then
6409             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6410           fi
6411
6412           if test "$wxUSE_LOGWINDOW" = yes; then
6413             echo "$as_me:$LINENO: result: yes" >&5
6414 echo "${ECHO_T}yes" >&6
6415           else
6416             echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6
6418           fi
6419
6420
6421           enablestring=
6422           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6423 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6424           no_cache=0
6425           # Check whether --enable-logdialog or --disable-logdialog was given.
6426 if test "${enable_logdialog+set}" = set; then
6427   enableval="$enable_logdialog"
6428
6429                           if test "$enableval" = yes; then
6430                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6431                           else
6432                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6433                           fi
6434
6435 else
6436
6437                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6438                           if test "x$LINE" != x ; then
6439                             eval "DEFAULT_$LINE"
6440                           else
6441                             no_cache=1
6442                           fi
6443
6444                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6445
6446 fi;
6447
6448           eval "$ac_cv_use_logdialog"
6449           if test "$no_cache" != 1; then
6450             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6451           fi
6452
6453           if test "$wxUSE_LOGDIALOG" = yes; then
6454             echo "$as_me:$LINENO: result: yes" >&5
6455 echo "${ECHO_T}yes" >&6
6456           else
6457             echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6
6459           fi
6460
6461
6462
6463           enablestring=
6464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6465 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6466           no_cache=0
6467           # Check whether --enable-postscript or --disable-postscript was given.
6468 if test "${enable_postscript+set}" = set; then
6469   enableval="$enable_postscript"
6470
6471                           if test "$enableval" = yes; then
6472                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6473                           else
6474                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6475                           fi
6476
6477 else
6478
6479                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6480                           if test "x$LINE" != x ; then
6481                             eval "DEFAULT_$LINE"
6482                           else
6483                             no_cache=1
6484                           fi
6485
6486                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6487
6488 fi;
6489
6490           eval "$ac_cv_use_postscript"
6491           if test "$no_cache" != 1; then
6492             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6493           fi
6494
6495           if test "$wxUSE_POSTSCRIPT" = yes; then
6496             echo "$as_me:$LINENO: result: yes" >&5
6497 echo "${ECHO_T}yes" >&6
6498           else
6499             echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6
6501           fi
6502
6503
6504
6505
6506
6507           enablestring=
6508           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6509 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6510           no_cache=0
6511           # Check whether --enable-prologio or --disable-prologio was given.
6512 if test "${enable_prologio+set}" = set; then
6513   enableval="$enable_prologio"
6514
6515                           if test "$enableval" = yes; then
6516                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6517                           else
6518                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6519                           fi
6520
6521 else
6522
6523                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6524                           if test "x$LINE" != x ; then
6525                             eval "DEFAULT_$LINE"
6526                           else
6527                             no_cache=1
6528                           fi
6529
6530                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6531
6532 fi;
6533
6534           eval "$ac_cv_use_prologio"
6535           if test "$no_cache" != 1; then
6536             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6537           fi
6538
6539           if test "$wxUSE_PROLOGIO" = yes; then
6540             echo "$as_me:$LINENO: result: yes" >&5
6541 echo "${ECHO_T}yes" >&6
6542           else
6543             echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6
6545           fi
6546
6547
6548           enablestring=
6549           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6550 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6551           no_cache=0
6552           # Check whether --enable-resources or --disable-resources was given.
6553 if test "${enable_resources+set}" = set; then
6554   enableval="$enable_resources"
6555
6556                           if test "$enableval" = yes; then
6557                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6558                           else
6559                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6560                           fi
6561
6562 else
6563
6564                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6565                           if test "x$LINE" != x ; then
6566                             eval "DEFAULT_$LINE"
6567                           else
6568                             no_cache=1
6569                           fi
6570
6571                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6572
6573 fi;
6574
6575           eval "$ac_cv_use_resources"
6576           if test "$no_cache" != 1; then
6577             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6578           fi
6579
6580           if test "$wxUSE_RESOURCES" = yes; then
6581             echo "$as_me:$LINENO: result: yes" >&5
6582 echo "${ECHO_T}yes" >&6
6583           else
6584             echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6
6586           fi
6587
6588
6589
6590
6591           enablestring=
6592           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6593 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6594           no_cache=0
6595           # Check whether --enable-clipboard or --disable-clipboard was given.
6596 if test "${enable_clipboard+set}" = set; then
6597   enableval="$enable_clipboard"
6598
6599                           if test "$enableval" = yes; then
6600                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6601                           else
6602                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6603                           fi
6604
6605 else
6606
6607                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6608                           if test "x$LINE" != x ; then
6609                             eval "DEFAULT_$LINE"
6610                           else
6611                             no_cache=1
6612                           fi
6613
6614                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6615
6616 fi;
6617
6618           eval "$ac_cv_use_clipboard"
6619           if test "$no_cache" != 1; then
6620             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6621           fi
6622
6623           if test "$wxUSE_CLIPBOARD" = yes; then
6624             echo "$as_me:$LINENO: result: yes" >&5
6625 echo "${ECHO_T}yes" >&6
6626           else
6627             echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6
6629           fi
6630
6631
6632           enablestring=
6633           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6634 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6635           no_cache=0
6636           # Check whether --enable-dnd or --disable-dnd was given.
6637 if test "${enable_dnd+set}" = set; then
6638   enableval="$enable_dnd"
6639
6640                           if test "$enableval" = yes; then
6641                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6642                           else
6643                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6644                           fi
6645
6646 else
6647
6648                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6649                           if test "x$LINE" != x ; then
6650                             eval "DEFAULT_$LINE"
6651                           else
6652                             no_cache=1
6653                           fi
6654
6655                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6656
6657 fi;
6658
6659           eval "$ac_cv_use_dnd"
6660           if test "$no_cache" != 1; then
6661             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6662           fi
6663
6664           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6665             echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6
6667           else
6668             echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6
6670           fi
6671
6672
6673           enablestring=
6674           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6675 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6676           no_cache=0
6677           # Check whether --enable-metafile or --disable-metafile was given.
6678 if test "${enable_metafile+set}" = set; then
6679   enableval="$enable_metafile"
6680
6681                           if test "$enableval" = yes; then
6682                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6683                           else
6684                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6685                           fi
6686
6687 else
6688
6689                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6690                           if test "x$LINE" != x ; then
6691                             eval "DEFAULT_$LINE"
6692                           else
6693                             no_cache=1
6694                           fi
6695
6696                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6697
6698 fi;
6699
6700           eval "$ac_cv_use_metafile"
6701           if test "$no_cache" != 1; then
6702             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6703           fi
6704
6705           if test "$wxUSE_METAFILE" = yes; then
6706             echo "$as_me:$LINENO: result: yes" >&5
6707 echo "${ECHO_T}yes" >&6
6708           else
6709             echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6711           fi
6712
6713
6714
6715
6716
6717           enablestring=
6718           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6719 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6720           no_cache=0
6721           # Check whether --enable-controls or --disable-controls was given.
6722 if test "${enable_controls+set}" = set; then
6723   enableval="$enable_controls"
6724
6725                           if test "$enableval" = yes; then
6726                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6727                           else
6728                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6729                           fi
6730
6731 else
6732
6733                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6734                           if test "x$LINE" != x ; then
6735                             eval "DEFAULT_$LINE"
6736                           else
6737                             no_cache=1
6738                           fi
6739
6740                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6741
6742 fi;
6743
6744           eval "$ac_cv_use_controls"
6745           if test "$no_cache" != 1; then
6746             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6747           fi
6748
6749           if test "$wxUSE_CONTROLS" = yes; then
6750             echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6
6752           else
6753             echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6
6755           fi
6756
6757
6758 if test "$wxUSE_CONTROLS" = "yes"; then
6759   DEFAULT_wxUSE_ACCEL=yes
6760   DEFAULT_wxUSE_BMPBUTTON=yes
6761   DEFAULT_wxUSE_BUTTON=yes
6762   DEFAULT_wxUSE_CALCTRL=no
6763   DEFAULT_wxUSE_CARET=yes
6764   DEFAULT_wxUSE_COMBOBOX=yes
6765   DEFAULT_wxUSE_CHECKBOX=yes
6766   DEFAULT_wxUSE_CHECKLISTBOX=yes
6767   DEFAULT_wxUSE_CHOICE=yes
6768   DEFAULT_wxUSE_GAUGE=yes
6769   DEFAULT_wxUSE_GRID=yes
6770   DEFAULT_wxUSE_IMAGLIST=yes
6771   DEFAULT_wxUSE_LISTBOOK=yes
6772   DEFAULT_wxUSE_LISTBOX=yes
6773   DEFAULT_wxUSE_LISTCTRL=yes
6774   DEFAULT_wxUSE_NOTEBOOK=yes
6775   DEFAULT_wxUSE_RADIOBOX=yes
6776   DEFAULT_wxUSE_RADIOBTN=yes
6777   DEFAULT_wxUSE_SASH=yes
6778   DEFAULT_wxUSE_SCROLLBAR=yes
6779   DEFAULT_wxUSE_SLIDER=yes
6780   DEFAULT_wxUSE_SPINBTN=yes
6781   DEFAULT_wxUSE_SPINCTRL=yes
6782   DEFAULT_wxUSE_SPLITTER=yes
6783   DEFAULT_wxUSE_STATBMP=yes
6784   DEFAULT_wxUSE_STATBOX=yes
6785   DEFAULT_wxUSE_STATLINE=yes
6786   DEFAULT_wxUSE_STATUSBAR=yes
6787   DEFAULT_wxUSE_TAB_DIALOG=yes
6788   DEFAULT_wxUSE_TOGGLEBTN=yes
6789   DEFAULT_wxUSE_TOOLBAR=yes
6790   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6791   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6792   DEFAULT_wxUSE_TOOLTIPS=yes
6793   DEFAULT_wxUSE_TREECTRL=yes
6794   DEFAULT_wxUSE_POPUPWIN=yes
6795   DEFAULT_wxUSE_TIPWINDOW=yes
6796 elif test "$wxUSE_CONTROLS" = "no"; then
6797   DEFAULT_wxUSE_ACCEL=no
6798   DEFAULT_wxUSE_BMPBUTTON=no
6799   DEFAULT_wxUSE_BUTTON=no
6800   DEFAULT_wxUSE_CALCTRL=no
6801   DEFAULT_wxUSE_CARET=no
6802   DEFAULT_wxUSE_COMBOBOX=no
6803   DEFAULT_wxUSE_CHECKBOX=no
6804   DEFAULT_wxUSE_CHECKLISTBOX=no
6805   DEFAULT_wxUSE_CHOICE=no
6806   DEFAULT_wxUSE_GAUGE=no
6807   DEFAULT_wxUSE_GRID=no
6808   DEFAULT_wxUSE_IMAGLIST=no
6809   DEFAULT_wxUSE_LISTBOOK=no
6810   DEFAULT_wxUSE_LISTBOX=no
6811   DEFAULT_wxUSE_LISTCTRL=no
6812   DEFAULT_wxUSE_NOTEBOOK=no
6813   DEFAULT_wxUSE_RADIOBOX=no
6814   DEFAULT_wxUSE_RADIOBTN=no
6815   DEFAULT_wxUSE_SASH=no
6816   DEFAULT_wxUSE_SCROLLBAR=no
6817   DEFAULT_wxUSE_SLIDER=no
6818   DEFAULT_wxUSE_SPINBTN=no
6819   DEFAULT_wxUSE_SPINCTRL=no
6820   DEFAULT_wxUSE_SPLITTER=no
6821   DEFAULT_wxUSE_STATBMP=no
6822   DEFAULT_wxUSE_STATBOX=no
6823   DEFAULT_wxUSE_STATLINE=no
6824   DEFAULT_wxUSE_STATUSBAR=no
6825   DEFAULT_wxUSE_TAB_DIALOG=no
6826   DEFAULT_wxUSE_TOGGLEBTN=no
6827   DEFAULT_wxUSE_TOOLBAR=no
6828   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6829   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6830   DEFAULT_wxUSE_TOOLTIPS=no
6831   DEFAULT_wxUSE_TREECTRL=no
6832   DEFAULT_wxUSE_POPUPWIN=no
6833   DEFAULT_wxUSE_TIPWINDOW=no
6834 fi
6835
6836 ## FIXME: This is a blatant hack
6837 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6838   wxUSE_PRINTING_ARCHITECTURE=no
6839   wxUSE_DRAG_AND_DROP=no
6840   # Generic notebook requires tab dialog
6841   DEFAULT_wxUSE_TABDIALOG=yes
6842   DEFAULT_wxUSE_SCROLLBAR=no
6843   DEFAULT_wxUSE_TOOLTIPS=no
6844   DEFAULT_wxUSE_DRAGIMAGE=no
6845 fi
6846
6847
6848           enablestring=
6849           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6850 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6851           no_cache=0
6852           # Check whether --enable-accel or --disable-accel was given.
6853 if test "${enable_accel+set}" = set; then
6854   enableval="$enable_accel"
6855
6856                           if test "$enableval" = yes; then
6857                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6858                           else
6859                             ac_cv_use_accel='wxUSE_ACCEL=no'
6860                           fi
6861
6862 else
6863
6864                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6865                           if test "x$LINE" != x ; then
6866                             eval "DEFAULT_$LINE"
6867                           else
6868                             no_cache=1
6869                           fi
6870
6871                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6872
6873 fi;
6874
6875           eval "$ac_cv_use_accel"
6876           if test "$no_cache" != 1; then
6877             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6878           fi
6879
6880           if test "$wxUSE_ACCEL" = yes; then
6881             echo "$as_me:$LINENO: result: yes" >&5
6882 echo "${ECHO_T}yes" >&6
6883           else
6884             echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6
6886           fi
6887
6888
6889           enablestring=
6890           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6891 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6892           no_cache=0
6893           # Check whether --enable-button or --disable-button was given.
6894 if test "${enable_button+set}" = set; then
6895   enableval="$enable_button"
6896
6897                           if test "$enableval" = yes; then
6898                             ac_cv_use_button='wxUSE_BUTTON=yes'
6899                           else
6900                             ac_cv_use_button='wxUSE_BUTTON=no'
6901                           fi
6902
6903 else
6904
6905                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6906                           if test "x$LINE" != x ; then
6907                             eval "DEFAULT_$LINE"
6908                           else
6909                             no_cache=1
6910                           fi
6911
6912                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6913
6914 fi;
6915
6916           eval "$ac_cv_use_button"
6917           if test "$no_cache" != 1; then
6918             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6919           fi
6920
6921           if test "$wxUSE_BUTTON" = yes; then
6922             echo "$as_me:$LINENO: result: yes" >&5
6923 echo "${ECHO_T}yes" >&6
6924           else
6925             echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6
6927           fi
6928
6929
6930           enablestring=
6931           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6932 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6933           no_cache=0
6934           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6935 if test "${enable_bmpbutton+set}" = set; then
6936   enableval="$enable_bmpbutton"
6937
6938                           if test "$enableval" = yes; then
6939                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6940                           else
6941                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6942                           fi
6943
6944 else
6945
6946                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6947                           if test "x$LINE" != x ; then
6948                             eval "DEFAULT_$LINE"
6949                           else
6950                             no_cache=1
6951                           fi
6952
6953                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6954
6955 fi;
6956
6957           eval "$ac_cv_use_bmpbutton"
6958           if test "$no_cache" != 1; then
6959             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6960           fi
6961
6962           if test "$wxUSE_BMPBUTTON" = yes; then
6963             echo "$as_me:$LINENO: result: yes" >&5
6964 echo "${ECHO_T}yes" >&6
6965           else
6966             echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6
6968           fi
6969
6970
6971           enablestring=
6972           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6973 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6974           no_cache=0
6975           # Check whether --enable-calendar or --disable-calendar was given.
6976 if test "${enable_calendar+set}" = set; then
6977   enableval="$enable_calendar"
6978
6979                           if test "$enableval" = yes; then
6980                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6981                           else
6982                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6983                           fi
6984
6985 else
6986
6987                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6988                           if test "x$LINE" != x ; then
6989                             eval "DEFAULT_$LINE"
6990                           else
6991                             no_cache=1
6992                           fi
6993
6994                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6995
6996 fi;
6997
6998           eval "$ac_cv_use_calendar"
6999           if test "$no_cache" != 1; then
7000             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7001           fi
7002
7003           if test "$wxUSE_CALCTRL" = yes; then
7004             echo "$as_me:$LINENO: result: yes" >&5
7005 echo "${ECHO_T}yes" >&6
7006           else
7007             echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6
7009           fi
7010
7011
7012           enablestring=
7013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7014 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7015           no_cache=0
7016           # Check whether --enable-caret or --disable-caret was given.
7017 if test "${enable_caret+set}" = set; then
7018   enableval="$enable_caret"
7019
7020                           if test "$enableval" = yes; then
7021                             ac_cv_use_caret='wxUSE_CARET=yes'
7022                           else
7023                             ac_cv_use_caret='wxUSE_CARET=no'
7024                           fi
7025
7026 else
7027
7028                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7029                           if test "x$LINE" != x ; then
7030                             eval "DEFAULT_$LINE"
7031                           else
7032                             no_cache=1
7033                           fi
7034
7035                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7036
7037 fi;
7038
7039           eval "$ac_cv_use_caret"
7040           if test "$no_cache" != 1; then
7041             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7042           fi
7043
7044           if test "$wxUSE_CARET" = yes; then
7045             echo "$as_me:$LINENO: result: yes" >&5
7046 echo "${ECHO_T}yes" >&6
7047           else
7048             echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7050           fi
7051
7052
7053           enablestring=
7054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7055 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7056           no_cache=0
7057           # Check whether --enable-checkbox or --disable-checkbox was given.
7058 if test "${enable_checkbox+set}" = set; then
7059   enableval="$enable_checkbox"
7060
7061                           if test "$enableval" = yes; then
7062                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7063                           else
7064                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7065                           fi
7066
7067 else
7068
7069                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7070                           if test "x$LINE" != x ; then
7071                             eval "DEFAULT_$LINE"
7072                           else
7073                             no_cache=1
7074                           fi
7075
7076                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7077
7078 fi;
7079
7080           eval "$ac_cv_use_checkbox"
7081           if test "$no_cache" != 1; then
7082             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7083           fi
7084
7085           if test "$wxUSE_CHECKBOX" = yes; then
7086             echo "$as_me:$LINENO: result: yes" >&5
7087 echo "${ECHO_T}yes" >&6
7088           else
7089             echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6
7091           fi
7092
7093
7094           enablestring=
7095           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7096 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7097           no_cache=0
7098           # Check whether --enable-checklst or --disable-checklst was given.
7099 if test "${enable_checklst+set}" = set; then
7100   enableval="$enable_checklst"
7101
7102                           if test "$enableval" = yes; then
7103                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7104                           else
7105                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7106                           fi
7107
7108 else
7109
7110                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7111                           if test "x$LINE" != x ; then
7112                             eval "DEFAULT_$LINE"
7113                           else
7114                             no_cache=1
7115                           fi
7116
7117                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7118
7119 fi;
7120
7121           eval "$ac_cv_use_checklst"
7122           if test "$no_cache" != 1; then
7123             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7124           fi
7125
7126           if test "$wxUSE_CHECKLST" = yes; then
7127             echo "$as_me:$LINENO: result: yes" >&5
7128 echo "${ECHO_T}yes" >&6
7129           else
7130             echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6
7132           fi
7133
7134
7135           enablestring=
7136           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7137 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7138           no_cache=0
7139           # Check whether --enable-choice or --disable-choice was given.
7140 if test "${enable_choice+set}" = set; then
7141   enableval="$enable_choice"
7142
7143                           if test "$enableval" = yes; then
7144                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7145                           else
7146                             ac_cv_use_choice='wxUSE_CHOICE=no'
7147                           fi
7148
7149 else
7150
7151                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7152                           if test "x$LINE" != x ; then
7153                             eval "DEFAULT_$LINE"
7154                           else
7155                             no_cache=1
7156                           fi
7157
7158                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7159
7160 fi;
7161
7162           eval "$ac_cv_use_choice"
7163           if test "$no_cache" != 1; then
7164             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7165           fi
7166
7167           if test "$wxUSE_CHOICE" = yes; then
7168             echo "$as_me:$LINENO: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7170           else
7171             echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7173           fi
7174
7175
7176           enablestring=
7177           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7178 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7179           no_cache=0
7180           # Check whether --enable-combobox or --disable-combobox was given.
7181 if test "${enable_combobox+set}" = set; then
7182   enableval="$enable_combobox"
7183
7184                           if test "$enableval" = yes; then
7185                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7186                           else
7187                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7188                           fi
7189
7190 else
7191
7192                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7193                           if test "x$LINE" != x ; then
7194                             eval "DEFAULT_$LINE"
7195                           else
7196                             no_cache=1
7197                           fi
7198
7199                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7200
7201 fi;
7202
7203           eval "$ac_cv_use_combobox"
7204           if test "$no_cache" != 1; then
7205             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7206           fi
7207
7208           if test "$wxUSE_COMBOBOX" = yes; then
7209             echo "$as_me:$LINENO: result: yes" >&5
7210 echo "${ECHO_T}yes" >&6
7211           else
7212             echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7214           fi
7215
7216
7217           enablestring=
7218           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7219 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7220           no_cache=0
7221           # Check whether --enable-display or --disable-display was given.
7222 if test "${enable_display+set}" = set; then
7223   enableval="$enable_display"
7224
7225                           if test "$enableval" = yes; then
7226                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7227                           else
7228                             ac_cv_use_display='wxUSE_DISPLAY=no'
7229                           fi
7230
7231 else
7232
7233                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7234                           if test "x$LINE" != x ; then
7235                             eval "DEFAULT_$LINE"
7236                           else
7237                             no_cache=1
7238                           fi
7239
7240                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7241
7242 fi;
7243
7244           eval "$ac_cv_use_display"
7245           if test "$no_cache" != 1; then
7246             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7247           fi
7248
7249           if test "$wxUSE_DISPLAY" = yes; then
7250             echo "$as_me:$LINENO: result: yes" >&5
7251 echo "${ECHO_T}yes" >&6
7252           else
7253             echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7255           fi
7256
7257
7258           enablestring=
7259           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7260 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7261           no_cache=0
7262           # Check whether --enable-gauge or --disable-gauge was given.
7263 if test "${enable_gauge+set}" = set; then
7264   enableval="$enable_gauge"
7265
7266                           if test "$enableval" = yes; then
7267                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7268                           else
7269                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7270                           fi
7271
7272 else
7273
7274                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7275                           if test "x$LINE" != x ; then
7276                             eval "DEFAULT_$LINE"
7277                           else
7278                             no_cache=1
7279                           fi
7280
7281                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7282
7283 fi;
7284
7285           eval "$ac_cv_use_gauge"
7286           if test "$no_cache" != 1; then
7287             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7288           fi
7289
7290           if test "$wxUSE_GAUGE" = yes; then
7291             echo "$as_me:$LINENO: result: yes" >&5
7292 echo "${ECHO_T}yes" >&6
7293           else
7294             echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6
7296           fi
7297
7298
7299           enablestring=
7300           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7301 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7302           no_cache=0
7303           # Check whether --enable-grid or --disable-grid was given.
7304 if test "${enable_grid+set}" = set; then
7305   enableval="$enable_grid"
7306
7307                           if test "$enableval" = yes; then
7308                             ac_cv_use_grid='wxUSE_GRID=yes'
7309                           else
7310                             ac_cv_use_grid='wxUSE_GRID=no'
7311                           fi
7312
7313 else
7314
7315                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7316                           if test "x$LINE" != x ; then
7317                             eval "DEFAULT_$LINE"
7318                           else
7319                             no_cache=1
7320                           fi
7321
7322                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7323
7324 fi;
7325
7326           eval "$ac_cv_use_grid"
7327           if test "$no_cache" != 1; then
7328             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7329           fi
7330
7331           if test "$wxUSE_GRID" = yes; then
7332             echo "$as_me:$LINENO: result: yes" >&5
7333 echo "${ECHO_T}yes" >&6
7334           else
7335             echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7337           fi
7338
7339
7340           enablestring=
7341           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7342 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7343           no_cache=0
7344           # Check whether --enable-imaglist or --disable-imaglist was given.
7345 if test "${enable_imaglist+set}" = set; then
7346   enableval="$enable_imaglist"
7347
7348                           if test "$enableval" = yes; then
7349                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7350                           else
7351                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7352                           fi
7353
7354 else
7355
7356                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7357                           if test "x$LINE" != x ; then
7358                             eval "DEFAULT_$LINE"
7359                           else
7360                             no_cache=1
7361                           fi
7362
7363                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7364
7365 fi;
7366
7367           eval "$ac_cv_use_imaglist"
7368           if test "$no_cache" != 1; then
7369             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7370           fi
7371
7372           if test "$wxUSE_IMAGLIST" = yes; then
7373             echo "$as_me:$LINENO: result: yes" >&5
7374 echo "${ECHO_T}yes" >&6
7375           else
7376             echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378           fi
7379
7380
7381           enablestring=
7382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7383 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7384           no_cache=0
7385           # Check whether --enable-listbook or --disable-listbook was given.
7386 if test "${enable_listbook+set}" = set; then
7387   enableval="$enable_listbook"
7388
7389                           if test "$enableval" = yes; then
7390                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7391                           else
7392                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7393                           fi
7394
7395 else
7396
7397                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7398                           if test "x$LINE" != x ; then
7399                             eval "DEFAULT_$LINE"
7400                           else
7401                             no_cache=1
7402                           fi
7403
7404                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7405
7406 fi;
7407
7408           eval "$ac_cv_use_listbook"
7409           if test "$no_cache" != 1; then
7410             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7411           fi
7412
7413           if test "$wxUSE_LISTBOOK" = yes; then
7414             echo "$as_me:$LINENO: result: yes" >&5
7415 echo "${ECHO_T}yes" >&6
7416           else
7417             echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7419           fi
7420
7421
7422           enablestring=
7423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7424 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7425           no_cache=0
7426           # Check whether --enable-listbox or --disable-listbox was given.
7427 if test "${enable_listbox+set}" = set; then
7428   enableval="$enable_listbox"
7429
7430                           if test "$enableval" = yes; then
7431                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7432                           else
7433                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7434                           fi
7435
7436 else
7437
7438                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7439                           if test "x$LINE" != x ; then
7440                             eval "DEFAULT_$LINE"
7441                           else
7442                             no_cache=1
7443                           fi
7444
7445                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7446
7447 fi;
7448
7449           eval "$ac_cv_use_listbox"
7450           if test "$no_cache" != 1; then
7451             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7452           fi
7453
7454           if test "$wxUSE_LISTBOX" = yes; then
7455             echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6
7457           else
7458             echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460           fi
7461
7462
7463           enablestring=
7464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7465 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7466           no_cache=0
7467           # Check whether --enable-listctrl or --disable-listctrl was given.
7468 if test "${enable_listctrl+set}" = set; then
7469   enableval="$enable_listctrl"
7470
7471                           if test "$enableval" = yes; then
7472                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7473                           else
7474                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7475                           fi
7476
7477 else
7478
7479                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7480                           if test "x$LINE" != x ; then
7481                             eval "DEFAULT_$LINE"
7482                           else
7483                             no_cache=1
7484                           fi
7485
7486                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7487
7488 fi;
7489
7490           eval "$ac_cv_use_listctrl"
7491           if test "$no_cache" != 1; then
7492             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7493           fi
7494
7495           if test "$wxUSE_LISTCTRL" = yes; then
7496             echo "$as_me:$LINENO: result: yes" >&5
7497 echo "${ECHO_T}yes" >&6
7498           else
7499             echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6
7501           fi
7502
7503
7504           enablestring=
7505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7506 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7507           no_cache=0
7508           # Check whether --enable-notebook or --disable-notebook was given.
7509 if test "${enable_notebook+set}" = set; then
7510   enableval="$enable_notebook"
7511
7512                           if test "$enableval" = yes; then
7513                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7514                           else
7515                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7516                           fi
7517
7518 else
7519
7520                           LINE=`grep "wxUSE_NOTEBOOK" ${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_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7528
7529 fi;
7530
7531           eval "$ac_cv_use_notebook"
7532           if test "$no_cache" != 1; then
7533             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7534           fi
7535
7536           if test "$wxUSE_NOTEBOOK" = yes; then
7537             echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6
7539           else
7540             echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7542           fi
7543
7544
7545           enablestring=
7546           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7547 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7548           no_cache=0
7549           # Check whether --enable-radiobox or --disable-radiobox was given.
7550 if test "${enable_radiobox+set}" = set; then
7551   enableval="$enable_radiobox"
7552
7553                           if test "$enableval" = yes; then
7554                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7555                           else
7556                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7557                           fi
7558
7559 else
7560
7561                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7562                           if test "x$LINE" != x ; then
7563                             eval "DEFAULT_$LINE"
7564                           else
7565                             no_cache=1
7566                           fi
7567
7568                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7569
7570 fi;
7571
7572           eval "$ac_cv_use_radiobox"
7573           if test "$no_cache" != 1; then
7574             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7575           fi
7576
7577           if test "$wxUSE_RADIOBOX" = yes; then
7578             echo "$as_me:$LINENO: result: yes" >&5
7579 echo "${ECHO_T}yes" >&6
7580           else
7581             echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6
7583           fi
7584
7585
7586           enablestring=
7587           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7588 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7589           no_cache=0
7590           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7591 if test "${enable_radiobtn+set}" = set; then
7592   enableval="$enable_radiobtn"
7593
7594                           if test "$enableval" = yes; then
7595                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7596                           else
7597                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7598                           fi
7599
7600 else
7601
7602                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7603                           if test "x$LINE" != x ; then
7604                             eval "DEFAULT_$LINE"
7605                           else
7606                             no_cache=1
7607                           fi
7608
7609                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7610
7611 fi;
7612
7613           eval "$ac_cv_use_radiobtn"
7614           if test "$no_cache" != 1; then
7615             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7616           fi
7617
7618           if test "$wxUSE_RADIOBTN" = yes; then
7619             echo "$as_me:$LINENO: result: yes" >&5
7620 echo "${ECHO_T}yes" >&6
7621           else
7622             echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6
7624           fi
7625
7626
7627           enablestring=
7628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7629 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7630           no_cache=0
7631           # Check whether --enable-sash or --disable-sash was given.
7632 if test "${enable_sash+set}" = set; then
7633   enableval="$enable_sash"
7634
7635                           if test "$enableval" = yes; then
7636                             ac_cv_use_sash='wxUSE_SASH=yes'
7637                           else
7638                             ac_cv_use_sash='wxUSE_SASH=no'
7639                           fi
7640
7641 else
7642
7643                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7644                           if test "x$LINE" != x ; then
7645                             eval "DEFAULT_$LINE"
7646                           else
7647                             no_cache=1
7648                           fi
7649
7650                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7651
7652 fi;
7653
7654           eval "$ac_cv_use_sash"
7655           if test "$no_cache" != 1; then
7656             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7657           fi
7658
7659           if test "$wxUSE_SASH" = yes; then
7660             echo "$as_me:$LINENO: result: yes" >&5
7661 echo "${ECHO_T}yes" >&6
7662           else
7663             echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6
7665           fi
7666
7667
7668           enablestring=
7669           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7670 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7671           no_cache=0
7672           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7673 if test "${enable_scrollbar+set}" = set; then
7674   enableval="$enable_scrollbar"
7675
7676                           if test "$enableval" = yes; then
7677                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7678                           else
7679                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7680                           fi
7681
7682 else
7683
7684                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7685                           if test "x$LINE" != x ; then
7686                             eval "DEFAULT_$LINE"
7687                           else
7688                             no_cache=1
7689                           fi
7690
7691                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7692
7693 fi;
7694
7695           eval "$ac_cv_use_scrollbar"
7696           if test "$no_cache" != 1; then
7697             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7698           fi
7699
7700           if test "$wxUSE_SCROLLBAR" = yes; then
7701             echo "$as_me:$LINENO: result: yes" >&5
7702 echo "${ECHO_T}yes" >&6
7703           else
7704             echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7706           fi
7707
7708
7709           enablestring=
7710           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7711 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7712           no_cache=0
7713           # Check whether --enable-slider or --disable-slider was given.
7714 if test "${enable_slider+set}" = set; then
7715   enableval="$enable_slider"
7716
7717                           if test "$enableval" = yes; then
7718                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7719                           else
7720                             ac_cv_use_slider='wxUSE_SLIDER=no'
7721                           fi
7722
7723 else
7724
7725                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7726                           if test "x$LINE" != x ; then
7727                             eval "DEFAULT_$LINE"
7728                           else
7729                             no_cache=1
7730                           fi
7731
7732                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7733
7734 fi;
7735
7736           eval "$ac_cv_use_slider"
7737           if test "$no_cache" != 1; then
7738             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7739           fi
7740
7741           if test "$wxUSE_SLIDER" = yes; then
7742             echo "$as_me:$LINENO: result: yes" >&5
7743 echo "${ECHO_T}yes" >&6
7744           else
7745             echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6
7747           fi
7748
7749
7750           enablestring=
7751           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7752 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7753           no_cache=0
7754           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7755 if test "${enable_spinbtn+set}" = set; then
7756   enableval="$enable_spinbtn"
7757
7758                           if test "$enableval" = yes; then
7759                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7760                           else
7761                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7762                           fi
7763
7764 else
7765
7766                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7767                           if test "x$LINE" != x ; then
7768                             eval "DEFAULT_$LINE"
7769                           else
7770                             no_cache=1
7771                           fi
7772
7773                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7774
7775 fi;
7776
7777           eval "$ac_cv_use_spinbtn"
7778           if test "$no_cache" != 1; then
7779             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7780           fi
7781
7782           if test "$wxUSE_SPINBTN" = yes; then
7783             echo "$as_me:$LINENO: result: yes" >&5
7784 echo "${ECHO_T}yes" >&6
7785           else
7786             echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7788           fi
7789
7790
7791           enablestring=
7792           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7793 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7794           no_cache=0
7795           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7796 if test "${enable_spinctrl+set}" = set; then
7797   enableval="$enable_spinctrl"
7798
7799                           if test "$enableval" = yes; then
7800                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7801                           else
7802                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7803                           fi
7804
7805 else
7806
7807                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7808                           if test "x$LINE" != x ; then
7809                             eval "DEFAULT_$LINE"
7810                           else
7811                             no_cache=1
7812                           fi
7813
7814                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7815
7816 fi;
7817
7818           eval "$ac_cv_use_spinctrl"
7819           if test "$no_cache" != 1; then
7820             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7821           fi
7822
7823           if test "$wxUSE_SPINCTRL" = yes; then
7824             echo "$as_me:$LINENO: result: yes" >&5
7825 echo "${ECHO_T}yes" >&6
7826           else
7827             echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6
7829           fi
7830
7831
7832           enablestring=
7833           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7834 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7835           no_cache=0
7836           # Check whether --enable-splitter or --disable-splitter was given.
7837 if test "${enable_splitter+set}" = set; then
7838   enableval="$enable_splitter"
7839
7840                           if test "$enableval" = yes; then
7841                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7842                           else
7843                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7844                           fi
7845
7846 else
7847
7848                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7849                           if test "x$LINE" != x ; then
7850                             eval "DEFAULT_$LINE"
7851                           else
7852                             no_cache=1
7853                           fi
7854
7855                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7856
7857 fi;
7858
7859           eval "$ac_cv_use_splitter"
7860           if test "$no_cache" != 1; then
7861             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7862           fi
7863
7864           if test "$wxUSE_SPLITTER" = yes; then
7865             echo "$as_me:$LINENO: result: yes" >&5
7866 echo "${ECHO_T}yes" >&6
7867           else
7868             echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6
7870           fi
7871
7872
7873           enablestring=
7874           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7875 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7876           no_cache=0
7877           # Check whether --enable-statbmp or --disable-statbmp was given.
7878 if test "${enable_statbmp+set}" = set; then
7879   enableval="$enable_statbmp"
7880
7881                           if test "$enableval" = yes; then
7882                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7883                           else
7884                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7885                           fi
7886
7887 else
7888
7889                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7890                           if test "x$LINE" != x ; then
7891                             eval "DEFAULT_$LINE"
7892                           else
7893                             no_cache=1
7894                           fi
7895
7896                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7897
7898 fi;
7899
7900           eval "$ac_cv_use_statbmp"
7901           if test "$no_cache" != 1; then
7902             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7903           fi
7904
7905           if test "$wxUSE_STATBMP" = yes; then
7906             echo "$as_me:$LINENO: result: yes" >&5
7907 echo "${ECHO_T}yes" >&6
7908           else
7909             echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6
7911           fi
7912
7913
7914           enablestring=
7915           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7916 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7917           no_cache=0
7918           # Check whether --enable-statbox or --disable-statbox was given.
7919 if test "${enable_statbox+set}" = set; then
7920   enableval="$enable_statbox"
7921
7922                           if test "$enableval" = yes; then
7923                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7924                           else
7925                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7926                           fi
7927
7928 else
7929
7930                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7931                           if test "x$LINE" != x ; then
7932                             eval "DEFAULT_$LINE"
7933                           else
7934                             no_cache=1
7935                           fi
7936
7937                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7938
7939 fi;
7940
7941           eval "$ac_cv_use_statbox"
7942           if test "$no_cache" != 1; then
7943             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7944           fi
7945
7946           if test "$wxUSE_STATBOX" = yes; then
7947             echo "$as_me:$LINENO: result: yes" >&5
7948 echo "${ECHO_T}yes" >&6
7949           else
7950             echo "$as_me:$LINENO: result: no" >&5
7951 echo "${ECHO_T}no" >&6
7952           fi
7953
7954
7955           enablestring=
7956           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7957 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7958           no_cache=0
7959           # Check whether --enable-statline or --disable-statline was given.
7960 if test "${enable_statline+set}" = set; then
7961   enableval="$enable_statline"
7962
7963                           if test "$enableval" = yes; then
7964                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7965                           else
7966                             ac_cv_use_statline='wxUSE_STATLINE=no'
7967                           fi
7968
7969 else
7970
7971                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7972                           if test "x$LINE" != x ; then
7973                             eval "DEFAULT_$LINE"
7974                           else
7975                             no_cache=1
7976                           fi
7977
7978                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7979
7980 fi;
7981
7982           eval "$ac_cv_use_statline"
7983           if test "$no_cache" != 1; then
7984             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7985           fi
7986
7987           if test "$wxUSE_STATLINE" = yes; then
7988             echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6
7990           else
7991             echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7993           fi
7994
7995
7996           enablestring=
7997           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7998 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7999           no_cache=0
8000           # Check whether --enable-stattext or --disable-stattext was given.
8001 if test "${enable_stattext+set}" = set; then
8002   enableval="$enable_stattext"
8003
8004                           if test "$enableval" = yes; then
8005                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8006                           else
8007                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8008                           fi
8009
8010 else
8011
8012                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8013                           if test "x$LINE" != x ; then
8014                             eval "DEFAULT_$LINE"
8015                           else
8016                             no_cache=1
8017                           fi
8018
8019                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8020
8021 fi;
8022
8023           eval "$ac_cv_use_stattext"
8024           if test "$no_cache" != 1; then
8025             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8026           fi
8027
8028           if test "$wxUSE_STATTEXT" = yes; then
8029             echo "$as_me:$LINENO: result: yes" >&5
8030 echo "${ECHO_T}yes" >&6
8031           else
8032             echo "$as_me:$LINENO: result: no" >&5
8033 echo "${ECHO_T}no" >&6
8034           fi
8035
8036
8037           enablestring=
8038           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8039 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8040           no_cache=0
8041           # Check whether --enable-statusbar or --disable-statusbar was given.
8042 if test "${enable_statusbar+set}" = set; then
8043   enableval="$enable_statusbar"
8044
8045                           if test "$enableval" = yes; then
8046                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8047                           else
8048                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8049                           fi
8050
8051 else
8052
8053                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8054                           if test "x$LINE" != x ; then
8055                             eval "DEFAULT_$LINE"
8056                           else
8057                             no_cache=1
8058                           fi
8059
8060                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8061
8062 fi;
8063
8064           eval "$ac_cv_use_statusbar"
8065           if test "$no_cache" != 1; then
8066             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8067           fi
8068
8069           if test "$wxUSE_STATUSBAR" = yes; then
8070             echo "$as_me:$LINENO: result: yes" >&5
8071 echo "${ECHO_T}yes" >&6
8072           else
8073             echo "$as_me:$LINENO: result: no" >&5
8074 echo "${ECHO_T}no" >&6
8075           fi
8076
8077
8078           enablestring=
8079           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8080 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8081           no_cache=0
8082           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8083 if test "${enable_tabdialog+set}" = set; then
8084   enableval="$enable_tabdialog"
8085
8086                           if test "$enableval" = yes; then
8087                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8088                           else
8089                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8090                           fi
8091
8092 else
8093
8094                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8095                           if test "x$LINE" != x ; then
8096                             eval "DEFAULT_$LINE"
8097                           else
8098                             no_cache=1
8099                           fi
8100
8101                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8102
8103 fi;
8104
8105           eval "$ac_cv_use_tabdialog"
8106           if test "$no_cache" != 1; then
8107             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8108           fi
8109
8110           if test "$wxUSE_TABDIALOG" = yes; then
8111             echo "$as_me:$LINENO: result: yes" >&5
8112 echo "${ECHO_T}yes" >&6
8113           else
8114             echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8116           fi
8117
8118
8119           enablestring=
8120           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8121 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8122           no_cache=0
8123           # Check whether --enable-textctrl or --disable-textctrl was given.
8124 if test "${enable_textctrl+set}" = set; then
8125   enableval="$enable_textctrl"
8126
8127                           if test "$enableval" = yes; then
8128                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8129                           else
8130                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8131                           fi
8132
8133 else
8134
8135                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8136                           if test "x$LINE" != x ; then
8137                             eval "DEFAULT_$LINE"
8138                           else
8139                             no_cache=1
8140                           fi
8141
8142                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8143
8144 fi;
8145
8146           eval "$ac_cv_use_textctrl"
8147           if test "$no_cache" != 1; then
8148             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8149           fi
8150
8151           if test "$wxUSE_TEXTCTRL" = yes; then
8152             echo "$as_me:$LINENO: result: yes" >&5
8153 echo "${ECHO_T}yes" >&6
8154           else
8155             echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6
8157           fi
8158
8159
8160           enablestring=
8161           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8162 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8163           no_cache=0
8164           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8165 if test "${enable_togglebtn+set}" = set; then
8166   enableval="$enable_togglebtn"
8167
8168                           if test "$enableval" = yes; then
8169                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8170                           else
8171                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8172                           fi
8173
8174 else
8175
8176                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8177                           if test "x$LINE" != x ; then
8178                             eval "DEFAULT_$LINE"
8179                           else
8180                             no_cache=1
8181                           fi
8182
8183                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8184
8185 fi;
8186
8187           eval "$ac_cv_use_togglebtn"
8188           if test "$no_cache" != 1; then
8189             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8190           fi
8191
8192           if test "$wxUSE_TOGGLEBTN" = yes; then
8193             echo "$as_me:$LINENO: result: yes" >&5
8194 echo "${ECHO_T}yes" >&6
8195           else
8196             echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198           fi
8199
8200
8201           enablestring=
8202           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8203 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8204           no_cache=0
8205           # Check whether --enable-toolbar or --disable-toolbar was given.
8206 if test "${enable_toolbar+set}" = set; then
8207   enableval="$enable_toolbar"
8208
8209                           if test "$enableval" = yes; then
8210                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8211                           else
8212                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8213                           fi
8214
8215 else
8216
8217                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8218                           if test "x$LINE" != x ; then
8219                             eval "DEFAULT_$LINE"
8220                           else
8221                             no_cache=1
8222                           fi
8223
8224                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8225
8226 fi;
8227
8228           eval "$ac_cv_use_toolbar"
8229           if test "$no_cache" != 1; then
8230             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8231           fi
8232
8233           if test "$wxUSE_TOOLBAR" = yes; then
8234             echo "$as_me:$LINENO: result: yes" >&5
8235 echo "${ECHO_T}yes" >&6
8236           else
8237             echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6
8239           fi
8240
8241
8242           enablestring=
8243           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8244 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8245           no_cache=0
8246           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8247 if test "${enable_tbarnative+set}" = set; then
8248   enableval="$enable_tbarnative"
8249
8250                           if test "$enableval" = yes; then
8251                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8252                           else
8253                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8254                           fi
8255
8256 else
8257
8258                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8259                           if test "x$LINE" != x ; then
8260                             eval "DEFAULT_$LINE"
8261                           else
8262                             no_cache=1
8263                           fi
8264
8265                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8266
8267 fi;
8268
8269           eval "$ac_cv_use_tbarnative"
8270           if test "$no_cache" != 1; then
8271             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8272           fi
8273
8274           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8275             echo "$as_me:$LINENO: result: yes" >&5
8276 echo "${ECHO_T}yes" >&6
8277           else
8278             echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6
8280           fi
8281
8282
8283           enablestring=
8284           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8285 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8286           no_cache=0
8287           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8288 if test "${enable_tbarsmpl+set}" = set; then
8289   enableval="$enable_tbarsmpl"
8290
8291                           if test "$enableval" = yes; then
8292                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8293                           else
8294                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8295                           fi
8296
8297 else
8298
8299                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8300                           if test "x$LINE" != x ; then
8301                             eval "DEFAULT_$LINE"
8302                           else
8303                             no_cache=1
8304                           fi
8305
8306                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8307
8308 fi;
8309
8310           eval "$ac_cv_use_tbarsmpl"
8311           if test "$no_cache" != 1; then
8312             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8313           fi
8314
8315           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8316             echo "$as_me:$LINENO: result: yes" >&5
8317 echo "${ECHO_T}yes" >&6
8318           else
8319             echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321           fi
8322
8323
8324           enablestring=
8325           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8326 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8327           no_cache=0
8328           # Check whether --enable-treectrl or --disable-treectrl was given.
8329 if test "${enable_treectrl+set}" = set; then
8330   enableval="$enable_treectrl"
8331
8332                           if test "$enableval" = yes; then
8333                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8334                           else
8335                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8336                           fi
8337
8338 else
8339
8340                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8341                           if test "x$LINE" != x ; then
8342                             eval "DEFAULT_$LINE"
8343                           else
8344                             no_cache=1
8345                           fi
8346
8347                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8348
8349 fi;
8350
8351           eval "$ac_cv_use_treectrl"
8352           if test "$no_cache" != 1; then
8353             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8354           fi
8355
8356           if test "$wxUSE_TREECTRL" = yes; then
8357             echo "$as_me:$LINENO: result: yes" >&5
8358 echo "${ECHO_T}yes" >&6
8359           else
8360             echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8362           fi
8363
8364
8365           enablestring=
8366           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8367 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8368           no_cache=0
8369           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8370 if test "${enable_tipwindow+set}" = set; then
8371   enableval="$enable_tipwindow"
8372
8373                           if test "$enableval" = yes; then
8374                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8375                           else
8376                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8377                           fi
8378
8379 else
8380
8381                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8382                           if test "x$LINE" != x ; then
8383                             eval "DEFAULT_$LINE"
8384                           else
8385                             no_cache=1
8386                           fi
8387
8388                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8389
8390 fi;
8391
8392           eval "$ac_cv_use_tipwindow"
8393           if test "$no_cache" != 1; then
8394             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8395           fi
8396
8397           if test "$wxUSE_TIPWINDOW" = yes; then
8398             echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6
8400           else
8401             echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8403           fi
8404
8405
8406           enablestring=
8407           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8408 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8409           no_cache=0
8410           # Check whether --enable-popupwin or --disable-popupwin was given.
8411 if test "${enable_popupwin+set}" = set; then
8412   enableval="$enable_popupwin"
8413
8414                           if test "$enableval" = yes; then
8415                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8416                           else
8417                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8418                           fi
8419
8420 else
8421
8422                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8423                           if test "x$LINE" != x ; then
8424                             eval "DEFAULT_$LINE"
8425                           else
8426                             no_cache=1
8427                           fi
8428
8429                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8430
8431 fi;
8432
8433           eval "$ac_cv_use_popupwin"
8434           if test "$no_cache" != 1; then
8435             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8436           fi
8437
8438           if test "$wxUSE_POPUPWIN" = yes; then
8439             echo "$as_me:$LINENO: result: yes" >&5
8440 echo "${ECHO_T}yes" >&6
8441           else
8442             echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6
8444           fi
8445
8446
8447
8448
8449           enablestring=
8450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8451 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8452           no_cache=0
8453           # Check whether --enable-commondlg or --disable-commondlg was given.
8454 if test "${enable_commondlg+set}" = set; then
8455   enableval="$enable_commondlg"
8456
8457                           if test "$enableval" = yes; then
8458                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8459                           else
8460                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8461                           fi
8462
8463 else
8464
8465                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8466                           if test "x$LINE" != x ; then
8467                             eval "DEFAULT_$LINE"
8468                           else
8469                             no_cache=1
8470                           fi
8471
8472                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8473
8474 fi;
8475
8476           eval "$ac_cv_use_commondlg"
8477           if test "$no_cache" != 1; then
8478             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8479           fi
8480
8481           if test "$wxUSE_COMMONDLGS" = yes; then
8482             echo "$as_me:$LINENO: result: yes" >&5
8483 echo "${ECHO_T}yes" >&6
8484           else
8485             echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6
8487           fi
8488
8489
8490           enablestring=
8491           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8492 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8493           no_cache=0
8494           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8495 if test "${enable_choicedlg+set}" = set; then
8496   enableval="$enable_choicedlg"
8497
8498                           if test "$enableval" = yes; then
8499                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8500                           else
8501                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8502                           fi
8503
8504 else
8505
8506                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8507                           if test "x$LINE" != x ; then
8508                             eval "DEFAULT_$LINE"
8509                           else
8510                             no_cache=1
8511                           fi
8512
8513                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8514
8515 fi;
8516
8517           eval "$ac_cv_use_choicedlg"
8518           if test "$no_cache" != 1; then
8519             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8520           fi
8521
8522           if test "$wxUSE_CHOICEDLG" = yes; then
8523             echo "$as_me:$LINENO: result: yes" >&5
8524 echo "${ECHO_T}yes" >&6
8525           else
8526             echo "$as_me:$LINENO: result: no" >&5
8527 echo "${ECHO_T}no" >&6
8528           fi
8529
8530
8531           enablestring=
8532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8533 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8534           no_cache=0
8535           # Check whether --enable-coldlg or --disable-coldlg was given.
8536 if test "${enable_coldlg+set}" = set; then
8537   enableval="$enable_coldlg"
8538
8539                           if test "$enableval" = yes; then
8540                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8541                           else
8542                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8543                           fi
8544
8545 else
8546
8547                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8548                           if test "x$LINE" != x ; then
8549                             eval "DEFAULT_$LINE"
8550                           else
8551                             no_cache=1
8552                           fi
8553
8554                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8555
8556 fi;
8557
8558           eval "$ac_cv_use_coldlg"
8559           if test "$no_cache" != 1; then
8560             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8561           fi
8562
8563           if test "$wxUSE_COLOURDLG" = yes; then
8564             echo "$as_me:$LINENO: result: yes" >&5
8565 echo "${ECHO_T}yes" >&6
8566           else
8567             echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6
8569           fi
8570
8571
8572           enablestring=
8573           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8574 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8575           no_cache=0
8576           # Check whether --enable-filedlg or --disable-filedlg was given.
8577 if test "${enable_filedlg+set}" = set; then
8578   enableval="$enable_filedlg"
8579
8580                           if test "$enableval" = yes; then
8581                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8582                           else
8583                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8584                           fi
8585
8586 else
8587
8588                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8589                           if test "x$LINE" != x ; then
8590                             eval "DEFAULT_$LINE"
8591                           else
8592                             no_cache=1
8593                           fi
8594
8595                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8596
8597 fi;
8598
8599           eval "$ac_cv_use_filedlg"
8600           if test "$no_cache" != 1; then
8601             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8602           fi
8603
8604           if test "$wxUSE_FILEDLG" = yes; then
8605             echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6
8607           else
8608             echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8610           fi
8611
8612
8613           enablestring=
8614           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8615 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8616           no_cache=0
8617           # Check whether --enable-finddlg or --disable-finddlg was given.
8618 if test "${enable_finddlg+set}" = set; then
8619   enableval="$enable_finddlg"
8620
8621                           if test "$enableval" = yes; then
8622                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8623                           else
8624                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8625                           fi
8626
8627 else
8628
8629                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8630                           if test "x$LINE" != x ; then
8631                             eval "DEFAULT_$LINE"
8632                           else
8633                             no_cache=1
8634                           fi
8635
8636                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8637
8638 fi;
8639
8640           eval "$ac_cv_use_finddlg"
8641           if test "$no_cache" != 1; then
8642             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8643           fi
8644
8645           if test "$wxUSE_FINDREPLDLG" = yes; then
8646             echo "$as_me:$LINENO: result: yes" >&5
8647 echo "${ECHO_T}yes" >&6
8648           else
8649             echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8651           fi
8652
8653
8654           enablestring=
8655           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8656 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8657           no_cache=0
8658           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8659 if test "${enable_fontdlg+set}" = set; then
8660   enableval="$enable_fontdlg"
8661
8662                           if test "$enableval" = yes; then
8663                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8664                           else
8665                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8666                           fi
8667
8668 else
8669
8670                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8671                           if test "x$LINE" != x ; then
8672                             eval "DEFAULT_$LINE"
8673                           else
8674                             no_cache=1
8675                           fi
8676
8677                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8678
8679 fi;
8680
8681           eval "$ac_cv_use_fontdlg"
8682           if test "$no_cache" != 1; then
8683             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8684           fi
8685
8686           if test "$wxUSE_FONTDLG" = yes; then
8687             echo "$as_me:$LINENO: result: yes" >&5
8688 echo "${ECHO_T}yes" >&6
8689           else
8690             echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6
8692           fi
8693
8694
8695           enablestring=
8696           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8697 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8698           no_cache=0
8699           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8700 if test "${enable_dirdlg+set}" = set; then
8701   enableval="$enable_dirdlg"
8702
8703                           if test "$enableval" = yes; then
8704                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8705                           else
8706                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8707                           fi
8708
8709 else
8710
8711                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8712                           if test "x$LINE" != x ; then
8713                             eval "DEFAULT_$LINE"
8714                           else
8715                             no_cache=1
8716                           fi
8717
8718                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8719
8720 fi;
8721
8722           eval "$ac_cv_use_dirdlg"
8723           if test "$no_cache" != 1; then
8724             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8725           fi
8726
8727           if test "$wxUSE_DIRDLG" = yes; then
8728             echo "$as_me:$LINENO: result: yes" >&5
8729 echo "${ECHO_T}yes" >&6
8730           else
8731             echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6
8733           fi
8734
8735
8736           enablestring=
8737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8738 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8739           no_cache=0
8740           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8741 if test "${enable_msgdlg+set}" = set; then
8742   enableval="$enable_msgdlg"
8743
8744                           if test "$enableval" = yes; then
8745                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8746                           else
8747                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8748                           fi
8749
8750 else
8751
8752                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8753                           if test "x$LINE" != x ; then
8754                             eval "DEFAULT_$LINE"
8755                           else
8756                             no_cache=1
8757                           fi
8758
8759                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8760
8761 fi;
8762
8763           eval "$ac_cv_use_msgdlg"
8764           if test "$no_cache" != 1; then
8765             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8766           fi
8767
8768           if test "$wxUSE_MSGDLG" = yes; then
8769             echo "$as_me:$LINENO: result: yes" >&5
8770 echo "${ECHO_T}yes" >&6
8771           else
8772             echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6
8774           fi
8775
8776
8777           enablestring=
8778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8779 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8780           no_cache=0
8781           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8782 if test "${enable_numberdlg+set}" = set; then
8783   enableval="$enable_numberdlg"
8784
8785                           if test "$enableval" = yes; then
8786                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8787                           else
8788                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8789                           fi
8790
8791 else
8792
8793                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8794                           if test "x$LINE" != x ; then
8795                             eval "DEFAULT_$LINE"
8796                           else
8797                             no_cache=1
8798                           fi
8799
8800                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8801
8802 fi;
8803
8804           eval "$ac_cv_use_numberdlg"
8805           if test "$no_cache" != 1; then
8806             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8807           fi
8808
8809           if test "$wxUSE_NUMBERDLG" = yes; then
8810             echo "$as_me:$LINENO: result: yes" >&5
8811 echo "${ECHO_T}yes" >&6
8812           else
8813             echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8815           fi
8816
8817
8818           enablestring=
8819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8820 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8821           no_cache=0
8822           # Check whether --enable-splash or --disable-splash was given.
8823 if test "${enable_splash+set}" = set; then
8824   enableval="$enable_splash"
8825
8826                           if test "$enableval" = yes; then
8827                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8828                           else
8829                             ac_cv_use_splash='wxUSE_SPLASH=no'
8830                           fi
8831
8832 else
8833
8834                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8835                           if test "x$LINE" != x ; then
8836                             eval "DEFAULT_$LINE"
8837                           else
8838                             no_cache=1
8839                           fi
8840
8841                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8842
8843 fi;
8844
8845           eval "$ac_cv_use_splash"
8846           if test "$no_cache" != 1; then
8847             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8848           fi
8849
8850           if test "$wxUSE_SPLASH" = yes; then
8851             echo "$as_me:$LINENO: result: yes" >&5
8852 echo "${ECHO_T}yes" >&6
8853           else
8854             echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856           fi
8857
8858
8859           enablestring=
8860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8861 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8862           no_cache=0
8863           # Check whether --enable-textdlg or --disable-textdlg was given.
8864 if test "${enable_textdlg+set}" = set; then
8865   enableval="$enable_textdlg"
8866
8867                           if test "$enableval" = yes; then
8868                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8869                           else
8870                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8871                           fi
8872
8873 else
8874
8875                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8876                           if test "x$LINE" != x ; then
8877                             eval "DEFAULT_$LINE"
8878                           else
8879                             no_cache=1
8880                           fi
8881
8882                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8883
8884 fi;
8885
8886           eval "$ac_cv_use_textdlg"
8887           if test "$no_cache" != 1; then
8888             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8889           fi
8890
8891           if test "$wxUSE_TEXTDLG" = yes; then
8892             echo "$as_me:$LINENO: result: yes" >&5
8893 echo "${ECHO_T}yes" >&6
8894           else
8895             echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8897           fi
8898
8899
8900           enablestring=
8901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8902 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8903           no_cache=0
8904           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8905 if test "${enable_tipdlg+set}" = set; then
8906   enableval="$enable_tipdlg"
8907
8908                           if test "$enableval" = yes; then
8909                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8910                           else
8911                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8912                           fi
8913
8914 else
8915
8916                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8917                           if test "x$LINE" != x ; then
8918                             eval "DEFAULT_$LINE"
8919                           else
8920                             no_cache=1
8921                           fi
8922
8923                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8924
8925 fi;
8926
8927           eval "$ac_cv_use_tipdlg"
8928           if test "$no_cache" != 1; then
8929             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8930           fi
8931
8932           if test "$wxUSE_STARTUP_TIPS" = yes; then
8933             echo "$as_me:$LINENO: result: yes" >&5
8934 echo "${ECHO_T}yes" >&6
8935           else
8936             echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938           fi
8939
8940
8941           enablestring=
8942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8943 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8944           no_cache=0
8945           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8946 if test "${enable_progressdlg+set}" = set; then
8947   enableval="$enable_progressdlg"
8948
8949                           if test "$enableval" = yes; then
8950                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8951                           else
8952                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8953                           fi
8954
8955 else
8956
8957                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8958                           if test "x$LINE" != x ; then
8959                             eval "DEFAULT_$LINE"
8960                           else
8961                             no_cache=1
8962                           fi
8963
8964                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8965
8966 fi;
8967
8968           eval "$ac_cv_use_progressdlg"
8969           if test "$no_cache" != 1; then
8970             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8971           fi
8972
8973           if test "$wxUSE_PROGRESSDLG" = yes; then
8974             echo "$as_me:$LINENO: result: yes" >&5
8975 echo "${ECHO_T}yes" >&6
8976           else
8977             echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979           fi
8980
8981
8982           enablestring=
8983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8984 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8985           no_cache=0
8986           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8987 if test "${enable_wizarddlg+set}" = set; then
8988   enableval="$enable_wizarddlg"
8989
8990                           if test "$enableval" = yes; then
8991                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8992                           else
8993                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8994                           fi
8995
8996 else
8997
8998                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8999                           if test "x$LINE" != x ; then
9000                             eval "DEFAULT_$LINE"
9001                           else
9002                             no_cache=1
9003                           fi
9004
9005                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9006
9007 fi;
9008
9009           eval "$ac_cv_use_wizarddlg"
9010           if test "$no_cache" != 1; then
9011             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9012           fi
9013
9014           if test "$wxUSE_WIZARDDLG" = yes; then
9015             echo "$as_me:$LINENO: result: yes" >&5
9016 echo "${ECHO_T}yes" >&6
9017           else
9018             echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020           fi
9021
9022
9023
9024
9025           enablestring=
9026           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9027 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9028           no_cache=0
9029           # Check whether --enable-menus or --disable-menus was given.
9030 if test "${enable_menus+set}" = set; then
9031   enableval="$enable_menus"
9032
9033                           if test "$enableval" = yes; then
9034                             ac_cv_use_menus='wxUSE_MENUS=yes'
9035                           else
9036                             ac_cv_use_menus='wxUSE_MENUS=no'
9037                           fi
9038
9039 else
9040
9041                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9042                           if test "x$LINE" != x ; then
9043                             eval "DEFAULT_$LINE"
9044                           else
9045                             no_cache=1
9046                           fi
9047
9048                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9049
9050 fi;
9051
9052           eval "$ac_cv_use_menus"
9053           if test "$no_cache" != 1; then
9054             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9055           fi
9056
9057           if test "$wxUSE_MENUS" = yes; then
9058             echo "$as_me:$LINENO: result: yes" >&5
9059 echo "${ECHO_T}yes" >&6
9060           else
9061             echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063           fi
9064
9065
9066           enablestring=
9067           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9068 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9069           no_cache=0
9070           # Check whether --enable-miniframe or --disable-miniframe was given.
9071 if test "${enable_miniframe+set}" = set; then
9072   enableval="$enable_miniframe"
9073
9074                           if test "$enableval" = yes; then
9075                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9076                           else
9077                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9078                           fi
9079
9080 else
9081
9082                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9083                           if test "x$LINE" != x ; then
9084                             eval "DEFAULT_$LINE"
9085                           else
9086                             no_cache=1
9087                           fi
9088
9089                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9090
9091 fi;
9092
9093           eval "$ac_cv_use_miniframe"
9094           if test "$no_cache" != 1; then
9095             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9096           fi
9097
9098           if test "$wxUSE_MINIFRAME" = yes; then
9099             echo "$as_me:$LINENO: result: yes" >&5
9100 echo "${ECHO_T}yes" >&6
9101           else
9102             echo "$as_me:$LINENO: result: no" >&5
9103 echo "${ECHO_T}no" >&6
9104           fi
9105
9106
9107           enablestring=
9108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9109 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9110           no_cache=0
9111           # Check whether --enable-tooltips or --disable-tooltips was given.
9112 if test "${enable_tooltips+set}" = set; then
9113   enableval="$enable_tooltips"
9114
9115                           if test "$enableval" = yes; then
9116                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9117                           else
9118                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9119                           fi
9120
9121 else
9122
9123                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9124                           if test "x$LINE" != x ; then
9125                             eval "DEFAULT_$LINE"
9126                           else
9127                             no_cache=1
9128                           fi
9129
9130                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9131
9132 fi;
9133
9134           eval "$ac_cv_use_tooltips"
9135           if test "$no_cache" != 1; then
9136             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9137           fi
9138
9139           if test "$wxUSE_TOOLTIPS" = yes; then
9140             echo "$as_me:$LINENO: result: yes" >&5
9141 echo "${ECHO_T}yes" >&6
9142           else
9143             echo "$as_me:$LINENO: result: no" >&5
9144 echo "${ECHO_T}no" >&6
9145           fi
9146
9147
9148           enablestring=
9149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9150 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9151           no_cache=0
9152           # Check whether --enable-splines or --disable-splines was given.
9153 if test "${enable_splines+set}" = set; then
9154   enableval="$enable_splines"
9155
9156                           if test "$enableval" = yes; then
9157                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9158                           else
9159                             ac_cv_use_splines='wxUSE_SPLINES=no'
9160                           fi
9161
9162 else
9163
9164                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9165                           if test "x$LINE" != x ; then
9166                             eval "DEFAULT_$LINE"
9167                           else
9168                             no_cache=1
9169                           fi
9170
9171                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9172
9173 fi;
9174
9175           eval "$ac_cv_use_splines"
9176           if test "$no_cache" != 1; then
9177             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9178           fi
9179
9180           if test "$wxUSE_SPLINES" = yes; then
9181             echo "$as_me:$LINENO: result: yes" >&5
9182 echo "${ECHO_T}yes" >&6
9183           else
9184             echo "$as_me:$LINENO: result: no" >&5
9185 echo "${ECHO_T}no" >&6
9186           fi
9187
9188
9189           enablestring=
9190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9191 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9192           no_cache=0
9193           # Check whether --enable-validators or --disable-validators was given.
9194 if test "${enable_validators+set}" = set; then
9195   enableval="$enable_validators"
9196
9197                           if test "$enableval" = yes; then
9198                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9199                           else
9200                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9201                           fi
9202
9203 else
9204
9205                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9206                           if test "x$LINE" != x ; then
9207                             eval "DEFAULT_$LINE"
9208                           else
9209                             no_cache=1
9210                           fi
9211
9212                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9213
9214 fi;
9215
9216           eval "$ac_cv_use_validators"
9217           if test "$no_cache" != 1; then
9218             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9219           fi
9220
9221           if test "$wxUSE_VALIDATORS" = yes; then
9222             echo "$as_me:$LINENO: result: yes" >&5
9223 echo "${ECHO_T}yes" >&6
9224           else
9225             echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6
9227           fi
9228
9229
9230           enablestring=
9231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9232 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9233           no_cache=0
9234           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9235 if test "${enable_busyinfo+set}" = set; then
9236   enableval="$enable_busyinfo"
9237
9238                           if test "$enableval" = yes; then
9239                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9240                           else
9241                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9242                           fi
9243
9244 else
9245
9246                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9247                           if test "x$LINE" != x ; then
9248                             eval "DEFAULT_$LINE"
9249                           else
9250                             no_cache=1
9251                           fi
9252
9253                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9254
9255 fi;
9256
9257           eval "$ac_cv_use_busyinfo"
9258           if test "$no_cache" != 1; then
9259             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9260           fi
9261
9262           if test "$wxUSE_BUSYINFO" = yes; then
9263             echo "$as_me:$LINENO: result: yes" >&5
9264 echo "${ECHO_T}yes" >&6
9265           else
9266             echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9268           fi
9269
9270
9271           enablestring=
9272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9273 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9274           no_cache=0
9275           # Check whether --enable-joystick or --disable-joystick was given.
9276 if test "${enable_joystick+set}" = set; then
9277   enableval="$enable_joystick"
9278
9279                           if test "$enableval" = yes; then
9280                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9281                           else
9282                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9283                           fi
9284
9285 else
9286
9287                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9288                           if test "x$LINE" != x ; then
9289                             eval "DEFAULT_$LINE"
9290                           else
9291                             no_cache=1
9292                           fi
9293
9294                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9295
9296 fi;
9297
9298           eval "$ac_cv_use_joystick"
9299           if test "$no_cache" != 1; then
9300             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9301           fi
9302
9303           if test "$wxUSE_JOYSTICK" = yes; then
9304             echo "$as_me:$LINENO: result: yes" >&5
9305 echo "${ECHO_T}yes" >&6
9306           else
9307             echo "$as_me:$LINENO: result: no" >&5
9308 echo "${ECHO_T}no" >&6
9309           fi
9310
9311
9312           enablestring=
9313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9314 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9315           no_cache=0
9316           # Check whether --enable-metafile or --disable-metafile was given.
9317 if test "${enable_metafile+set}" = set; then
9318   enableval="$enable_metafile"
9319
9320                           if test "$enableval" = yes; then
9321                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9322                           else
9323                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9324                           fi
9325
9326 else
9327
9328                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9329                           if test "x$LINE" != x ; then
9330                             eval "DEFAULT_$LINE"
9331                           else
9332                             no_cache=1
9333                           fi
9334
9335                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9336
9337 fi;
9338
9339           eval "$ac_cv_use_metafile"
9340           if test "$no_cache" != 1; then
9341             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9342           fi
9343
9344           if test "$wxUSE_METAFILE" = yes; then
9345             echo "$as_me:$LINENO: result: yes" >&5
9346 echo "${ECHO_T}yes" >&6
9347           else
9348             echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6
9350           fi
9351
9352
9353           enablestring=
9354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9355 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9356           no_cache=0
9357           # Check whether --enable-dragimage or --disable-dragimage was given.
9358 if test "${enable_dragimage+set}" = set; then
9359   enableval="$enable_dragimage"
9360
9361                           if test "$enableval" = yes; then
9362                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9363                           else
9364                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9365                           fi
9366
9367 else
9368
9369                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9370                           if test "x$LINE" != x ; then
9371                             eval "DEFAULT_$LINE"
9372                           else
9373                             no_cache=1
9374                           fi
9375
9376                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9377
9378 fi;
9379
9380           eval "$ac_cv_use_dragimage"
9381           if test "$no_cache" != 1; then
9382             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9383           fi
9384
9385           if test "$wxUSE_DRAGIMAGE" = yes; then
9386             echo "$as_me:$LINENO: result: yes" >&5
9387 echo "${ECHO_T}yes" >&6
9388           else
9389             echo "$as_me:$LINENO: result: no" >&5
9390 echo "${ECHO_T}no" >&6
9391           fi
9392
9393
9394           enablestring=
9395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9396 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9397           no_cache=0
9398           # Check whether --enable-accessibility or --disable-accessibility was given.
9399 if test "${enable_accessibility+set}" = set; then
9400   enableval="$enable_accessibility"
9401
9402                           if test "$enableval" = yes; then
9403                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9404                           else
9405                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9406                           fi
9407
9408 else
9409
9410                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9411                           if test "x$LINE" != x ; then
9412                             eval "DEFAULT_$LINE"
9413                           else
9414                             no_cache=1
9415                           fi
9416
9417                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9418
9419 fi;
9420
9421           eval "$ac_cv_use_accessibility"
9422           if test "$no_cache" != 1; then
9423             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9424           fi
9425
9426           if test "$wxUSE_ACCESSIBILITY" = yes; then
9427             echo "$as_me:$LINENO: result: yes" >&5
9428 echo "${ECHO_T}yes" >&6
9429           else
9430             echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6
9432           fi
9433
9434
9435
9436
9437           enablestring=
9438           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9439 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9440           no_cache=0
9441           # Check whether --enable-palette or --disable-palette was given.
9442 if test "${enable_palette+set}" = set; then
9443   enableval="$enable_palette"
9444
9445                           if test "$enableval" = yes; then
9446                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9447                           else
9448                             ac_cv_use_palette='wxUSE_PALETTE=no'
9449                           fi
9450
9451 else
9452
9453                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9454                           if test "x$LINE" != x ; then
9455                             eval "DEFAULT_$LINE"
9456                           else
9457                             no_cache=1
9458                           fi
9459
9460                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9461
9462 fi;
9463
9464           eval "$ac_cv_use_palette"
9465           if test "$no_cache" != 1; then
9466             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9467           fi
9468
9469           if test "$wxUSE_PALETTE" = yes; then
9470             echo "$as_me:$LINENO: result: yes" >&5
9471 echo "${ECHO_T}yes" >&6
9472           else
9473             echo "$as_me:$LINENO: result: no" >&5
9474 echo "${ECHO_T}no" >&6
9475           fi
9476
9477
9478           enablestring=
9479           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9480 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9481           no_cache=0
9482           # Check whether --enable-image or --disable-image was given.
9483 if test "${enable_image+set}" = set; then
9484   enableval="$enable_image"
9485
9486                           if test "$enableval" = yes; then
9487                             ac_cv_use_image='wxUSE_IMAGE=yes'
9488                           else
9489                             ac_cv_use_image='wxUSE_IMAGE=no'
9490                           fi
9491
9492 else
9493
9494                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9495                           if test "x$LINE" != x ; then
9496                             eval "DEFAULT_$LINE"
9497                           else
9498                             no_cache=1
9499                           fi
9500
9501                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9502
9503 fi;
9504
9505           eval "$ac_cv_use_image"
9506           if test "$no_cache" != 1; then
9507             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9508           fi
9509
9510           if test "$wxUSE_IMAGE" = yes; then
9511             echo "$as_me:$LINENO: result: yes" >&5
9512 echo "${ECHO_T}yes" >&6
9513           else
9514             echo "$as_me:$LINENO: result: no" >&5
9515 echo "${ECHO_T}no" >&6
9516           fi
9517
9518
9519           enablestring=
9520           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9521 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9522           no_cache=0
9523           # Check whether --enable-gif or --disable-gif was given.
9524 if test "${enable_gif+set}" = set; then
9525   enableval="$enable_gif"
9526
9527                           if test "$enableval" = yes; then
9528                             ac_cv_use_gif='wxUSE_GIF=yes'
9529                           else
9530                             ac_cv_use_gif='wxUSE_GIF=no'
9531                           fi
9532
9533 else
9534
9535                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9536                           if test "x$LINE" != x ; then
9537                             eval "DEFAULT_$LINE"
9538                           else
9539                             no_cache=1
9540                           fi
9541
9542                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9543
9544 fi;
9545
9546           eval "$ac_cv_use_gif"
9547           if test "$no_cache" != 1; then
9548             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9549           fi
9550
9551           if test "$wxUSE_GIF" = yes; then
9552             echo "$as_me:$LINENO: result: yes" >&5
9553 echo "${ECHO_T}yes" >&6
9554           else
9555             echo "$as_me:$LINENO: result: no" >&5
9556 echo "${ECHO_T}no" >&6
9557           fi
9558
9559
9560           enablestring=
9561           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9562 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9563           no_cache=0
9564           # Check whether --enable-pcx or --disable-pcx was given.
9565 if test "${enable_pcx+set}" = set; then
9566   enableval="$enable_pcx"
9567
9568                           if test "$enableval" = yes; then
9569                             ac_cv_use_pcx='wxUSE_PCX=yes'
9570                           else
9571                             ac_cv_use_pcx='wxUSE_PCX=no'
9572                           fi
9573
9574 else
9575
9576                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9577                           if test "x$LINE" != x ; then
9578                             eval "DEFAULT_$LINE"
9579                           else
9580                             no_cache=1
9581                           fi
9582
9583                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9584
9585 fi;
9586
9587           eval "$ac_cv_use_pcx"
9588           if test "$no_cache" != 1; then
9589             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9590           fi
9591
9592           if test "$wxUSE_PCX" = yes; then
9593             echo "$as_me:$LINENO: result: yes" >&5
9594 echo "${ECHO_T}yes" >&6
9595           else
9596             echo "$as_me:$LINENO: result: no" >&5
9597 echo "${ECHO_T}no" >&6
9598           fi
9599
9600
9601           enablestring=
9602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9603 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9604           no_cache=0
9605           # Check whether --enable-iff or --disable-iff was given.
9606 if test "${enable_iff+set}" = set; then
9607   enableval="$enable_iff"
9608
9609                           if test "$enableval" = yes; then
9610                             ac_cv_use_iff='wxUSE_IFF=yes'
9611                           else
9612                             ac_cv_use_iff='wxUSE_IFF=no'
9613                           fi
9614
9615 else
9616
9617                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9618                           if test "x$LINE" != x ; then
9619                             eval "DEFAULT_$LINE"
9620                           else
9621                             no_cache=1
9622                           fi
9623
9624                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9625
9626 fi;
9627
9628           eval "$ac_cv_use_iff"
9629           if test "$no_cache" != 1; then
9630             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9631           fi
9632
9633           if test "$wxUSE_IFF" = yes; then
9634             echo "$as_me:$LINENO: result: yes" >&5
9635 echo "${ECHO_T}yes" >&6
9636           else
9637             echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9639           fi
9640
9641
9642           enablestring=
9643           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9644 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9645           no_cache=0
9646           # Check whether --enable-pnm or --disable-pnm was given.
9647 if test "${enable_pnm+set}" = set; then
9648   enableval="$enable_pnm"
9649
9650                           if test "$enableval" = yes; then
9651                             ac_cv_use_pnm='wxUSE_PNM=yes'
9652                           else
9653                             ac_cv_use_pnm='wxUSE_PNM=no'
9654                           fi
9655
9656 else
9657
9658                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9659                           if test "x$LINE" != x ; then
9660                             eval "DEFAULT_$LINE"
9661                           else
9662                             no_cache=1
9663                           fi
9664
9665                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9666
9667 fi;
9668
9669           eval "$ac_cv_use_pnm"
9670           if test "$no_cache" != 1; then
9671             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9672           fi
9673
9674           if test "$wxUSE_PNM" = yes; then
9675             echo "$as_me:$LINENO: result: yes" >&5
9676 echo "${ECHO_T}yes" >&6
9677           else
9678             echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6
9680           fi
9681
9682
9683           enablestring=
9684           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9685 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9686           no_cache=0
9687           # Check whether --enable-xpm or --disable-xpm was given.
9688 if test "${enable_xpm+set}" = set; then
9689   enableval="$enable_xpm"
9690
9691                           if test "$enableval" = yes; then
9692                             ac_cv_use_xpm='wxUSE_XPM=yes'
9693                           else
9694                             ac_cv_use_xpm='wxUSE_XPM=no'
9695                           fi
9696
9697 else
9698
9699                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9700                           if test "x$LINE" != x ; then
9701                             eval "DEFAULT_$LINE"
9702                           else
9703                             no_cache=1
9704                           fi
9705
9706                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9707
9708 fi;
9709
9710           eval "$ac_cv_use_xpm"
9711           if test "$no_cache" != 1; then
9712             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9713           fi
9714
9715           if test "$wxUSE_XPM" = yes; then
9716             echo "$as_me:$LINENO: result: yes" >&5
9717 echo "${ECHO_T}yes" >&6
9718           else
9719             echo "$as_me:$LINENO: result: no" >&5
9720 echo "${ECHO_T}no" >&6
9721           fi
9722
9723
9724           enablestring=
9725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9726 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9727           no_cache=0
9728           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9729 if test "${enable_ico_cur+set}" = set; then
9730   enableval="$enable_ico_cur"
9731
9732                           if test "$enableval" = yes; then
9733                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9734                           else
9735                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9736                           fi
9737
9738 else
9739
9740                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9741                           if test "x$LINE" != x ; then
9742                             eval "DEFAULT_$LINE"
9743                           else
9744                             no_cache=1
9745                           fi
9746
9747                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9748
9749 fi;
9750
9751           eval "$ac_cv_use_ico_cur"
9752           if test "$no_cache" != 1; then
9753             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9754           fi
9755
9756           if test "$wxUSE_ICO_CUR" = yes; then
9757             echo "$as_me:$LINENO: result: yes" >&5
9758 echo "${ECHO_T}yes" >&6
9759           else
9760             echo "$as_me:$LINENO: result: no" >&5
9761 echo "${ECHO_T}no" >&6
9762           fi
9763
9764
9765 fi
9766
9767
9768
9769           enablestring=
9770           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9771 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9772           no_cache=0
9773           # Check whether --enable-official_build or --disable-official_build was given.
9774 if test "${enable_official_build+set}" = set; then
9775   enableval="$enable_official_build"
9776
9777                           if test "$enableval" = yes; then
9778                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9779                           else
9780                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9781                           fi
9782
9783 else
9784
9785                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9786                           if test "x$LINE" != x ; then
9787                             eval "DEFAULT_$LINE"
9788                           else
9789                             no_cache=1
9790                           fi
9791
9792                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9793
9794 fi;
9795
9796           eval "$ac_cv_use_official_build"
9797           if test "$no_cache" != 1; then
9798             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9799           fi
9800
9801           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9802             echo "$as_me:$LINENO: result: yes" >&5
9803 echo "${ECHO_T}yes" >&6
9804           else
9805             echo "$as_me:$LINENO: result: no" >&5
9806 echo "${ECHO_T}no" >&6
9807           fi
9808
9809 # Check whether --enable-vendor or --disable-vendor was given.
9810 if test "${enable_vendor+set}" = set; then
9811   enableval="$enable_vendor"
9812   VENDOR="$enableval"
9813 fi;
9814 if test "x$VENDOR" = "x"; then
9815     VENDOR="custom"
9816 fi
9817
9818 case "${host}" in
9819   *-pc-os2_emx | *-pc-os2-emx )
9820     PATH_IFS=';'
9821   ;;
9822   *)
9823     PATH_IFS=':'
9824   ;;
9825 esac
9826
9827
9828
9829           echo "saving argument cache $wx_arg_cache_file"
9830           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9831
9832
9833
9834 echo "$as_me:$LINENO: checking for toolkit" >&5
9835 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9836
9837 # In Wine, we need to default to MSW, not GTK or MOTIF
9838 if test "$wxUSE_WINE" = "yes"; then
9839     DEFAULT_DEFAULT_wxUSE_GTK=0
9840     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9841     DEFAULT_DEFAULT_wxUSE_MSW=1
9842     wxUSE_SHARED=no
9843 fi
9844
9845 if test "$wxUSE_GUI" = "yes"; then
9846
9847     if test "$USE_BEOS" = 1; then
9848         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9849 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9850    { (exit 1); exit 1; }; }
9851     fi
9852
9853     if test "$TOOLKIT_GIVEN" = 1; then
9854             for toolkit in `echo $ALL_TOOLKITS`; do
9855         var=wxUSE_$toolkit
9856         eval "value=\$${var}"
9857         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9858       done
9859     else
9860             for toolkit in `echo $ALL_TOOLKITS`; do
9861         if test "$has_toolkit_in_cache" != 1; then
9862           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9863         else
9864           var=DEFAULT_wxUSE_$toolkit
9865         fi
9866         eval "wxUSE_$toolkit=\$${var}"
9867       done
9868     fi
9869
9870             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9871                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9872                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9873
9874         case "${host}" in
9875       *-pc-os2_emx | *-pc-os2-emx )
9876         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9877     esac
9878
9879     case "$NUM_TOOLKITS" in
9880       1)
9881       ;;
9882       0)
9883         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9884 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9885    { (exit 1); exit 1; }; }
9886       ;;
9887       *)
9888         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9889 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9890    { (exit 1); exit 1; }; }
9891     esac
9892
9893         for toolkit in `echo $ALL_TOOLKITS`; do
9894       var=wxUSE_$toolkit
9895       eval "value=\$${var}"
9896       if test "x$value" != x; then
9897         cache_var=CACHE_$toolkit
9898         eval "cache=\$${cache_var}"
9899         if test "$cache" = 1; then
9900           echo "$var=$value" >> ${wx_arg_cache_file}
9901         fi
9902         if test "$value" = 1; then
9903           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9904           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9905 echo "${ECHO_T}$toolkit_echo" >&6
9906         fi
9907       fi
9908     done
9909 else
9910     if test "x$host_alias" != "x"; then
9911         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9912 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9913     else
9914         echo "$as_me:$LINENO: result: base only" >&5
9915 echo "${ECHO_T}base only" >&6
9916     fi
9917 fi
9918
9919 wants_win32=0
9920 doesnt_want_win32=0
9921 case "${host}" in
9922   *-*-cygwin*)
9923       if test "$wxUSE_MSW" = 1 ; then
9924         wants_win32=1
9925       else
9926         doesnt_want_win32=1
9927       fi
9928   ;;
9929   *-*-mingw*)
9930       wants_win32=1
9931   ;;
9932 esac
9933
9934 if test "$wxUSE_WINE" = "yes"; then
9935     wants_win32=1
9936         CC=winegcc
9937     CXX=wineg++
9938     RESCOMP=wrc
9939     LDFLAGS_GUI="-mwindows"
9940 fi
9941
9942 if test "$wants_win32" = 1 ; then
9943     USE_UNIX=0
9944     USE_WIN32=1
9945     cat >>confdefs.h <<\_ACEOF
9946 #define __WIN32__ 1
9947 _ACEOF
9948
9949     cat >>confdefs.h <<\_ACEOF
9950 #define __WIN95__ 1
9951 _ACEOF
9952
9953     cat >>confdefs.h <<\_ACEOF
9954 #define __WINDOWS__ 1
9955 _ACEOF
9956
9957     cat >>confdefs.h <<\_ACEOF
9958 #define __GNUWIN32__ 1
9959 _ACEOF
9960
9961     cat >>confdefs.h <<\_ACEOF
9962 #define STRICT 1
9963 _ACEOF
9964
9965     cat >>confdefs.h <<\_ACEOF
9966 #define WINVER 0x0400
9967 _ACEOF
9968
9969 fi
9970 if test "$doesnt_want_win32" = 1 ; then
9971     USE_UNIX=1
9972     USE_WIN32=0
9973 fi
9974
9975 if test "$USE_UNIX" = 1 ; then
9976     wxUSE_UNIX=yes
9977     cat >>confdefs.h <<\_ACEOF
9978 #define __UNIX__ 1
9979 _ACEOF
9980
9981 fi
9982
9983
9984 cat >confcache <<\_ACEOF
9985 # This file is a shell script that caches the results of configure
9986 # tests run on this system so they can be shared between configure
9987 # scripts and configure runs, see configure's option --config-cache.
9988 # It is not useful on other systems.  If it contains results you don't
9989 # want to keep, you may remove or edit it.
9990 #
9991 # config.status only pays attention to the cache file if you give it
9992 # the --recheck option to rerun configure.
9993 #
9994 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9995 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9996 # following values.
9997
9998 _ACEOF
9999
10000 # The following way of writing the cache mishandles newlines in values,
10001 # but we know of no workaround that is simple, portable, and efficient.
10002 # So, don't put newlines in cache variables' values.
10003 # Ultrix sh set writes to stderr and can't be redirected directly,
10004 # and sets the high bit in the cache file unless we assign to the vars.
10005 {
10006   (set) 2>&1 |
10007     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10008     *ac_space=\ *)
10009       # `set' does not quote correctly, so add quotes (double-quote
10010       # substitution turns \\\\ into \\, and sed turns \\ into \).
10011       sed -n \
10012         "s/'/'\\\\''/g;
10013           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10014       ;;
10015     *)
10016       # `set' quotes correctly as required by POSIX, so do not add quotes.
10017       sed -n \
10018         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10019       ;;
10020     esac;
10021 } |
10022   sed '
10023      t clear
10024      : clear
10025      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10026      t end
10027      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10028      : end' >>confcache
10029 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10030   if test -w $cache_file; then
10031     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10032     cat confcache >$cache_file
10033   else
10034     echo "not updating unwritable cache $cache_file"
10035   fi
10036 fi
10037 rm -f confcache
10038
10039 if test "$build" != "$host" ; then
10040     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10041         CC=$host_alias-gcc
10042         CXX=$host_alias-c++
10043         AR=$host_alias-ar
10044         RANLIB=$host_alias-ranlib
10045         DLLTOOL=$host_alias-dlltool
10046         RESCOMP=$host_alias-windres
10047         LD=$host_alias-ld
10048         NM=$host_alias-nm
10049         STRIP=$host_alias-strip
10050     else
10051         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10052 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10053    { (exit 1); exit 1; }; }
10054     fi
10055 fi
10056
10057 CFLAGS=${CFLAGS:=}
10058 ac_ext=c
10059 ac_cpp='$CPP $CPPFLAGS'
10060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10063 if test -n "$ac_tool_prefix"; then
10064   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10066 echo "$as_me:$LINENO: checking for $ac_word" >&5
10067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10068 if test "${ac_cv_prog_CC+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   if test -n "$CC"; then
10072   ac_cv_prog_CC="$CC" # Let the user override the test.
10073 else
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077   IFS=$as_save_IFS
10078   test -z "$as_dir" && as_dir=.
10079   for ac_exec_ext in '' $ac_executable_extensions; do
10080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10083     break 2
10084   fi
10085 done
10086 done
10087
10088 fi
10089 fi
10090 CC=$ac_cv_prog_CC
10091 if test -n "$CC"; then
10092   echo "$as_me:$LINENO: result: $CC" >&5
10093 echo "${ECHO_T}$CC" >&6
10094 else
10095   echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6
10097 fi
10098
10099 fi
10100 if test -z "$ac_cv_prog_CC"; then
10101   ac_ct_CC=$CC
10102   # Extract the first word of "gcc", so it can be a program name with args.
10103 set dummy gcc; ac_word=$2
10104 echo "$as_me:$LINENO: checking for $ac_word" >&5
10105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   if test -n "$ac_ct_CC"; then
10110   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115   IFS=$as_save_IFS
10116   test -z "$as_dir" && as_dir=.
10117   for ac_exec_ext in '' $ac_executable_extensions; do
10118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119     ac_cv_prog_ac_ct_CC="gcc"
10120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121     break 2
10122   fi
10123 done
10124 done
10125
10126 fi
10127 fi
10128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10129 if test -n "$ac_ct_CC"; then
10130   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10131 echo "${ECHO_T}$ac_ct_CC" >&6
10132 else
10133   echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6
10135 fi
10136
10137   CC=$ac_ct_CC
10138 else
10139   CC="$ac_cv_prog_CC"
10140 fi
10141
10142 if test -z "$CC"; then
10143   if test -n "$ac_tool_prefix"; then
10144   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10145 set dummy ${ac_tool_prefix}cc; ac_word=$2
10146 echo "$as_me:$LINENO: checking for $ac_word" >&5
10147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10148 if test "${ac_cv_prog_CC+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   if test -n "$CC"; then
10152   ac_cv_prog_CC="$CC" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157   IFS=$as_save_IFS
10158   test -z "$as_dir" && as_dir=.
10159   for ac_exec_ext in '' $ac_executable_extensions; do
10160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161     ac_cv_prog_CC="${ac_tool_prefix}cc"
10162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10163     break 2
10164   fi
10165 done
10166 done
10167
10168 fi
10169 fi
10170 CC=$ac_cv_prog_CC
10171 if test -n "$CC"; then
10172   echo "$as_me:$LINENO: result: $CC" >&5
10173 echo "${ECHO_T}$CC" >&6
10174 else
10175   echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6
10177 fi
10178
10179 fi
10180 if test -z "$ac_cv_prog_CC"; then
10181   ac_ct_CC=$CC
10182   # Extract the first word of "cc", so it can be a program name with args.
10183 set dummy cc; ac_word=$2
10184 echo "$as_me:$LINENO: checking for $ac_word" >&5
10185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   if test -n "$ac_ct_CC"; then
10190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10191 else
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195   IFS=$as_save_IFS
10196   test -z "$as_dir" && as_dir=.
10197   for ac_exec_ext in '' $ac_executable_extensions; do
10198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199     ac_cv_prog_ac_ct_CC="cc"
10200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10201     break 2
10202   fi
10203 done
10204 done
10205
10206 fi
10207 fi
10208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10209 if test -n "$ac_ct_CC"; then
10210   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10211 echo "${ECHO_T}$ac_ct_CC" >&6
10212 else
10213   echo "$as_me:$LINENO: result: no" >&5
10214 echo "${ECHO_T}no" >&6
10215 fi
10216
10217   CC=$ac_ct_CC
10218 else
10219   CC="$ac_cv_prog_CC"
10220 fi
10221
10222 fi
10223 if test -z "$CC"; then
10224   # Extract the first word of "cc", so it can be a program name with args.
10225 set dummy cc; ac_word=$2
10226 echo "$as_me:$LINENO: checking for $ac_word" >&5
10227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10228 if test "${ac_cv_prog_CC+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231   if test -n "$CC"; then
10232   ac_cv_prog_CC="$CC" # Let the user override the test.
10233 else
10234   ac_prog_rejected=no
10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236 for as_dir in $PATH
10237 do
10238   IFS=$as_save_IFS
10239   test -z "$as_dir" && as_dir=.
10240   for ac_exec_ext in '' $ac_executable_extensions; do
10241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10243        ac_prog_rejected=yes
10244        continue
10245      fi
10246     ac_cv_prog_CC="cc"
10247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10248     break 2
10249   fi
10250 done
10251 done
10252
10253 if test $ac_prog_rejected = yes; then
10254   # We found a bogon in the path, so make sure we never use it.
10255   set dummy $ac_cv_prog_CC
10256   shift
10257   if test $# != 0; then
10258     # We chose a different compiler from the bogus one.
10259     # However, it has the same basename, so the bogon will be chosen
10260     # first if we set CC to just the basename; use the full file name.
10261     shift
10262     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10263   fi
10264 fi
10265 fi
10266 fi
10267 CC=$ac_cv_prog_CC
10268 if test -n "$CC"; then
10269   echo "$as_me:$LINENO: result: $CC" >&5
10270 echo "${ECHO_T}$CC" >&6
10271 else
10272   echo "$as_me:$LINENO: result: no" >&5
10273 echo "${ECHO_T}no" >&6
10274 fi
10275
10276 fi
10277 if test -z "$CC"; then
10278   if test -n "$ac_tool_prefix"; then
10279   for ac_prog in cl
10280   do
10281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10283 echo "$as_me:$LINENO: checking for $ac_word" >&5
10284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285 if test "${ac_cv_prog_CC+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   if test -n "$CC"; then
10289   ac_cv_prog_CC="$CC" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296   for ac_exec_ext in '' $ac_executable_extensions; do
10297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303 done
10304
10305 fi
10306 fi
10307 CC=$ac_cv_prog_CC
10308 if test -n "$CC"; then
10309   echo "$as_me:$LINENO: result: $CC" >&5
10310 echo "${ECHO_T}$CC" >&6
10311 else
10312   echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6
10314 fi
10315
10316     test -n "$CC" && break
10317   done
10318 fi
10319 if test -z "$CC"; then
10320   ac_ct_CC=$CC
10321   for ac_prog in cl
10322 do
10323   # Extract the first word of "$ac_prog", so it can be a program name with args.
10324 set dummy $ac_prog; ac_word=$2
10325 echo "$as_me:$LINENO: checking for $ac_word" >&5
10326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   if test -n "$ac_ct_CC"; then
10331   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10332 else
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10335 do
10336   IFS=$as_save_IFS
10337   test -z "$as_dir" && as_dir=.
10338   for ac_exec_ext in '' $ac_executable_extensions; do
10339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340     ac_cv_prog_ac_ct_CC="$ac_prog"
10341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10342     break 2
10343   fi
10344 done
10345 done
10346
10347 fi
10348 fi
10349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10350 if test -n "$ac_ct_CC"; then
10351   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10352 echo "${ECHO_T}$ac_ct_CC" >&6
10353 else
10354   echo "$as_me:$LINENO: result: no" >&5
10355 echo "${ECHO_T}no" >&6
10356 fi
10357
10358   test -n "$ac_ct_CC" && break
10359 done
10360
10361   CC=$ac_ct_CC
10362 fi
10363
10364 fi
10365
10366
10367 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10368 See \`config.log' for more details." >&5
10369 echo "$as_me: error: no acceptable C compiler found in \$PATH
10370 See \`config.log' for more details." >&2;}
10371    { (exit 1); exit 1; }; }
10372
10373 # Provide some information about the compiler.
10374 echo "$as_me:$LINENO:" \
10375      "checking for C compiler version" >&5
10376 ac_compiler=`set X $ac_compile; echo $2`
10377 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10378   (eval $ac_compiler --version </dev/null >&5) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }
10382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10383   (eval $ac_compiler -v </dev/null >&5) 2>&5
10384   ac_status=$?
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); }
10387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10388   (eval $ac_compiler -V </dev/null >&5) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }
10392
10393 cat >conftest.$ac_ext <<_ACEOF
10394 #line $LINENO "configure"
10395 /* confdefs.h.  */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h.  */
10400
10401 int
10402 main ()
10403 {
10404
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 ac_clean_files_save=$ac_clean_files
10410 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10411 # Try to create an executable without -o first, disregard a.out.
10412 # It will help us diagnose broken compilers, and finding out an intuition
10413 # of exeext.
10414 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10415 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10416 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10417 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10418   (eval $ac_link_default) 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; then
10422   # Find the output, starting from the most likely.  This scheme is
10423 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10424 # resort.
10425
10426 # Be careful to initialize this variable, since it used to be cached.
10427 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10428 ac_cv_exeext=
10429 # b.out is created by i960 compilers.
10430 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10431 do
10432   test -f "$ac_file" || continue
10433   case $ac_file in
10434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10435         ;;
10436     conftest.$ac_ext )
10437         # This is the source file.
10438         ;;
10439     [ab].out )
10440         # We found the default executable, but exeext='' is most
10441         # certainly right.
10442         break;;
10443     *.* )
10444         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10445         # FIXME: I believe we export ac_cv_exeext for Libtool,
10446         # but it would be cool to find out if it's true.  Does anybody
10447         # maintain Libtool? --akim.
10448         export ac_cv_exeext
10449         break;;
10450     * )
10451         break;;
10452   esac
10453 done
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10459 See \`config.log' for more details." >&5
10460 echo "$as_me: error: C compiler cannot create executables
10461 See \`config.log' for more details." >&2;}
10462    { (exit 77); exit 77; }; }
10463 fi
10464
10465 ac_exeext=$ac_cv_exeext
10466 echo "$as_me:$LINENO: result: $ac_file" >&5
10467 echo "${ECHO_T}$ac_file" >&6
10468
10469 # Check the compiler produces executables we can run.  If not, either
10470 # the compiler is broken, or we cross compile.
10471 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10472 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10473 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10474 # If not cross compiling, check that we can run a simple program.
10475 if test "$cross_compiling" != yes; then
10476   if { ac_try='./$ac_file'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482     cross_compiling=no
10483   else
10484     if test "$cross_compiling" = maybe; then
10485         cross_compiling=yes
10486     else
10487         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10488 If you meant to cross compile, use \`--host'.
10489 See \`config.log' for more details." >&5
10490 echo "$as_me: error: cannot run C compiled programs.
10491 If you meant to cross compile, use \`--host'.
10492 See \`config.log' for more details." >&2;}
10493    { (exit 1); exit 1; }; }
10494     fi
10495   fi
10496 fi
10497 echo "$as_me:$LINENO: result: yes" >&5
10498 echo "${ECHO_T}yes" >&6
10499
10500 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10501 ac_clean_files=$ac_clean_files_save
10502 # Check the compiler produces executables we can run.  If not, either
10503 # the compiler is broken, or we cross compile.
10504 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10505 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10506 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10507 echo "${ECHO_T}$cross_compiling" >&6
10508
10509 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10510 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512   (eval $ac_link) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; then
10516   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10517 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10518 # work properly (i.e., refer to `conftest.exe'), while it won't with
10519 # `rm'.
10520 for ac_file in conftest.exe conftest conftest.*; do
10521   test -f "$ac_file" || continue
10522   case $ac_file in
10523     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10524     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10525           export ac_cv_exeext
10526           break;;
10527     * ) break;;
10528   esac
10529 done
10530 else
10531   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10532 See \`config.log' for more details." >&5
10533 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10534 See \`config.log' for more details." >&2;}
10535    { (exit 1); exit 1; }; }
10536 fi
10537
10538 rm -f conftest$ac_cv_exeext
10539 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10540 echo "${ECHO_T}$ac_cv_exeext" >&6
10541
10542 rm -f conftest.$ac_ext
10543 EXEEXT=$ac_cv_exeext
10544 ac_exeext=$EXEEXT
10545 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10546 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10547 if test "${ac_cv_objext+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557
10558 int
10559 main ()
10560 {
10561
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.o conftest.obj
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568   (eval $ac_compile) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; then
10572   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10573   case $ac_file in
10574     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10575     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10576        break;;
10577   esac
10578 done
10579 else
10580   echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10582
10583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10584 See \`config.log' for more details." >&5
10585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10586 See \`config.log' for more details." >&2;}
10587    { (exit 1); exit 1; }; }
10588 fi
10589
10590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10591 fi
10592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10593 echo "${ECHO_T}$ac_cv_objext" >&6
10594 OBJEXT=$ac_cv_objext
10595 ac_objext=$OBJEXT
10596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608
10609 int
10610 main ()
10611 {
10612 #ifndef __GNUC__
10613        choke me
10614 #endif
10615
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 rm -f conftest.$ac_objext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622   (eval $ac_compile) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } &&
10626          { ac_try='test -s conftest.$ac_objext'
10627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628   (eval $ac_try) 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   ac_compiler_gnu=yes
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637 ac_compiler_gnu=no
10638 fi
10639 rm -f conftest.$ac_objext conftest.$ac_ext
10640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10641
10642 fi
10643 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10644 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10645 GCC=`test $ac_compiler_gnu = yes && echo yes`
10646 ac_test_CFLAGS=${CFLAGS+set}
10647 ac_save_CFLAGS=$CFLAGS
10648 CFLAGS="-g"
10649 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10650 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10651 if test "${ac_cv_prog_cc_g+set}" = set; then
10652   echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654   cat >conftest.$ac_ext <<_ACEOF
10655 #line $LINENO "configure"
10656 /* confdefs.h.  */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h.  */
10661
10662 int
10663 main ()
10664 {
10665
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10672   (eval $ac_compile) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } &&
10676          { ac_try='test -s conftest.$ac_objext'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   ac_cv_prog_cc_g=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_prog_cc_g=no
10688 fi
10689 rm -f conftest.$ac_objext conftest.$ac_ext
10690 fi
10691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10692 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10693 if test "$ac_test_CFLAGS" = set; then
10694   CFLAGS=$ac_save_CFLAGS
10695 elif test $ac_cv_prog_cc_g = yes; then
10696   if test "$GCC" = yes; then
10697     CFLAGS="-g -O2"
10698   else
10699     CFLAGS="-g"
10700   fi
10701 else
10702   if test "$GCC" = yes; then
10703     CFLAGS="-O2"
10704   else
10705     CFLAGS=
10706   fi
10707 fi
10708 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10709 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10710 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   ac_cv_prog_cc_stdc=no
10714 ac_save_CC=$CC
10715 cat >conftest.$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722 #include <stdarg.h>
10723 #include <stdio.h>
10724 #include <sys/types.h>
10725 #include <sys/stat.h>
10726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10727 struct buf { int x; };
10728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10729 static char *e (p, i)
10730      char **p;
10731      int i;
10732 {
10733   return p[i];
10734 }
10735 static char *f (char * (*g) (char **, int), char **p, ...)
10736 {
10737   char *s;
10738   va_list v;
10739   va_start (v,p);
10740   s = g (p, va_arg (v,int));
10741   va_end (v);
10742   return s;
10743 }
10744 int test (int i, double x);
10745 struct s1 {int (*f) (int a);};
10746 struct s2 {int (*f) (double a);};
10747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10748 int argc;
10749 char **argv;
10750 int
10751 main ()
10752 {
10753 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 # Don't try gcc -ansi; that turns off useful extensions and
10759 # breaks some systems' header files.
10760 # AIX                   -qlanglvl=ansi
10761 # Ultrix and OSF/1      -std1
10762 # HP-UX 10.20 and later -Ae
10763 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10764 # SVR4                  -Xc -D__EXTENSIONS__
10765 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10766 do
10767   CC="$ac_save_CC $ac_arg"
10768   rm -f conftest.$ac_objext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770   (eval $ac_compile) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } &&
10774          { ac_try='test -s conftest.$ac_objext'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; }; then
10780   ac_cv_prog_cc_stdc=$ac_arg
10781 break
10782 else
10783   echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 fi
10787 rm -f conftest.$ac_objext
10788 done
10789 rm -f conftest.$ac_ext conftest.$ac_objext
10790 CC=$ac_save_CC
10791
10792 fi
10793
10794 case "x$ac_cv_prog_cc_stdc" in
10795   x|xno)
10796     echo "$as_me:$LINENO: result: none needed" >&5
10797 echo "${ECHO_T}none needed" >&6 ;;
10798   *)
10799     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10800 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10801     CC="$CC $ac_cv_prog_cc_stdc" ;;
10802 esac
10803
10804 # Some people use a C++ compiler to compile C.  Since we use `exit',
10805 # in C++ we need to declare it.  In case someone uses the same compiler
10806 # for both compiling C and C++ we need to have the C++ compiler decide
10807 # the declaration of exit, since it's the most demanding environment.
10808 cat >conftest.$ac_ext <<_ACEOF
10809 #ifndef __cplusplus
10810   choke me
10811 #endif
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815   (eval $ac_compile) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } &&
10819          { ac_try='test -s conftest.$ac_objext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   for ac_declaration in \
10826    ''\
10827    '#include <stdlib.h>' \
10828    'extern "C" void std::exit (int) throw (); using std::exit;' \
10829    'extern "C" void std::exit (int); using std::exit;' \
10830    'extern "C" void exit (int) throw ();' \
10831    'extern "C" void exit (int);' \
10832    'void exit (int);'
10833 do
10834   cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841 #include <stdlib.h>
10842 $ac_declaration
10843 int
10844 main ()
10845 {
10846 exit (42);
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853   (eval $ac_compile) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } &&
10857          { ac_try='test -s conftest.$ac_objext'
10858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859   (eval $ac_try) 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; }; then
10863   :
10864 else
10865   echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 continue
10869 fi
10870 rm -f conftest.$ac_objext conftest.$ac_ext
10871   cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 /* confdefs.h.  */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h.  */
10878 $ac_declaration
10879 int
10880 main ()
10881 {
10882 exit (42);
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10889   (eval $ac_compile) 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } &&
10893          { ac_try='test -s conftest.$ac_objext'
10894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895   (eval $ac_try) 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; }; then
10899   break
10900 else
10901   echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 fi
10905 rm -f conftest.$ac_objext conftest.$ac_ext
10906 done
10907 rm -f conftest*
10908 if test -n "$ac_declaration"; then
10909   echo '#ifdef __cplusplus' >>confdefs.h
10910   echo $ac_declaration      >>confdefs.h
10911   echo '#endif'             >>confdefs.h
10912 fi
10913
10914 else
10915   echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10917
10918 fi
10919 rm -f conftest.$ac_objext conftest.$ac_ext
10920 ac_ext=c
10921 ac_cpp='$CPP $CPPFLAGS'
10922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10925
10926
10927
10928 ac_ext=c
10929 ac_cpp='$CPP $CPPFLAGS'
10930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10933 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10934 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10935 # On Suns, sometimes $CPP names a directory.
10936 if test -n "$CPP" && test -d "$CPP"; then
10937   CPP=
10938 fi
10939 if test -z "$CPP"; then
10940   if test "${ac_cv_prog_CPP+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943       # Double quotes because CPP needs to be expanded
10944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10945     do
10946       ac_preproc_ok=false
10947 for ac_c_preproc_warn_flag in '' yes
10948 do
10949   # Use a header file that comes with gcc, so configuring glibc
10950   # with a fresh cross-compiler works.
10951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10952   # <limits.h> exists even on freestanding compilers.
10953   # On the NeXT, cc -E runs the code through the compiler's parser,
10954   # not just through cpp. "Syntax error" is here to catch this case.
10955   cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 #ifdef __STDC__
10963 # include <limits.h>
10964 #else
10965 # include <assert.h>
10966 #endif
10967                      Syntax error
10968 _ACEOF
10969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10971   ac_status=$?
10972   grep -v '^ *+' conftest.er1 >conftest.err
10973   rm -f conftest.er1
10974   cat conftest.err >&5
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } >/dev/null; then
10977   if test -s conftest.err; then
10978     ac_cpp_err=$ac_c_preproc_warn_flag
10979   else
10980     ac_cpp_err=
10981   fi
10982 else
10983   ac_cpp_err=yes
10984 fi
10985 if test -z "$ac_cpp_err"; then
10986   :
10987 else
10988   echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991   # Broken: fails on valid input.
10992 continue
10993 fi
10994 rm -f conftest.err conftest.$ac_ext
10995
10996   # OK, works on sane cases.  Now check whether non-existent headers
10997   # can be detected and how.
10998   cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005 #include <ac_nonexistent.h>
11006 _ACEOF
11007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } >/dev/null; then
11015   if test -s conftest.err; then
11016     ac_cpp_err=$ac_c_preproc_warn_flag
11017   else
11018     ac_cpp_err=
11019   fi
11020 else
11021   ac_cpp_err=yes
11022 fi
11023 if test -z "$ac_cpp_err"; then
11024   # Broken: success on invalid input.
11025 continue
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030   # Passes both tests.
11031 ac_preproc_ok=:
11032 break
11033 fi
11034 rm -f conftest.err conftest.$ac_ext
11035
11036 done
11037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11038 rm -f conftest.err conftest.$ac_ext
11039 if $ac_preproc_ok; then
11040   break
11041 fi
11042
11043     done
11044     ac_cv_prog_CPP=$CPP
11045
11046 fi
11047   CPP=$ac_cv_prog_CPP
11048 else
11049   ac_cv_prog_CPP=$CPP
11050 fi
11051 echo "$as_me:$LINENO: result: $CPP" >&5
11052 echo "${ECHO_T}$CPP" >&6
11053 ac_preproc_ok=false
11054 for ac_c_preproc_warn_flag in '' yes
11055 do
11056   # Use a header file that comes with gcc, so configuring glibc
11057   # with a fresh cross-compiler works.
11058   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059   # <limits.h> exists even on freestanding compilers.
11060   # On the NeXT, cc -E runs the code through the compiler's parser,
11061   # not just through cpp. "Syntax error" is here to catch this case.
11062   cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069 #ifdef __STDC__
11070 # include <limits.h>
11071 #else
11072 # include <assert.h>
11073 #endif
11074                      Syntax error
11075 _ACEOF
11076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } >/dev/null; then
11084   if test -s conftest.err; then
11085     ac_cpp_err=$ac_c_preproc_warn_flag
11086   else
11087     ac_cpp_err=
11088   fi
11089 else
11090   ac_cpp_err=yes
11091 fi
11092 if test -z "$ac_cpp_err"; then
11093   :
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098   # Broken: fails on valid input.
11099 continue
11100 fi
11101 rm -f conftest.err conftest.$ac_ext
11102
11103   # OK, works on sane cases.  Now check whether non-existent headers
11104   # can be detected and how.
11105   cat >conftest.$ac_ext <<_ACEOF
11106 #line $LINENO "configure"
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 #include <ac_nonexistent.h>
11113 _ACEOF
11114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } >/dev/null; then
11122   if test -s conftest.err; then
11123     ac_cpp_err=$ac_c_preproc_warn_flag
11124   else
11125     ac_cpp_err=
11126   fi
11127 else
11128   ac_cpp_err=yes
11129 fi
11130 if test -z "$ac_cpp_err"; then
11131   # Broken: success on invalid input.
11132 continue
11133 else
11134   echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11136
11137   # Passes both tests.
11138 ac_preproc_ok=:
11139 break
11140 fi
11141 rm -f conftest.err conftest.$ac_ext
11142
11143 done
11144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11145 rm -f conftest.err conftest.$ac_ext
11146 if $ac_preproc_ok; then
11147   :
11148 else
11149   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11150 See \`config.log' for more details." >&5
11151 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11152 See \`config.log' for more details." >&2;}
11153    { (exit 1); exit 1; }; }
11154 fi
11155
11156 ac_ext=c
11157 ac_cpp='$CPP $CPPFLAGS'
11158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11161
11162
11163 echo "$as_me:$LINENO: checking for egrep" >&5
11164 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11165 if test "${ac_cv_prog_egrep+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11169     then ac_cv_prog_egrep='grep -E'
11170     else ac_cv_prog_egrep='egrep'
11171     fi
11172 fi
11173 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11174 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11175  EGREP=$ac_cv_prog_egrep
11176
11177
11178 if test $ac_cv_c_compiler_gnu = yes; then
11179     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11180 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11181 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11182   echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184     ac_pattern="Autoconf.*'x'"
11185   cat >conftest.$ac_ext <<_ACEOF
11186 #line $LINENO "configure"
11187 /* confdefs.h.  */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h.  */
11192 #include <sgtty.h>
11193 Autoconf TIOCGETP
11194 _ACEOF
11195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11196   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11197   ac_cv_prog_gcc_traditional=yes
11198 else
11199   ac_cv_prog_gcc_traditional=no
11200 fi
11201 rm -f conftest*
11202
11203
11204   if test $ac_cv_prog_gcc_traditional = no; then
11205     cat >conftest.$ac_ext <<_ACEOF
11206 #line $LINENO "configure"
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <termio.h>
11213 Autoconf TCGETA
11214 _ACEOF
11215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11216   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11217   ac_cv_prog_gcc_traditional=yes
11218 fi
11219 rm -f conftest*
11220
11221   fi
11222 fi
11223 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11224 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11225   if test $ac_cv_prog_gcc_traditional = yes; then
11226     CC="$CC -traditional"
11227   fi
11228 fi
11229
11230
11231
11232
11233 ac_ext=cc
11234 ac_cpp='$CXXCPP $CPPFLAGS'
11235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11238
11239
11240 CXXFLAGS=${CXXFLAGS:=}
11241 ac_ext=cc
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11246 if test -n "$ac_tool_prefix"; then
11247   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11248   do
11249     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11251 echo "$as_me:$LINENO: checking for $ac_word" >&5
11252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11253 if test "${ac_cv_prog_CXX+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   if test -n "$CXX"; then
11257   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264   for ac_exec_ext in '' $ac_executable_extensions; do
11265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271 done
11272
11273 fi
11274 fi
11275 CXX=$ac_cv_prog_CXX
11276 if test -n "$CXX"; then
11277   echo "$as_me:$LINENO: result: $CXX" >&5
11278 echo "${ECHO_T}$CXX" >&6
11279 else
11280   echo "$as_me:$LINENO: result: no" >&5
11281 echo "${ECHO_T}no" >&6
11282 fi
11283
11284     test -n "$CXX" && break
11285   done
11286 fi
11287 if test -z "$CXX"; then
11288   ac_ct_CXX=$CXX
11289   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11290 do
11291   # Extract the first word of "$ac_prog", so it can be a program name with args.
11292 set dummy $ac_prog; ac_word=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   if test -n "$ac_ct_CXX"; then
11299   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11300 else
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11303 do
11304   IFS=$as_save_IFS
11305   test -z "$as_dir" && as_dir=.
11306   for ac_exec_ext in '' $ac_executable_extensions; do
11307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308     ac_cv_prog_ac_ct_CXX="$ac_prog"
11309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310     break 2
11311   fi
11312 done
11313 done
11314
11315 fi
11316 fi
11317 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11318 if test -n "$ac_ct_CXX"; then
11319   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11320 echo "${ECHO_T}$ac_ct_CXX" >&6
11321 else
11322   echo "$as_me:$LINENO: result: no" >&5
11323 echo "${ECHO_T}no" >&6
11324 fi
11325
11326   test -n "$ac_ct_CXX" && break
11327 done
11328 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11329
11330   CXX=$ac_ct_CXX
11331 fi
11332
11333
11334 # Provide some information about the compiler.
11335 echo "$as_me:$LINENO:" \
11336      "checking for C++ compiler version" >&5
11337 ac_compiler=`set X $ac_compile; echo $2`
11338 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11339   (eval $ac_compiler --version </dev/null >&5) 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }
11343 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11344   (eval $ac_compiler -v </dev/null >&5) 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }
11348 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11349   (eval $ac_compiler -V </dev/null >&5) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }
11353
11354 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11355 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11356 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   cat >conftest.$ac_ext <<_ACEOF
11360 #line $LINENO "configure"
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366
11367 int
11368 main ()
11369 {
11370 #ifndef __GNUC__
11371        choke me
11372 #endif
11373
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11380   (eval $ac_compile) 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } &&
11384          { ac_try='test -s conftest.$ac_objext'
11385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386   (eval $ac_try) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; }; then
11390   ac_compiler_gnu=yes
11391 else
11392   echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 ac_compiler_gnu=no
11396 fi
11397 rm -f conftest.$ac_objext conftest.$ac_ext
11398 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11399
11400 fi
11401 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11402 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11403 GXX=`test $ac_compiler_gnu = yes && echo yes`
11404 ac_test_CXXFLAGS=${CXXFLAGS+set}
11405 ac_save_CXXFLAGS=$CXXFLAGS
11406 CXXFLAGS="-g"
11407 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11408 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11409 if test "${ac_cv_prog_cxx_g+set}" = set; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   cat >conftest.$ac_ext <<_ACEOF
11413 #line $LINENO "configure"
11414 /* confdefs.h.  */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h.  */
11419
11420 int
11421 main ()
11422 {
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430   (eval $ac_compile) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -s conftest.$ac_objext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   ac_cv_prog_cxx_g=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_prog_cxx_g=no
11446 fi
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11448 fi
11449 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11450 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11451 if test "$ac_test_CXXFLAGS" = set; then
11452   CXXFLAGS=$ac_save_CXXFLAGS
11453 elif test $ac_cv_prog_cxx_g = yes; then
11454   if test "$GXX" = yes; then
11455     CXXFLAGS="-g -O2"
11456   else
11457     CXXFLAGS="-g"
11458   fi
11459 else
11460   if test "$GXX" = yes; then
11461     CXXFLAGS="-O2"
11462   else
11463     CXXFLAGS=
11464   fi
11465 fi
11466 for ac_declaration in \
11467    ''\
11468    '#include <stdlib.h>' \
11469    'extern "C" void std::exit (int) throw (); using std::exit;' \
11470    'extern "C" void std::exit (int); using std::exit;' \
11471    'extern "C" void exit (int) throw ();' \
11472    'extern "C" void exit (int);' \
11473    'void exit (int);'
11474 do
11475   cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11477 /* confdefs.h.  */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h.  */
11482 #include <stdlib.h>
11483 $ac_declaration
11484 int
11485 main ()
11486 {
11487 exit (42);
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494   (eval $ac_compile) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -s conftest.$ac_objext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   :
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 continue
11510 fi
11511 rm -f conftest.$ac_objext conftest.$ac_ext
11512   cat >conftest.$ac_ext <<_ACEOF
11513 #line $LINENO "configure"
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519 $ac_declaration
11520 int
11521 main ()
11522 {
11523 exit (42);
11524   ;
11525   return 0;
11526 }
11527 _ACEOF
11528 rm -f conftest.$ac_objext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530   (eval $ac_compile) 2>&5
11531   ac_status=$?
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } &&
11534          { ac_try='test -s conftest.$ac_objext'
11535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536   (eval $ac_try) 2>&5
11537   ac_status=$?
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); }; }; then
11540   break
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545 fi
11546 rm -f conftest.$ac_objext conftest.$ac_ext
11547 done
11548 rm -f conftest*
11549 if test -n "$ac_declaration"; then
11550   echo '#ifdef __cplusplus' >>confdefs.h
11551   echo $ac_declaration      >>confdefs.h
11552   echo '#endif'             >>confdefs.h
11553 fi
11554
11555 ac_ext=cc
11556 ac_cpp='$CXXCPP $CPPFLAGS'
11557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11560
11561
11562 ac_ext=c
11563 ac_cpp='$CPP $CPPFLAGS'
11564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11567
11568
11569 echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11570 echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11571 GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11572 if test "$GCC" = "yes" ; then
11573   echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11574         sed -n '1,/End of search list\./p' | \
11575         grep '^ */usr/local/include$' 2>&1 /dev/null \
11576   && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11577 fi
11578 echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11579 echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11580
11581 if test -n "$ac_tool_prefix"; then
11582   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11584 echo "$as_me:$LINENO: checking for $ac_word" >&5
11585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11586 if test "${ac_cv_prog_RANLIB+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   if test -n "$RANLIB"; then
11590   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11591 else
11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593 for as_dir in $PATH
11594 do
11595   IFS=$as_save_IFS
11596   test -z "$as_dir" && as_dir=.
11597   for ac_exec_ext in '' $ac_executable_extensions; do
11598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11601     break 2
11602   fi
11603 done
11604 done
11605
11606 fi
11607 fi
11608 RANLIB=$ac_cv_prog_RANLIB
11609 if test -n "$RANLIB"; then
11610   echo "$as_me:$LINENO: result: $RANLIB" >&5
11611 echo "${ECHO_T}$RANLIB" >&6
11612 else
11613   echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6
11615 fi
11616
11617 fi
11618 if test -z "$ac_cv_prog_RANLIB"; then
11619   ac_ct_RANLIB=$RANLIB
11620   # Extract the first word of "ranlib", so it can be a program name with args.
11621 set dummy ranlib; ac_word=$2
11622 echo "$as_me:$LINENO: checking for $ac_word" >&5
11623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11625   echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627   if test -n "$ac_ct_RANLIB"; then
11628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11629 else
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11632 do
11633   IFS=$as_save_IFS
11634   test -z "$as_dir" && as_dir=.
11635   for ac_exec_ext in '' $ac_executable_extensions; do
11636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637     ac_cv_prog_ac_ct_RANLIB="ranlib"
11638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11639     break 2
11640   fi
11641 done
11642 done
11643
11644   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11645 fi
11646 fi
11647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11648 if test -n "$ac_ct_RANLIB"; then
11649   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11650 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11651 else
11652   echo "$as_me:$LINENO: result: no" >&5
11653 echo "${ECHO_T}no" >&6
11654 fi
11655
11656   RANLIB=$ac_ct_RANLIB
11657 else
11658   RANLIB="$ac_cv_prog_RANLIB"
11659 fi
11660
11661
11662 # Extract the first word of "ar", so it can be a program name with args.
11663 set dummy ar; ac_word=$2
11664 echo "$as_me:$LINENO: checking for $ac_word" >&5
11665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11666 if test "${ac_cv_prog_AR+set}" = set; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669   if test -n "$AR"; then
11670   ac_cv_prog_AR="$AR" # Let the user override the test.
11671 else
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11674 do
11675   IFS=$as_save_IFS
11676   test -z "$as_dir" && as_dir=.
11677   for ac_exec_ext in '' $ac_executable_extensions; do
11678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11679     ac_cv_prog_AR="ar"
11680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681     break 2
11682   fi
11683 done
11684 done
11685
11686 fi
11687 fi
11688 AR=$ac_cv_prog_AR
11689 if test -n "$AR"; then
11690   echo "$as_me:$LINENO: result: $AR" >&5
11691 echo "${ECHO_T}$AR" >&6
11692 else
11693   echo "$as_me:$LINENO: result: no" >&5
11694 echo "${ECHO_T}no" >&6
11695 fi
11696
11697 if test "x$AR" = "x" ; then
11698     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11699 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11700    { (exit 1); exit 1; }; }
11701 fi
11702
11703 # Find a good install program.  We prefer a C program (faster),
11704 # so one script is as good as another.  But avoid the broken or
11705 # incompatible versions:
11706 # SysV /etc/install, /usr/sbin/install
11707 # SunOS /usr/etc/install
11708 # IRIX /sbin/install
11709 # AIX /bin/install
11710 # AmigaOS /C/install, which installs bootblocks on floppy discs
11711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11714 # ./install, which can be erroneously created by make from ./install.sh.
11715 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11716 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11717 if test -z "$INSTALL"; then
11718 if test "${ac_cv_path_install+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724   IFS=$as_save_IFS
11725   test -z "$as_dir" && as_dir=.
11726   # Account for people who put trailing slashes in PATH elements.
11727 case $as_dir/ in
11728   ./ | .// | /cC/* | \
11729   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11730   /usr/ucb/* ) ;;
11731   *)
11732     # OSF1 and SCO ODT 3.0 have their own names for install.
11733     # Don't use installbsd from OSF since it installs stuff as root
11734     # by default.
11735     for ac_prog in ginstall scoinst install; do
11736       for ac_exec_ext in '' $ac_executable_extensions; do
11737         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11738           if test $ac_prog = install &&
11739             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11740             # AIX install.  It has an incompatible calling convention.
11741             :
11742           elif test $ac_prog = install &&
11743             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11744             # program-specific install script used by HP pwplus--don't use.
11745             :
11746           else
11747             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11748             break 3
11749           fi
11750         fi
11751       done
11752     done
11753     ;;
11754 esac
11755 done
11756
11757
11758 fi
11759   if test "${ac_cv_path_install+set}" = set; then
11760     INSTALL=$ac_cv_path_install
11761   else
11762     # As a last resort, use the slow shell script.  We don't cache a
11763     # path for INSTALL within a source directory, because that will
11764     # break other packages using the cache if that directory is
11765     # removed, or if the path is relative.
11766     INSTALL=$ac_install_sh
11767   fi
11768 fi
11769 echo "$as_me:$LINENO: result: $INSTALL" >&5
11770 echo "${ECHO_T}$INSTALL" >&6
11771
11772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11773 # It thinks the first close brace ends the variable substitution.
11774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11775
11776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11777
11778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11779
11780
11781 case ${INSTALL} in
11782   /* ) # Absolute
11783      ;;
11784   ?:* ) # Drive letter, considered as absolute.
11785      ;;
11786   *)
11787      INSTALL=`pwd`/${INSTALL} ;;
11788 esac
11789
11790 case ${host} in
11791     *-hp-hpux* )
11792         INSTALL_DIR="mkdir"
11793         ;;
11794
11795     *)  INSTALL_DIR="$INSTALL -d"
11796         ;;
11797 esac
11798
11799
11800 case "${host}" in
11801
11802                 powerpc-*-darwin* )
11803         INSTALL_PROGRAM="cp -fp"
11804         INSTALL_DATA="cp -fp"
11805         ;;
11806     *)
11807         ;;
11808 esac
11809
11810 # Extract the first word of "strip", so it can be a program name with args.
11811 set dummy strip; ac_word=$2
11812 echo "$as_me:$LINENO: checking for $ac_word" >&5
11813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11814 if test "${ac_cv_prog_STRIP+set}" = set; then
11815   echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817   if test -n "$STRIP"; then
11818   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11819 else
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11822 do
11823   IFS=$as_save_IFS
11824   test -z "$as_dir" && as_dir=.
11825   for ac_exec_ext in '' $ac_executable_extensions; do
11826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827     ac_cv_prog_STRIP="strip"
11828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11829     break 2
11830   fi
11831 done
11832 done
11833
11834   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11835 fi
11836 fi
11837 STRIP=$ac_cv_prog_STRIP
11838 if test -n "$STRIP"; then
11839   echo "$as_me:$LINENO: result: $STRIP" >&5
11840 echo "${ECHO_T}$STRIP" >&6
11841 else
11842   echo "$as_me:$LINENO: result: no" >&5
11843 echo "${ECHO_T}no" >&6
11844 fi
11845
11846
11847 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11848 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11849 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11850   echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852
11853     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11854             egrep -s GNU > /dev/null); then
11855         wx_cv_prog_makeisgnu="yes"
11856     else
11857         wx_cv_prog_makeisgnu="no"
11858     fi
11859
11860 fi
11861 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11862 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11863
11864 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11865     IF_GNU_MAKE=""
11866 else
11867     IF_GNU_MAKE="#"
11868 fi
11869
11870
11871
11872 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11873 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11874 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11875 if test "${wx_cv_prog_makevpath+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878
11879 cat - << EOF > confMake
11880 check : file
11881         cp \$? \$@
11882         cp \$? final_file
11883 EOF
11884
11885 if test ! -d sub ; then
11886   mkdir sub
11887 fi
11888 echo dummy > sub/file
11889 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11890 RESULT=$?
11891 rm -f sub/file check final_file confMake
11892 rmdir sub
11893 if test "$RESULT" = 0; then
11894   wx_cv_prog_makevpath="yes"
11895 else
11896   wx_cv_prog_makevpath="no"
11897 fi
11898
11899 fi
11900 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11901 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11902
11903 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11904 { { echo "$as_me:$LINENO: error:
11905 You need a make-utility that is able to use the variable
11906 VPATH correctly.
11907 If your version of make does not support VPATH correctly,
11908 please install GNU-make (possibly as gmake), and start
11909 configure with the following command:
11910 export MAKE=gmake; ./configure  for sh-type shells
11911 setenv MAKE gmake; ./configure  for csh-type shells
11912 Also please do remember to use gmake in this case every time
11913 you are trying to compile.
11914 " >&5
11915 echo "$as_me: error:
11916 You need a make-utility that is able to use the variable
11917 VPATH correctly.
11918 If your version of make does not support VPATH correctly,
11919 please install GNU-make (possibly as gmake), and start
11920 configure with the following command:
11921 export MAKE=gmake; ./configure  for sh-type shells
11922 setenv MAKE gmake; ./configure  for csh-type shells
11923 Also please do remember to use gmake in this case every time
11924 you are trying to compile.
11925 " >&2;}
11926    { (exit 1); exit 1; }; }
11927 fi fi
11928 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11929 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11930 LN_S=$as_ln_s
11931 if test "$LN_S" = "ln -s"; then
11932   echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11934 else
11935   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11936 echo "${ECHO_T}no, using $LN_S" >&6
11937 fi
11938
11939
11940
11941 case "${host}" in
11942   *-pc-os2_emx | *-pc-os2-emx )
11943                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11944                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11945 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11946 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lcExt  $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958
11959 /* Override any gcc2 internal prototype to avoid an error.  */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 /* We use char because int might match the return type of a gcc2
11964    builtin and then its argument prototype would still apply.  */
11965 char drand48 ();
11966 int
11967 main ()
11968 {
11969 drand48 ();
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976   (eval $ac_link) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } &&
11980          { ac_try='test -s conftest$ac_exeext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   ac_cv_lib_cExt_drand48=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 ac_cv_lib_cExt_drand48=no
11992 fi
11993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11994 LIBS=$ac_check_lib_save_LIBS
11995 fi
11996 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11997 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11998 if test $ac_cv_lib_cExt_drand48 = yes; then
11999   LIBS="$LIBS -lcExt"
12000 fi
12001
12002       else
12003                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12004       fi
12005       echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
12006 echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
12007 if test "${wx_cv_gcc3+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010
12011           cat >conftest.$ac_ext <<_ACEOF
12012 #line $LINENO "configure"
12013 /* confdefs.h.  */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h.  */
12018
12019 int
12020 main ()
12021 {
12022
12023                   #if (__GNUC__ < 3)
12024                       #error old gcc
12025                   #endif
12026
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033   (eval $ac_compile) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039   (eval $ac_try) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043
12044                   wx_cv_gcc3=yes
12045
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050
12051                   wx_cv_gcc3=no
12052
12053
12054 fi
12055 rm -f conftest.$ac_objext conftest.$ac_ext
12056
12057 fi
12058 echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12059 echo "${ECHO_T}$wx_cv_gcc3" >&6
12060       if test "$wx_cv_gcc3" = "no"; then
12061           LIBS="$LIBS -lstdcpp"
12062       else
12063           LIBS="$LIBS -lstdcxx"
12064       fi
12065         ;;
12066   *)
12067
12068
12069
12070       ac_ext=cc
12071 ac_cpp='$CXXCPP $CPPFLAGS'
12072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12075
12076
12077
12078 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12079 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12080 if test "${ac_cv_string_strcasecmp+set}" = set; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083
12084           cat >conftest.$ac_ext <<_ACEOF
12085 #line $LINENO "configure"
12086 /* confdefs.h.  */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h.  */
12091
12092               #include <string.h>
12093
12094 int
12095 main ()
12096 {
12097
12098                   strcasecmp("foo", "bar");
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106   (eval $ac_link) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -s conftest$ac_exeext'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; }; then
12116   ac_cv_string_strcasecmp=yes
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 ac_cv_string_strcasecmp=no
12122
12123 fi
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125
12126 fi
12127 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12128 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12129
12130       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12131           cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_STRCASECMP_IN_STRING_H 1
12133 _ACEOF
12134
12135       else
12136           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12137 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12138 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12139   echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141
12142               cat >conftest.$ac_ext <<_ACEOF
12143 #line $LINENO "configure"
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149
12150                   #include <strings.h>
12151
12152 int
12153 main ()
12154 {
12155
12156                       strcasecmp("foo", "bar");
12157
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164   (eval $ac_link) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -s conftest$ac_exeext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_cv_strings_strcasecmp=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 ac_cv_strings_strcasecmp=no
12180
12181 fi
12182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12183
12184 fi
12185 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12186 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12187
12188           if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12189               cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12191 _ACEOF
12192
12193           else
12194               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12195 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12196    { (exit 1); exit 1; }; }
12197           fi
12198       fi
12199
12200       ac_ext=c
12201 ac_cpp='$CPP $CPPFLAGS'
12202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12205
12206         ;;
12207 esac
12208
12209
12210 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12212 if test "${ac_cv_header_stdc+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222 #include <stdlib.h>
12223 #include <stdarg.h>
12224 #include <string.h>
12225 #include <float.h>
12226
12227 int
12228 main ()
12229 {
12230
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237   (eval $ac_compile) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } &&
12241          { ac_try='test -s conftest.$ac_objext'
12242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243   (eval $ac_try) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   ac_cv_header_stdc=yes
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ac_cv_header_stdc=no
12253 fi
12254 rm -f conftest.$ac_objext conftest.$ac_ext
12255
12256 if test $ac_cv_header_stdc = yes; then
12257   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12258   cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 #include <string.h>
12266
12267 _ACEOF
12268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12269   $EGREP "memchr" >/dev/null 2>&1; then
12270   :
12271 else
12272   ac_cv_header_stdc=no
12273 fi
12274 rm -f conftest*
12275
12276 fi
12277
12278 if test $ac_cv_header_stdc = yes; then
12279   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12280   cat >conftest.$ac_ext <<_ACEOF
12281 #line $LINENO "configure"
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287 #include <stdlib.h>
12288
12289 _ACEOF
12290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291   $EGREP "free" >/dev/null 2>&1; then
12292   :
12293 else
12294   ac_cv_header_stdc=no
12295 fi
12296 rm -f conftest*
12297
12298 fi
12299
12300 if test $ac_cv_header_stdc = yes; then
12301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12302   if test "$cross_compiling" = yes; then
12303   :
12304 else
12305   cat >conftest.$ac_ext <<_ACEOF
12306 #line $LINENO "configure"
12307 /* confdefs.h.  */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h.  */
12312 #include <ctype.h>
12313 #if ((' ' & 0x0FF) == 0x020)
12314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12316 #else
12317 # define ISLOWER(c) \
12318                    (('a' <= (c) && (c) <= 'i') \
12319                      || ('j' <= (c) && (c) <= 'r') \
12320                      || ('s' <= (c) && (c) <= 'z'))
12321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12322 #endif
12323
12324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12325 int
12326 main ()
12327 {
12328   int i;
12329   for (i = 0; i < 256; i++)
12330     if (XOR (islower (i), ISLOWER (i))
12331         || toupper (i) != TOUPPER (i))
12332       exit(2);
12333   exit (0);
12334 }
12335 _ACEOF
12336 rm -f conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338   (eval $ac_link) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343   (eval $ac_try) 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; }; then
12347   :
12348 else
12349   echo "$as_me: program exited with status $ac_status" >&5
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 ( exit $ac_status )
12354 ac_cv_header_stdc=no
12355 fi
12356 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 fi
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12362 if test $ac_cv_header_stdc = yes; then
12363
12364 cat >>confdefs.h <<\_ACEOF
12365 #define STDC_HEADERS 1
12366 _ACEOF
12367
12368 fi
12369
12370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12381                   inttypes.h stdint.h unistd.h
12382 do
12383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12384 echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 $ac_includes_default
12397
12398 #include <$ac_header>
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402   (eval $ac_compile) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } &&
12406          { ac_try='test -s conftest.$ac_objext'
12407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408   (eval $ac_try) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   eval "$as_ac_Header=yes"
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 eval "$as_ac_Header=no"
12418 fi
12419 rm -f conftest.$ac_objext conftest.$ac_ext
12420 fi
12421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424   cat >>confdefs.h <<_ACEOF
12425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12426 _ACEOF
12427
12428 fi
12429
12430 done
12431
12432
12433
12434 for ac_header in stdlib.h
12435 do
12436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12438   echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 fi
12443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12445 else
12446   # Is the header compilable?
12447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12449 cat >conftest.$ac_ext <<_ACEOF
12450 #line $LINENO "configure"
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456 $ac_includes_default
12457 #include <$ac_header>
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461   (eval $ac_compile) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); } &&
12465          { ac_try='test -s conftest.$ac_objext'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   ac_header_compiler=yes
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 ac_header_compiler=no
12477 fi
12478 rm -f conftest.$ac_objext conftest.$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12480 echo "${ECHO_T}$ac_header_compiler" >&6
12481
12482 # Is the header present?
12483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12487 /* confdefs.h.  */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h.  */
12492 #include <$ac_header>
12493 _ACEOF
12494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } >/dev/null; then
12502   if test -s conftest.err; then
12503     ac_cpp_err=$ac_c_preproc_warn_flag
12504   else
12505     ac_cpp_err=
12506   fi
12507 else
12508   ac_cpp_err=yes
12509 fi
12510 if test -z "$ac_cpp_err"; then
12511   ac_header_preproc=yes
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516   ac_header_preproc=no
12517 fi
12518 rm -f conftest.err conftest.$ac_ext
12519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12520 echo "${ECHO_T}$ac_header_preproc" >&6
12521
12522 # So?  What about this header?
12523 case $ac_header_compiler:$ac_header_preproc in
12524   yes:no )
12525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12529     (
12530       cat <<\_ASBOX
12531 ## ------------------------------------ ##
12532 ## Report this to bug-autoconf@gnu.org. ##
12533 ## ------------------------------------ ##
12534 _ASBOX
12535     ) |
12536       sed "s/^/$as_me: WARNING:     /" >&2
12537     ;;
12538   no:yes )
12539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12541     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12545     (
12546       cat <<\_ASBOX
12547 ## ------------------------------------ ##
12548 ## Report this to bug-autoconf@gnu.org. ##
12549 ## ------------------------------------ ##
12550 _ASBOX
12551     ) |
12552       sed "s/^/$as_me: WARNING:     /" >&2
12553     ;;
12554 esac
12555 echo "$as_me:$LINENO: checking for $ac_header" >&5
12556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   eval "$as_ac_Header=$ac_header_preproc"
12561 fi
12562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12564
12565 fi
12566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12567   cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12569 _ACEOF
12570
12571 fi
12572
12573 done
12574
12575
12576 for ac_header in malloc.h
12577 do
12578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580   echo "$as_me:$LINENO: checking for $ac_header" >&5
12581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 fi
12585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12587 else
12588   # Is the header compilable?
12589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line $LINENO "configure"
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 $ac_includes_default
12599 #include <$ac_header>
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603   (eval $ac_compile) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -s conftest.$ac_objext'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613   ac_header_compiler=yes
12614 else
12615   echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12617
12618 ac_header_compiler=no
12619 fi
12620 rm -f conftest.$ac_objext conftest.$ac_ext
12621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12622 echo "${ECHO_T}$ac_header_compiler" >&6
12623
12624 # Is the header present?
12625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line $LINENO "configure"
12629 /* confdefs.h.  */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h.  */
12634 #include <$ac_header>
12635 _ACEOF
12636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } >/dev/null; then
12644   if test -s conftest.err; then
12645     ac_cpp_err=$ac_c_preproc_warn_flag
12646   else
12647     ac_cpp_err=
12648   fi
12649 else
12650   ac_cpp_err=yes
12651 fi
12652 if test -z "$ac_cpp_err"; then
12653   ac_header_preproc=yes
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658   ac_header_preproc=no
12659 fi
12660 rm -f conftest.err conftest.$ac_ext
12661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12662 echo "${ECHO_T}$ac_header_preproc" >&6
12663
12664 # So?  What about this header?
12665 case $ac_header_compiler:$ac_header_preproc in
12666   yes:no )
12667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12671     (
12672       cat <<\_ASBOX
12673 ## ------------------------------------ ##
12674 ## Report this to bug-autoconf@gnu.org. ##
12675 ## ------------------------------------ ##
12676 _ASBOX
12677     ) |
12678       sed "s/^/$as_me: WARNING:     /" >&2
12679     ;;
12680   no:yes )
12681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12683     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12687     (
12688       cat <<\_ASBOX
12689 ## ------------------------------------ ##
12690 ## Report this to bug-autoconf@gnu.org. ##
12691 ## ------------------------------------ ##
12692 _ASBOX
12693     ) |
12694       sed "s/^/$as_me: WARNING:     /" >&2
12695     ;;
12696 esac
12697 echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12700   echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702   eval "$as_ac_Header=$ac_header_preproc"
12703 fi
12704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12706
12707 fi
12708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12709   cat >>confdefs.h <<_ACEOF
12710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12711 _ACEOF
12712
12713 fi
12714
12715 done
12716
12717
12718 for ac_header in unistd.h
12719 do
12720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12722   echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 fi
12727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12729 else
12730   # Is the header compilable?
12731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12733 cat >conftest.$ac_ext <<_ACEOF
12734 #line $LINENO "configure"
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740 $ac_includes_default
12741 #include <$ac_header>
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745   (eval $ac_compile) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   ac_header_compiler=yes
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 ac_header_compiler=no
12761 fi
12762 rm -f conftest.$ac_objext conftest.$ac_ext
12763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12764 echo "${ECHO_T}$ac_header_compiler" >&6
12765
12766 # Is the header present?
12767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12769 cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <$ac_header>
12777 _ACEOF
12778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } >/dev/null; then
12786   if test -s conftest.err; then
12787     ac_cpp_err=$ac_c_preproc_warn_flag
12788   else
12789     ac_cpp_err=
12790   fi
12791 else
12792   ac_cpp_err=yes
12793 fi
12794 if test -z "$ac_cpp_err"; then
12795   ac_header_preproc=yes
12796 else
12797   echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800   ac_header_preproc=no
12801 fi
12802 rm -f conftest.err conftest.$ac_ext
12803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12804 echo "${ECHO_T}$ac_header_preproc" >&6
12805
12806 # So?  What about this header?
12807 case $ac_header_compiler:$ac_header_preproc in
12808   yes:no )
12809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12813     (
12814       cat <<\_ASBOX
12815 ## ------------------------------------ ##
12816 ## Report this to bug-autoconf@gnu.org. ##
12817 ## ------------------------------------ ##
12818 _ASBOX
12819     ) |
12820       sed "s/^/$as_me: WARNING:     /" >&2
12821     ;;
12822   no:yes )
12823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12825     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12829     (
12830       cat <<\_ASBOX
12831 ## ------------------------------------ ##
12832 ## Report this to bug-autoconf@gnu.org. ##
12833 ## ------------------------------------ ##
12834 _ASBOX
12835     ) |
12836       sed "s/^/$as_me: WARNING:     /" >&2
12837     ;;
12838 esac
12839 echo "$as_me:$LINENO: checking for $ac_header" >&5
12840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844   eval "$as_ac_Header=$ac_header_preproc"
12845 fi
12846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12848
12849 fi
12850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12851   cat >>confdefs.h <<_ACEOF
12852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12853 _ACEOF
12854
12855 fi
12856
12857 done
12858
12859
12860 for ac_header in wchar.h
12861 do
12862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12864   echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 fi
12869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12871 else
12872   # Is the header compilable?
12873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12876 #line $LINENO "configure"
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 $ac_includes_default
12883 #include <$ac_header>
12884 _ACEOF
12885 rm -f conftest.$ac_objext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887   (eval $ac_compile) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -s conftest.$ac_objext'
12892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893   (eval $ac_try) 2>&5
12894   ac_status=$?
12895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); }; }; then
12897   ac_header_compiler=yes
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902 ac_header_compiler=no
12903 fi
12904 rm -f conftest.$ac_objext conftest.$ac_ext
12905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12906 echo "${ECHO_T}$ac_header_compiler" >&6
12907
12908 # Is the header present?
12909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12911 cat >conftest.$ac_ext <<_ACEOF
12912 #line $LINENO "configure"
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918 #include <$ac_header>
12919 _ACEOF
12920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12921   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12922   ac_status=$?
12923   grep -v '^ *+' conftest.er1 >conftest.err
12924   rm -f conftest.er1
12925   cat conftest.err >&5
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); } >/dev/null; then
12928   if test -s conftest.err; then
12929     ac_cpp_err=$ac_c_preproc_warn_flag
12930   else
12931     ac_cpp_err=
12932   fi
12933 else
12934   ac_cpp_err=yes
12935 fi
12936 if test -z "$ac_cpp_err"; then
12937   ac_header_preproc=yes
12938 else
12939   echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942   ac_header_preproc=no
12943 fi
12944 rm -f conftest.err conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12946 echo "${ECHO_T}$ac_header_preproc" >&6
12947
12948 # So?  What about this header?
12949 case $ac_header_compiler:$ac_header_preproc in
12950   yes:no )
12951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12955     (
12956       cat <<\_ASBOX
12957 ## ------------------------------------ ##
12958 ## Report this to bug-autoconf@gnu.org. ##
12959 ## ------------------------------------ ##
12960 _ASBOX
12961     ) |
12962       sed "s/^/$as_me: WARNING:     /" >&2
12963     ;;
12964   no:yes )
12965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12967     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12971     (
12972       cat <<\_ASBOX
12973 ## ------------------------------------ ##
12974 ## Report this to bug-autoconf@gnu.org. ##
12975 ## ------------------------------------ ##
12976 _ASBOX
12977     ) |
12978       sed "s/^/$as_me: WARNING:     /" >&2
12979     ;;
12980 esac
12981 echo "$as_me:$LINENO: checking for $ac_header" >&5
12982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986   eval "$as_ac_Header=$ac_header_preproc"
12987 fi
12988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12990
12991 fi
12992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12993   cat >>confdefs.h <<_ACEOF
12994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12995 _ACEOF
12996
12997 fi
12998
12999 done
13000
13001
13002 if test "$ac_cv_header_wchar_h" != "yes"; then
13003
13004 for ac_header in wcstr.h
13005 do
13006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13008   echo "$as_me:$LINENO: checking for $ac_header" >&5
13009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13011   echo $ECHO_N "(cached) $ECHO_C" >&6
13012 fi
13013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13015 else
13016   # Is the header compilable?
13017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026 $ac_includes_default
13027 #include <$ac_header>
13028 _ACEOF
13029 rm -f conftest.$ac_objext
13030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031   (eval $ac_compile) 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } &&
13035          { ac_try='test -s conftest.$ac_objext'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; }; then
13041   ac_header_compiler=yes
13042 else
13043   echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_header_compiler=no
13047 fi
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13050 echo "${ECHO_T}$ac_header_compiler" >&6
13051
13052 # Is the header present?
13053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13057 /* confdefs.h.  */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h.  */
13062 #include <$ac_header>
13063 _ACEOF
13064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13066   ac_status=$?
13067   grep -v '^ *+' conftest.er1 >conftest.err
13068   rm -f conftest.er1
13069   cat conftest.err >&5
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } >/dev/null; then
13072   if test -s conftest.err; then
13073     ac_cpp_err=$ac_c_preproc_warn_flag
13074   else
13075     ac_cpp_err=
13076   fi
13077 else
13078   ac_cpp_err=yes
13079 fi
13080 if test -z "$ac_cpp_err"; then
13081   ac_header_preproc=yes
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086   ac_header_preproc=no
13087 fi
13088 rm -f conftest.err conftest.$ac_ext
13089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13090 echo "${ECHO_T}$ac_header_preproc" >&6
13091
13092 # So?  What about this header?
13093 case $ac_header_compiler:$ac_header_preproc in
13094   yes:no )
13095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13099     (
13100       cat <<\_ASBOX
13101 ## ------------------------------------ ##
13102 ## Report this to bug-autoconf@gnu.org. ##
13103 ## ------------------------------------ ##
13104 _ASBOX
13105     ) |
13106       sed "s/^/$as_me: WARNING:     /" >&2
13107     ;;
13108   no:yes )
13109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13111     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13115     (
13116       cat <<\_ASBOX
13117 ## ------------------------------------ ##
13118 ## Report this to bug-autoconf@gnu.org. ##
13119 ## ------------------------------------ ##
13120 _ASBOX
13121     ) |
13122       sed "s/^/$as_me: WARNING:     /" >&2
13123     ;;
13124 esac
13125 echo "$as_me:$LINENO: checking for $ac_header" >&5
13126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   eval "$as_ac_Header=$ac_header_preproc"
13131 fi
13132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13134
13135 fi
13136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13137   cat >>confdefs.h <<_ACEOF
13138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13139 _ACEOF
13140
13141 fi
13142
13143 done
13144
13145 fi
13146
13147
13148 for ac_header in fnmatch.h
13149 do
13150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13152   echo "$as_me:$LINENO: checking for $ac_header" >&5
13153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 fi
13157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13159 else
13160   # Is the header compilable?
13161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13163 cat >conftest.$ac_ext <<_ACEOF
13164 #line $LINENO "configure"
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170 $ac_includes_default
13171 #include <$ac_header>
13172 _ACEOF
13173 rm -f conftest.$ac_objext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13175   (eval $ac_compile) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } &&
13179          { ac_try='test -s conftest.$ac_objext'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185   ac_header_compiler=yes
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 ac_header_compiler=no
13191 fi
13192 rm -f conftest.$ac_objext conftest.$ac_ext
13193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13194 echo "${ECHO_T}$ac_header_compiler" >&6
13195
13196 # Is the header present?
13197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13199 cat >conftest.$ac_ext <<_ACEOF
13200 #line $LINENO "configure"
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206 #include <$ac_header>
13207 _ACEOF
13208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } >/dev/null; then
13216   if test -s conftest.err; then
13217     ac_cpp_err=$ac_c_preproc_warn_flag
13218   else
13219     ac_cpp_err=
13220   fi
13221 else
13222   ac_cpp_err=yes
13223 fi
13224 if test -z "$ac_cpp_err"; then
13225   ac_header_preproc=yes
13226 else
13227   echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13229
13230   ac_header_preproc=no
13231 fi
13232 rm -f conftest.err conftest.$ac_ext
13233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13234 echo "${ECHO_T}$ac_header_preproc" >&6
13235
13236 # So?  What about this header?
13237 case $ac_header_compiler:$ac_header_preproc in
13238   yes:no )
13239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13243     (
13244       cat <<\_ASBOX
13245 ## ------------------------------------ ##
13246 ## Report this to bug-autoconf@gnu.org. ##
13247 ## ------------------------------------ ##
13248 _ASBOX
13249     ) |
13250       sed "s/^/$as_me: WARNING:     /" >&2
13251     ;;
13252   no:yes )
13253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13255     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13259     (
13260       cat <<\_ASBOX
13261 ## ------------------------------------ ##
13262 ## Report this to bug-autoconf@gnu.org. ##
13263 ## ------------------------------------ ##
13264 _ASBOX
13265     ) |
13266       sed "s/^/$as_me: WARNING:     /" >&2
13267     ;;
13268 esac
13269 echo "$as_me:$LINENO: checking for $ac_header" >&5
13270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13272   echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274   eval "$as_ac_Header=$ac_header_preproc"
13275 fi
13276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13278
13279 fi
13280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13281   cat >>confdefs.h <<_ACEOF
13282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13283 _ACEOF
13284
13285 fi
13286
13287 done
13288
13289
13290 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13291
13292 for ac_func in fnmatch
13293 do
13294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13295 echo "$as_me:$LINENO: checking for $ac_func" >&5
13296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13297 if eval "test \"\${$as_ac_var+set}\" = set"; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301 #line $LINENO "configure"
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307 /* System header to define __stub macros and hopefully few prototypes,
13308     which can conflict with char $ac_func (); below.
13309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13310     <limits.h> exists even on freestanding compilers.  */
13311 #ifdef __STDC__
13312 # include <limits.h>
13313 #else
13314 # include <assert.h>
13315 #endif
13316 /* Override any gcc2 internal prototype to avoid an error.  */
13317 #ifdef __cplusplus
13318 extern "C"
13319 {
13320 #endif
13321 /* We use char because int might match the return type of a gcc2
13322    builtin and then its argument prototype would still apply.  */
13323 char $ac_func ();
13324 /* The GNU C library defines this for functions which it implements
13325     to always fail with ENOSYS.  Some functions are actually named
13326     something starting with __ and the normal name is an alias.  */
13327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13328 choke me
13329 #else
13330 char (*f) () = $ac_func;
13331 #endif
13332 #ifdef __cplusplus
13333 }
13334 #endif
13335
13336 int
13337 main ()
13338 {
13339 return f != $ac_func;
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13346   (eval $ac_link) 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); } &&
13350          { ac_try='test -s conftest$ac_exeext'
13351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352   (eval $ac_try) 2>&5
13353   ac_status=$?
13354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); }; }; then
13356   eval "$as_ac_var=yes"
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361 eval "$as_ac_var=no"
13362 fi
13363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13364 fi
13365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13367 if test `eval echo '${'$as_ac_var'}'` = yes; then
13368   cat >>confdefs.h <<_ACEOF
13369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13370 _ACEOF
13371
13372 fi
13373 done
13374
13375 fi
13376
13377
13378 for ac_header in langinfo.h
13379 do
13380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382   echo "$as_me:$LINENO: checking for $ac_header" >&5
13383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 fi
13387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13389 else
13390   # Is the header compilable?
13391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13394 #line $LINENO "configure"
13395 /* confdefs.h.  */
13396 _ACEOF
13397 cat confdefs.h >>conftest.$ac_ext
13398 cat >>conftest.$ac_ext <<_ACEOF
13399 /* end confdefs.h.  */
13400 $ac_includes_default
13401 #include <$ac_header>
13402 _ACEOF
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405   (eval $ac_compile) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -s conftest.$ac_objext'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; }; then
13415   ac_header_compiler=yes
13416 else
13417   echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 ac_header_compiler=no
13421 fi
13422 rm -f conftest.$ac_objext conftest.$ac_ext
13423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13424 echo "${ECHO_T}$ac_header_compiler" >&6
13425
13426 # Is the header present?
13427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 #include <$ac_header>
13437 _ACEOF
13438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13440   ac_status=$?
13441   grep -v '^ *+' conftest.er1 >conftest.err
13442   rm -f conftest.er1
13443   cat conftest.err >&5
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); } >/dev/null; then
13446   if test -s conftest.err; then
13447     ac_cpp_err=$ac_c_preproc_warn_flag
13448   else
13449     ac_cpp_err=
13450   fi
13451 else
13452   ac_cpp_err=yes
13453 fi
13454 if test -z "$ac_cpp_err"; then
13455   ac_header_preproc=yes
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460   ac_header_preproc=no
13461 fi
13462 rm -f conftest.err conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13464 echo "${ECHO_T}$ac_header_preproc" >&6
13465
13466 # So?  What about this header?
13467 case $ac_header_compiler:$ac_header_preproc in
13468   yes:no )
13469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13473     (
13474       cat <<\_ASBOX
13475 ## ------------------------------------ ##
13476 ## Report this to bug-autoconf@gnu.org. ##
13477 ## ------------------------------------ ##
13478 _ASBOX
13479     ) |
13480       sed "s/^/$as_me: WARNING:     /" >&2
13481     ;;
13482   no:yes )
13483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13485     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13489     (
13490       cat <<\_ASBOX
13491 ## ------------------------------------ ##
13492 ## Report this to bug-autoconf@gnu.org. ##
13493 ## ------------------------------------ ##
13494 _ASBOX
13495     ) |
13496       sed "s/^/$as_me: WARNING:     /" >&2
13497     ;;
13498 esac
13499 echo "$as_me:$LINENO: checking for $ac_header" >&5
13500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13502   echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504   eval "$as_ac_Header=$ac_header_preproc"
13505 fi
13506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13508
13509 fi
13510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13511   cat >>confdefs.h <<_ACEOF
13512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13513 _ACEOF
13514
13515 fi
13516
13517 done
13518
13519
13520 case "${host}" in
13521   *-pc-os2_emx | *-pc-os2-emx )
13522             if test $ac_cv_header_langinfo_h = "yes"; then
13523           LIBS="$LIBS -lintl"
13524       fi
13525   ;;
13526 esac
13527
13528 if test "$wxUSE_GUI" = "yes"; then
13529     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13530
13531 for ac_header in X11/Xlib.h
13532 do
13533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13535   echo "$as_me:$LINENO: checking for $ac_header" >&5
13536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 fi
13540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13542 else
13543   # Is the header compilable?
13544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13546 cat >conftest.$ac_ext <<_ACEOF
13547 #line $LINENO "configure"
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553 $ac_includes_default
13554 #include <$ac_header>
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13558   (eval $ac_compile) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } &&
13562          { ac_try='test -s conftest.$ac_objext'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; }; then
13568   ac_header_compiler=yes
13569 else
13570   echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13572
13573 ac_header_compiler=no
13574 fi
13575 rm -f conftest.$ac_objext conftest.$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13577 echo "${ECHO_T}$ac_header_compiler" >&6
13578
13579 # Is the header present?
13580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13582 cat >conftest.$ac_ext <<_ACEOF
13583 #line $LINENO "configure"
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589 #include <$ac_header>
13590 _ACEOF
13591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13593   ac_status=$?
13594   grep -v '^ *+' conftest.er1 >conftest.err
13595   rm -f conftest.er1
13596   cat conftest.err >&5
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } >/dev/null; then
13599   if test -s conftest.err; then
13600     ac_cpp_err=$ac_c_preproc_warn_flag
13601   else
13602     ac_cpp_err=
13603   fi
13604 else
13605   ac_cpp_err=yes
13606 fi
13607 if test -z "$ac_cpp_err"; then
13608   ac_header_preproc=yes
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613   ac_header_preproc=no
13614 fi
13615 rm -f conftest.err conftest.$ac_ext
13616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13617 echo "${ECHO_T}$ac_header_preproc" >&6
13618
13619 # So?  What about this header?
13620 case $ac_header_compiler:$ac_header_preproc in
13621   yes:no )
13622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13626     (
13627       cat <<\_ASBOX
13628 ## ------------------------------------ ##
13629 ## Report this to bug-autoconf@gnu.org. ##
13630 ## ------------------------------------ ##
13631 _ASBOX
13632     ) |
13633       sed "s/^/$as_me: WARNING:     /" >&2
13634     ;;
13635   no:yes )
13636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13638     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13642     (
13643       cat <<\_ASBOX
13644 ## ------------------------------------ ##
13645 ## Report this to bug-autoconf@gnu.org. ##
13646 ## ------------------------------------ ##
13647 _ASBOX
13648     ) |
13649       sed "s/^/$as_me: WARNING:     /" >&2
13650     ;;
13651 esac
13652 echo "$as_me:$LINENO: checking for $ac_header" >&5
13653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13655   echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657   eval "$as_ac_Header=$ac_header_preproc"
13658 fi
13659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13661
13662 fi
13663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13664   cat >>confdefs.h <<_ACEOF
13665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13666 _ACEOF
13667
13668 fi
13669
13670 done
13671
13672
13673 for ac_header in X11/XKBlib.h
13674 do
13675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13676 echo "$as_me:$LINENO: checking for $ac_header" >&5
13677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13679   echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681   cat >conftest.$ac_ext <<_ACEOF
13682 #line $LINENO "configure"
13683 /* confdefs.h.  */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h.  */
13688
13689                           #if HAVE_X11_XLIB_H
13690                             #include <X11/Xlib.h>
13691                           #endif
13692
13693
13694 #include <$ac_header>
13695 _ACEOF
13696 rm -f conftest.$ac_objext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13698   (eval $ac_compile) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); } &&
13702          { ac_try='test -s conftest.$ac_objext'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   eval "$as_ac_Header=yes"
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 eval "$as_ac_Header=no"
13714 fi
13715 rm -f conftest.$ac_objext conftest.$ac_ext
13716 fi
13717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13720   cat >>confdefs.h <<_ACEOF
13721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13722 _ACEOF
13723
13724 fi
13725
13726 done
13727
13728     fi
13729 fi
13730
13731
13732 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13734 if test "${ac_cv_c_const+set}" = set; then
13735   echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737   cat >conftest.$ac_ext <<_ACEOF
13738 #line $LINENO "configure"
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744
13745 int
13746 main ()
13747 {
13748 /* FIXME: Include the comments suggested by Paul. */
13749 #ifndef __cplusplus
13750   /* Ultrix mips cc rejects this.  */
13751   typedef int charset[2];
13752   const charset x;
13753   /* SunOS 4.1.1 cc rejects this.  */
13754   char const *const *ccp;
13755   char **p;
13756   /* NEC SVR4.0.2 mips cc rejects this.  */
13757   struct point {int x, y;};
13758   static struct point const zero = {0,0};
13759   /* AIX XL C 1.02.0.0 rejects this.
13760      It does not let you subtract one const X* pointer from another in
13761      an arm of an if-expression whose if-part is not a constant
13762      expression */
13763   const char *g = "string";
13764   ccp = &g + (g ? g-g : 0);
13765   /* HPUX 7.0 cc rejects these. */
13766   ++ccp;
13767   p = (char**) ccp;
13768   ccp = (char const *const *) p;
13769   { /* SCO 3.2v4 cc rejects this.  */
13770     char *t;
13771     char const *s = 0 ? (char *) 0 : (char const *) 0;
13772
13773     *t++ = 0;
13774   }
13775   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13776     int x[] = {25, 17};
13777     const int *foo = &x[0];
13778     ++foo;
13779   }
13780   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13781     typedef const int *iptr;
13782     iptr p = 0;
13783     ++p;
13784   }
13785   { /* AIX XL C 1.02.0.0 rejects this saying
13786        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13787     struct s { int j; const int *ap[3]; };
13788     struct s *b; b->j = 5;
13789   }
13790   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13791     const int foo = 10;
13792   }
13793 #endif
13794
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801   (eval $ac_compile) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } &&
13805          { ac_try='test -s conftest.$ac_objext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811   ac_cv_c_const=yes
13812 else
13813   echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_cv_c_const=no
13817 fi
13818 rm -f conftest.$ac_objext conftest.$ac_ext
13819 fi
13820 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13821 echo "${ECHO_T}$ac_cv_c_const" >&6
13822 if test $ac_cv_c_const = no; then
13823
13824 cat >>confdefs.h <<\_ACEOF
13825 #define const
13826 _ACEOF
13827
13828 fi
13829
13830 echo "$as_me:$LINENO: checking for inline" >&5
13831 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13832 if test "${ac_cv_c_inline+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   ac_cv_c_inline=no
13836 for ac_kw in inline __inline__ __inline; do
13837   cat >conftest.$ac_ext <<_ACEOF
13838 #line $LINENO "configure"
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 #ifndef __cplusplus
13845 typedef int foo_t;
13846 static $ac_kw foo_t static_foo () {return 0; }
13847 $ac_kw foo_t foo () {return 0; }
13848 #endif
13849
13850 _ACEOF
13851 rm -f conftest.$ac_objext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13853   (eval $ac_compile) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } &&
13857          { ac_try='test -s conftest.$ac_objext'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863   ac_cv_c_inline=$ac_kw; break
13864 else
13865   echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868 fi
13869 rm -f conftest.$ac_objext conftest.$ac_ext
13870 done
13871
13872 fi
13873 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13874 echo "${ECHO_T}$ac_cv_c_inline" >&6
13875 case $ac_cv_c_inline in
13876   inline | yes) ;;
13877   no)
13878 cat >>confdefs.h <<\_ACEOF
13879 #define inline
13880 _ACEOF
13881  ;;
13882   *)  cat >>confdefs.h <<_ACEOF
13883 #define inline $ac_cv_c_inline
13884 _ACEOF
13885  ;;
13886 esac
13887
13888
13889 echo "$as_me:$LINENO: checking for char" >&5
13890 echo $ECHO_N "checking for char... $ECHO_C" >&6
13891 if test "${ac_cv_type_char+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 $ac_includes_default
13902 int
13903 main ()
13904 {
13905 if ((char *) 0)
13906   return 0;
13907 if (sizeof (char))
13908   return 0;
13909   ;
13910   return 0;
13911 }
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915   (eval $ac_compile) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -s conftest.$ac_objext'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; }; then
13925   ac_cv_type_char=yes
13926 else
13927   echo "$as_me: failed program was:" >&5
13928 sed 's/^/| /' conftest.$ac_ext >&5
13929
13930 ac_cv_type_char=no
13931 fi
13932 rm -f conftest.$ac_objext conftest.$ac_ext
13933 fi
13934 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13935 echo "${ECHO_T}$ac_cv_type_char" >&6
13936
13937 echo "$as_me:$LINENO: checking size of char" >&5
13938 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13939 if test "${ac_cv_sizeof_char+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   if test "$ac_cv_type_char" = yes; then
13943   # The cast to unsigned long works around a bug in the HP C Compiler
13944   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13945   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13946   # This bug is HP SR number 8606223364.
13947   if test "$cross_compiling" = yes; then
13948   # Depending upon the size, compute the lo and hi bounds.
13949 cat >conftest.$ac_ext <<_ACEOF
13950 #line $LINENO "configure"
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956 $ac_includes_default
13957 int
13958 main ()
13959 {
13960 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13961 test_array [0] = 0
13962
13963   ;
13964   return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969   (eval $ac_compile) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); } &&
13973          { ac_try='test -s conftest.$ac_objext'
13974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975   (eval $ac_try) 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); }; }; then
13979   ac_lo=0 ac_mid=0
13980   while :; do
13981     cat >conftest.$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13983 /* confdefs.h.  */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h.  */
13988 $ac_includes_default
13989 int
13990 main ()
13991 {
13992 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13993 test_array [0] = 0
13994
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 rm -f conftest.$ac_objext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001   (eval $ac_compile) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); } &&
14005          { ac_try='test -s conftest.$ac_objext'
14006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; }; then
14011   ac_hi=$ac_mid; break
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 ac_lo=`expr $ac_mid + 1`
14017                     if test $ac_lo -le $ac_mid; then
14018                       ac_lo= ac_hi=
14019                       break
14020                     fi
14021                     ac_mid=`expr 2 '*' $ac_mid + 1`
14022 fi
14023 rm -f conftest.$ac_objext conftest.$ac_ext
14024   done
14025 else
14026   echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 cat >conftest.$ac_ext <<_ACEOF
14030 #line $LINENO "configure"
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036 $ac_includes_default
14037 int
14038 main ()
14039 {
14040 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14041 test_array [0] = 0
14042
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14049   (eval $ac_compile) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } &&
14053          { ac_try='test -s conftest.$ac_objext'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; }; then
14059   ac_hi=-1 ac_mid=-1
14060   while :; do
14061     cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068 $ac_includes_default
14069 int
14070 main ()
14071 {
14072 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14073 test_array [0] = 0
14074
14075   ;
14076   return 0;
14077 }
14078 _ACEOF
14079 rm -f conftest.$ac_objext
14080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081   (eval $ac_compile) 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } &&
14085          { ac_try='test -s conftest.$ac_objext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   ac_lo=$ac_mid; break
14092 else
14093   echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 ac_hi=`expr '(' $ac_mid ')' - 1`
14097                        if test $ac_mid -le $ac_hi; then
14098                          ac_lo= ac_hi=
14099                          break
14100                        fi
14101                        ac_mid=`expr 2 '*' $ac_mid`
14102 fi
14103 rm -f conftest.$ac_objext conftest.$ac_ext
14104   done
14105 else
14106   echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ac_lo= ac_hi=
14110 fi
14111 rm -f conftest.$ac_objext conftest.$ac_ext
14112 fi
14113 rm -f conftest.$ac_objext conftest.$ac_ext
14114 # Binary search between lo and hi bounds.
14115 while test "x$ac_lo" != "x$ac_hi"; do
14116   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14117   cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 $ac_includes_default
14125 int
14126 main ()
14127 {
14128 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14129 test_array [0] = 0
14130
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 rm -f conftest.$ac_objext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137   (eval $ac_compile) 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -s conftest.$ac_objext'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; }; then
14147   ac_hi=$ac_mid
14148 else
14149   echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14151
14152 ac_lo=`expr '(' $ac_mid ')' + 1`
14153 fi
14154 rm -f conftest.$ac_objext conftest.$ac_ext
14155 done
14156 case $ac_lo in
14157 ?*) ac_cv_sizeof_char=$ac_lo;;
14158 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14159 See \`config.log' for more details." >&5
14160 echo "$as_me: error: cannot compute sizeof (char), 77
14161 See \`config.log' for more details." >&2;}
14162    { (exit 1); exit 1; }; } ;;
14163 esac
14164 else
14165   if test "$cross_compiling" = yes; then
14166   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14167 See \`config.log' for more details." >&5
14168 echo "$as_me: error: cannot run test program while cross compiling
14169 See \`config.log' for more details." >&2;}
14170    { (exit 1); exit 1; }; }
14171 else
14172   cat >conftest.$ac_ext <<_ACEOF
14173 #line $LINENO "configure"
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179 $ac_includes_default
14180 long longval () { return (long) (sizeof (char)); }
14181 unsigned long ulongval () { return (long) (sizeof (char)); }
14182 #include <stdio.h>
14183 #include <stdlib.h>
14184 int
14185 main ()
14186 {
14187
14188   FILE *f = fopen ("conftest.val", "w");
14189   if (! f)
14190     exit (1);
14191   if (((long) (sizeof (char))) < 0)
14192     {
14193       long i = longval ();
14194       if (i != ((long) (sizeof (char))))
14195         exit (1);
14196       fprintf (f, "%ld\n", i);
14197     }
14198   else
14199     {
14200       unsigned long i = ulongval ();
14201       if (i != ((long) (sizeof (char))))
14202         exit (1);
14203       fprintf (f, "%lu\n", i);
14204     }
14205   exit (ferror (f) || fclose (f) != 0);
14206
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest$ac_exeext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14213   (eval $ac_link) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; }; then
14222   ac_cv_sizeof_char=`cat conftest.val`
14223 else
14224   echo "$as_me: program exited with status $ac_status" >&5
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 ( exit $ac_status )
14229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14230 See \`config.log' for more details." >&5
14231 echo "$as_me: error: cannot compute sizeof (char), 77
14232 See \`config.log' for more details." >&2;}
14233    { (exit 1); exit 1; }; }
14234 fi
14235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14236 fi
14237 fi
14238 rm -f conftest.val
14239 else
14240   ac_cv_sizeof_char=0
14241 fi
14242 fi
14243 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14244 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14245 cat >>confdefs.h <<_ACEOF
14246 #define SIZEOF_CHAR $ac_cv_sizeof_char
14247 _ACEOF
14248
14249
14250 echo "$as_me:$LINENO: checking for short" >&5
14251 echo $ECHO_N "checking for short... $ECHO_C" >&6
14252 if test "${ac_cv_type_short+set}" = set; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255   cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 $ac_includes_default
14263 int
14264 main ()
14265 {
14266 if ((short *) 0)
14267   return 0;
14268 if (sizeof (short))
14269   return 0;
14270   ;
14271   return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext
14275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14276   (eval $ac_compile) 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); } &&
14280          { ac_try='test -s conftest.$ac_objext'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; }; then
14286   ac_cv_type_short=yes
14287 else
14288   echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291 ac_cv_type_short=no
14292 fi
14293 rm -f conftest.$ac_objext conftest.$ac_ext
14294 fi
14295 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14296 echo "${ECHO_T}$ac_cv_type_short" >&6
14297
14298 echo "$as_me:$LINENO: checking size of short" >&5
14299 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14300 if test "${ac_cv_sizeof_short+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   if test "$ac_cv_type_short" = yes; then
14304   # The cast to unsigned long works around a bug in the HP C Compiler
14305   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14306   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14307   # This bug is HP SR number 8606223364.
14308   if test "$cross_compiling" = yes; then
14309   # Depending upon the size, compute the lo and hi bounds.
14310 cat >conftest.$ac_ext <<_ACEOF
14311 #line $LINENO "configure"
14312 /* confdefs.h.  */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h.  */
14317 $ac_includes_default
14318 int
14319 main ()
14320 {
14321 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14322 test_array [0] = 0
14323
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330   (eval $ac_compile) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } &&
14334          { ac_try='test -s conftest.$ac_objext'
14335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336   (eval $ac_try) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; }; then
14340   ac_lo=0 ac_mid=0
14341   while :; do
14342     cat >conftest.$ac_ext <<_ACEOF
14343 #line $LINENO "configure"
14344 /* confdefs.h.  */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h.  */
14349 $ac_includes_default
14350 int
14351 main ()
14352 {
14353 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14354 test_array [0] = 0
14355
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362   (eval $ac_compile) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } &&
14366          { ac_try='test -s conftest.$ac_objext'
14367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368   (eval $ac_try) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); }; }; then
14372   ac_hi=$ac_mid; break
14373 else
14374   echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 ac_lo=`expr $ac_mid + 1`
14378                     if test $ac_lo -le $ac_mid; then
14379                       ac_lo= ac_hi=
14380                       break
14381                     fi
14382                     ac_mid=`expr 2 '*' $ac_mid + 1`
14383 fi
14384 rm -f conftest.$ac_objext conftest.$ac_ext
14385   done
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390 cat >conftest.$ac_ext <<_ACEOF
14391 #line $LINENO "configure"
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 $ac_includes_default
14398 int
14399 main ()
14400 {
14401 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14402 test_array [0] = 0
14403
14404   ;
14405   return 0;
14406 }
14407 _ACEOF
14408 rm -f conftest.$ac_objext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410   (eval $ac_compile) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } &&
14414          { ac_try='test -s conftest.$ac_objext'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   ac_hi=-1 ac_mid=-1
14421   while :; do
14422     cat >conftest.$ac_ext <<_ACEOF
14423 #line $LINENO "configure"
14424 /* confdefs.h.  */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h.  */
14429 $ac_includes_default
14430 int
14431 main ()
14432 {
14433 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14434 test_array [0] = 0
14435
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442   (eval $ac_compile) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -s conftest.$ac_objext'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; }; then
14452   ac_lo=$ac_mid; break
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457 ac_hi=`expr '(' $ac_mid ')' - 1`
14458                        if test $ac_mid -le $ac_hi; then
14459                          ac_lo= ac_hi=
14460                          break
14461                        fi
14462                        ac_mid=`expr 2 '*' $ac_mid`
14463 fi
14464 rm -f conftest.$ac_objext conftest.$ac_ext
14465   done
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470 ac_lo= ac_hi=
14471 fi
14472 rm -f conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 rm -f conftest.$ac_objext conftest.$ac_ext
14475 # Binary search between lo and hi bounds.
14476 while test "x$ac_lo" != "x$ac_hi"; do
14477   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14478   cat >conftest.$ac_ext <<_ACEOF
14479 #line $LINENO "configure"
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 $ac_includes_default
14486 int
14487 main ()
14488 {
14489 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14490 test_array [0] = 0
14491
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498   (eval $ac_compile) 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); } &&
14502          { ac_try='test -s conftest.$ac_objext'
14503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504   (eval $ac_try) 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; }; then
14508   ac_hi=$ac_mid
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513 ac_lo=`expr '(' $ac_mid ')' + 1`
14514 fi
14515 rm -f conftest.$ac_objext conftest.$ac_ext
14516 done
14517 case $ac_lo in
14518 ?*) ac_cv_sizeof_short=$ac_lo;;
14519 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14520 See \`config.log' for more details." >&5
14521 echo "$as_me: error: cannot compute sizeof (short), 77
14522 See \`config.log' for more details." >&2;}
14523    { (exit 1); exit 1; }; } ;;
14524 esac
14525 else
14526   if test "$cross_compiling" = yes; then
14527   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14528 See \`config.log' for more details." >&5
14529 echo "$as_me: error: cannot run test program while cross compiling
14530 See \`config.log' for more details." >&2;}
14531    { (exit 1); exit 1; }; }
14532 else
14533   cat >conftest.$ac_ext <<_ACEOF
14534 #line $LINENO "configure"
14535 /* confdefs.h.  */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h.  */
14540 $ac_includes_default
14541 long longval () { return (long) (sizeof (short)); }
14542 unsigned long ulongval () { return (long) (sizeof (short)); }
14543 #include <stdio.h>
14544 #include <stdlib.h>
14545 int
14546 main ()
14547 {
14548
14549   FILE *f = fopen ("conftest.val", "w");
14550   if (! f)
14551     exit (1);
14552   if (((long) (sizeof (short))) < 0)
14553     {
14554       long i = longval ();
14555       if (i != ((long) (sizeof (short))))
14556         exit (1);
14557       fprintf (f, "%ld\n", i);
14558     }
14559   else
14560     {
14561       unsigned long i = ulongval ();
14562       if (i != ((long) (sizeof (short))))
14563         exit (1);
14564       fprintf (f, "%lu\n", i);
14565     }
14566   exit (ferror (f) || fclose (f) != 0);
14567
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574   (eval $ac_link) 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579   (eval $ac_try) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); }; }; then
14583   ac_cv_sizeof_short=`cat conftest.val`
14584 else
14585   echo "$as_me: program exited with status $ac_status" >&5
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 ( exit $ac_status )
14590 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14591 See \`config.log' for more details." >&5
14592 echo "$as_me: error: cannot compute sizeof (short), 77
14593 See \`config.log' for more details." >&2;}
14594    { (exit 1); exit 1; }; }
14595 fi
14596 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14597 fi
14598 fi
14599 rm -f conftest.val
14600 else
14601   ac_cv_sizeof_short=0
14602 fi
14603 fi
14604 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14605 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14606 cat >>confdefs.h <<_ACEOF
14607 #define SIZEOF_SHORT $ac_cv_sizeof_short
14608 _ACEOF
14609
14610
14611 echo "$as_me:$LINENO: checking for void *" >&5
14612 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14613 if test "${ac_cv_type_void_p+set}" = set; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 /* confdefs.h.  */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h.  */
14623 $ac_includes_default
14624 int
14625 main ()
14626 {
14627 if ((void * *) 0)
14628   return 0;
14629 if (sizeof (void *))
14630   return 0;
14631   ;
14632   return 0;
14633 }
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637   (eval $ac_compile) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); } &&
14641          { ac_try='test -s conftest.$ac_objext'
14642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643   (eval $ac_try) 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; }; then
14647   ac_cv_type_void_p=yes
14648 else
14649   echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_cv_type_void_p=no
14653 fi
14654 rm -f conftest.$ac_objext conftest.$ac_ext
14655 fi
14656 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14657 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14658
14659 echo "$as_me:$LINENO: checking size of void *" >&5
14660 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14661 if test "${ac_cv_sizeof_void_p+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   if test "$ac_cv_type_void_p" = yes; then
14665   # The cast to unsigned long works around a bug in the HP C Compiler
14666   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14667   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14668   # This bug is HP SR number 8606223364.
14669   if test "$cross_compiling" = yes; then
14670   # Depending upon the size, compute the lo and hi bounds.
14671 cat >conftest.$ac_ext <<_ACEOF
14672 #line $LINENO "configure"
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 $ac_includes_default
14679 int
14680 main ()
14681 {
14682 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14683 test_array [0] = 0
14684
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14691   (eval $ac_compile) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } &&
14695          { ac_try='test -s conftest.$ac_objext'
14696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697   (eval $ac_try) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   ac_lo=0 ac_mid=0
14702   while :; do
14703     cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 $ac_includes_default
14711 int
14712 main ()
14713 {
14714 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14715 test_array [0] = 0
14716
14717   ;
14718   return 0;
14719 }
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723   (eval $ac_compile) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } &&
14727          { ac_try='test -s conftest.$ac_objext'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; }; then
14733   ac_hi=$ac_mid; break
14734 else
14735   echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738 ac_lo=`expr $ac_mid + 1`
14739                     if test $ac_lo -le $ac_mid; then
14740                       ac_lo= ac_hi=
14741                       break
14742                     fi
14743                     ac_mid=`expr 2 '*' $ac_mid + 1`
14744 fi
14745 rm -f conftest.$ac_objext conftest.$ac_ext
14746   done
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 cat >conftest.$ac_ext <<_ACEOF
14752 #line $LINENO "configure"
14753 /* confdefs.h.  */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h.  */
14758 $ac_includes_default
14759 int
14760 main ()
14761 {
14762 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14763 test_array [0] = 0
14764
14765   ;
14766   return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14771   (eval $ac_compile) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -s conftest.$ac_objext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   ac_hi=-1 ac_mid=-1
14782   while :; do
14783     cat >conftest.$ac_ext <<_ACEOF
14784 #line $LINENO "configure"
14785 /* confdefs.h.  */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h.  */
14790 $ac_includes_default
14791 int
14792 main ()
14793 {
14794 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14795 test_array [0] = 0
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803   (eval $ac_compile) 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } &&
14807          { ac_try='test -s conftest.$ac_objext'
14808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809   (eval $ac_try) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; }; then
14813   ac_lo=$ac_mid; break
14814 else
14815   echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_hi=`expr '(' $ac_mid ')' - 1`
14819                        if test $ac_mid -le $ac_hi; then
14820                          ac_lo= ac_hi=
14821                          break
14822                        fi
14823                        ac_mid=`expr 2 '*' $ac_mid`
14824 fi
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14826   done
14827 else
14828   echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14830
14831 ac_lo= ac_hi=
14832 fi
14833 rm -f conftest.$ac_objext conftest.$ac_ext
14834 fi
14835 rm -f conftest.$ac_objext conftest.$ac_ext
14836 # Binary search between lo and hi bounds.
14837 while test "x$ac_lo" != "x$ac_hi"; do
14838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14839   cat >conftest.$ac_ext <<_ACEOF
14840 #line $LINENO "configure"
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 $ac_includes_default
14847 int
14848 main ()
14849 {
14850 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14851 test_array [0] = 0
14852
14853   ;
14854   return 0;
14855 }
14856 _ACEOF
14857 rm -f conftest.$ac_objext
14858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14859   (eval $ac_compile) 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); } &&
14863          { ac_try='test -s conftest.$ac_objext'
14864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865   (eval $ac_try) 2>&5
14866   ac_status=$?
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); }; }; then
14869   ac_hi=$ac_mid
14870 else
14871   echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14873
14874 ac_lo=`expr '(' $ac_mid ')' + 1`
14875 fi
14876 rm -f conftest.$ac_objext conftest.$ac_ext
14877 done
14878 case $ac_lo in
14879 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14881 See \`config.log' for more details." >&5
14882 echo "$as_me: error: cannot compute sizeof (void *), 77
14883 See \`config.log' for more details." >&2;}
14884    { (exit 1); exit 1; }; } ;;
14885 esac
14886 else
14887   if test "$cross_compiling" = yes; then
14888   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14889 See \`config.log' for more details." >&5
14890 echo "$as_me: error: cannot run test program while cross compiling
14891 See \`config.log' for more details." >&2;}
14892    { (exit 1); exit 1; }; }
14893 else
14894   cat >conftest.$ac_ext <<_ACEOF
14895 #line $LINENO "configure"
14896 /* confdefs.h.  */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h.  */
14901 $ac_includes_default
14902 long longval () { return (long) (sizeof (void *)); }
14903 unsigned long ulongval () { return (long) (sizeof (void *)); }
14904 #include <stdio.h>
14905 #include <stdlib.h>
14906 int
14907 main ()
14908 {
14909
14910   FILE *f = fopen ("conftest.val", "w");
14911   if (! f)
14912     exit (1);
14913   if (((long) (sizeof (void *))) < 0)
14914     {
14915       long i = longval ();
14916       if (i != ((long) (sizeof (void *))))
14917         exit (1);
14918       fprintf (f, "%ld\n", i);
14919     }
14920   else
14921     {
14922       unsigned long i = ulongval ();
14923       if (i != ((long) (sizeof (void *))))
14924         exit (1);
14925       fprintf (f, "%lu\n", i);
14926     }
14927   exit (ferror (f) || fclose (f) != 0);
14928
14929   ;
14930   return 0;
14931 }
14932 _ACEOF
14933 rm -f conftest$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935   (eval $ac_link) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940   (eval $ac_try) 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); }; }; then
14944   ac_cv_sizeof_void_p=`cat conftest.val`
14945 else
14946   echo "$as_me: program exited with status $ac_status" >&5
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ( exit $ac_status )
14951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14952 See \`config.log' for more details." >&5
14953 echo "$as_me: error: cannot compute sizeof (void *), 77
14954 See \`config.log' for more details." >&2;}
14955    { (exit 1); exit 1; }; }
14956 fi
14957 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14958 fi
14959 fi
14960 rm -f conftest.val
14961 else
14962   ac_cv_sizeof_void_p=0
14963 fi
14964 fi
14965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14966 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14967 cat >>confdefs.h <<_ACEOF
14968 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14969 _ACEOF
14970
14971
14972 echo "$as_me:$LINENO: checking for int" >&5
14973 echo $ECHO_N "checking for int... $ECHO_C" >&6
14974 if test "${ac_cv_type_int+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   cat >conftest.$ac_ext <<_ACEOF
14978 #line $LINENO "configure"
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 $ac_includes_default
14985 int
14986 main ()
14987 {
14988 if ((int *) 0)
14989   return 0;
14990 if (sizeof (int))
14991   return 0;
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998   (eval $ac_compile) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -s conftest.$ac_objext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_type_int=yes
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_cv_type_int=no
15014 fi
15015 rm -f conftest.$ac_objext conftest.$ac_ext
15016 fi
15017 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15018 echo "${ECHO_T}$ac_cv_type_int" >&6
15019
15020 echo "$as_me:$LINENO: checking size of int" >&5
15021 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15022 if test "${ac_cv_sizeof_int+set}" = set; then
15023   echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025   if test "$ac_cv_type_int" = yes; then
15026   # The cast to unsigned long works around a bug in the HP C Compiler
15027   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15028   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15029   # This bug is HP SR number 8606223364.
15030   if test "$cross_compiling" = yes; then
15031   # Depending upon the size, compute the lo and hi bounds.
15032 cat >conftest.$ac_ext <<_ACEOF
15033 #line $LINENO "configure"
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 $ac_includes_default
15040 int
15041 main ()
15042 {
15043 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15044 test_array [0] = 0
15045
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052   (eval $ac_compile) 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); } &&
15056          { ac_try='test -s conftest.$ac_objext'
15057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058   (eval $ac_try) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); }; }; then
15062   ac_lo=0 ac_mid=0
15063   while :; do
15064     cat >conftest.$ac_ext <<_ACEOF
15065 #line $LINENO "configure"
15066 /* confdefs.h.  */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h.  */
15071 $ac_includes_default
15072 int
15073 main ()
15074 {
15075 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15076 test_array [0] = 0
15077
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084   (eval $ac_compile) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); } &&
15088          { ac_try='test -s conftest.$ac_objext'
15089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090   (eval $ac_try) 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); }; }; then
15094   ac_hi=$ac_mid; break
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_lo=`expr $ac_mid + 1`
15100                     if test $ac_lo -le $ac_mid; then
15101                       ac_lo= ac_hi=
15102                       break
15103                     fi
15104                     ac_mid=`expr 2 '*' $ac_mid + 1`
15105 fi
15106 rm -f conftest.$ac_objext conftest.$ac_ext
15107   done
15108 else
15109   echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 cat >conftest.$ac_ext <<_ACEOF
15113 #line $LINENO "configure"
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119 $ac_includes_default
15120 int
15121 main ()
15122 {
15123 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15124 test_array [0] = 0
15125
15126   ;
15127   return 0;
15128 }
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132   (eval $ac_compile) 2>&5
15133   ac_status=$?
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } &&
15136          { ac_try='test -s conftest.$ac_objext'
15137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138   (eval $ac_try) 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; }; then
15142   ac_hi=-1 ac_mid=-1
15143   while :; do
15144     cat >conftest.$ac_ext <<_ACEOF
15145 #line $LINENO "configure"
15146 /* confdefs.h.  */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h.  */
15151 $ac_includes_default
15152 int
15153 main ()
15154 {
15155 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15156 test_array [0] = 0
15157
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164   (eval $ac_compile) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -s conftest.$ac_objext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   ac_lo=$ac_mid; break
15175 else
15176   echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 ac_hi=`expr '(' $ac_mid ')' - 1`
15180                        if test $ac_mid -le $ac_hi; then
15181                          ac_lo= ac_hi=
15182                          break
15183                        fi
15184                        ac_mid=`expr 2 '*' $ac_mid`
15185 fi
15186 rm -f conftest.$ac_objext conftest.$ac_ext
15187   done
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_lo= ac_hi=
15193 fi
15194 rm -f conftest.$ac_objext conftest.$ac_ext
15195 fi
15196 rm -f conftest.$ac_objext conftest.$ac_ext
15197 # Binary search between lo and hi bounds.
15198 while test "x$ac_lo" != "x$ac_hi"; do
15199   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15200   cat >conftest.$ac_ext <<_ACEOF
15201 #line $LINENO "configure"
15202 /* confdefs.h.  */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h.  */
15207 $ac_includes_default
15208 int
15209 main ()
15210 {
15211 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15212 test_array [0] = 0
15213
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220   (eval $ac_compile) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -s conftest.$ac_objext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_hi=$ac_mid
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_lo=`expr '(' $ac_mid ')' + 1`
15236 fi
15237 rm -f conftest.$ac_objext conftest.$ac_ext
15238 done
15239 case $ac_lo in
15240 ?*) ac_cv_sizeof_int=$ac_lo;;
15241 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15242 See \`config.log' for more details." >&5
15243 echo "$as_me: error: cannot compute sizeof (int), 77
15244 See \`config.log' for more details." >&2;}
15245    { (exit 1); exit 1; }; } ;;
15246 esac
15247 else
15248   if test "$cross_compiling" = yes; then
15249   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15250 See \`config.log' for more details." >&5
15251 echo "$as_me: error: cannot run test program while cross compiling
15252 See \`config.log' for more details." >&2;}
15253    { (exit 1); exit 1; }; }
15254 else
15255   cat >conftest.$ac_ext <<_ACEOF
15256 #line $LINENO "configure"
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262 $ac_includes_default
15263 long longval () { return (long) (sizeof (int)); }
15264 unsigned long ulongval () { return (long) (sizeof (int)); }
15265 #include <stdio.h>
15266 #include <stdlib.h>
15267 int
15268 main ()
15269 {
15270
15271   FILE *f = fopen ("conftest.val", "w");
15272   if (! f)
15273     exit (1);
15274   if (((long) (sizeof (int))) < 0)
15275     {
15276       long i = longval ();
15277       if (i != ((long) (sizeof (int))))
15278         exit (1);
15279       fprintf (f, "%ld\n", i);
15280     }
15281   else
15282     {
15283       unsigned long i = ulongval ();
15284       if (i != ((long) (sizeof (int))))
15285         exit (1);
15286       fprintf (f, "%lu\n", i);
15287     }
15288   exit (ferror (f) || fclose (f) != 0);
15289
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest$ac_exeext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296   (eval $ac_link) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301   (eval $ac_try) 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); }; }; then
15305   ac_cv_sizeof_int=`cat conftest.val`
15306 else
15307   echo "$as_me: program exited with status $ac_status" >&5
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 ( exit $ac_status )
15312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15313 See \`config.log' for more details." >&5
15314 echo "$as_me: error: cannot compute sizeof (int), 77
15315 See \`config.log' for more details." >&2;}
15316    { (exit 1); exit 1; }; }
15317 fi
15318 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15319 fi
15320 fi
15321 rm -f conftest.val
15322 else
15323   ac_cv_sizeof_int=0
15324 fi
15325 fi
15326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15327 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15328 cat >>confdefs.h <<_ACEOF
15329 #define SIZEOF_INT $ac_cv_sizeof_int
15330 _ACEOF
15331
15332
15333 echo "$as_me:$LINENO: checking for long" >&5
15334 echo $ECHO_N "checking for long... $ECHO_C" >&6
15335 if test "${ac_cv_type_long+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   cat >conftest.$ac_ext <<_ACEOF
15339 #line $LINENO "configure"
15340 /* confdefs.h.  */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h.  */
15345 $ac_includes_default
15346 int
15347 main ()
15348 {
15349 if ((long *) 0)
15350   return 0;
15351 if (sizeof (long))
15352   return 0;
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359   (eval $ac_compile) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -s conftest.$ac_objext'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369   ac_cv_type_long=yes
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374 ac_cv_type_long=no
15375 fi
15376 rm -f conftest.$ac_objext conftest.$ac_ext
15377 fi
15378 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15379 echo "${ECHO_T}$ac_cv_type_long" >&6
15380
15381 echo "$as_me:$LINENO: checking size of long" >&5
15382 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15383 if test "${ac_cv_sizeof_long+set}" = set; then
15384   echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386   if test "$ac_cv_type_long" = yes; then
15387   # The cast to unsigned long works around a bug in the HP C Compiler
15388   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15389   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15390   # This bug is HP SR number 8606223364.
15391   if test "$cross_compiling" = yes; then
15392   # Depending upon the size, compute the lo and hi bounds.
15393 cat >conftest.$ac_ext <<_ACEOF
15394 #line $LINENO "configure"
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 $ac_includes_default
15401 int
15402 main ()
15403 {
15404 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15405 test_array [0] = 0
15406
15407   ;
15408   return 0;
15409 }
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15413   (eval $ac_compile) 2>&5
15414   ac_status=$?
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); } &&
15417          { ac_try='test -s conftest.$ac_objext'
15418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419   (eval $ac_try) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; }; then
15423   ac_lo=0 ac_mid=0
15424   while :; do
15425     cat >conftest.$ac_ext <<_ACEOF
15426 #line $LINENO "configure"
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432 $ac_includes_default
15433 int
15434 main ()
15435 {
15436 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15437 test_array [0] = 0
15438
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445   (eval $ac_compile) 2>&5
15446   ac_status=$?
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -s conftest.$ac_objext'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; }; then
15455   ac_hi=$ac_mid; break
15456 else
15457   echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 ac_lo=`expr $ac_mid + 1`
15461                     if test $ac_lo -le $ac_mid; then
15462                       ac_lo= ac_hi=
15463                       break
15464                     fi
15465                     ac_mid=`expr 2 '*' $ac_mid + 1`
15466 fi
15467 rm -f conftest.$ac_objext conftest.$ac_ext
15468   done
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 $ac_includes_default
15481 int
15482 main ()
15483 {
15484 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15485 test_array [0] = 0
15486
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493   (eval $ac_compile) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -s conftest.$ac_objext'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; }; then
15503   ac_hi=-1 ac_mid=-1
15504   while :; do
15505     cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512 $ac_includes_default
15513 int
15514 main ()
15515 {
15516 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15517 test_array [0] = 0
15518
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525   (eval $ac_compile) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } &&
15529          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15535   ac_lo=$ac_mid; break
15536 else
15537   echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540 ac_hi=`expr '(' $ac_mid ')' - 1`
15541                        if test $ac_mid -le $ac_hi; then
15542                          ac_lo= ac_hi=
15543                          break
15544                        fi
15545                        ac_mid=`expr 2 '*' $ac_mid`
15546 fi
15547 rm -f conftest.$ac_objext conftest.$ac_ext
15548   done
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_lo= ac_hi=
15554 fi
15555 rm -f conftest.$ac_objext conftest.$ac_ext
15556 fi
15557 rm -f conftest.$ac_objext conftest.$ac_ext
15558 # Binary search between lo and hi bounds.
15559 while test "x$ac_lo" != "x$ac_hi"; do
15560   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15561   cat >conftest.$ac_ext <<_ACEOF
15562 #line $LINENO "configure"
15563 /* confdefs.h.  */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h.  */
15568 $ac_includes_default
15569 int
15570 main ()
15571 {
15572 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15573 test_array [0] = 0
15574
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 rm -f conftest.$ac_objext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15581   (eval $ac_compile) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -s conftest.$ac_objext'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   ac_hi=$ac_mid
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 ac_lo=`expr '(' $ac_mid ')' + 1`
15597 fi
15598 rm -f conftest.$ac_objext conftest.$ac_ext
15599 done
15600 case $ac_lo in
15601 ?*) ac_cv_sizeof_long=$ac_lo;;
15602 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15603 See \`config.log' for more details." >&5
15604 echo "$as_me: error: cannot compute sizeof (long), 77
15605 See \`config.log' for more details." >&2;}
15606    { (exit 1); exit 1; }; } ;;
15607 esac
15608 else
15609   if test "$cross_compiling" = yes; then
15610   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15611 See \`config.log' for more details." >&5
15612 echo "$as_me: error: cannot run test program while cross compiling
15613 See \`config.log' for more details." >&2;}
15614    { (exit 1); exit 1; }; }
15615 else
15616   cat >conftest.$ac_ext <<_ACEOF
15617 #line $LINENO "configure"
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623 $ac_includes_default
15624 long longval () { return (long) (sizeof (long)); }
15625 unsigned long ulongval () { return (long) (sizeof (long)); }
15626 #include <stdio.h>
15627 #include <stdlib.h>
15628 int
15629 main ()
15630 {
15631
15632   FILE *f = fopen ("conftest.val", "w");
15633   if (! f)
15634     exit (1);
15635   if (((long) (sizeof (long))) < 0)
15636     {
15637       long i = longval ();
15638       if (i != ((long) (sizeof (long))))
15639         exit (1);
15640       fprintf (f, "%ld\n", i);
15641     }
15642   else
15643     {
15644       unsigned long i = ulongval ();
15645       if (i != ((long) (sizeof (long))))
15646         exit (1);
15647       fprintf (f, "%lu\n", i);
15648     }
15649   exit (ferror (f) || fclose (f) != 0);
15650
15651   ;
15652   return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest$ac_exeext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15657   (eval $ac_link) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662   (eval $ac_try) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; }; then
15666   ac_cv_sizeof_long=`cat conftest.val`
15667 else
15668   echo "$as_me: program exited with status $ac_status" >&5
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ( exit $ac_status )
15673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15674 See \`config.log' for more details." >&5
15675 echo "$as_me: error: cannot compute sizeof (long), 77
15676 See \`config.log' for more details." >&2;}
15677    { (exit 1); exit 1; }; }
15678 fi
15679 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15680 fi
15681 fi
15682 rm -f conftest.val
15683 else
15684   ac_cv_sizeof_long=0
15685 fi
15686 fi
15687 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15688 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15689 cat >>confdefs.h <<_ACEOF
15690 #define SIZEOF_LONG $ac_cv_sizeof_long
15691 _ACEOF
15692
15693
15694 echo "$as_me:$LINENO: checking for size_t" >&5
15695 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15696 if test "${ac_cv_type_size_t+set}" = set; then
15697   echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699   cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706 $ac_includes_default
15707 int
15708 main ()
15709 {
15710 if ((size_t *) 0)
15711   return 0;
15712 if (sizeof (size_t))
15713   return 0;
15714   ;
15715   return 0;
15716 }
15717 _ACEOF
15718 rm -f conftest.$ac_objext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15720   (eval $ac_compile) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } &&
15724          { ac_try='test -s conftest.$ac_objext'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; }; then
15730   ac_cv_type_size_t=yes
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 ac_cv_type_size_t=no
15736 fi
15737 rm -f conftest.$ac_objext conftest.$ac_ext
15738 fi
15739 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15740 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15741
15742 echo "$as_me:$LINENO: checking size of size_t" >&5
15743 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
15744 if test "${ac_cv_sizeof_size_t+set}" = set; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747   if test "$ac_cv_type_size_t" = yes; then
15748   # The cast to unsigned long works around a bug in the HP C Compiler
15749   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15750   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15751   # This bug is HP SR number 8606223364.
15752   if test "$cross_compiling" = yes; then
15753   # Depending upon the size, compute the lo and hi bounds.
15754 cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761 $ac_includes_default
15762 int
15763 main ()
15764 {
15765 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
15766 test_array [0] = 0
15767
15768   ;
15769   return 0;
15770 }
15771 _ACEOF
15772 rm -f conftest.$ac_objext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774   (eval $ac_compile) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -s conftest.$ac_objext'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   ac_lo=0 ac_mid=0
15785   while :; do
15786     cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 /* confdefs.h.  */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h.  */
15793 $ac_includes_default
15794 int
15795 main ()
15796 {
15797 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15798 test_array [0] = 0
15799
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806   (eval $ac_compile) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } &&
15810          { ac_try='test -s conftest.$ac_objext'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; }; then
15816   ac_hi=$ac_mid; break
15817 else
15818   echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 ac_lo=`expr $ac_mid + 1`
15822                     if test $ac_lo -le $ac_mid; then
15823                       ac_lo= ac_hi=
15824                       break
15825                     fi
15826                     ac_mid=`expr 2 '*' $ac_mid + 1`
15827 fi
15828 rm -f conftest.$ac_objext conftest.$ac_ext
15829   done
15830 else
15831   echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 cat >conftest.$ac_ext <<_ACEOF
15835 #line $LINENO "configure"
15836 /* confdefs.h.  */
15837 _ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h.  */
15841 $ac_includes_default
15842 int
15843 main ()
15844 {
15845 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
15846 test_array [0] = 0
15847
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854   (eval $ac_compile) 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); } &&
15858          { ac_try='test -s conftest.$ac_objext'
15859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860   (eval $ac_try) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   ac_hi=-1 ac_mid=-1
15865   while :; do
15866     cat >conftest.$ac_ext <<_ACEOF
15867 #line $LINENO "configure"
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873 $ac_includes_default
15874 int
15875 main ()
15876 {
15877 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
15878 test_array [0] = 0
15879
15880   ;
15881   return 0;
15882 }
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886   (eval $ac_compile) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); } &&
15890          { ac_try='test -s conftest.$ac_objext'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896   ac_lo=$ac_mid; break
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 ac_hi=`expr '(' $ac_mid ')' - 1`
15902                        if test $ac_mid -le $ac_hi; then
15903                          ac_lo= ac_hi=
15904                          break
15905                        fi
15906                        ac_mid=`expr 2 '*' $ac_mid`
15907 fi
15908 rm -f conftest.$ac_objext conftest.$ac_ext
15909   done
15910 else
15911   echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 ac_lo= ac_hi=
15915 fi
15916 rm -f conftest.$ac_objext conftest.$ac_ext
15917 fi
15918 rm -f conftest.$ac_objext conftest.$ac_ext
15919 # Binary search between lo and hi bounds.
15920 while test "x$ac_lo" != "x$ac_hi"; do
15921   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15922   cat >conftest.$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15924 /* confdefs.h.  */
15925 _ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h.  */
15929 $ac_includes_default
15930 int
15931 main ()
15932 {
15933 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15934 test_array [0] = 0
15935
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942   (eval $ac_compile) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } &&
15946          { ac_try='test -s conftest.$ac_objext'
15947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948   (eval $ac_try) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   ac_hi=$ac_mid
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 ac_lo=`expr '(' $ac_mid ')' + 1`
15958 fi
15959 rm -f conftest.$ac_objext conftest.$ac_ext
15960 done
15961 case $ac_lo in
15962 ?*) ac_cv_sizeof_size_t=$ac_lo;;
15963 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15964 See \`config.log' for more details." >&5
15965 echo "$as_me: error: cannot compute sizeof (size_t), 77
15966 See \`config.log' for more details." >&2;}
15967    { (exit 1); exit 1; }; } ;;
15968 esac
15969 else
15970   if test "$cross_compiling" = yes; then
15971   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15972 See \`config.log' for more details." >&5
15973 echo "$as_me: error: cannot run test program while cross compiling
15974 See \`config.log' for more details." >&2;}
15975    { (exit 1); exit 1; }; }
15976 else
15977   cat >conftest.$ac_ext <<_ACEOF
15978 #line $LINENO "configure"
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984 $ac_includes_default
15985 long longval () { return (long) (sizeof (size_t)); }
15986 unsigned long ulongval () { return (long) (sizeof (size_t)); }
15987 #include <stdio.h>
15988 #include <stdlib.h>
15989 int
15990 main ()
15991 {
15992
15993   FILE *f = fopen ("conftest.val", "w");
15994   if (! f)
15995     exit (1);
15996   if (((long) (sizeof (size_t))) < 0)
15997     {
15998       long i = longval ();
15999       if (i != ((long) (sizeof (size_t))))
16000         exit (1);
16001       fprintf (f, "%ld\n", i);
16002     }
16003   else
16004     {
16005       unsigned long i = ulongval ();
16006       if (i != ((long) (sizeof (size_t))))
16007         exit (1);
16008       fprintf (f, "%lu\n", i);
16009     }
16010   exit (ferror (f) || fclose (f) != 0);
16011
16012   ;
16013   return 0;
16014 }
16015 _ACEOF
16016 rm -f conftest$ac_exeext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018   (eval $ac_link) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023   (eval $ac_try) 2>&5
16024   ac_status=$?
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); }; }; then
16027   ac_cv_sizeof_size_t=`cat conftest.val`
16028 else
16029   echo "$as_me: program exited with status $ac_status" >&5
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ( exit $ac_status )
16034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16035 See \`config.log' for more details." >&5
16036 echo "$as_me: error: cannot compute sizeof (size_t), 77
16037 See \`config.log' for more details." >&2;}
16038    { (exit 1); exit 1; }; }
16039 fi
16040 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16041 fi
16042 fi
16043 rm -f conftest.val
16044 else
16045   ac_cv_sizeof_size_t=0
16046 fi
16047 fi
16048 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16049 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16050 cat >>confdefs.h <<_ACEOF
16051 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16052 _ACEOF
16053
16054
16055
16056 case "${host}" in
16057     arm-*-linux* )
16058         echo "$as_me:$LINENO: checking for long long" >&5
16059 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16060 if test "${ac_cv_type_long_long+set}" = set; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   cat >conftest.$ac_ext <<_ACEOF
16064 #line $LINENO "configure"
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 $ac_includes_default
16071 int
16072 main ()
16073 {
16074 if ((long long *) 0)
16075   return 0;
16076 if (sizeof (long long))
16077   return 0;
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084   (eval $ac_compile) 2>&5
16085   ac_status=$?
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } &&
16088          { ac_try='test -s conftest.$ac_objext'
16089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090   (eval $ac_try) 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; }; then
16094   ac_cv_type_long_long=yes
16095 else
16096   echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099 ac_cv_type_long_long=no
16100 fi
16101 rm -f conftest.$ac_objext conftest.$ac_ext
16102 fi
16103 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16104 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16105
16106 echo "$as_me:$LINENO: checking size of long long" >&5
16107 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16108 if test "${ac_cv_sizeof_long_long+set}" = set; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   if test "$ac_cv_type_long_long" = yes; then
16112   # The cast to unsigned long works around a bug in the HP C Compiler
16113   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16114   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16115   # This bug is HP SR number 8606223364.
16116   if test "$cross_compiling" = yes; then
16117   # Depending upon the size, compute the lo and hi bounds.
16118 cat >conftest.$ac_ext <<_ACEOF
16119 #line $LINENO "configure"
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125 $ac_includes_default
16126 int
16127 main ()
16128 {
16129 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16130 test_array [0] = 0
16131
16132   ;
16133   return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16138   (eval $ac_compile) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); } &&
16142          { ac_try='test -s conftest.$ac_objext'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; }; then
16148   ac_lo=0 ac_mid=0
16149   while :; do
16150     cat >conftest.$ac_ext <<_ACEOF
16151 #line $LINENO "configure"
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 $ac_includes_default
16158 int
16159 main ()
16160 {
16161 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16162 test_array [0] = 0
16163
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170   (eval $ac_compile) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -s conftest.$ac_objext'
16175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176   (eval $ac_try) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180   ac_hi=$ac_mid; break
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185 ac_lo=`expr $ac_mid + 1`
16186                     if test $ac_lo -le $ac_mid; then
16187                       ac_lo= ac_hi=
16188                       break
16189                     fi
16190                     ac_mid=`expr 2 '*' $ac_mid + 1`
16191 fi
16192 rm -f conftest.$ac_objext conftest.$ac_ext
16193   done
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 cat >conftest.$ac_ext <<_ACEOF
16199 #line $LINENO "configure"
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205 $ac_includes_default
16206 int
16207 main ()
16208 {
16209 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16210 test_array [0] = 0
16211
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16218   (eval $ac_compile) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } &&
16222          { ac_try='test -s conftest.$ac_objext'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228   ac_hi=-1 ac_mid=-1
16229   while :; do
16230     cat >conftest.$ac_ext <<_ACEOF
16231 #line $LINENO "configure"
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237 $ac_includes_default
16238 int
16239 main ()
16240 {
16241 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16242 test_array [0] = 0
16243
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250   (eval $ac_compile) 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); } &&
16254          { ac_try='test -s conftest.$ac_objext'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   ac_lo=$ac_mid; break
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_hi=`expr '(' $ac_mid ')' - 1`
16266                        if test $ac_mid -le $ac_hi; then
16267                          ac_lo= ac_hi=
16268                          break
16269                        fi
16270                        ac_mid=`expr 2 '*' $ac_mid`
16271 fi
16272 rm -f conftest.$ac_objext conftest.$ac_ext
16273   done
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 ac_lo= ac_hi=
16279 fi
16280 rm -f conftest.$ac_objext conftest.$ac_ext
16281 fi
16282 rm -f conftest.$ac_objext conftest.$ac_ext
16283 # Binary search between lo and hi bounds.
16284 while test "x$ac_lo" != "x$ac_hi"; do
16285   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16286   cat >conftest.$ac_ext <<_ACEOF
16287 #line $LINENO "configure"
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293 $ac_includes_default
16294 int
16295 main ()
16296 {
16297 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16298 test_array [0] = 0
16299
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306   (eval $ac_compile) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -s conftest.$ac_objext'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316   ac_hi=$ac_mid
16317 else
16318   echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_lo=`expr '(' $ac_mid ')' + 1`
16322 fi
16323 rm -f conftest.$ac_objext conftest.$ac_ext
16324 done
16325 case $ac_lo in
16326 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16328 See \`config.log' for more details." >&5
16329 echo "$as_me: error: cannot compute sizeof (long long), 77
16330 See \`config.log' for more details." >&2;}
16331    { (exit 1); exit 1; }; } ;;
16332 esac
16333 else
16334   if test "$cross_compiling" = yes; then
16335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16336 See \`config.log' for more details." >&5
16337 echo "$as_me: error: cannot run test program while cross compiling
16338 See \`config.log' for more details." >&2;}
16339    { (exit 1); exit 1; }; }
16340 else
16341   cat >conftest.$ac_ext <<_ACEOF
16342 #line $LINENO "configure"
16343 /* confdefs.h.  */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h.  */
16348 $ac_includes_default
16349 long longval () { return (long) (sizeof (long long)); }
16350 unsigned long ulongval () { return (long) (sizeof (long long)); }
16351 #include <stdio.h>
16352 #include <stdlib.h>
16353 int
16354 main ()
16355 {
16356
16357   FILE *f = fopen ("conftest.val", "w");
16358   if (! f)
16359     exit (1);
16360   if (((long) (sizeof (long long))) < 0)
16361     {
16362       long i = longval ();
16363       if (i != ((long) (sizeof (long long))))
16364         exit (1);
16365       fprintf (f, "%ld\n", i);
16366     }
16367   else
16368     {
16369       unsigned long i = ulongval ();
16370       if (i != ((long) (sizeof (long long))))
16371         exit (1);
16372       fprintf (f, "%lu\n", i);
16373     }
16374   exit (ferror (f) || fclose (f) != 0);
16375
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382   (eval $ac_link) 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_cv_sizeof_long_long=`cat conftest.val`
16392 else
16393   echo "$as_me: program exited with status $ac_status" >&5
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ( exit $ac_status )
16398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16399 See \`config.log' for more details." >&5
16400 echo "$as_me: error: cannot compute sizeof (long long), 77
16401 See \`config.log' for more details." >&2;}
16402    { (exit 1); exit 1; }; }
16403 fi
16404 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16405 fi
16406 fi
16407 rm -f conftest.val
16408 else
16409   ac_cv_sizeof_long_long=0
16410 fi
16411 fi
16412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16413 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16414 cat >>confdefs.h <<_ACEOF
16415 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16416 _ACEOF
16417
16418
16419     ;;
16420     *-hp-hpux* )
16421         echo "$as_me:$LINENO: checking for long long" >&5
16422 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16423 if test "${ac_cv_type_long_long+set}" = set; then
16424   echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426   cat >conftest.$ac_ext <<_ACEOF
16427 #line $LINENO "configure"
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 $ac_includes_default
16434 int
16435 main ()
16436 {
16437 if ((long long *) 0)
16438   return 0;
16439 if (sizeof (long long))
16440   return 0;
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext
16446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16447   (eval $ac_compile) 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); } &&
16451          { ac_try='test -s conftest.$ac_objext'
16452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453   (eval $ac_try) 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }; then
16457   ac_cv_type_long_long=yes
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 ac_cv_type_long_long=no
16463 fi
16464 rm -f conftest.$ac_objext conftest.$ac_ext
16465 fi
16466 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16467 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16468
16469 echo "$as_me:$LINENO: checking size of long long" >&5
16470 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16471 if test "${ac_cv_sizeof_long_long+set}" = set; then
16472   echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474   if test "$ac_cv_type_long_long" = yes; then
16475   # The cast to unsigned long works around a bug in the HP C Compiler
16476   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16477   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16478   # This bug is HP SR number 8606223364.
16479   if test "$cross_compiling" = yes; then
16480   # Depending upon the size, compute the lo and hi bounds.
16481 cat >conftest.$ac_ext <<_ACEOF
16482 #line $LINENO "configure"
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488 $ac_includes_default
16489 int
16490 main ()
16491 {
16492 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16493 test_array [0] = 0
16494
16495   ;
16496   return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501   (eval $ac_compile) 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -s conftest.$ac_objext'
16506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507   (eval $ac_try) 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; }; then
16511   ac_lo=0 ac_mid=0
16512   while :; do
16513     cat >conftest.$ac_ext <<_ACEOF
16514 #line $LINENO "configure"
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 $ac_includes_default
16521 int
16522 main ()
16523 {
16524 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16525 test_array [0] = 0
16526
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 rm -f conftest.$ac_objext
16532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16533   (eval $ac_compile) 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } &&
16537          { ac_try='test -s conftest.$ac_objext'
16538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539   (eval $ac_try) 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; }; then
16543   ac_hi=$ac_mid; break
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 ac_lo=`expr $ac_mid + 1`
16549                     if test $ac_lo -le $ac_mid; then
16550                       ac_lo= ac_hi=
16551                       break
16552                     fi
16553                     ac_mid=`expr 2 '*' $ac_mid + 1`
16554 fi
16555 rm -f conftest.$ac_objext conftest.$ac_ext
16556   done
16557 else
16558   echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16560
16561 cat >conftest.$ac_ext <<_ACEOF
16562 #line $LINENO "configure"
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568 $ac_includes_default
16569 int
16570 main ()
16571 {
16572 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16573 test_array [0] = 0
16574
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16581   (eval $ac_compile) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } &&
16585          { ac_try='test -s conftest.$ac_objext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   ac_hi=-1 ac_mid=-1
16592   while :; do
16593     cat >conftest.$ac_ext <<_ACEOF
16594 #line $LINENO "configure"
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600 $ac_includes_default
16601 int
16602 main ()
16603 {
16604 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16605 test_array [0] = 0
16606
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613   (eval $ac_compile) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); } &&
16617          { ac_try='test -s conftest.$ac_objext'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   ac_lo=$ac_mid; break
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 ac_hi=`expr '(' $ac_mid ')' - 1`
16629                        if test $ac_mid -le $ac_hi; then
16630                          ac_lo= ac_hi=
16631                          break
16632                        fi
16633                        ac_mid=`expr 2 '*' $ac_mid`
16634 fi
16635 rm -f conftest.$ac_objext conftest.$ac_ext
16636   done
16637 else
16638   echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 ac_lo= ac_hi=
16642 fi
16643 rm -f conftest.$ac_objext conftest.$ac_ext
16644 fi
16645 rm -f conftest.$ac_objext conftest.$ac_ext
16646 # Binary search between lo and hi bounds.
16647 while test "x$ac_lo" != "x$ac_hi"; do
16648   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16649   cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 $ac_includes_default
16657 int
16658 main ()
16659 {
16660 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16661 test_array [0] = 0
16662
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669   (eval $ac_compile) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } &&
16673          { ac_try='test -s conftest.$ac_objext'
16674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675   (eval $ac_try) 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   ac_hi=$ac_mid
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 ac_lo=`expr '(' $ac_mid ')' + 1`
16685 fi
16686 rm -f conftest.$ac_objext conftest.$ac_ext
16687 done
16688 case $ac_lo in
16689 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16691 See \`config.log' for more details." >&5
16692 echo "$as_me: error: cannot compute sizeof (long long), 77
16693 See \`config.log' for more details." >&2;}
16694    { (exit 1); exit 1; }; } ;;
16695 esac
16696 else
16697   if test "$cross_compiling" = yes; then
16698   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16699 See \`config.log' for more details." >&5
16700 echo "$as_me: error: cannot run test program while cross compiling
16701 See \`config.log' for more details." >&2;}
16702    { (exit 1); exit 1; }; }
16703 else
16704   cat >conftest.$ac_ext <<_ACEOF
16705 #line $LINENO "configure"
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711 $ac_includes_default
16712 long longval () { return (long) (sizeof (long long)); }
16713 unsigned long ulongval () { return (long) (sizeof (long long)); }
16714 #include <stdio.h>
16715 #include <stdlib.h>
16716 int
16717 main ()
16718 {
16719
16720   FILE *f = fopen ("conftest.val", "w");
16721   if (! f)
16722     exit (1);
16723   if (((long) (sizeof (long long))) < 0)
16724     {
16725       long i = longval ();
16726       if (i != ((long) (sizeof (long long))))
16727         exit (1);
16728       fprintf (f, "%ld\n", i);
16729     }
16730   else
16731     {
16732       unsigned long i = ulongval ();
16733       if (i != ((long) (sizeof (long long))))
16734         exit (1);
16735       fprintf (f, "%lu\n", i);
16736     }
16737   exit (ferror (f) || fclose (f) != 0);
16738
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745   (eval $ac_link) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   ac_cv_sizeof_long_long=`cat conftest.val`
16755 else
16756   echo "$as_me: program exited with status $ac_status" >&5
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ( exit $ac_status )
16761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16762 See \`config.log' for more details." >&5
16763 echo "$as_me: error: cannot compute sizeof (long long), 77
16764 See \`config.log' for more details." >&2;}
16765    { (exit 1); exit 1; }; }
16766 fi
16767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16768 fi
16769 fi
16770 rm -f conftest.val
16771 else
16772   ac_cv_sizeof_long_long=0
16773 fi
16774 fi
16775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16776 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16777 cat >>confdefs.h <<_ACEOF
16778 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16779 _ACEOF
16780
16781
16782         if test "$ac_cv_sizeof_long_long" != "0"; then
16783                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16784         fi
16785     ;;
16786     * )
16787         echo "$as_me:$LINENO: checking for long long" >&5
16788 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16789 if test "${ac_cv_type_long_long+set}" = set; then
16790   echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792   cat >conftest.$ac_ext <<_ACEOF
16793 #line $LINENO "configure"
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799 $ac_includes_default
16800 int
16801 main ()
16802 {
16803 if ((long long *) 0)
16804   return 0;
16805 if (sizeof (long long))
16806   return 0;
16807   ;
16808   return 0;
16809 }
16810 _ACEOF
16811 rm -f conftest.$ac_objext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16813   (eval $ac_compile) 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } &&
16817          { ac_try='test -s conftest.$ac_objext'
16818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819   (eval $ac_try) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; }; then
16823   ac_cv_type_long_long=yes
16824 else
16825   echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16827
16828 ac_cv_type_long_long=no
16829 fi
16830 rm -f conftest.$ac_objext conftest.$ac_ext
16831 fi
16832 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16833 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16834
16835 echo "$as_me:$LINENO: checking size of long long" >&5
16836 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16837 if test "${ac_cv_sizeof_long_long+set}" = set; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   if test "$ac_cv_type_long_long" = yes; then
16841   # The cast to unsigned long works around a bug in the HP C Compiler
16842   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16843   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16844   # This bug is HP SR number 8606223364.
16845   if test "$cross_compiling" = yes; then
16846   # Depending upon the size, compute the lo and hi bounds.
16847 cat >conftest.$ac_ext <<_ACEOF
16848 #line $LINENO "configure"
16849 /* confdefs.h.  */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h.  */
16854 $ac_includes_default
16855 int
16856 main ()
16857 {
16858 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16859 test_array [0] = 0
16860
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867   (eval $ac_compile) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest.$ac_objext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_lo=0 ac_mid=0
16878   while :; do
16879     cat >conftest.$ac_ext <<_ACEOF
16880 #line $LINENO "configure"
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886 $ac_includes_default
16887 int
16888 main ()
16889 {
16890 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16891 test_array [0] = 0
16892
16893   ;
16894   return 0;
16895 }
16896 _ACEOF
16897 rm -f conftest.$ac_objext
16898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16899   (eval $ac_compile) 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); } &&
16903          { ac_try='test -s conftest.$ac_objext'
16904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905   (eval $ac_try) 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; }; then
16909   ac_hi=$ac_mid; break
16910 else
16911   echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914 ac_lo=`expr $ac_mid + 1`
16915                     if test $ac_lo -le $ac_mid; then
16916                       ac_lo= ac_hi=
16917                       break
16918                     fi
16919                     ac_mid=`expr 2 '*' $ac_mid + 1`
16920 fi
16921 rm -f conftest.$ac_objext conftest.$ac_ext
16922   done
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 cat >conftest.$ac_ext <<_ACEOF
16928 #line $LINENO "configure"
16929 /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934 $ac_includes_default
16935 int
16936 main ()
16937 {
16938 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16939 test_array [0] = 0
16940
16941   ;
16942   return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947   (eval $ac_compile) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } &&
16951          { ac_try='test -s conftest.$ac_objext'
16952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953   (eval $ac_try) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); }; }; then
16957   ac_hi=-1 ac_mid=-1
16958   while :; do
16959     cat >conftest.$ac_ext <<_ACEOF
16960 #line $LINENO "configure"
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966 $ac_includes_default
16967 int
16968 main ()
16969 {
16970 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16971 test_array [0] = 0
16972
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979   (eval $ac_compile) 2>&5
16980   ac_status=$?
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -s conftest.$ac_objext'
16984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985   (eval $ac_try) 2>&5
16986   ac_status=$?
16987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988   (exit $ac_status); }; }; then
16989   ac_lo=$ac_mid; break
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994 ac_hi=`expr '(' $ac_mid ')' - 1`
16995                        if test $ac_mid -le $ac_hi; then
16996                          ac_lo= ac_hi=
16997                          break
16998                        fi
16999                        ac_mid=`expr 2 '*' $ac_mid`
17000 fi
17001 rm -f conftest.$ac_objext conftest.$ac_ext
17002   done
17003 else
17004   echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17006
17007 ac_lo= ac_hi=
17008 fi
17009 rm -f conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 rm -f conftest.$ac_objext conftest.$ac_ext
17012 # Binary search between lo and hi bounds.
17013 while test "x$ac_lo" != "x$ac_hi"; do
17014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17015   cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022 $ac_includes_default
17023 int
17024 main ()
17025 {
17026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17027 test_array [0] = 0
17028
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17035   (eval $ac_compile) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } &&
17039          { ac_try='test -s conftest.$ac_objext'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_hi=$ac_mid
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_lo=`expr '(' $ac_mid ')' + 1`
17051 fi
17052 rm -f conftest.$ac_objext conftest.$ac_ext
17053 done
17054 case $ac_lo in
17055 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17056 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17057 See \`config.log' for more details." >&5
17058 echo "$as_me: error: cannot compute sizeof (long long), 77
17059 See \`config.log' for more details." >&2;}
17060    { (exit 1); exit 1; }; } ;;
17061 esac
17062 else
17063   if test "$cross_compiling" = yes; then
17064   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17065 See \`config.log' for more details." >&5
17066 echo "$as_me: error: cannot run test program while cross compiling
17067 See \`config.log' for more details." >&2;}
17068    { (exit 1); exit 1; }; }
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 #line $LINENO "configure"
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077 $ac_includes_default
17078 long longval () { return (long) (sizeof (long long)); }
17079 unsigned long ulongval () { return (long) (sizeof (long long)); }
17080 #include <stdio.h>
17081 #include <stdlib.h>
17082 int
17083 main ()
17084 {
17085
17086   FILE *f = fopen ("conftest.val", "w");
17087   if (! f)
17088     exit (1);
17089   if (((long) (sizeof (long long))) < 0)
17090     {
17091       long i = longval ();
17092       if (i != ((long) (sizeof (long long))))
17093         exit (1);
17094       fprintf (f, "%ld\n", i);
17095     }
17096   else
17097     {
17098       unsigned long i = ulongval ();
17099       if (i != ((long) (sizeof (long long))))
17100         exit (1);
17101       fprintf (f, "%lu\n", i);
17102     }
17103   exit (ferror (f) || fclose (f) != 0);
17104
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111   (eval $ac_link) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; }; then
17120   ac_cv_sizeof_long_long=`cat conftest.val`
17121 else
17122   echo "$as_me: program exited with status $ac_status" >&5
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ( exit $ac_status )
17127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17128 See \`config.log' for more details." >&5
17129 echo "$as_me: error: cannot compute sizeof (long long), 77
17130 See \`config.log' for more details." >&2;}
17131    { (exit 1); exit 1; }; }
17132 fi
17133 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17134 fi
17135 fi
17136 rm -f conftest.val
17137 else
17138   ac_cv_sizeof_long_long=0
17139 fi
17140 fi
17141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17142 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17143 cat >>confdefs.h <<_ACEOF
17144 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17145 _ACEOF
17146
17147
17148 esac
17149
17150 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17151 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17152 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155
17156     if test "$cross_compiling" = yes; then
17157
17158             case "${host}" in
17159               *-pc-msdosdjgpp )
17160                 wx_cv_sizeof_wchar_t=0
17161                 ;;
17162               * )
17163                 wx_cv_sizeof_wchar_t=4
17164                 ;;
17165             esac
17166
17167
17168 else
17169   cat >conftest.$ac_ext <<_ACEOF
17170 #line $LINENO "configure"
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176
17177             /* DJGPP only has fake wchar_t: */
17178             #ifdef __DJGPP__
17179             #  error "fake wchar_t"
17180             #endif
17181             #ifdef HAVE_WCHAR_H
17182             #  ifdef __CYGWIN__
17183             #    include <stddef.h>
17184             #  endif
17185             #  include <wchar.h>
17186             #endif
17187             #ifdef HAVE_STDLIB_H
17188             #  include <stdlib.h>
17189             #endif
17190             #include <stdio.h>
17191             int main()
17192             {
17193                 FILE *f=fopen("conftestval", "w");
17194                 if (!f) exit(1);
17195                 fprintf(f, "%i", sizeof(wchar_t));
17196                 exit(0);
17197             }
17198
17199 _ACEOF
17200 rm -f conftest$ac_exeext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17202   (eval $ac_link) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   wx_cv_sizeof_wchar_t=`cat conftestval`
17212 else
17213   echo "$as_me: program exited with status $ac_status" >&5
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 ( exit $ac_status )
17218 wx_cv_sizeof_wchar_t=0
17219 fi
17220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17221 fi
17222
17223 fi
17224 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17225 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17226
17227 cat >>confdefs.h <<_ACEOF
17228 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17229 _ACEOF
17230
17231
17232 # Check whether --enable-largefile or --disable-largefile was given.
17233 if test "${enable_largefile+set}" = set; then
17234   enableval="$enable_largefile"
17235
17236 fi;
17237 if test "$enable_largefile" != no; then
17238             wx_largefile=no
17239
17240     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17241 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17242 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17243   echo $ECHO_N "(cached) $ECHO_C" >&6
17244 else
17245
17246           cat >conftest.$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253 #define _FILE_OFFSET_BITS 64
17254                           #include <sys/types.h>
17255 int
17256 main ()
17257 {
17258 typedef struct {
17259     unsigned int field: sizeof(off_t) == 8;
17260 } wxlf;
17261
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17268   (eval $ac_compile) 2>&5
17269   ac_status=$?
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -s conftest.$ac_objext'
17273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274   (eval $ac_try) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); }; }; then
17278   ac_cv_sys_file_offset_bits=64
17279 else
17280   echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 ac_cv_sys_file_offset_bits=no
17284 fi
17285 rm -f conftest.$ac_objext conftest.$ac_ext
17286
17287
17288 fi
17289 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17290 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17291
17292     if test "$ac_cv_sys_file_offset_bits" != no; then
17293         wx_largefile=yes
17294         cat >>confdefs.h <<_ACEOF
17295 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17296 _ACEOF
17297
17298     fi
17299
17300     if test "x$wx_largefile" != "xyes"; then
17301
17302     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17303 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17304 if test "${ac_cv_sys_large_files+set}" = set; then
17305   echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307
17308           cat >conftest.$ac_ext <<_ACEOF
17309 #line $LINENO "configure"
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 #define _LARGE_FILES 1
17316                           #include <sys/types.h>
17317 int
17318 main ()
17319 {
17320 typedef struct {
17321     unsigned int field: sizeof(off_t) == 8;
17322 } wxlf;
17323
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17330   (eval $ac_compile) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -s conftest.$ac_objext'
17335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336   (eval $ac_try) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340   ac_cv_sys_large_files=1
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 ac_cv_sys_large_files=no
17346 fi
17347 rm -f conftest.$ac_objext conftest.$ac_ext
17348
17349
17350 fi
17351 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17352 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17353
17354     if test "$ac_cv_sys_large_files" != no; then
17355         wx_largefile=yes
17356         cat >>confdefs.h <<_ACEOF
17357 #define _LARGE_FILES $ac_cv_sys_large_files
17358 _ACEOF
17359
17360     fi
17361
17362     fi
17363
17364     echo "$as_me:$LINENO: checking if large file support is available" >&5
17365 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
17366     if test "x$wx_largefile" = "xyes"; then
17367         cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_LARGEFILE_SUPPORT 1
17369 _ACEOF
17370
17371     fi
17372     echo "$as_me:$LINENO: result: $wx_largefile" >&5
17373 echo "${ECHO_T}$wx_largefile" >&6
17374 fi
17375
17376
17377 if test "x$wx_largefile" = "xyes"; then
17378     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17379         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
17380     else
17381         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
17382     fi
17383     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
17384 fi
17385
17386 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17388 if test "${ac_cv_c_bigendian+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   ac_cv_c_bigendian=unknown
17392 # See if sys/param.h defines the BYTE_ORDER macro.
17393 cat >conftest.$ac_ext <<_ACEOF
17394 #line $LINENO "configure"
17395 /* confdefs.h.  */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h.  */
17400 #include <sys/types.h>
17401 #include <sys/param.h>
17402 int
17403 main ()
17404 {
17405
17406 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17407  bogus endian macros
17408 #endif
17409   ;
17410   return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17415   (eval $ac_compile) 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); } &&
17419          { ac_try='test -s conftest.$ac_objext'
17420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421   (eval $ac_try) 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; }; then
17425   # It does; now see whether it defined to BIG_ENDIAN or not.
17426 cat >conftest.$ac_ext <<_ACEOF
17427 #line $LINENO "configure"
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433 #include <sys/types.h>
17434 #include <sys/param.h>
17435 int
17436 main ()
17437 {
17438
17439 #if BYTE_ORDER != BIG_ENDIAN
17440  not big endian
17441 #endif
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17448   (eval $ac_compile) 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); } &&
17452          { ac_try='test -s conftest.$ac_objext'
17453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454   (eval $ac_try) 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); }; }; then
17458   ac_cv_c_bigendian=yes
17459 else
17460   echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17462
17463 ac_cv_c_bigendian=no
17464 fi
17465 rm -f conftest.$ac_objext conftest.$ac_ext
17466 else
17467   echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17469
17470 fi
17471 rm -f conftest.$ac_objext conftest.$ac_ext
17472 if test $ac_cv_c_bigendian = unknown; then
17473 if test "$cross_compiling" = yes; then
17474   ac_cv_c_bigendian=unknown
17475 else
17476   cat >conftest.$ac_ext <<_ACEOF
17477 #line $LINENO "configure"
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 main () {
17484   /* Are we little or big endian?  From Harbison&Steele.  */
17485   union
17486   {
17487     long l;
17488     char c[sizeof (long)];
17489   } u;
17490   u.l = 1;
17491   exit (u.c[sizeof (long) - 1] == 1);
17492 }
17493 _ACEOF
17494 rm -f conftest$ac_exeext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496   (eval $ac_link) 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501   (eval $ac_try) 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; }; then
17505   ac_cv_c_bigendian=no
17506 else
17507   echo "$as_me: program exited with status $ac_status" >&5
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 ( exit $ac_status )
17512 ac_cv_c_bigendian=yes
17513 fi
17514 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17515 fi
17516 fi
17517 fi
17518 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17519 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17520 if test $ac_cv_c_bigendian = unknown; then
17521   { 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
17522 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;}
17523 fi
17524 if test $ac_cv_c_bigendian = yes; then
17525   cat >>confdefs.h <<\_ACEOF
17526 #define WORDS_BIGENDIAN 1
17527 _ACEOF
17528
17529 fi
17530
17531
17532 ac_ext=cc
17533 ac_cpp='$CXXCPP $CPPFLAGS'
17534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17537 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17538 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17539 if test -z "$CXXCPP"; then
17540   if test "${ac_cv_prog_CXXCPP+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543       # Double quotes because CXXCPP needs to be expanded
17544     for CXXCPP in "$CXX -E" "/lib/cpp"
17545     do
17546       ac_preproc_ok=false
17547 for ac_cxx_preproc_warn_flag in '' yes
17548 do
17549   # Use a header file that comes with gcc, so configuring glibc
17550   # with a fresh cross-compiler works.
17551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552   # <limits.h> exists even on freestanding compilers.
17553   # On the NeXT, cc -E runs the code through the compiler's parser,
17554   # not just through cpp. "Syntax error" is here to catch this case.
17555   cat >conftest.$ac_ext <<_ACEOF
17556 #line $LINENO "configure"
17557 /* confdefs.h.  */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h.  */
17562 #ifdef __STDC__
17563 # include <limits.h>
17564 #else
17565 # include <assert.h>
17566 #endif
17567                      Syntax error
17568 _ACEOF
17569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17571   ac_status=$?
17572   grep -v '^ *+' conftest.er1 >conftest.err
17573   rm -f conftest.er1
17574   cat conftest.err >&5
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); } >/dev/null; then
17577   if test -s conftest.err; then
17578     ac_cpp_err=$ac_cxx_preproc_warn_flag
17579   else
17580     ac_cpp_err=
17581   fi
17582 else
17583   ac_cpp_err=yes
17584 fi
17585 if test -z "$ac_cpp_err"; then
17586   :
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591   # Broken: fails on valid input.
17592 continue
17593 fi
17594 rm -f conftest.err conftest.$ac_ext
17595
17596   # OK, works on sane cases.  Now check whether non-existent headers
17597   # can be detected and how.
17598   cat >conftest.$ac_ext <<_ACEOF
17599 #line $LINENO "configure"
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605 #include <ac_nonexistent.h>
17606 _ACEOF
17607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } >/dev/null; then
17615   if test -s conftest.err; then
17616     ac_cpp_err=$ac_cxx_preproc_warn_flag
17617   else
17618     ac_cpp_err=
17619   fi
17620 else
17621   ac_cpp_err=yes
17622 fi
17623 if test -z "$ac_cpp_err"; then
17624   # Broken: success on invalid input.
17625 continue
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630   # Passes both tests.
17631 ac_preproc_ok=:
17632 break
17633 fi
17634 rm -f conftest.err conftest.$ac_ext
17635
17636 done
17637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17638 rm -f conftest.err conftest.$ac_ext
17639 if $ac_preproc_ok; then
17640   break
17641 fi
17642
17643     done
17644     ac_cv_prog_CXXCPP=$CXXCPP
17645
17646 fi
17647   CXXCPP=$ac_cv_prog_CXXCPP
17648 else
17649   ac_cv_prog_CXXCPP=$CXXCPP
17650 fi
17651 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17652 echo "${ECHO_T}$CXXCPP" >&6
17653 ac_preproc_ok=false
17654 for ac_cxx_preproc_warn_flag in '' yes
17655 do
17656   # Use a header file that comes with gcc, so configuring glibc
17657   # with a fresh cross-compiler works.
17658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17659   # <limits.h> exists even on freestanding compilers.
17660   # On the NeXT, cc -E runs the code through the compiler's parser,
17661   # not just through cpp. "Syntax error" is here to catch this case.
17662   cat >conftest.$ac_ext <<_ACEOF
17663 #line $LINENO "configure"
17664 /* confdefs.h.  */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h.  */
17669 #ifdef __STDC__
17670 # include <limits.h>
17671 #else
17672 # include <assert.h>
17673 #endif
17674                      Syntax error
17675 _ACEOF
17676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } >/dev/null; then
17684   if test -s conftest.err; then
17685     ac_cpp_err=$ac_cxx_preproc_warn_flag
17686   else
17687     ac_cpp_err=
17688   fi
17689 else
17690   ac_cpp_err=yes
17691 fi
17692 if test -z "$ac_cpp_err"; then
17693   :
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698   # Broken: fails on valid input.
17699 continue
17700 fi
17701 rm -f conftest.err conftest.$ac_ext
17702
17703   # OK, works on sane cases.  Now check whether non-existent headers
17704   # can be detected and how.
17705   cat >conftest.$ac_ext <<_ACEOF
17706 #line $LINENO "configure"
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 #include <ac_nonexistent.h>
17713 _ACEOF
17714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } >/dev/null; then
17722   if test -s conftest.err; then
17723     ac_cpp_err=$ac_cxx_preproc_warn_flag
17724   else
17725     ac_cpp_err=
17726   fi
17727 else
17728   ac_cpp_err=yes
17729 fi
17730 if test -z "$ac_cpp_err"; then
17731   # Broken: success on invalid input.
17732 continue
17733 else
17734   echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737   # Passes both tests.
17738 ac_preproc_ok=:
17739 break
17740 fi
17741 rm -f conftest.err conftest.$ac_ext
17742
17743 done
17744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17745 rm -f conftest.err conftest.$ac_ext
17746 if $ac_preproc_ok; then
17747   :
17748 else
17749   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17750 See \`config.log' for more details." >&5
17751 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17752 See \`config.log' for more details." >&2;}
17753    { (exit 1); exit 1; }; }
17754 fi
17755
17756 ac_ext=cc
17757 ac_cpp='$CXXCPP $CPPFLAGS'
17758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17761
17762
17763
17764   if test "$cross_compiling" = "yes"; then
17765     cat >>confdefs.h <<\_ACEOF
17766 #define wxUSE_IOSTREAMH 1
17767 _ACEOF
17768
17769   else
17770
17771
17772     ac_ext=cc
17773 ac_cpp='$CXXCPP $CPPFLAGS'
17774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17777
17778
17779
17780 for ac_header in iostream
17781 do
17782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17784   echo "$as_me:$LINENO: checking for $ac_header" >&5
17785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 fi
17789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17791 else
17792   # Is the header compilable?
17793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17795 cat >conftest.$ac_ext <<_ACEOF
17796 #line $LINENO "configure"
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 $ac_includes_default
17803 #include <$ac_header>
17804 _ACEOF
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807   (eval $ac_compile) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -s conftest.$ac_objext'
17812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813   (eval $ac_try) 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; }; then
17817   ac_header_compiler=yes
17818 else
17819   echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822 ac_header_compiler=no
17823 fi
17824 rm -f conftest.$ac_objext conftest.$ac_ext
17825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17826 echo "${ECHO_T}$ac_header_compiler" >&6
17827
17828 # Is the header present?
17829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17831 cat >conftest.$ac_ext <<_ACEOF
17832 #line $LINENO "configure"
17833 /* confdefs.h.  */
17834 _ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h.  */
17838 #include <$ac_header>
17839 _ACEOF
17840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17842   ac_status=$?
17843   grep -v '^ *+' conftest.er1 >conftest.err
17844   rm -f conftest.er1
17845   cat conftest.err >&5
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } >/dev/null; then
17848   if test -s conftest.err; then
17849     ac_cpp_err=$ac_cxx_preproc_warn_flag
17850   else
17851     ac_cpp_err=
17852   fi
17853 else
17854   ac_cpp_err=yes
17855 fi
17856 if test -z "$ac_cpp_err"; then
17857   ac_header_preproc=yes
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862   ac_header_preproc=no
17863 fi
17864 rm -f conftest.err conftest.$ac_ext
17865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17866 echo "${ECHO_T}$ac_header_preproc" >&6
17867
17868 # So?  What about this header?
17869 case $ac_header_compiler:$ac_header_preproc in
17870   yes:no )
17871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17875     (
17876       cat <<\_ASBOX
17877 ## ------------------------------------ ##
17878 ## Report this to bug-autoconf@gnu.org. ##
17879 ## ------------------------------------ ##
17880 _ASBOX
17881     ) |
17882       sed "s/^/$as_me: WARNING:     /" >&2
17883     ;;
17884   no:yes )
17885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17887     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17891     (
17892       cat <<\_ASBOX
17893 ## ------------------------------------ ##
17894 ## Report this to bug-autoconf@gnu.org. ##
17895 ## ------------------------------------ ##
17896 _ASBOX
17897     ) |
17898       sed "s/^/$as_me: WARNING:     /" >&2
17899     ;;
17900 esac
17901 echo "$as_me:$LINENO: checking for $ac_header" >&5
17902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17904   echo $ECHO_N "(cached) $ECHO_C" >&6
17905 else
17906   eval "$as_ac_Header=$ac_header_preproc"
17907 fi
17908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17910
17911 fi
17912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17913   cat >>confdefs.h <<_ACEOF
17914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17915 _ACEOF
17916
17917 fi
17918
17919 done
17920
17921
17922     if test "$ac_cv_header_iostream" = "yes" ; then
17923       :
17924     else
17925       cat >>confdefs.h <<\_ACEOF
17926 #define wxUSE_IOSTREAMH 1
17927 _ACEOF
17928
17929     fi
17930
17931     ac_ext=c
17932 ac_cpp='$CPP $CPPFLAGS'
17933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17936
17937   fi
17938
17939
17940
17941   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17942 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17943 if test "${wx_cv_cpp_bool+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946
17947
17948
17949     ac_ext=cc
17950 ac_cpp='$CXXCPP $CPPFLAGS'
17951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17954
17955
17956     cat >conftest.$ac_ext <<_ACEOF
17957 #line $LINENO "configure"
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963
17964
17965 int
17966 main ()
17967 {
17968
17969         bool b = true;
17970
17971         return 0;
17972
17973   ;
17974   return 0;
17975 }
17976 _ACEOF
17977 rm -f conftest.$ac_objext
17978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17979   (eval $ac_compile) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); } &&
17983          { ac_try='test -s conftest.$ac_objext'
17984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985   (eval $ac_try) 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); }; }; then
17989
17990         wx_cv_cpp_bool=yes
17991
17992 else
17993   echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996
17997         wx_cv_cpp_bool=no
17998
17999
18000 fi
18001 rm -f conftest.$ac_objext conftest.$ac_ext
18002
18003     ac_ext=c
18004 ac_cpp='$CPP $CPPFLAGS'
18005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008
18009
18010 fi
18011 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18012 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18013
18014   if test "$wx_cv_cpp_bool" = "yes"; then
18015     cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_BOOL 1
18017 _ACEOF
18018
18019   fi
18020
18021
18022
18023   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18024 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18025 if test "${wx_cv_explicit+set}" = set; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028
18029
18030
18031     ac_ext=cc
18032 ac_cpp='$CXXCPP $CPPFLAGS'
18033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18036
18037
18038             cat >conftest.$ac_ext <<_ACEOF
18039 #line $LINENO "configure"
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045
18046         class Foo { public: explicit Foo(int) {} };
18047
18048 int
18049 main ()
18050 {
18051
18052         return 0;
18053
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060   (eval $ac_compile) 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } &&
18064          { ac_try='test -s conftest.$ac_objext'
18065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066   (eval $ac_try) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070
18071         cat >conftest.$ac_ext <<_ACEOF
18072 #line $LINENO "configure"
18073 /* confdefs.h.  */
18074 _ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h.  */
18078
18079                 class Foo { public: explicit Foo(int) {} };
18080                 static void TakeFoo(const Foo& foo) { }
18081
18082 int
18083 main ()
18084 {
18085
18086                 TakeFoo(17);
18087                 return 0;
18088
18089   ;
18090   return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095   (eval $ac_compile) 2>&5
18096   ac_status=$?
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -s conftest.$ac_objext'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; }; then
18105   wx_cv_explicit=no
18106 else
18107   echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110 wx_cv_explicit=yes
18111
18112 fi
18113 rm -f conftest.$ac_objext conftest.$ac_ext
18114
18115 else
18116   echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 wx_cv_explicit=no
18120
18121 fi
18122 rm -f conftest.$ac_objext conftest.$ac_ext
18123
18124     ac_ext=c
18125 ac_cpp='$CPP $CPPFLAGS'
18126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18129
18130
18131 fi
18132 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18133 echo "${ECHO_T}$wx_cv_explicit" >&6
18134
18135   if test "$wx_cv_explicit" = "yes"; then
18136     cat >>confdefs.h <<\_ACEOF
18137 #define HAVE_EXPLICIT 1
18138 _ACEOF
18139
18140   fi
18141
18142
18143 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18144 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18145 if test "${ac_cv_cxx_const_cast+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148
18149
18150  ac_ext=cc
18151 ac_cpp='$CXXCPP $CPPFLAGS'
18152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18155
18156  cat >conftest.$ac_ext <<_ACEOF
18157 #line $LINENO "configure"
18158 /* confdefs.h.  */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h.  */
18163
18164 int
18165 main ()
18166 {
18167 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext
18173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18174   (eval $ac_compile) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } &&
18178          { ac_try='test -s conftest.$ac_objext'
18179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180   (eval $ac_try) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); }; }; then
18184   ac_cv_cxx_const_cast=yes
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189 ac_cv_cxx_const_cast=no
18190 fi
18191 rm -f conftest.$ac_objext conftest.$ac_ext
18192  ac_ext=c
18193 ac_cpp='$CPP $CPPFLAGS'
18194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18197
18198
18199 fi
18200 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18201 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18202 if test "$ac_cv_cxx_const_cast" = yes; then
18203
18204 cat >>confdefs.h <<\_ACEOF
18205 #define HAVE_CONST_CAST
18206 _ACEOF
18207
18208 fi
18209
18210 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
18211 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
18212 if test "${ac_cv_cxx_static_cast+set}" = set; then
18213   echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215
18216
18217  ac_ext=cc
18218 ac_cpp='$CXXCPP $CPPFLAGS'
18219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18222
18223  cat >conftest.$ac_ext <<_ACEOF
18224 #line $LINENO "configure"
18225 /* confdefs.h.  */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h.  */
18230 #include <typeinfo>
18231 class Base { public : Base () {} virtual void f () = 0; };
18232 class Derived : public Base { public : Derived () {} virtual void f () {} };
18233 int g (Derived&) { return 0; }
18234 int
18235 main ()
18236 {
18237
18238 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18245   (eval $ac_compile) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          { ac_try='test -s conftest.$ac_objext'
18250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251   (eval $ac_try) 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; }; then
18255   ac_cv_cxx_static_cast=yes
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260 ac_cv_cxx_static_cast=no
18261 fi
18262 rm -f conftest.$ac_objext conftest.$ac_ext
18263  ac_ext=c
18264 ac_cpp='$CPP $CPPFLAGS'
18265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18268
18269
18270 fi
18271 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
18272 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
18273 if test "$ac_cv_cxx_static_cast" = yes; then
18274
18275 cat >>confdefs.h <<\_ACEOF
18276 #define HAVE_STATIC_CAST
18277 _ACEOF
18278
18279 fi
18280
18281
18282 if test "$wxUSE_STL" = "yes"; then
18283     ac_ext=cc
18284 ac_cpp='$CXXCPP $CPPFLAGS'
18285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288
18289
18290         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18291 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18292     cat >conftest.$ac_ext <<_ACEOF
18293 #line $LINENO "configure"
18294 /* confdefs.h.  */
18295 _ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h.  */
18299 #include <string>
18300                     #include <functional>
18301                     #include <algorithm>
18302                     #include <vector>
18303                     #include <list>
18304 int
18305 main ()
18306 {
18307 std::vector<int> moo;
18308                      std::list<int> foo;
18309                      std::vector<int>::iterator it =
18310                          std::find_if(moo.begin(), moo.end(),
18311                                       std::bind2nd(std::less<int>(), 3));
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18318   (eval $ac_compile) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); } &&
18322          { ac_try='test -s conftest.$ac_objext'
18323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324   (eval $ac_try) 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); }; }; then
18328   echo "$as_me:$LINENO: result: yes" >&5
18329 echo "${ECHO_T}yes" >&6
18330 else
18331   echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334 echo "$as_me:$LINENO: result: no" >&5
18335 echo "${ECHO_T}no" >&6
18336                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18337 echo "$as_me: error: Basic STL functionality missing" >&2;}
18338    { (exit 1); exit 1; }; }
18339 fi
18340 rm -f conftest.$ac_objext conftest.$ac_ext
18341
18342         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18343 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18344     cat >conftest.$ac_ext <<_ACEOF
18345 #line $LINENO "configure"
18346 /* confdefs.h.  */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h.  */
18351 #include <string>
18352 int
18353 main ()
18354 {
18355 std::wstring foo;
18356   ;
18357   return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362   (eval $ac_compile) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } &&
18366          { ac_try='test -s conftest.$ac_objext'
18367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368   (eval $ac_try) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; }; then
18372   echo "$as_me:$LINENO: result: yes" >&5
18373 echo "${ECHO_T}yes" >&6
18374                     cat >>confdefs.h <<\_ACEOF
18375 #define HAVE_STD_WSTRING 1
18376 _ACEOF
18377
18378 else
18379   echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382 echo "$as_me:$LINENO: result: no" >&5
18383 echo "${ECHO_T}no" >&6
18384 fi
18385 rm -f conftest.$ac_objext conftest.$ac_ext
18386
18387         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18388 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18389     cat >conftest.$ac_ext <<_ACEOF
18390 #line $LINENO "configure"
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396 #include <string>
18397 int
18398 main ()
18399 {
18400 std::string foo, bar;
18401                     foo.compare(bar);
18402                     foo.compare(1, 1, bar);
18403                     foo.compare(1, 1, bar, 1, 1);
18404                     foo.compare("");
18405                     foo.compare(1, 1, "");
18406                     foo.compare(1, 1, "", 2);
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413   (eval $ac_compile) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -s conftest.$ac_objext'
18418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419   (eval $ac_try) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; }; then
18423   echo "$as_me:$LINENO: result: yes" >&5
18424 echo "${ECHO_T}yes" >&6
18425                     cat >>confdefs.h <<\_ACEOF
18426 #define HAVE_STD_STRING_COMPARE 1
18427 _ACEOF
18428
18429 else
18430   echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433 echo "$as_me:$LINENO: result: no" >&5
18434 echo "${ECHO_T}no" >&6
18435 fi
18436 rm -f conftest.$ac_objext conftest.$ac_ext
18437
18438     ac_ext=c
18439 ac_cpp='$CPP $CPPFLAGS'
18440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18443
18444 fi
18445
18446
18447 SEARCH_INCLUDE="\
18448     /usr/local/include        \
18449                               \
18450     /usr/Motif-2.1/include    \
18451     /usr/Motif-1.2/include    \
18452     /usr/include/Motif1.2     \
18453     /opt/xpm/include/X11      \
18454     /opt/GBxpm/include/       \
18455     /opt/GBxpm/X11/include/   \
18456                               \
18457     /usr/dt/include           \
18458     /usr/openwin/include      \
18459                               \
18460     /usr/include/Xm           \
18461                               \
18462     /usr/X11R6/include        \
18463     /usr/X11R6.4/include      \
18464     /usr/X11R5/include        \
18465     /usr/X11R4/include        \
18466                               \
18467     /usr/include/X11R6        \
18468     /usr/include/X11R5        \
18469     /usr/include/X11R4        \
18470                               \
18471     /usr/local/X11R6/include  \
18472     /usr/local/X11R5/include  \
18473     /usr/local/X11R4/include  \
18474                               \
18475     /usr/local/include/X11R6  \
18476     /usr/local/include/X11R5  \
18477     /usr/local/include/X11R4  \
18478                               \
18479     /usr/X11/include          \
18480     /usr/include/X11          \
18481     /usr/local/X11/include    \
18482     /usr/local/include/X11    \
18483                               \
18484     /usr/X386/include         \
18485     /usr/x386/include         \
18486     /usr/XFree86/include/X11  \
18487                               \
18488     X:/XFree86/include        \
18489     X:/XFree86/include/X11    \
18490                               \
18491     /usr/include/gtk          \
18492     /usr/local/include/gtk    \
18493     /usr/include/glib         \
18494     /usr/local/include/glib   \
18495                               \
18496     /usr/include/qt           \
18497     /usr/local/include/qt     \
18498                               \
18499     /usr/local/arm/3.3.2/include     \
18500                               \
18501     /usr/include/windows      \
18502     /usr/include/wine         \
18503     /usr/local/include/wine   \
18504                               \
18505     /usr/unsupported/include  \
18506     /usr/athena/include       \
18507     /usr/local/x11r5/include  \
18508     /usr/lpp/Xamples/include  \
18509                               \
18510     /usr/openwin/share/include"
18511
18512 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
18513
18514
18515 cat >confcache <<\_ACEOF
18516 # This file is a shell script that caches the results of configure
18517 # tests run on this system so they can be shared between configure
18518 # scripts and configure runs, see configure's option --config-cache.
18519 # It is not useful on other systems.  If it contains results you don't
18520 # want to keep, you may remove or edit it.
18521 #
18522 # config.status only pays attention to the cache file if you give it
18523 # the --recheck option to rerun configure.
18524 #
18525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18527 # following values.
18528
18529 _ACEOF
18530
18531 # The following way of writing the cache mishandles newlines in values,
18532 # but we know of no workaround that is simple, portable, and efficient.
18533 # So, don't put newlines in cache variables' values.
18534 # Ultrix sh set writes to stderr and can't be redirected directly,
18535 # and sets the high bit in the cache file unless we assign to the vars.
18536 {
18537   (set) 2>&1 |
18538     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18539     *ac_space=\ *)
18540       # `set' does not quote correctly, so add quotes (double-quote
18541       # substitution turns \\\\ into \\, and sed turns \\ into \).
18542       sed -n \
18543         "s/'/'\\\\''/g;
18544           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18545       ;;
18546     *)
18547       # `set' quotes correctly as required by POSIX, so do not add quotes.
18548       sed -n \
18549         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18550       ;;
18551     esac;
18552 } |
18553   sed '
18554      t clear
18555      : clear
18556      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18557      t end
18558      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18559      : end' >>confcache
18560 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18561   if test -w $cache_file; then
18562     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18563     cat confcache >$cache_file
18564   else
18565     echo "not updating unwritable cache $cache_file"
18566   fi
18567 fi
18568 rm -f confcache
18569
18570 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18571     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18572 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18573 if test "${wx_cv_lib_glibc21+set}" = set; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576
18577         cat >conftest.$ac_ext <<_ACEOF
18578 #line $LINENO "configure"
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584 #include <features.h>
18585 int
18586 main ()
18587 {
18588
18589                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18590                     #error not glibc2.1
18591                 #endif
18592
18593   ;
18594   return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599   (eval $ac_compile) 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); } &&
18603          { ac_try='test -s conftest.$ac_objext'
18604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605   (eval $ac_try) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); }; }; then
18609
18610                 wx_cv_lib_glibc21=yes
18611
18612 else
18613   echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616
18617                 wx_cv_lib_glibc21=no
18618
18619
18620 fi
18621 rm -f conftest.$ac_objext conftest.$ac_ext
18622
18623 fi
18624 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18625 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18626     if test "$wx_cv_lib_glibc21" = "yes"; then
18627         cat >>confdefs.h <<\_ACEOF
18628 #define wxHAVE_GLIBC2 1
18629 _ACEOF
18630
18631     fi
18632 fi
18633
18634 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18635     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18636         cat >>confdefs.h <<\_ACEOF
18637 #define _GNU_SOURCE 1
18638 _ACEOF
18639
18640     fi
18641 fi
18642
18643
18644
18645 if test "$wxUSE_REGEX" != "no"; then
18646     cat >>confdefs.h <<\_ACEOF
18647 #define wxUSE_REGEX 1
18648 _ACEOF
18649
18650
18651     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18652         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
18653 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
18654         wxUSE_REGEX=builtin
18655     fi
18656
18657     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18658                         if test "${ac_cv_header_regex_h+set}" = set; then
18659   echo "$as_me:$LINENO: checking for regex.h" >&5
18660 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18661 if test "${ac_cv_header_regex_h+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 fi
18664 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18665 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18666 else
18667   # Is the header compilable?
18668 echo "$as_me:$LINENO: checking regex.h usability" >&5
18669 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18670 cat >conftest.$ac_ext <<_ACEOF
18671 #line $LINENO "configure"
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677 $ac_includes_default
18678 #include <regex.h>
18679 _ACEOF
18680 rm -f conftest.$ac_objext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18682   (eval $ac_compile) 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); } &&
18686          { ac_try='test -s conftest.$ac_objext'
18687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688   (eval $ac_try) 2>&5
18689   ac_status=$?
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); }; }; then
18692   ac_header_compiler=yes
18693 else
18694   echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18696
18697 ac_header_compiler=no
18698 fi
18699 rm -f conftest.$ac_objext conftest.$ac_ext
18700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18701 echo "${ECHO_T}$ac_header_compiler" >&6
18702
18703 # Is the header present?
18704 echo "$as_me:$LINENO: checking regex.h presence" >&5
18705 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18706 cat >conftest.$ac_ext <<_ACEOF
18707 #line $LINENO "configure"
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713 #include <regex.h>
18714 _ACEOF
18715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } >/dev/null; then
18723   if test -s conftest.err; then
18724     ac_cpp_err=$ac_c_preproc_warn_flag
18725   else
18726     ac_cpp_err=
18727   fi
18728 else
18729   ac_cpp_err=yes
18730 fi
18731 if test -z "$ac_cpp_err"; then
18732   ac_header_preproc=yes
18733 else
18734   echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737   ac_header_preproc=no
18738 fi
18739 rm -f conftest.err conftest.$ac_ext
18740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18741 echo "${ECHO_T}$ac_header_preproc" >&6
18742
18743 # So?  What about this header?
18744 case $ac_header_compiler:$ac_header_preproc in
18745   yes:no )
18746     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18747 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18748     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18749 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18750     (
18751       cat <<\_ASBOX
18752 ## ------------------------------------ ##
18753 ## Report this to bug-autoconf@gnu.org. ##
18754 ## ------------------------------------ ##
18755 _ASBOX
18756     ) |
18757       sed "s/^/$as_me: WARNING:     /" >&2
18758     ;;
18759   no:yes )
18760     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18761 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18762     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18763 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18764     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18765 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18766     (
18767       cat <<\_ASBOX
18768 ## ------------------------------------ ##
18769 ## Report this to bug-autoconf@gnu.org. ##
18770 ## ------------------------------------ ##
18771 _ASBOX
18772     ) |
18773       sed "s/^/$as_me: WARNING:     /" >&2
18774     ;;
18775 esac
18776 echo "$as_me:$LINENO: checking for regex.h" >&5
18777 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18778 if test "${ac_cv_header_regex_h+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   ac_cv_header_regex_h=$ac_header_preproc
18782 fi
18783 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18784 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18785
18786 fi
18787 if test $ac_cv_header_regex_h = yes; then
18788
18789 for ac_func in regcomp
18790 do
18791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18792 echo "$as_me:$LINENO: checking for $ac_func" >&5
18793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18794 if eval "test \"\${$as_ac_var+set}\" = set"; then
18795   echo $ECHO_N "(cached) $ECHO_C" >&6
18796 else
18797   cat >conftest.$ac_ext <<_ACEOF
18798 #line $LINENO "configure"
18799 /* confdefs.h.  */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h.  */
18804 /* System header to define __stub macros and hopefully few prototypes,
18805     which can conflict with char $ac_func (); below.
18806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807     <limits.h> exists even on freestanding compilers.  */
18808 #ifdef __STDC__
18809 # include <limits.h>
18810 #else
18811 # include <assert.h>
18812 #endif
18813 /* Override any gcc2 internal prototype to avoid an error.  */
18814 #ifdef __cplusplus
18815 extern "C"
18816 {
18817 #endif
18818 /* We use char because int might match the return type of a gcc2
18819    builtin and then its argument prototype would still apply.  */
18820 char $ac_func ();
18821 /* The GNU C library defines this for functions which it implements
18822     to always fail with ENOSYS.  Some functions are actually named
18823     something starting with __ and the normal name is an alias.  */
18824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18825 choke me
18826 #else
18827 char (*f) () = $ac_func;
18828 #endif
18829 #ifdef __cplusplus
18830 }
18831 #endif
18832
18833 int
18834 main ()
18835 {
18836 return f != $ac_func;
18837   ;
18838   return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext conftest$ac_exeext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18843   (eval $ac_link) 2>&5
18844   ac_status=$?
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); } &&
18847          { ac_try='test -s conftest$ac_exeext'
18848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849   (eval $ac_try) 2>&5
18850   ac_status=$?
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); }; }; then
18853   eval "$as_ac_var=yes"
18854 else
18855   echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 eval "$as_ac_var=no"
18859 fi
18860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18861 fi
18862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18864 if test `eval echo '${'$as_ac_var'}'` = yes; then
18865   cat >>confdefs.h <<_ACEOF
18866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18867 _ACEOF
18868
18869 fi
18870 done
18871
18872 fi
18873
18874
18875
18876         if test "x$ac_cv_func_regcomp" != "xyes"; then
18877             if test "$wxUSE_REGEX" = "sys" ; then
18878                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18879 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18880    { (exit 1); exit 1; }; }
18881             else
18882                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18883 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18884                 wxUSE_REGEX=builtin
18885             fi
18886         else
18887                         wxUSE_REGEX=sys
18888                         cat >>confdefs.h <<\_ACEOF
18889 #define WX_NO_REGEX_ADVANCED 1
18890 _ACEOF
18891
18892         fi
18893     fi
18894 fi
18895
18896
18897 ZLIB_LINK=
18898 if test "$wxUSE_ZLIB" != "no" ; then
18899     cat >>confdefs.h <<\_ACEOF
18900 #define wxUSE_ZLIB 1
18901 _ACEOF
18902
18903
18904     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18905                                                 if test "$USE_DARWIN" = 1; then
18906             system_zlib_h_ok="yes"
18907         else
18908                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18909 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18910 if test "${ac_cv_header_zlib_h+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   if test "$cross_compiling" = yes; then
18914                       unset ac_cv_header_zlib_h
18915
18916 else
18917   cat >conftest.$ac_ext <<_ACEOF
18918 #line $LINENO "configure"
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924
18925                         #include <zlib.h>
18926                         #include <stdio.h>
18927
18928                         int main()
18929                         {
18930                             FILE *f=fopen("conftestval", "w");
18931                             if (!f) exit(1);
18932                             fprintf(f, "%s",
18933                                     ZLIB_VERSION[0] == '1' &&
18934                                     (ZLIB_VERSION[2] > '1' ||
18935                                     (ZLIB_VERSION[2] == '1' &&
18936                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18937                             exit(0);
18938                         }
18939
18940 _ACEOF
18941 rm -f conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943   (eval $ac_link) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948   (eval $ac_try) 2>&5
18949   ac_status=$?
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); }; }; then
18952   ac_cv_header_zlib_h=`cat conftestval`
18953 else
18954   echo "$as_me: program exited with status $ac_status" >&5
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ( exit $ac_status )
18959 ac_cv_header_zlib_h=no
18960 fi
18961 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18962 fi
18963
18964 fi
18965 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18966 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18967                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18968   echo "$as_me:$LINENO: checking for zlib.h" >&5
18969 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18970 if test "${ac_cv_header_zlib_h+set}" = set; then
18971   echo $ECHO_N "(cached) $ECHO_C" >&6
18972 fi
18973 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18974 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18975 else
18976   # Is the header compilable?
18977 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18978 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18979 cat >conftest.$ac_ext <<_ACEOF
18980 #line $LINENO "configure"
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986 $ac_includes_default
18987 #include <zlib.h>
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18991   (eval $ac_compile) 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); } &&
18995          { ac_try='test -s conftest.$ac_objext'
18996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997   (eval $ac_try) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; }; then
19001   ac_header_compiler=yes
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 ac_header_compiler=no
19007 fi
19008 rm -f conftest.$ac_objext conftest.$ac_ext
19009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19010 echo "${ECHO_T}$ac_header_compiler" >&6
19011
19012 # Is the header present?
19013 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19014 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19016 #line $LINENO "configure"
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 #include <zlib.h>
19023 _ACEOF
19024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } >/dev/null; then
19032   if test -s conftest.err; then
19033     ac_cpp_err=$ac_c_preproc_warn_flag
19034   else
19035     ac_cpp_err=
19036   fi
19037 else
19038   ac_cpp_err=yes
19039 fi
19040 if test -z "$ac_cpp_err"; then
19041   ac_header_preproc=yes
19042 else
19043   echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046   ac_header_preproc=no
19047 fi
19048 rm -f conftest.err conftest.$ac_ext
19049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19050 echo "${ECHO_T}$ac_header_preproc" >&6
19051
19052 # So?  What about this header?
19053 case $ac_header_compiler:$ac_header_preproc in
19054   yes:no )
19055     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19056 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19057     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19058 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19059     (
19060       cat <<\_ASBOX
19061 ## ------------------------------------ ##
19062 ## Report this to bug-autoconf@gnu.org. ##
19063 ## ------------------------------------ ##
19064 _ASBOX
19065     ) |
19066       sed "s/^/$as_me: WARNING:     /" >&2
19067     ;;
19068   no:yes )
19069     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19070 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19071     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19072 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19073     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19074 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19075     (
19076       cat <<\_ASBOX
19077 ## ------------------------------------ ##
19078 ## Report this to bug-autoconf@gnu.org. ##
19079 ## ------------------------------------ ##
19080 _ASBOX
19081     ) |
19082       sed "s/^/$as_me: WARNING:     /" >&2
19083     ;;
19084 esac
19085 echo "$as_me:$LINENO: checking for zlib.h" >&5
19086 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19087 if test "${ac_cv_header_zlib_h+set}" = set; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   ac_cv_header_zlib_h=$ac_header_preproc
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19093 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19094
19095 fi
19096
19097
19098
19099             system_zlib_h_ok=$ac_cv_header_zlib_h
19100         fi
19101
19102         if test "$system_zlib_h_ok" = "yes"; then
19103             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19104 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19105 if test "${ac_cv_lib_z_deflate+set}" = set; then
19106   echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108   ac_check_lib_save_LIBS=$LIBS
19109 LIBS="-lz  $LIBS"
19110 cat >conftest.$ac_ext <<_ACEOF
19111 #line $LINENO "configure"
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117
19118 /* Override any gcc2 internal prototype to avoid an error.  */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 /* We use char because int might match the return type of a gcc2
19123    builtin and then its argument prototype would still apply.  */
19124 char deflate ();
19125 int
19126 main ()
19127 {
19128 deflate ();
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext conftest$ac_exeext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19135   (eval $ac_link) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -s conftest$ac_exeext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   ac_cv_lib_z_deflate=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_cv_lib_z_deflate=no
19151 fi
19152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19154 fi
19155 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19156 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19157 if test $ac_cv_lib_z_deflate = yes; then
19158   ZLIB_LINK=" -lz"
19159 fi
19160
19161         fi
19162
19163         if test "x$ZLIB_LINK" = "x" ; then
19164             if test "$wxUSE_ZLIB" = "sys" ; then
19165                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19166 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19167    { (exit 1); exit 1; }; }
19168             else
19169                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19170 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
19171                 wxUSE_ZLIB=builtin
19172             fi
19173         else
19174                         wxUSE_ZLIB=sys
19175         fi
19176     fi
19177 fi
19178
19179
19180 PNG_LINK=
19181 if test "$wxUSE_LIBPNG" != "no" ; then
19182     cat >>confdefs.h <<\_ACEOF
19183 #define wxUSE_LIBPNG 1
19184 _ACEOF
19185
19186
19187     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
19188         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19189 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
19190         wxUSE_LIBPNG=sys
19191     fi
19192
19193                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
19194         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19195 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
19196         wxUSE_LIBPNG=builtin
19197     fi
19198
19199     if test "$wxUSE_MGL" != 1 ; then
19200                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
19201                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19202 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19203 if test "${ac_cv_header_png_h+set}" = set; then
19204   echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206   if test "$cross_compiling" = yes; then
19207                       unset ac_cv_header_png_h
19208
19209 else
19210   cat >conftest.$ac_ext <<_ACEOF
19211 #line $LINENO "configure"
19212 /* confdefs.h.  */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h.  */
19217
19218                         #include <png.h>
19219                         #include <stdio.h>
19220
19221                         int main()
19222                         {
19223                             FILE *f=fopen("conftestval", "w");
19224                             if (!f) exit(1);
19225                             fprintf(f, "%s",
19226                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
19227                             exit(0);
19228                         }
19229
19230 _ACEOF
19231 rm -f conftest$ac_exeext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233   (eval $ac_link) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238   (eval $ac_try) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); }; }; then
19242   ac_cv_header_png_h=`cat conftestval`
19243 else
19244   echo "$as_me: program exited with status $ac_status" >&5
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 ( exit $ac_status )
19249 ac_cv_header_png_h=no
19250 fi
19251 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19252 fi
19253
19254 fi
19255 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19256 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19257             if test "${ac_cv_header_png_h+set}" = set; then
19258   echo "$as_me:$LINENO: checking for png.h" >&5
19259 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19260 if test "${ac_cv_header_png_h+set}" = set; then
19261   echo $ECHO_N "(cached) $ECHO_C" >&6
19262 fi
19263 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19264 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19265 else
19266   # Is the header compilable?
19267 echo "$as_me:$LINENO: checking png.h usability" >&5
19268 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19269 cat >conftest.$ac_ext <<_ACEOF
19270 #line $LINENO "configure"
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276 $ac_includes_default
19277 #include <png.h>
19278 _ACEOF
19279 rm -f conftest.$ac_objext
19280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19281   (eval $ac_compile) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -s conftest.$ac_objext'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   ac_header_compiler=yes
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_header_compiler=no
19297 fi
19298 rm -f conftest.$ac_objext conftest.$ac_ext
19299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19300 echo "${ECHO_T}$ac_header_compiler" >&6
19301
19302 # Is the header present?
19303 echo "$as_me:$LINENO: checking png.h presence" >&5
19304 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19306 #line $LINENO "configure"
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 #include <png.h>
19313 _ACEOF
19314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19316   ac_status=$?
19317   grep -v '^ *+' conftest.er1 >conftest.err
19318   rm -f conftest.er1
19319   cat conftest.err >&5
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } >/dev/null; then
19322   if test -s conftest.err; then
19323     ac_cpp_err=$ac_c_preproc_warn_flag
19324   else
19325     ac_cpp_err=
19326   fi
19327 else
19328   ac_cpp_err=yes
19329 fi
19330 if test -z "$ac_cpp_err"; then
19331   ac_header_preproc=yes
19332 else
19333   echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19335
19336   ac_header_preproc=no
19337 fi
19338 rm -f conftest.err conftest.$ac_ext
19339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19340 echo "${ECHO_T}$ac_header_preproc" >&6
19341
19342 # So?  What about this header?
19343 case $ac_header_compiler:$ac_header_preproc in
19344   yes:no )
19345     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19346 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19347     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19348 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19349     (
19350       cat <<\_ASBOX
19351 ## ------------------------------------ ##
19352 ## Report this to bug-autoconf@gnu.org. ##
19353 ## ------------------------------------ ##
19354 _ASBOX
19355     ) |
19356       sed "s/^/$as_me: WARNING:     /" >&2
19357     ;;
19358   no:yes )
19359     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19360 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19361     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19362 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19363     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19364 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19365     (
19366       cat <<\_ASBOX
19367 ## ------------------------------------ ##
19368 ## Report this to bug-autoconf@gnu.org. ##
19369 ## ------------------------------------ ##
19370 _ASBOX
19371     ) |
19372       sed "s/^/$as_me: WARNING:     /" >&2
19373     ;;
19374 esac
19375 echo "$as_me:$LINENO: checking for png.h" >&5
19376 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19377 if test "${ac_cv_header_png_h+set}" = set; then
19378   echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380   ac_cv_header_png_h=$ac_header_preproc
19381 fi
19382 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19383 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19384
19385 fi
19386
19387
19388
19389             if test "$ac_cv_header_png_h" = "yes"; then
19390                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19391 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19392 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   ac_check_lib_save_LIBS=$LIBS
19396 LIBS="-lpng -lz -lm $LIBS"
19397 cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404
19405 /* Override any gcc2 internal prototype to avoid an error.  */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 /* We use char because int might match the return type of a gcc2
19410    builtin and then its argument prototype would still apply.  */
19411 char png_check_sig ();
19412 int
19413 main ()
19414 {
19415 png_check_sig ();
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422   (eval $ac_link) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } &&
19426          { ac_try='test -s conftest$ac_exeext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_lib_png_png_check_sig=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437 ac_cv_lib_png_png_check_sig=no
19438 fi
19439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19441 fi
19442 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19443 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19444 if test $ac_cv_lib_png_png_check_sig = yes; then
19445   PNG_LINK=" -lpng"
19446 fi
19447
19448             fi
19449
19450             if test "x$PNG_LINK" = "x" ; then
19451                 if test "$wxUSE_LIBPNG" = "sys" ; then
19452                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19453 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19454    { (exit 1); exit 1; }; }
19455                 else
19456                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19457 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
19458                     wxUSE_LIBPNG=builtin
19459                 fi
19460             else
19461                                 wxUSE_LIBPNG=sys
19462             fi
19463         fi
19464     fi
19465
19466     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
19467 fi
19468
19469
19470 JPEG_LINK=
19471 if test "$wxUSE_LIBJPEG" != "no" ; then
19472     cat >>confdefs.h <<\_ACEOF
19473 #define wxUSE_LIBJPEG 1
19474 _ACEOF
19475
19476
19477     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
19478         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19479 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
19480         wxUSE_LIBJPEG=sys
19481     fi
19482
19483     if test "$wxUSE_MGL" != 1 ; then
19484                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
19485                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19486 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19487             if test "${ac_cv_header_jpeglib_h+set}" = set; then
19488   echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490   cat >conftest.$ac_ext <<_ACEOF
19491 #line $LINENO "configure"
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497
19498                         #undef HAVE_STDLIB_H
19499                         #include <stdio.h>
19500                         #include <jpeglib.h>
19501
19502 int
19503 main ()
19504 {
19505
19506
19507   ;
19508   return 0;
19509 }
19510 _ACEOF
19511 rm -f conftest.$ac_objext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513   (eval $ac_compile) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } &&
19517          { ac_try='test -s conftest.$ac_objext'
19518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519   (eval $ac_try) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; }; then
19523   ac_cv_header_jpeglib_h=yes
19524 else
19525   echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 ac_cv_header_jpeglib_h=no
19529
19530 fi
19531 rm -f conftest.$ac_objext conftest.$ac_ext
19532
19533 fi
19534
19535             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19536 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19537
19538             if test "$ac_cv_header_jpeglib_h" = "yes"; then
19539                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19540 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19541 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544   ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-ljpeg  $LIBS"
19546 cat >conftest.$ac_ext <<_ACEOF
19547 #line $LINENO "configure"
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553
19554 /* Override any gcc2 internal prototype to avoid an error.  */
19555 #ifdef __cplusplus
19556 extern "C"
19557 #endif
19558 /* We use char because int might match the return type of a gcc2
19559    builtin and then its argument prototype would still apply.  */
19560 char jpeg_read_header ();
19561 int
19562 main ()
19563 {
19564 jpeg_read_header ();
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571   (eval $ac_link) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } &&
19575          { ac_try='test -s conftest$ac_exeext'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; }; then
19581   ac_cv_lib_jpeg_jpeg_read_header=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586 ac_cv_lib_jpeg_jpeg_read_header=no
19587 fi
19588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19589 LIBS=$ac_check_lib_save_LIBS
19590 fi
19591 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19592 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19593 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19594   JPEG_LINK=" -ljpeg"
19595 fi
19596
19597             fi
19598
19599             if test "x$JPEG_LINK" = "x" ; then
19600                 if test "$wxUSE_LIBJPEG" = "sys" ; then
19601                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19602 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19603    { (exit 1); exit 1; }; }
19604                 else
19605                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19606 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19607                     wxUSE_LIBJPEG=builtin
19608                 fi
19609             else
19610                                 wxUSE_LIBJPEG=sys
19611             fi
19612         fi
19613     fi
19614 fi
19615
19616
19617 TIFF_LINK=
19618 TIFF_PREREQ_LINKS=-lm
19619 if test "$wxUSE_LIBTIFF" != "no" ; then
19620     cat >>confdefs.h <<\_ACEOF
19621 #define wxUSE_LIBTIFF 1
19622 _ACEOF
19623
19624
19625     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19626                         if test "$wxUSE_LIBJPEG" = "sys"; then
19627             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19628         fi
19629         if test "$wxUSE_ZLIB" = "sys"; then
19630             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19631         fi
19632         if test "${ac_cv_header_tiffio_h+set}" = set; then
19633   echo "$as_me:$LINENO: checking for tiffio.h" >&5
19634 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19635 if test "${ac_cv_header_tiffio_h+set}" = set; then
19636   echo $ECHO_N "(cached) $ECHO_C" >&6
19637 fi
19638 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19639 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19640 else
19641   # Is the header compilable?
19642 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19643 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19644 cat >conftest.$ac_ext <<_ACEOF
19645 #line $LINENO "configure"
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 $ac_includes_default
19652 #include <tiffio.h>
19653 _ACEOF
19654 rm -f conftest.$ac_objext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656   (eval $ac_compile) 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } &&
19660          { ac_try='test -s conftest.$ac_objext'
19661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; }; then
19666   ac_header_compiler=yes
19667 else
19668   echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_header_compiler=no
19672 fi
19673 rm -f conftest.$ac_objext conftest.$ac_ext
19674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19675 echo "${ECHO_T}$ac_header_compiler" >&6
19676
19677 # Is the header present?
19678 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19679 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19681 #line $LINENO "configure"
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687 #include <tiffio.h>
19688 _ACEOF
19689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19691   ac_status=$?
19692   grep -v '^ *+' conftest.er1 >conftest.err
19693   rm -f conftest.er1
19694   cat conftest.err >&5
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); } >/dev/null; then
19697   if test -s conftest.err; then
19698     ac_cpp_err=$ac_c_preproc_warn_flag
19699   else
19700     ac_cpp_err=
19701   fi
19702 else
19703   ac_cpp_err=yes
19704 fi
19705 if test -z "$ac_cpp_err"; then
19706   ac_header_preproc=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711   ac_header_preproc=no
19712 fi
19713 rm -f conftest.err conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19715 echo "${ECHO_T}$ac_header_preproc" >&6
19716
19717 # So?  What about this header?
19718 case $ac_header_compiler:$ac_header_preproc in
19719   yes:no )
19720     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19721 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19722     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19723 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19724     (
19725       cat <<\_ASBOX
19726 ## ------------------------------------ ##
19727 ## Report this to bug-autoconf@gnu.org. ##
19728 ## ------------------------------------ ##
19729 _ASBOX
19730     ) |
19731       sed "s/^/$as_me: WARNING:     /" >&2
19732     ;;
19733   no:yes )
19734     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19735 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19736     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19737 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19738     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19739 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19740     (
19741       cat <<\_ASBOX
19742 ## ------------------------------------ ##
19743 ## Report this to bug-autoconf@gnu.org. ##
19744 ## ------------------------------------ ##
19745 _ASBOX
19746     ) |
19747       sed "s/^/$as_me: WARNING:     /" >&2
19748     ;;
19749 esac
19750 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19751 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19752 if test "${ac_cv_header_tiffio_h+set}" = set; then
19753   echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755   ac_cv_header_tiffio_h=$ac_header_preproc
19756 fi
19757 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19758 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19759
19760 fi
19761 if test $ac_cv_header_tiffio_h = yes; then
19762
19763                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19764 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19765 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   ac_check_lib_save_LIBS=$LIBS
19769 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
19770 cat >conftest.$ac_ext <<_ACEOF
19771 #line $LINENO "configure"
19772 /* confdefs.h.  */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h.  */
19777
19778 /* Override any gcc2 internal prototype to avoid an error.  */
19779 #ifdef __cplusplus
19780 extern "C"
19781 #endif
19782 /* We use char because int might match the return type of a gcc2
19783    builtin and then its argument prototype would still apply.  */
19784 char TIFFError ();
19785 int
19786 main ()
19787 {
19788 TIFFError ();
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19795   (eval $ac_link) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } &&
19799          { ac_try='test -s conftest$ac_exeext'
19800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801   (eval $ac_try) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; }; then
19805   ac_cv_lib_tiff_TIFFError=yes
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 ac_cv_lib_tiff_TIFFError=no
19811 fi
19812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19813 LIBS=$ac_check_lib_save_LIBS
19814 fi
19815 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19816 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19817 if test $ac_cv_lib_tiff_TIFFError = yes; then
19818   TIFF_LINK=" -ltiff"
19819 fi
19820
19821
19822
19823 fi
19824
19825
19826
19827         if test "x$TIFF_LINK" = "x" ; then
19828             if test "$wxUSE_LIBTIFF" = "sys" ; then
19829                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19830 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19831    { (exit 1); exit 1; }; }
19832             else
19833                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19834 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19835                 wxUSE_LIBTIFF=builtin
19836             fi
19837         else
19838                         wxUSE_LIBTIFF=sys
19839         fi
19840     fi
19841 fi
19842
19843
19844 if test "$wxUSE_EXPAT" != "no"; then
19845     wxUSE_XML=yes
19846     cat >>confdefs.h <<\_ACEOF
19847 #define wxUSE_EXPAT 1
19848 _ACEOF
19849
19850     cat >>confdefs.h <<\_ACEOF
19851 #define wxUSE_XML 1
19852 _ACEOF
19853
19854
19855     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19856         if test "${ac_cv_header_expat_h+set}" = set; then
19857   echo "$as_me:$LINENO: checking for expat.h" >&5
19858 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19859 if test "${ac_cv_header_expat_h+set}" = set; then
19860   echo $ECHO_N "(cached) $ECHO_C" >&6
19861 fi
19862 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19863 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19864 else
19865   # Is the header compilable?
19866 echo "$as_me:$LINENO: checking expat.h usability" >&5
19867 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19869 #line $LINENO "configure"
19870 /* confdefs.h.  */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h.  */
19875 $ac_includes_default
19876 #include <expat.h>
19877 _ACEOF
19878 rm -f conftest.$ac_objext
19879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19880   (eval $ac_compile) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); } &&
19884          { ac_try='test -s conftest.$ac_objext'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_header_compiler=yes
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 ac_header_compiler=no
19896 fi
19897 rm -f conftest.$ac_objext conftest.$ac_ext
19898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19899 echo "${ECHO_T}$ac_header_compiler" >&6
19900
19901 # Is the header present?
19902 echo "$as_me:$LINENO: checking expat.h presence" >&5
19903 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19904 cat >conftest.$ac_ext <<_ACEOF
19905 #line $LINENO "configure"
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911 #include <expat.h>
19912 _ACEOF
19913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } >/dev/null; then
19921   if test -s conftest.err; then
19922     ac_cpp_err=$ac_c_preproc_warn_flag
19923   else
19924     ac_cpp_err=
19925   fi
19926 else
19927   ac_cpp_err=yes
19928 fi
19929 if test -z "$ac_cpp_err"; then
19930   ac_header_preproc=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935   ac_header_preproc=no
19936 fi
19937 rm -f conftest.err conftest.$ac_ext
19938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19939 echo "${ECHO_T}$ac_header_preproc" >&6
19940
19941 # So?  What about this header?
19942 case $ac_header_compiler:$ac_header_preproc in
19943   yes:no )
19944     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19945 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19946     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19947 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19948     (
19949       cat <<\_ASBOX
19950 ## ------------------------------------ ##
19951 ## Report this to bug-autoconf@gnu.org. ##
19952 ## ------------------------------------ ##
19953 _ASBOX
19954     ) |
19955       sed "s/^/$as_me: WARNING:     /" >&2
19956     ;;
19957   no:yes )
19958     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19959 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19960     { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19961 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19962     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19963 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19964     (
19965       cat <<\_ASBOX
19966 ## ------------------------------------ ##
19967 ## Report this to bug-autoconf@gnu.org. ##
19968 ## ------------------------------------ ##
19969 _ASBOX
19970     ) |
19971       sed "s/^/$as_me: WARNING:     /" >&2
19972     ;;
19973 esac
19974 echo "$as_me:$LINENO: checking for expat.h" >&5
19975 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19976 if test "${ac_cv_header_expat_h+set}" = set; then
19977   echo $ECHO_N "(cached) $ECHO_C" >&6
19978 else
19979   ac_cv_header_expat_h=$ac_header_preproc
19980 fi
19981 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19982 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19983
19984 fi
19985 if test $ac_cv_header_expat_h = yes; then
19986   found_expat_h=1
19987 fi
19988
19989
19990         if test "x$found_expat_h" = "x1"; then
19991                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19992 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19993 if test "${wx_cv_expat_is_not_broken+set}" = set; then
19994   echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19996
19997
19998
19999                 ac_ext=cc
20000 ac_cpp='$CXXCPP $CPPFLAGS'
20001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20004
20005                 cat >conftest.$ac_ext <<_ACEOF
20006 #line $LINENO "configure"
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 #include <expat.h>
20013 int
20014 main ()
20015 {
20016
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023   (eval $ac_compile) 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   wx_cv_expat_is_not_broken=yes
20034 else
20035   echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 wx_cv_expat_is_not_broken=no
20039
20040 fi
20041 rm -f conftest.$ac_objext conftest.$ac_ext
20042                 ac_ext=c
20043 ac_cpp='$CPP $CPPFLAGS'
20044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20047
20048
20049
20050 fi
20051 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20052 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20053             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20054                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20055 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20056 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   ac_check_lib_save_LIBS=$LIBS
20060 LIBS="-lexpat  $LIBS"
20061 cat >conftest.$ac_ext <<_ACEOF
20062 #line $LINENO "configure"
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068
20069 /* Override any gcc2 internal prototype to avoid an error.  */
20070 #ifdef __cplusplus
20071 extern "C"
20072 #endif
20073 /* We use char because int might match the return type of a gcc2
20074    builtin and then its argument prototype would still apply.  */
20075 char XML_ParserCreate ();
20076 int
20077 main ()
20078 {
20079 XML_ParserCreate ();
20080   ;
20081   return 0;
20082 }
20083 _ACEOF
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20086   (eval $ac_link) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } &&
20090          { ac_try='test -s conftest$ac_exeext'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; }; then
20096   ac_cv_lib_expat_XML_ParserCreate=yes
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101 ac_cv_lib_expat_XML_ParserCreate=no
20102 fi
20103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20104 LIBS=$ac_check_lib_save_LIBS
20105 fi
20106 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20107 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20108 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20109   EXPAT_LINK=" -lexpat"
20110 fi
20111
20112             fi
20113         fi
20114         if test "x$EXPAT_LINK" = "x" ; then
20115             if test "$wxUSE_EXPAT" = "sys" ; then
20116                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20117 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20118    { (exit 1); exit 1; }; }
20119             else
20120                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20121 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20122                 wxUSE_EXPAT=builtin
20123             fi
20124         else
20125                         wxUSE_EXPAT=sys
20126         fi
20127     fi
20128     if test "$wxUSE_EXPAT" = "builtin" ; then
20129
20130
20131 subdirs="$subdirs src/expat"
20132
20133     fi
20134 fi
20135
20136
20137
20138 if test "$wxUSE_LIBMSPACK" != "no"; then
20139
20140     if test "${ac_cv_header_mspack_h+set}" = set; then
20141   echo "$as_me:$LINENO: checking for mspack.h" >&5
20142 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20143 if test "${ac_cv_header_mspack_h+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 fi
20146 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20147 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20148 else
20149   # Is the header compilable?
20150 echo "$as_me:$LINENO: checking mspack.h usability" >&5
20151 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20152 cat >conftest.$ac_ext <<_ACEOF
20153 #line $LINENO "configure"
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159 $ac_includes_default
20160 #include <mspack.h>
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164   (eval $ac_compile) 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } &&
20168          { ac_try='test -s conftest.$ac_objext'
20169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170   (eval $ac_try) 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; }; then
20174   ac_header_compiler=yes
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_header_compiler=no
20180 fi
20181 rm -f conftest.$ac_objext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183 echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185 # Is the header present?
20186 echo "$as_me:$LINENO: checking mspack.h presence" >&5
20187 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20189 #line $LINENO "configure"
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195 #include <mspack.h>
20196 _ACEOF
20197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20199   ac_status=$?
20200   grep -v '^ *+' conftest.er1 >conftest.err
20201   rm -f conftest.er1
20202   cat conftest.err >&5
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); } >/dev/null; then
20205   if test -s conftest.err; then
20206     ac_cpp_err=$ac_c_preproc_warn_flag
20207   else
20208     ac_cpp_err=
20209   fi
20210 else
20211   ac_cpp_err=yes
20212 fi
20213 if test -z "$ac_cpp_err"; then
20214   ac_header_preproc=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219   ac_header_preproc=no
20220 fi
20221 rm -f conftest.err conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223 echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225 # So?  What about this header?
20226 case $ac_header_compiler:$ac_header_preproc in
20227   yes:no )
20228     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20230     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20231 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20232     (
20233       cat <<\_ASBOX
20234 ## ------------------------------------ ##
20235 ## Report this to bug-autoconf@gnu.org. ##
20236 ## ------------------------------------ ##
20237 _ASBOX
20238     ) |
20239       sed "s/^/$as_me: WARNING:     /" >&2
20240     ;;
20241   no:yes )
20242     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20243 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
20244     { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20245 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20246     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20247 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20248     (
20249       cat <<\_ASBOX
20250 ## ------------------------------------ ##
20251 ## Report this to bug-autoconf@gnu.org. ##
20252 ## ------------------------------------ ##
20253 _ASBOX
20254     ) |
20255       sed "s/^/$as_me: WARNING:     /" >&2
20256     ;;
20257 esac
20258 echo "$as_me:$LINENO: checking for mspack.h" >&5
20259 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20260 if test "${ac_cv_header_mspack_h+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263   ac_cv_header_mspack_h=$ac_header_preproc
20264 fi
20265 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20266 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20267
20268 fi
20269 if test $ac_cv_header_mspack_h = yes; then
20270   found_mspack_h=1
20271 fi
20272
20273
20274     if test "x$found_mspack_h" = "x1"; then
20275         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20276 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20277 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280   ac_check_lib_save_LIBS=$LIBS
20281 LIBS="-lmspack  $LIBS"
20282 cat >conftest.$ac_ext <<_ACEOF
20283 #line $LINENO "configure"
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289
20290 /* Override any gcc2 internal prototype to avoid an error.  */
20291 #ifdef __cplusplus
20292 extern "C"
20293 #endif
20294 /* We use char because int might match the return type of a gcc2
20295    builtin and then its argument prototype would still apply.  */
20296 char mspack_create_chm_decompressor ();
20297 int
20298 main ()
20299 {
20300 mspack_create_chm_decompressor ();
20301   ;
20302   return 0;
20303 }
20304 _ACEOF
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20307   (eval $ac_link) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } &&
20311          { ac_try='test -s conftest$ac_exeext'
20312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313   (eval $ac_try) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; }; then
20317   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20318 else
20319   echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20323 fi
20324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20326 fi
20327 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20328 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20329 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20330   MSPACK_LINK=" -lmspack"
20331 fi
20332
20333     fi
20334     if test "x$MSPACK_LINK" = "x" ; then
20335         wxUSE_LIBMSPACK=no
20336     else
20337         cat >>confdefs.h <<\_ACEOF
20338 #define wxUSE_LIBMSPACK 1
20339 _ACEOF
20340
20341     fi
20342 fi
20343
20344
20345
20346 AFMINSTALL=
20347 WIN32INSTALL=
20348
20349 TOOLKIT=
20350 TOOLKIT_INCLUDE=
20351 WIDGET_SET=
20352
20353 if test "$USE_WIN32" = 1 ; then
20354
20355 for ac_header in w32api.h
20356 do
20357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359   echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 fi
20364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20366 else
20367   # Is the header compilable?
20368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20370 cat >conftest.$ac_ext <<_ACEOF
20371 #line $LINENO "configure"
20372 /* confdefs.h.  */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h.  */
20377 $ac_includes_default
20378 #include <$ac_header>
20379 _ACEOF
20380 rm -f conftest.$ac_objext
20381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20382   (eval $ac_compile) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } &&
20386          { ac_try='test -s conftest.$ac_objext'
20387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388   (eval $ac_try) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; }; then
20392   ac_header_compiler=yes
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 ac_header_compiler=no
20398 fi
20399 rm -f conftest.$ac_objext conftest.$ac_ext
20400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20401 echo "${ECHO_T}$ac_header_compiler" >&6
20402
20403 # Is the header present?
20404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20406 cat >conftest.$ac_ext <<_ACEOF
20407 #line $LINENO "configure"
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <$ac_header>
20414 _ACEOF
20415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20417   ac_status=$?
20418   grep -v '^ *+' conftest.er1 >conftest.err
20419   rm -f conftest.er1
20420   cat conftest.err >&5
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } >/dev/null; then
20423   if test -s conftest.err; then
20424     ac_cpp_err=$ac_c_preproc_warn_flag
20425   else
20426     ac_cpp_err=
20427   fi
20428 else
20429   ac_cpp_err=yes
20430 fi
20431 if test -z "$ac_cpp_err"; then
20432   ac_header_preproc=yes
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437   ac_header_preproc=no
20438 fi
20439 rm -f conftest.err conftest.$ac_ext
20440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20441 echo "${ECHO_T}$ac_header_preproc" >&6
20442
20443 # So?  What about this header?
20444 case $ac_header_compiler:$ac_header_preproc in
20445   yes:no )
20446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20450     (
20451       cat <<\_ASBOX
20452 ## ------------------------------------ ##
20453 ## Report this to bug-autoconf@gnu.org. ##
20454 ## ------------------------------------ ##
20455 _ASBOX
20456     ) |
20457       sed "s/^/$as_me: WARNING:     /" >&2
20458     ;;
20459   no:yes )
20460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20462     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20466     (
20467       cat <<\_ASBOX
20468 ## ------------------------------------ ##
20469 ## Report this to bug-autoconf@gnu.org. ##
20470 ## ------------------------------------ ##
20471 _ASBOX
20472     ) |
20473       sed "s/^/$as_me: WARNING:     /" >&2
20474     ;;
20475 esac
20476 echo "$as_me:$LINENO: checking for $ac_header" >&5
20477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20479   echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481   eval "$as_ac_Header=$ac_header_preproc"
20482 fi
20483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20485
20486 fi
20487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20488   cat >>confdefs.h <<_ACEOF
20489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20490 _ACEOF
20491
20492 fi
20493
20494 done
20495
20496     if test "${ac_cv_header_windows_h+set}" = set; then
20497   echo "$as_me:$LINENO: checking for windows.h" >&5
20498 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20499 if test "${ac_cv_header_windows_h+set}" = set; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 fi
20502 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20503 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20504 else
20505   # Is the header compilable?
20506 echo "$as_me:$LINENO: checking windows.h usability" >&5
20507 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20509 #line $LINENO "configure"
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515 $ac_includes_default
20516 #include <windows.h>
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20520   (eval $ac_compile) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } &&
20524          { ac_try='test -s conftest.$ac_objext'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; }; then
20530   ac_header_compiler=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 ac_header_compiler=no
20536 fi
20537 rm -f conftest.$ac_objext conftest.$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20539 echo "${ECHO_T}$ac_header_compiler" >&6
20540
20541 # Is the header present?
20542 echo "$as_me:$LINENO: checking windows.h presence" >&5
20543 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20545 #line $LINENO "configure"
20546 /* confdefs.h.  */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h.  */
20551 #include <windows.h>
20552 _ACEOF
20553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20554   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20561   if test -s conftest.err; then
20562     ac_cpp_err=$ac_c_preproc_warn_flag
20563   else
20564     ac_cpp_err=
20565   fi
20566 else
20567   ac_cpp_err=yes
20568 fi
20569 if test -z "$ac_cpp_err"; then
20570   ac_header_preproc=yes
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575   ac_header_preproc=no
20576 fi
20577 rm -f conftest.err conftest.$ac_ext
20578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20579 echo "${ECHO_T}$ac_header_preproc" >&6
20580
20581 # So?  What about this header?
20582 case $ac_header_compiler:$ac_header_preproc in
20583   yes:no )
20584     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20585 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20586     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20587 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20588     (
20589       cat <<\_ASBOX
20590 ## ------------------------------------ ##
20591 ## Report this to bug-autoconf@gnu.org. ##
20592 ## ------------------------------------ ##
20593 _ASBOX
20594     ) |
20595       sed "s/^/$as_me: WARNING:     /" >&2
20596     ;;
20597   no:yes )
20598     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20599 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
20600     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20601 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
20602     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20603 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20604     (
20605       cat <<\_ASBOX
20606 ## ------------------------------------ ##
20607 ## Report this to bug-autoconf@gnu.org. ##
20608 ## ------------------------------------ ##
20609 _ASBOX
20610     ) |
20611       sed "s/^/$as_me: WARNING:     /" >&2
20612     ;;
20613 esac
20614 echo "$as_me:$LINENO: checking for windows.h" >&5
20615 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20616 if test "${ac_cv_header_windows_h+set}" = set; then
20617   echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619   ac_cv_header_windows_h=$ac_header_preproc
20620 fi
20621 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20622 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20623
20624 fi
20625 if test $ac_cv_header_windows_h = yes; then
20626   :
20627 else
20628
20629         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20630 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20631    { (exit 1); exit 1; }; }
20632
20633 fi
20634
20635
20636
20637             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
20638
20639     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20640         LIBS="$LIBS -loleacc"
20641     fi
20642
20643     case "${host}" in
20644         *-*-cygwin* )
20645                         LIBS="$LIBS -lkernel32 -luser32"
20646             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
20647     esac
20648
20649         if test "$wxUSE_ODBC" = "sys" ; then
20650         wxUSE_ODBC = "yes"
20651     fi
20652     if test "$wxUSE_ODBC" = "yes" ; then
20653         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
20654         cat >>confdefs.h <<\_ACEOF
20655 #define wxUSE_ODBC 1
20656 _ACEOF
20657
20658     fi
20659
20660     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20661     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
20662
20663         WIN32INSTALL=win32install
20664 fi
20665
20666 if test "$wxUSE_GUI" = "yes"; then
20667     USE_GUI=1
20668
20669     GUI_TK_LIBRARY=
20670
20671     WXGTK12=
20672     WXGTK127=
20673     WXGTK20=
20674     WXGPE=
20675
20676     if test "$wxUSE_MSW" = 1 ; then
20677         TOOLKIT=MSW
20678         GUIDIST=MSW_DIST
20679
20680                                 case "${host}" in
20681             *-*-mingw32* )
20682                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20683         esac
20684     fi
20685
20686     if test "$wxUSE_GTK" = 1; then
20687         echo "$as_me:$LINENO: checking for GTK+ version" >&5
20688 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
20689
20690         gtk_version_cached=1
20691         if test "${wx_cv_lib_gtk+set}" = set; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694
20695                                                 gtk_version_cached=0
20696                 echo "$as_me:$LINENO: result: " >&5
20697 echo "${ECHO_T}" >&6
20698
20699                                                 GTK_MODULES=
20700                 if test "$wxUSE_THREADS" = "yes"; then
20701                     GTK_MODULES=gthread
20702                 fi
20703
20704                                                 wx_cv_lib_gtk=
20705                 if test "x$wxUSE_GTK2" = "xyes"; then
20706                     # Check whether --enable-gtktest or --disable-gtktest was given.
20707 if test "${enable_gtktest+set}" = set; then
20708   enableval="$enable_gtktest"
20709
20710 else
20711   enable_gtktest=yes
20712 fi;
20713
20714   pkg_config_args=gtk+-2.0
20715   for module in . $GTK_MODULES
20716   do
20717       case "$module" in
20718          gthread)
20719              pkg_config_args="$pkg_config_args gthread-2.0"
20720          ;;
20721       esac
20722   done
20723
20724   no_gtk=""
20725
20726   # Extract the first word of "pkg-config", so it can be a program name with args.
20727 set dummy pkg-config; ac_word=$2
20728 echo "$as_me:$LINENO: checking for $ac_word" >&5
20729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20730 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20731   echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733   case $PKG_CONFIG in
20734   [\\/]* | ?:[\\/]*)
20735   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20736   ;;
20737   *)
20738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20739 for as_dir in $PATH
20740 do
20741   IFS=$as_save_IFS
20742   test -z "$as_dir" && as_dir=.
20743   for ac_exec_ext in '' $ac_executable_extensions; do
20744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20745     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20747     break 2
20748   fi
20749 done
20750 done
20751
20752   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20753   ;;
20754 esac
20755 fi
20756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20757
20758 if test -n "$PKG_CONFIG"; then
20759   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20760 echo "${ECHO_T}$PKG_CONFIG" >&6
20761 else
20762   echo "$as_me:$LINENO: result: no" >&5
20763 echo "${ECHO_T}no" >&6
20764 fi
20765
20766
20767   if test x$PKG_CONFIG != xno ; then
20768     if pkg-config --atleast-pkgconfig-version 0.7 ; then
20769       :
20770     else
20771       echo *** pkg-config too old; version 0.7 or better required.
20772       no_gtk=yes
20773       PKG_CONFIG=no
20774     fi
20775   else
20776     no_gtk=yes
20777   fi
20778
20779   min_gtk_version=2.0.0
20780   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20781 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
20782
20783   if test x$PKG_CONFIG != xno ; then
20784     ## don't try to run the test against uninstalled libtool libs
20785     if $PKG_CONFIG --uninstalled $pkg_config_args; then
20786           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20787           enable_gtktest=no
20788     fi
20789
20790     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20791           :
20792     else
20793           no_gtk=yes
20794     fi
20795   fi
20796
20797   if test x"$no_gtk" = x ; then
20798     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20799     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20800     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20801            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20802     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20803            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20804     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20805            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20806     if test "x$enable_gtktest" = "xyes" ; then
20807       ac_save_CFLAGS="$CFLAGS"
20808       ac_save_LIBS="$LIBS"
20809       CFLAGS="$CFLAGS $GTK_CFLAGS"
20810       LIBS="$GTK_LIBS $LIBS"
20811       rm -f conf.gtktest
20812       if test "$cross_compiling" = yes; then
20813   echo $ac_n "cross compiling; assumed OK... $ac_c"
20814 else
20815   cat >conftest.$ac_ext <<_ACEOF
20816 #line $LINENO "configure"
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822
20823 #include <gtk/gtk.h>
20824 #include <stdio.h>
20825 #include <stdlib.h>
20826
20827 int
20828 main ()
20829 {
20830   int major, minor, micro;
20831   char *tmp_version;
20832
20833   system ("touch conf.gtktest");
20834
20835   /* HP/UX 9 (%@#!) writes to sscanf strings */
20836   tmp_version = g_strdup("$min_gtk_version");
20837   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20838      printf("%s, bad version string\n", "$min_gtk_version");
20839      exit(1);
20840    }
20841
20842   if ((gtk_major_version != $gtk_config_major_version) ||
20843       (gtk_minor_version != $gtk_config_minor_version) ||
20844       (gtk_micro_version != $gtk_config_micro_version))
20845     {
20846       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20847              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20848              gtk_major_version, gtk_minor_version, gtk_micro_version);
20849       printf ("*** was found! If pkg-config was correct, then it is best\n");
20850       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20851       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20852       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20853       printf("*** required on your system.\n");
20854       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20855       printf("*** to point to the correct configuration files\n");
20856     }
20857   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20858            (gtk_minor_version != GTK_MINOR_VERSION) ||
20859            (gtk_micro_version != GTK_MICRO_VERSION))
20860     {
20861       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20862              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20863       printf("*** library (version %d.%d.%d)\n",
20864              gtk_major_version, gtk_minor_version, gtk_micro_version);
20865     }
20866   else
20867     {
20868       if ((gtk_major_version > major) ||
20869         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20870         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20871       {
20872         return 0;
20873        }
20874      else
20875       {
20876         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20877                gtk_major_version, gtk_minor_version, gtk_micro_version);
20878         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20879                major, minor, micro);
20880         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20881         printf("***\n");
20882         printf("*** If you have already installed a sufficiently new version, this error\n");
20883         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20884         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20885         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20886         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20887         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20888         printf("*** so that the correct libraries are found at run-time))\n");
20889       }
20890     }
20891   return 1;
20892 }
20893
20894 _ACEOF
20895 rm -f conftest$ac_exeext
20896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20897   (eval $ac_link) 2>&5
20898   ac_status=$?
20899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   :
20907 else
20908   echo "$as_me: program exited with status $ac_status" >&5
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912 ( exit $ac_status )
20913 no_gtk=yes
20914 fi
20915 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20916 fi
20917        CFLAGS="$ac_save_CFLAGS"
20918        LIBS="$ac_save_LIBS"
20919      fi
20920   fi
20921   if test "x$no_gtk" = x ; then
20922      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20923 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20924      wx_cv_lib_gtk=2.0
20925   else
20926      echo "$as_me:$LINENO: result: no" >&5
20927 echo "${ECHO_T}no" >&6
20928      if test "$PKG_CONFIG" = "no" ; then
20929        echo "*** A new enough version of pkg-config was not found."
20930        echo "*** See http://pkgconfig.sourceforge.net"
20931      else
20932        if test -f conf.gtktest ; then
20933         :
20934        else
20935           echo "*** Could not run GTK+ test program, checking why..."
20936           ac_save_CFLAGS="$CFLAGS"
20937           ac_save_LIBS="$LIBS"
20938           CFLAGS="$CFLAGS $GTK_CFLAGS"
20939           LIBS="$LIBS $GTK_LIBS"
20940           cat >conftest.$ac_ext <<_ACEOF
20941 #line $LINENO "configure"
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947
20948 #include <gtk/gtk.h>
20949 #include <stdio.h>
20950
20951 int
20952 main ()
20953 {
20954  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext conftest$ac_exeext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961   (eval $ac_link) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } &&
20965          { ac_try='test -s conftest$ac_exeext'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971    echo "*** The test program compiled, but did not run. This usually means"
20972           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20973           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20974           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20975           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20976           echo "*** is required on your system"
20977           echo "***"
20978           echo "*** If you have an old version installed, it is best to remove it, although"
20979           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20980 else
20981   echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984  echo "*** The test program failed to compile or link. See the file config.log for the"
20985           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
20986 fi
20987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20988           CFLAGS="$ac_save_CFLAGS"
20989           LIBS="$ac_save_LIBS"
20990        fi
20991      fi
20992      GTK_CFLAGS=""
20993      GTK_LIBS=""
20994      :
20995   fi
20996
20997
20998   rm -f conf.gtktest
20999
21000                 else
21001
21002 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21003 if test "${with_gtk_prefix+set}" = set; then
21004   withval="$with_gtk_prefix"
21005   gtk_config_prefix="$withval"
21006 else
21007   gtk_config_prefix=""
21008 fi;
21009
21010 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21011 if test "${with_gtk_exec_prefix+set}" = set; then
21012   withval="$with_gtk_exec_prefix"
21013   gtk_config_exec_prefix="$withval"
21014 else
21015   gtk_config_exec_prefix=""
21016 fi;
21017 # Check whether --enable-gtktest or --disable-gtktest was given.
21018 if test "${enable_gtktest+set}" = set; then
21019   enableval="$enable_gtktest"
21020
21021 else
21022   enable_gtktest=yes
21023 fi;
21024
21025   for module in . $GTK_MODULES
21026   do
21027       case "$module" in
21028          gthread)
21029              gtk_config_args="$gtk_config_args gthread"
21030          ;;
21031       esac
21032   done
21033
21034   if test x$gtk_config_exec_prefix != x ; then
21035      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21036      if test x${GTK_CONFIG+set} != xset ; then
21037         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21038      fi
21039   fi
21040   if test x$gtk_config_prefix != x ; then
21041      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21042      if test x${GTK_CONFIG+set} != xset ; then
21043         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21044      fi
21045   fi
21046
21047   # Extract the first word of "gtk-config", so it can be a program name with args.
21048 set dummy gtk-config; ac_word=$2
21049 echo "$as_me:$LINENO: checking for $ac_word" >&5
21050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21051 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21052   echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054   case $GTK_CONFIG in
21055   [\\/]* | ?:[\\/]*)
21056   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21057   ;;
21058   *)
21059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21060 for as_dir in $PATH
21061 do
21062   IFS=$as_save_IFS
21063   test -z "$as_dir" && as_dir=.
21064   for ac_exec_ext in '' $ac_executable_extensions; do
21065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21066     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21068     break 2
21069   fi
21070 done
21071 done
21072
21073   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21074   ;;
21075 esac
21076 fi
21077 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21078
21079 if test -n "$GTK_CONFIG"; then
21080   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21081 echo "${ECHO_T}$GTK_CONFIG" >&6
21082 else
21083   echo "$as_me:$LINENO: result: no" >&5
21084 echo "${ECHO_T}no" >&6
21085 fi
21086
21087   min_gtk_version=1.2.7
21088   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21089 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21090   no_gtk=""
21091   if test "$GTK_CONFIG" = "no" ; then
21092     no_gtk=yes
21093   else
21094     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21095     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21096     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21097            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21098     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21099            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21100     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21101            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21102     if test "x$enable_gtktest" = "xyes" ; then
21103       ac_save_CFLAGS="$CFLAGS"
21104       ac_save_LIBS="$LIBS"
21105       CFLAGS="$CFLAGS $GTK_CFLAGS"
21106       LIBS="$GTK_LIBS $LIBS"
21107       rm -f conf.gtktest
21108       if test "$cross_compiling" = yes; then
21109   echo $ac_n "cross compiling; assumed OK... $ac_c"
21110 else
21111   cat >conftest.$ac_ext <<_ACEOF
21112 #line $LINENO "configure"
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118
21119 #include <gtk/gtk.h>
21120 #include <stdio.h>
21121 #include <stdlib.h>
21122
21123 int
21124 main ()
21125 {
21126   int major, minor, micro;
21127   char *tmp_version;
21128
21129   system ("touch conf.gtktest");
21130
21131   /* HP/UX 9 (%@#!) writes to sscanf strings */
21132   tmp_version = g_strdup("$min_gtk_version");
21133   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21134      printf("%s, bad version string\n", "$min_gtk_version");
21135      exit(1);
21136    }
21137
21138   if ((gtk_major_version != $gtk_config_major_version) ||
21139       (gtk_minor_version != $gtk_config_minor_version) ||
21140       (gtk_micro_version != $gtk_config_micro_version))
21141     {
21142       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21143              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21144              gtk_major_version, gtk_minor_version, gtk_micro_version);
21145       printf ("*** was found! If gtk-config was correct, then it is best\n");
21146       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21147       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21148       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21149       printf("*** required on your system.\n");
21150       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21151       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21152       printf("*** before re-running configure\n");
21153     }
21154 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21155   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21156            (gtk_minor_version != GTK_MINOR_VERSION) ||
21157            (gtk_micro_version != GTK_MICRO_VERSION))
21158     {
21159       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21160              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21161       printf("*** library (version %d.%d.%d)\n",
21162              gtk_major_version, gtk_minor_version, gtk_micro_version);
21163     }
21164 #endif /* defined (GTK_MAJOR_VERSION) ... */
21165   else
21166     {
21167       if ((gtk_major_version > major) ||
21168         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21169         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21170       {
21171         return 0;
21172        }
21173      else
21174       {
21175         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21176                gtk_major_version, gtk_minor_version, gtk_micro_version);
21177         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21178                major, minor, micro);
21179         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21180         printf("***\n");
21181         printf("*** If you have already installed a sufficiently new version, this error\n");
21182         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21183         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21184         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21185         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21186         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21187         printf("*** so that the correct libraries are found at run-time))\n");
21188       }
21189     }
21190   return 1;
21191 }
21192
21193 _ACEOF
21194 rm -f conftest$ac_exeext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21196   (eval $ac_link) 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201   (eval $ac_try) 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); }; }; then
21205   :
21206 else
21207   echo "$as_me: program exited with status $ac_status" >&5
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 ( exit $ac_status )
21212 no_gtk=yes
21213 fi
21214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21215 fi
21216        CFLAGS="$ac_save_CFLAGS"
21217        LIBS="$ac_save_LIBS"
21218      fi
21219   fi
21220   if test "x$no_gtk" = x ; then
21221      echo "$as_me:$LINENO: result: yes" >&5
21222 echo "${ECHO_T}yes" >&6
21223      wx_cv_lib_gtk=1.2.7
21224   else
21225      echo "$as_me:$LINENO: result: no" >&5
21226 echo "${ECHO_T}no" >&6
21227      if test "$GTK_CONFIG" = "no" ; then
21228        echo "*** The gtk-config script installed by GTK could not be found"
21229        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21230        echo "*** your path, or set the GTK_CONFIG environment variable to the"
21231        echo "*** full path to gtk-config."
21232      else
21233        if test -f conf.gtktest ; then
21234         :
21235        else
21236           echo "*** Could not run GTK test program, checking why..."
21237           CFLAGS="$CFLAGS $GTK_CFLAGS"
21238           LIBS="$LIBS $GTK_LIBS"
21239           cat >conftest.$ac_ext <<_ACEOF
21240 #line $LINENO "configure"
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246
21247 #include <gtk/gtk.h>
21248 #include <stdio.h>
21249
21250 int
21251 main ()
21252 {
21253  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260   (eval $ac_link) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } &&
21264          { ac_try='test -s conftest$ac_exeext'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270    echo "*** The test program compiled, but did not run. This usually means"
21271           echo "*** that the run-time linker is not finding GTK or finding the wrong"
21272           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21273           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21274           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21275           echo "*** is required on your system"
21276           echo "***"
21277           echo "*** If you have an old version installed, it is best to remove it, although"
21278           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21279           echo "***"
21280           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21281           echo "*** came with the system with the command"
21282           echo "***"
21283           echo "***    rpm --erase --nodeps gtk gtk-devel"
21284 else
21285   echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288  echo "*** The test program failed to compile or link. See the file config.log for the"
21289           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21290           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21291           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21292 fi
21293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21294           CFLAGS="$ac_save_CFLAGS"
21295           LIBS="$ac_save_LIBS"
21296        fi
21297      fi
21298      GTK_CFLAGS=""
21299      GTK_LIBS=""
21300      :
21301   fi
21302
21303
21304   rm -f conf.gtktest
21305
21306
21307                     if test -z "$wx_cv_lib_gtk"; then
21308
21309 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21310 if test "${with_gtk_prefix+set}" = set; then
21311   withval="$with_gtk_prefix"
21312   gtk_config_prefix="$withval"
21313 else
21314   gtk_config_prefix=""
21315 fi;
21316
21317 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21318 if test "${with_gtk_exec_prefix+set}" = set; then
21319   withval="$with_gtk_exec_prefix"
21320   gtk_config_exec_prefix="$withval"
21321 else
21322   gtk_config_exec_prefix=""
21323 fi;
21324 # Check whether --enable-gtktest or --disable-gtktest was given.
21325 if test "${enable_gtktest+set}" = set; then
21326   enableval="$enable_gtktest"
21327
21328 else
21329   enable_gtktest=yes
21330 fi;
21331
21332   for module in . $GTK_MODULES
21333   do
21334       case "$module" in
21335          gthread)
21336              gtk_config_args="$gtk_config_args gthread"
21337          ;;
21338       esac
21339   done
21340
21341   if test x$gtk_config_exec_prefix != x ; then
21342      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21343      if test x${GTK_CONFIG+set} != xset ; then
21344         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21345      fi
21346   fi
21347   if test x$gtk_config_prefix != x ; then
21348      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21349      if test x${GTK_CONFIG+set} != xset ; then
21350         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21351      fi
21352   fi
21353
21354   # Extract the first word of "gtk-config", so it can be a program name with args.
21355 set dummy gtk-config; ac_word=$2
21356 echo "$as_me:$LINENO: checking for $ac_word" >&5
21357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21358 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21359   echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361   case $GTK_CONFIG in
21362   [\\/]* | ?:[\\/]*)
21363   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21364   ;;
21365   *)
21366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21367 for as_dir in $PATH
21368 do
21369   IFS=$as_save_IFS
21370   test -z "$as_dir" && as_dir=.
21371   for ac_exec_ext in '' $ac_executable_extensions; do
21372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21373     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21375     break 2
21376   fi
21377 done
21378 done
21379
21380   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21381   ;;
21382 esac
21383 fi
21384 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21385
21386 if test -n "$GTK_CONFIG"; then
21387   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21388 echo "${ECHO_T}$GTK_CONFIG" >&6
21389 else
21390   echo "$as_me:$LINENO: result: no" >&5
21391 echo "${ECHO_T}no" >&6
21392 fi
21393
21394   min_gtk_version=1.2.3
21395   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21396 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21397   no_gtk=""
21398   if test "$GTK_CONFIG" = "no" ; then
21399     no_gtk=yes
21400   else
21401     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21402     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21403     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21404            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21405     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21406            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21407     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21408            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21409     if test "x$enable_gtktest" = "xyes" ; then
21410       ac_save_CFLAGS="$CFLAGS"
21411       ac_save_LIBS="$LIBS"
21412       CFLAGS="$CFLAGS $GTK_CFLAGS"
21413       LIBS="$GTK_LIBS $LIBS"
21414       rm -f conf.gtktest
21415       if test "$cross_compiling" = yes; then
21416   echo $ac_n "cross compiling; assumed OK... $ac_c"
21417 else
21418   cat >conftest.$ac_ext <<_ACEOF
21419 #line $LINENO "configure"
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425
21426 #include <gtk/gtk.h>
21427 #include <stdio.h>
21428 #include <stdlib.h>
21429
21430 int
21431 main ()
21432 {
21433   int major, minor, micro;
21434   char *tmp_version;
21435
21436   system ("touch conf.gtktest");
21437
21438   /* HP/UX 9 (%@#!) writes to sscanf strings */
21439   tmp_version = g_strdup("$min_gtk_version");
21440   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21441      printf("%s, bad version string\n", "$min_gtk_version");
21442      exit(1);
21443    }
21444
21445   if ((gtk_major_version != $gtk_config_major_version) ||
21446       (gtk_minor_version != $gtk_config_minor_version) ||
21447       (gtk_micro_version != $gtk_config_micro_version))
21448     {
21449       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21450              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21451              gtk_major_version, gtk_minor_version, gtk_micro_version);
21452       printf ("*** was found! If gtk-config was correct, then it is best\n");
21453       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21454       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21455       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21456       printf("*** required on your system.\n");
21457       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21458       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21459       printf("*** before re-running configure\n");
21460     }
21461 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21462   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21463            (gtk_minor_version != GTK_MINOR_VERSION) ||
21464            (gtk_micro_version != GTK_MICRO_VERSION))
21465     {
21466       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21467              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21468       printf("*** library (version %d.%d.%d)\n",
21469              gtk_major_version, gtk_minor_version, gtk_micro_version);
21470     }
21471 #endif /* defined (GTK_MAJOR_VERSION) ... */
21472   else
21473     {
21474       if ((gtk_major_version > major) ||
21475         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21476         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21477       {
21478         return 0;
21479        }
21480      else
21481       {
21482         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21483                gtk_major_version, gtk_minor_version, gtk_micro_version);
21484         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21485                major, minor, micro);
21486         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21487         printf("***\n");
21488         printf("*** If you have already installed a sufficiently new version, this error\n");
21489         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21490         printf("*** being found. The easiest way to fix this is to remove the old version\n");
21491         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21492         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21493         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21494         printf("*** so that the correct libraries are found at run-time))\n");
21495       }
21496     }
21497   return 1;
21498 }
21499
21500 _ACEOF
21501 rm -f conftest$ac_exeext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21503   (eval $ac_link) 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508   (eval $ac_try) 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; }; then
21512   :
21513 else
21514   echo "$as_me: program exited with status $ac_status" >&5
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21517
21518 ( exit $ac_status )
21519 no_gtk=yes
21520 fi
21521 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21522 fi
21523        CFLAGS="$ac_save_CFLAGS"
21524        LIBS="$ac_save_LIBS"
21525      fi
21526   fi
21527   if test "x$no_gtk" = x ; then
21528      echo "$as_me:$LINENO: result: yes" >&5
21529 echo "${ECHO_T}yes" >&6
21530      wx_cv_lib_gtk=1.2.3
21531   else
21532      echo "$as_me:$LINENO: result: no" >&5
21533 echo "${ECHO_T}no" >&6
21534      if test "$GTK_CONFIG" = "no" ; then
21535        echo "*** The gtk-config script installed by GTK could not be found"
21536        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21537        echo "*** your path, or set the GTK_CONFIG environment variable to the"
21538        echo "*** full path to gtk-config."
21539      else
21540        if test -f conf.gtktest ; then
21541         :
21542        else
21543           echo "*** Could not run GTK test program, checking why..."
21544           CFLAGS="$CFLAGS $GTK_CFLAGS"
21545           LIBS="$LIBS $GTK_LIBS"
21546           cat >conftest.$ac_ext <<_ACEOF
21547 #line $LINENO "configure"
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553
21554 #include <gtk/gtk.h>
21555 #include <stdio.h>
21556
21557 int
21558 main ()
21559 {
21560  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21561   ;
21562   return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext conftest$ac_exeext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21567   (eval $ac_link) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } &&
21571          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21577    echo "*** The test program compiled, but did not run. This usually means"
21578           echo "*** that the run-time linker is not finding GTK or finding the wrong"
21579           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21580           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21581           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
21582           echo "*** is required on your system"
21583           echo "***"
21584           echo "*** If you have an old version installed, it is best to remove it, although"
21585           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21586           echo "***"
21587           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21588           echo "*** came with the system with the command"
21589           echo "***"
21590           echo "***    rpm --erase --nodeps gtk gtk-devel"
21591 else
21592   echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21594
21595  echo "*** The test program failed to compile or link. See the file config.log for the"
21596           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21597           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21598           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21599 fi
21600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21601           CFLAGS="$ac_save_CFLAGS"
21602           LIBS="$ac_save_LIBS"
21603        fi
21604      fi
21605      GTK_CFLAGS=""
21606      GTK_LIBS=""
21607      :
21608   fi
21609
21610
21611   rm -f conf.gtktest
21612
21613                     fi
21614                 fi
21615
21616                 if test -z "$wx_cv_lib_gtk"; then
21617                                         wx_cv_lib_gtk=none
21618                 else
21619                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
21620                     wx_cv_libs_gtk=$GTK_LIBS
21621                 fi
21622
21623
21624 fi
21625
21626
21627                         if test "$gtk_version_cached" = 1; then
21628             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21629 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21630         fi
21631
21632         case "$wx_cv_lib_gtk" in
21633             2.0)    WXGTK20=1
21634                     TOOLKIT_VERSION=2
21635                     ;;
21636             1.2.7)  WXGTK127=1
21637                     WXGTK12=1
21638                     ;;
21639             1.2.3)  WXGTK12=1
21640                     ;;
21641             *)      { { echo "$as_me:$LINENO: error:
21642 Please check that gtk-config is in path, the directory
21643 where GTK+ libraries are installed (returned by
21644 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21645 equivalent variable and GTK+ is version 1.2.3 or above.
21646                             " >&5
21647 echo "$as_me: error:
21648 Please check that gtk-config is in path, the directory
21649 where GTK+ libraries are installed (returned by
21650 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21651 equivalent variable and GTK+ is version 1.2.3 or above.
21652                             " >&2;}
21653    { (exit 1); exit 1; }; }
21654                     ;;
21655         esac
21656
21657         if test "$WXGTK20" = 1; then
21658             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21659
21660   succeeded=no
21661
21662   if test -z "$PKG_CONFIG"; then
21663     # Extract the first word of "pkg-config", so it can be a program name with args.
21664 set dummy pkg-config; ac_word=$2
21665 echo "$as_me:$LINENO: checking for $ac_word" >&5
21666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   case $PKG_CONFIG in
21671   [\\/]* | ?:[\\/]*)
21672   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21673   ;;
21674   *)
21675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21676 for as_dir in $PATH
21677 do
21678   IFS=$as_save_IFS
21679   test -z "$as_dir" && as_dir=.
21680   for ac_exec_ext in '' $ac_executable_extensions; do
21681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21682     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21684     break 2
21685   fi
21686 done
21687 done
21688
21689   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21690   ;;
21691 esac
21692 fi
21693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21694
21695 if test -n "$PKG_CONFIG"; then
21696   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21697 echo "${ECHO_T}$PKG_CONFIG" >&6
21698 else
21699   echo "$as_me:$LINENO: result: no" >&5
21700 echo "${ECHO_T}no" >&6
21701 fi
21702
21703   fi
21704
21705   if test "$PKG_CONFIG" = "no" ; then
21706      echo "*** The pkg-config script could not be found. Make sure it is"
21707      echo "*** in your path, or set the PKG_CONFIG environment variable"
21708      echo "*** to the full path to pkg-config."
21709      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21710   else
21711      PKG_CONFIG_MIN_VERSION=0.9.0
21712      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21713         echo "$as_me:$LINENO: checking for pangoft2" >&5
21714 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
21715
21716         if $PKG_CONFIG --exists "pangoft2" ; then
21717             echo "$as_me:$LINENO: result: yes" >&5
21718 echo "${ECHO_T}yes" >&6
21719             succeeded=yes
21720
21721             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21722 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
21723             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
21724             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21725 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
21726
21727             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21728 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
21729             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
21730             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21731 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
21732         else
21733             PANGOFT2_CFLAGS=""
21734             PANGOFT2_LIBS=""
21735             ## If we have a custom action on failure, don't print errors, but
21736             ## do set a variable so people can do so.
21737             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
21738
21739         fi
21740
21741
21742
21743      else
21744         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21745         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21746      fi
21747   fi
21748
21749   if test $succeeded = yes; then
21750
21751                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
21752                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
21753
21754   else
21755
21756                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21757 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
21758                         wxUSE_PRINTING_ARCHITECTURE="no"
21759
21760
21761   fi
21762
21763             fi
21764         else
21765             if test "$wxUSE_UNICODE" = "yes"; then
21766                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21767 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
21768                 wxUSE_UNICODE=no
21769             fi
21770         fi
21771
21772                         if test "$USE_DARWIN" != 1; then
21773
21774 for ac_func in poll
21775 do
21776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21777 echo "$as_me:$LINENO: checking for $ac_func" >&5
21778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21779 if eval "test \"\${$as_ac_var+set}\" = set"; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   cat >conftest.$ac_ext <<_ACEOF
21783 #line $LINENO "configure"
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789 /* System header to define __stub macros and hopefully few prototypes,
21790     which can conflict with char $ac_func (); below.
21791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21792     <limits.h> exists even on freestanding compilers.  */
21793 #ifdef __STDC__
21794 # include <limits.h>
21795 #else
21796 # include <assert.h>
21797 #endif
21798 /* Override any gcc2 internal prototype to avoid an error.  */
21799 #ifdef __cplusplus
21800 extern "C"
21801 {
21802 #endif
21803 /* We use char because int might match the return type of a gcc2
21804    builtin and then its argument prototype would still apply.  */
21805 char $ac_func ();
21806 /* The GNU C library defines this for functions which it implements
21807     to always fail with ENOSYS.  Some functions are actually named
21808     something starting with __ and the normal name is an alias.  */
21809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21810 choke me
21811 #else
21812 char (*f) () = $ac_func;
21813 #endif
21814 #ifdef __cplusplus
21815 }
21816 #endif
21817
21818 int
21819 main ()
21820 {
21821 return f != $ac_func;
21822   ;
21823   return 0;
21824 }
21825 _ACEOF
21826 rm -f conftest.$ac_objext conftest$ac_exeext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21828   (eval $ac_link) 2>&5
21829   ac_status=$?
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } &&
21832          { ac_try='test -s conftest$ac_exeext'
21833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834   (eval $ac_try) 2>&5
21835   ac_status=$?
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); }; }; then
21838   eval "$as_ac_var=yes"
21839 else
21840   echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 eval "$as_ac_var=no"
21844 fi
21845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21846 fi
21847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21849 if test `eval echo '${'$as_ac_var'}'` = yes; then
21850   cat >>confdefs.h <<_ACEOF
21851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21852 _ACEOF
21853
21854 fi
21855 done
21856
21857         fi
21858
21859         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
21860         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21861
21862         AFMINSTALL=afminstall
21863         TOOLKIT=GTK
21864         GUIDIST=GTK_DIST
21865
21866                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21867 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21868 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21869   echo $ECHO_N "(cached) $ECHO_C" >&6
21870 else
21871   ac_check_lib_save_LIBS=$LIBS
21872 LIBS="-lgdk  $LIBS"
21873 cat >conftest.$ac_ext <<_ACEOF
21874 #line $LINENO "configure"
21875 /* confdefs.h.  */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h.  */
21880
21881 /* Override any gcc2 internal prototype to avoid an error.  */
21882 #ifdef __cplusplus
21883 extern "C"
21884 #endif
21885 /* We use char because int might match the return type of a gcc2
21886    builtin and then its argument prototype would still apply.  */
21887 char gdk_im_open ();
21888 int
21889 main ()
21890 {
21891 gdk_im_open ();
21892   ;
21893   return 0;
21894 }
21895 _ACEOF
21896 rm -f conftest.$ac_objext conftest$ac_exeext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898   (eval $ac_link) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } &&
21902          { ac_try='test -s conftest$ac_exeext'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; }; then
21908   ac_cv_lib_gdk_gdk_im_open=yes
21909 else
21910   echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21912
21913 ac_cv_lib_gdk_gdk_im_open=no
21914 fi
21915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21916 LIBS=$ac_check_lib_save_LIBS
21917 fi
21918 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21919 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21920 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21921   cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_XIM 1
21923 _ACEOF
21924
21925 fi
21926
21927
21928
21929                 if test "$wxUSE_GPE" = "yes"; then
21930             echo "$as_me:$LINENO: checking for gpewidget library" >&5
21931 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
21932
21933 ac_find_libraries=
21934 for ac_dir in $SEARCH_LIB /usr/lib;
21935   do
21936     for ac_extension in a so sl dylib; do
21937       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
21938         ac_find_libraries=$ac_dir
21939         break 2
21940       fi
21941     done
21942   done
21943
21944             if test "$ac_find_libraries" != "" ; then
21945
21946   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
21947   result=$?
21948   if test $result = 0; then
21949     ac_path_to_link=""
21950   else
21951     ac_path_to_link=" -L$ac_find_libraries"
21952   fi
21953
21954                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
21955                 WXGPE=1
21956                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
21957 echo "${ECHO_T}found at $ac_find_libraries" >&6
21958             else
21959                 echo "$as_me:$LINENO: result: not found" >&5
21960 echo "${ECHO_T}not found" >&6
21961             fi
21962
21963                                                                                                                     fi
21964     fi
21965
21966     if test "$wxUSE_MGL" = 1; then
21967        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21968 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21969         if test "x$MGL_ROOT" = x ; then
21970             echo "$as_me:$LINENO: result: not found" >&5
21971 echo "${ECHO_T}not found" >&6
21972             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21973 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21974    { (exit 1); exit 1; }; }
21975         else
21976             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21977 echo "${ECHO_T}$MGL_ROOT" >&6
21978         fi
21979
21980         echo "$as_me:$LINENO: checking for libmgl location" >&5
21981 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21982                                 case "${host}" in
21983             *-*-linux* )
21984                                           if test "x$wxUSE_SHARED" = xyes ; then
21985                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
21986               else
21987                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
21988               fi
21989               ;;
21990             *-pc-msdosdjgpp )
21991               mgl_os_candidates="dos32/dj2"
21992               ;;
21993             *)
21994               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21995 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21996    { (exit 1); exit 1; }; }
21997         esac
21998
21999         mgl_lib_type=""
22000         mgl_os=""
22001
22002         for mgl_os_i in $mgl_os_candidates ; do
22003             if test "x$mgl_os" = x ; then
22004                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22005                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22006                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22007                         mgl_lib_type=debug
22008                         mgl_os=$mgl_os_i
22009                     fi
22010                 fi
22011                 if test "x$mgl_lib_type" = x ; then
22012                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22013                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22014                         mgl_lib_type=release
22015                         mgl_os=$mgl_os_i
22016                     fi
22017                 fi
22018             fi
22019         done
22020
22021         if test "x$mgl_os" = x ; then
22022             echo "$as_me:$LINENO: result: not found" >&5
22023 echo "${ECHO_T}not found" >&6
22024             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22025 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22026    { (exit 1); exit 1; }; }
22027         fi
22028         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22029 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
22030
22031         wxUSE_UNIVERSAL="yes"
22032
22033         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22034         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22035
22036         AFMINSTALL=afminstall
22037         TOOLKIT=MGL
22038         GUIDIST=MGL_DIST
22039     fi
22040
22041     if test "$wxUSE_MICROWIN" = 1; then
22042         echo "$as_me:$LINENO: checking for MicroWindows" >&5
22043 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
22044         if test "x$MICROWINDOWS" = x ; then
22045             echo "$as_me:$LINENO: result: not found" >&5
22046 echo "${ECHO_T}not found" >&6
22047             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22048 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22049    { (exit 1); exit 1; }; }
22050         else
22051             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22052 echo "${ECHO_T}$MICROWINDOWS" >&6
22053         fi
22054
22055         if test -f $MICROWINDOWS/lib/libmwin.a; then
22056             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22057 echo "${ECHO_T}MicroWindows' libraries found." >&6
22058         else
22059             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22060 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22061    { (exit 1); exit 1; }; }
22062         fi
22063
22064         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22065         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22066
22067         wxUSE_UNIVERSAL="yes"
22068
22069         AFMINSTALL=afminstall
22070         TOOLKIT=MICROWIN
22071         GUIDIST=MICROWIN_DIST
22072
22073         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
22074     fi
22075
22076     if test "$wxUSE_X11" = 1; then
22077                         echo "$as_me:$LINENO: checking for X" >&5
22078 echo $ECHO_N "checking for X... $ECHO_C" >&6
22079
22080
22081 # Check whether --with-x or --without-x was given.
22082 if test "${with_x+set}" = set; then
22083   withval="$with_x"
22084
22085 fi;
22086 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22087 if test "x$with_x" = xno; then
22088   # The user explicitly disabled X.
22089   have_x=disabled
22090 else
22091   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22092     # Both variables are already set.
22093     have_x=yes
22094   else
22095     if test "${ac_cv_have_x+set}" = set; then
22096   echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22098   # One or both of the vars are not set, and there is no cached value.
22099 ac_x_includes=no ac_x_libraries=no
22100 rm -fr conftest.dir
22101 if mkdir conftest.dir; then
22102   cd conftest.dir
22103   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22104   cat >Imakefile <<'_ACEOF'
22105 acfindx:
22106         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22107 _ACEOF
22108   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22109     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22110     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22111     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22112     for ac_extension in a so sl; do
22113       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22114          test -f $ac_im_libdir/libX11.$ac_extension; then
22115         ac_im_usrlibdir=$ac_im_libdir; break
22116       fi
22117     done
22118     # Screen out bogus values from the imake configuration.  They are
22119     # bogus both because they are the default anyway, and because
22120     # using them would break gcc on systems where it needs fixed includes.
22121     case $ac_im_incroot in
22122         /usr/include) ;;
22123         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22124     esac
22125     case $ac_im_usrlibdir in
22126         /usr/lib | /lib) ;;
22127         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22128     esac
22129   fi
22130   cd ..
22131   rm -fr conftest.dir
22132 fi
22133
22134 # Standard set of common directories for X headers.
22135 # Check X11 before X11Rn because it is often a symlink to the current release.
22136 ac_x_header_dirs='
22137 /usr/X11/include
22138 /usr/X11R6/include
22139 /usr/X11R5/include
22140 /usr/X11R4/include
22141
22142 /usr/include/X11
22143 /usr/include/X11R6
22144 /usr/include/X11R5
22145 /usr/include/X11R4
22146
22147 /usr/local/X11/include
22148 /usr/local/X11R6/include
22149 /usr/local/X11R5/include
22150 /usr/local/X11R4/include
22151
22152 /usr/local/include/X11
22153 /usr/local/include/X11R6
22154 /usr/local/include/X11R5
22155 /usr/local/include/X11R4
22156
22157 /usr/X386/include
22158 /usr/x386/include
22159 /usr/XFree86/include/X11
22160
22161 /usr/include
22162 /usr/local/include
22163 /usr/unsupported/include
22164 /usr/athena/include
22165 /usr/local/x11r5/include
22166 /usr/lpp/Xamples/include
22167
22168 /usr/openwin/include
22169 /usr/openwin/share/include'
22170
22171 if test "$ac_x_includes" = no; then
22172   # Guess where to find include files, by looking for Intrinsic.h.
22173   # First, try using that file with no special directory specified.
22174   cat >conftest.$ac_ext <<_ACEOF
22175 #line $LINENO "configure"
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 #include <X11/Intrinsic.h>
22182 _ACEOF
22183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22185   ac_status=$?
22186   grep -v '^ *+' conftest.er1 >conftest.err
22187   rm -f conftest.er1
22188   cat conftest.err >&5
22189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); } >/dev/null; then
22191   if test -s conftest.err; then
22192     ac_cpp_err=$ac_c_preproc_warn_flag
22193   else
22194     ac_cpp_err=
22195   fi
22196 else
22197   ac_cpp_err=yes
22198 fi
22199 if test -z "$ac_cpp_err"; then
22200   # We can compile using X headers with no special include directory.
22201 ac_x_includes=
22202 else
22203   echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206   for ac_dir in $ac_x_header_dirs; do
22207   if test -r "$ac_dir/X11/Intrinsic.h"; then
22208     ac_x_includes=$ac_dir
22209     break
22210   fi
22211 done
22212 fi
22213 rm -f conftest.err conftest.$ac_ext
22214 fi # $ac_x_includes = no
22215
22216 if test "$ac_x_libraries" = no; then
22217   # Check for the libraries.
22218   # See if we find them without any special options.
22219   # Don't add to $LIBS permanently.
22220   ac_save_LIBS=$LIBS
22221   LIBS="-lXt $LIBS"
22222   cat >conftest.$ac_ext <<_ACEOF
22223 #line $LINENO "configure"
22224 /* confdefs.h.  */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h.  */
22229 #include <X11/Intrinsic.h>
22230 int
22231 main ()
22232 {
22233 XtMalloc (0)
22234   ;
22235   return 0;
22236 }
22237 _ACEOF
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22240   (eval $ac_link) 2>&5
22241   ac_status=$?
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); } &&
22244          { ac_try='test -s conftest$ac_exeext'
22245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246   (eval $ac_try) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); }; }; then
22250   LIBS=$ac_save_LIBS
22251 # We can link X programs with no special library path.
22252 ac_x_libraries=
22253 else
22254   echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257 LIBS=$ac_save_LIBS
22258 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22259 do
22260   # Don't even attempt the hair of trying to link an X program!
22261   for ac_extension in a so sl; do
22262     if test -r $ac_dir/libXt.$ac_extension; then
22263       ac_x_libraries=$ac_dir
22264       break 2
22265     fi
22266   done
22267 done
22268 fi
22269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22270 fi # $ac_x_libraries = no
22271
22272 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22273   # Didn't find X anywhere.  Cache the known absence of X.
22274   ac_cv_have_x="have_x=no"
22275 else
22276   # Record where we found X for the cache.
22277   ac_cv_have_x="have_x=yes \
22278                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22279 fi
22280 fi
22281
22282   fi
22283   eval "$ac_cv_have_x"
22284 fi # $with_x != no
22285
22286 if test "$have_x" != yes; then
22287   echo "$as_me:$LINENO: result: $have_x" >&5
22288 echo "${ECHO_T}$have_x" >&6
22289   no_x=yes
22290 else
22291   # If each of the values was on the command line, it overrides each guess.
22292   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22293   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22294   # Update the cache value to reflect the command line values.
22295   ac_cv_have_x="have_x=yes \
22296                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22297   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22299 fi
22300
22301 if test "$no_x" = yes; then
22302   # Not all programs may use this symbol, but it does not hurt to define it.
22303
22304 cat >>confdefs.h <<\_ACEOF
22305 #define X_DISPLAY_MISSING 1
22306 _ACEOF
22307
22308   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22309 else
22310   if test -n "$x_includes"; then
22311     X_CFLAGS="$X_CFLAGS -I$x_includes"
22312   fi
22313
22314   # It would also be nice to do this for all -L options, not just this one.
22315   if test -n "$x_libraries"; then
22316     X_LIBS="$X_LIBS -L$x_libraries"
22317     # For Solaris; some versions of Sun CC require a space after -R and
22318     # others require no space.  Words are not sufficient . . . .
22319     case `(uname -sr) 2>/dev/null` in
22320     "SunOS 5"*)
22321       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22322 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22323       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22324       cat >conftest.$ac_ext <<_ACEOF
22325 #line $LINENO "configure"
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331
22332 int
22333 main ()
22334 {
22335
22336   ;
22337   return 0;
22338 }
22339 _ACEOF
22340 rm -f conftest.$ac_objext conftest$ac_exeext
22341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22342   (eval $ac_link) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); } &&
22346          { ac_try='test -s conftest$ac_exeext'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352   ac_R_nospace=yes
22353 else
22354   echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 ac_R_nospace=no
22358 fi
22359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22360       if test $ac_R_nospace = yes; then
22361         echo "$as_me:$LINENO: result: no" >&5
22362 echo "${ECHO_T}no" >&6
22363         X_LIBS="$X_LIBS -R$x_libraries"
22364       else
22365         LIBS="$ac_xsave_LIBS -R $x_libraries"
22366         cat >conftest.$ac_ext <<_ACEOF
22367 #line $LINENO "configure"
22368 /* confdefs.h.  */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h.  */
22373
22374 int
22375 main ()
22376 {
22377
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext conftest$ac_exeext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22384   (eval $ac_link) 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); } &&
22388          { ac_try='test -s conftest$ac_exeext'
22389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390   (eval $ac_try) 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); }; }; then
22394   ac_R_space=yes
22395 else
22396   echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399 ac_R_space=no
22400 fi
22401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22402         if test $ac_R_space = yes; then
22403           echo "$as_me:$LINENO: result: yes" >&5
22404 echo "${ECHO_T}yes" >&6
22405           X_LIBS="$X_LIBS -R $x_libraries"
22406         else
22407           echo "$as_me:$LINENO: result: neither works" >&5
22408 echo "${ECHO_T}neither works" >&6
22409         fi
22410       fi
22411       LIBS=$ac_xsave_LIBS
22412     esac
22413   fi
22414
22415   # Check for system-dependent libraries X programs must link with.
22416   # Do this before checking for the system-independent R6 libraries
22417   # (-lICE), since we may need -lsocket or whatever for X linking.
22418
22419   if test "$ISC" = yes; then
22420     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22421   else
22422     # Martyn Johnson says this is needed for Ultrix, if the X
22423     # libraries were built with DECnet support.  And Karl Berry says
22424     # the Alpha needs dnet_stub (dnet does not exist).
22425     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22426     cat >conftest.$ac_ext <<_ACEOF
22427 #line $LINENO "configure"
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433
22434 /* Override any gcc2 internal prototype to avoid an error.  */
22435 #ifdef __cplusplus
22436 extern "C"
22437 #endif
22438 /* We use char because int might match the return type of a gcc2
22439    builtin and then its argument prototype would still apply.  */
22440 char XOpenDisplay ();
22441 int
22442 main ()
22443 {
22444 XOpenDisplay ();
22445   ;
22446   return 0;
22447 }
22448 _ACEOF
22449 rm -f conftest.$ac_objext conftest$ac_exeext
22450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22451   (eval $ac_link) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); } &&
22455          { ac_try='test -s conftest$ac_exeext'
22456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457   (eval $ac_try) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; }; then
22461   :
22462 else
22463   echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22467 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22468 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22469   echo $ECHO_N "(cached) $ECHO_C" >&6
22470 else
22471   ac_check_lib_save_LIBS=$LIBS
22472 LIBS="-ldnet  $LIBS"
22473 cat >conftest.$ac_ext <<_ACEOF
22474 #line $LINENO "configure"
22475 /* confdefs.h.  */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h.  */
22480
22481 /* Override any gcc2 internal prototype to avoid an error.  */
22482 #ifdef __cplusplus
22483 extern "C"
22484 #endif
22485 /* We use char because int might match the return type of a gcc2
22486    builtin and then its argument prototype would still apply.  */
22487 char dnet_ntoa ();
22488 int
22489 main ()
22490 {
22491 dnet_ntoa ();
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498   (eval $ac_link) 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } &&
22502          { ac_try='test -s conftest$ac_exeext'
22503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504   (eval $ac_try) 2>&5
22505   ac_status=$?
22506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507   (exit $ac_status); }; }; then
22508   ac_cv_lib_dnet_dnet_ntoa=yes
22509 else
22510   echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 ac_cv_lib_dnet_dnet_ntoa=no
22514 fi
22515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22516 LIBS=$ac_check_lib_save_LIBS
22517 fi
22518 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22519 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22520 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22521   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22522 fi
22523
22524     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22525       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22526 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22527 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22528   echo $ECHO_N "(cached) $ECHO_C" >&6
22529 else
22530   ac_check_lib_save_LIBS=$LIBS
22531 LIBS="-ldnet_stub  $LIBS"
22532 cat >conftest.$ac_ext <<_ACEOF
22533 #line $LINENO "configure"
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539
22540 /* Override any gcc2 internal prototype to avoid an error.  */
22541 #ifdef __cplusplus
22542 extern "C"
22543 #endif
22544 /* We use char because int might match the return type of a gcc2
22545    builtin and then its argument prototype would still apply.  */
22546 char dnet_ntoa ();
22547 int
22548 main ()
22549 {
22550 dnet_ntoa ();
22551   ;
22552   return 0;
22553 }
22554 _ACEOF
22555 rm -f conftest.$ac_objext conftest$ac_exeext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22557   (eval $ac_link) 2>&5
22558   ac_status=$?
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } &&
22561          { ac_try='test -s conftest$ac_exeext'
22562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563   (eval $ac_try) 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); }; }; then
22567   ac_cv_lib_dnet_stub_dnet_ntoa=yes
22568 else
22569   echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572 ac_cv_lib_dnet_stub_dnet_ntoa=no
22573 fi
22574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22575 LIBS=$ac_check_lib_save_LIBS
22576 fi
22577 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22578 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22579 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22580   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22581 fi
22582
22583     fi
22584 fi
22585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22586     LIBS="$ac_xsave_LIBS"
22587
22588     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22589     # to get the SysV transport functions.
22590     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22591     # needs -lnsl.
22592     # The nsl library prevents programs from opening the X display
22593     # on Irix 5.2, according to T.E. Dickey.
22594     # The functions gethostbyname, getservbyname, and inet_addr are
22595     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22596     echo "$as_me:$LINENO: checking for gethostbyname" >&5
22597 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22598 if test "${ac_cv_func_gethostbyname+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601   cat >conftest.$ac_ext <<_ACEOF
22602 #line $LINENO "configure"
22603 /* confdefs.h.  */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h.  */
22608 /* System header to define __stub macros and hopefully few prototypes,
22609     which can conflict with char gethostbyname (); below.
22610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22611     <limits.h> exists even on freestanding compilers.  */
22612 #ifdef __STDC__
22613 # include <limits.h>
22614 #else
22615 # include <assert.h>
22616 #endif
22617 /* Override any gcc2 internal prototype to avoid an error.  */
22618 #ifdef __cplusplus
22619 extern "C"
22620 {
22621 #endif
22622 /* We use char because int might match the return type of a gcc2
22623    builtin and then its argument prototype would still apply.  */
22624 char gethostbyname ();
22625 /* The GNU C library defines this for functions which it implements
22626     to always fail with ENOSYS.  Some functions are actually named
22627     something starting with __ and the normal name is an alias.  */
22628 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22629 choke me
22630 #else
22631 char (*f) () = gethostbyname;
22632 #endif
22633 #ifdef __cplusplus
22634 }
22635 #endif
22636
22637 int
22638 main ()
22639 {
22640 return f != gethostbyname;
22641   ;
22642   return 0;
22643 }
22644 _ACEOF
22645 rm -f conftest.$ac_objext conftest$ac_exeext
22646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22647   (eval $ac_link) 2>&5
22648   ac_status=$?
22649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650   (exit $ac_status); } &&
22651          { ac_try='test -s conftest$ac_exeext'
22652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22653   (eval $ac_try) 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); }; }; then
22657   ac_cv_func_gethostbyname=yes
22658 else
22659   echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22661
22662 ac_cv_func_gethostbyname=no
22663 fi
22664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22665 fi
22666 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22667 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22668
22669     if test $ac_cv_func_gethostbyname = no; then
22670       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22671 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22672 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22673   echo $ECHO_N "(cached) $ECHO_C" >&6
22674 else
22675   ac_check_lib_save_LIBS=$LIBS
22676 LIBS="-lnsl  $LIBS"
22677 cat >conftest.$ac_ext <<_ACEOF
22678 #line $LINENO "configure"
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684
22685 /* Override any gcc2 internal prototype to avoid an error.  */
22686 #ifdef __cplusplus
22687 extern "C"
22688 #endif
22689 /* We use char because int might match the return type of a gcc2
22690    builtin and then its argument prototype would still apply.  */
22691 char gethostbyname ();
22692 int
22693 main ()
22694 {
22695 gethostbyname ();
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext conftest$ac_exeext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22702   (eval $ac_link) 2>&5
22703   ac_status=$?
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } &&
22706          { ac_try='test -s conftest$ac_exeext'
22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; }; then
22712   ac_cv_lib_nsl_gethostbyname=yes
22713 else
22714   echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22716
22717 ac_cv_lib_nsl_gethostbyname=no
22718 fi
22719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22720 LIBS=$ac_check_lib_save_LIBS
22721 fi
22722 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22723 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22724 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22726 fi
22727
22728       if test $ac_cv_lib_nsl_gethostbyname = no; then
22729         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22730 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22731 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22732   echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734   ac_check_lib_save_LIBS=$LIBS
22735 LIBS="-lbsd  $LIBS"
22736 cat >conftest.$ac_ext <<_ACEOF
22737 #line $LINENO "configure"
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743
22744 /* Override any gcc2 internal prototype to avoid an error.  */
22745 #ifdef __cplusplus
22746 extern "C"
22747 #endif
22748 /* We use char because int might match the return type of a gcc2
22749    builtin and then its argument prototype would still apply.  */
22750 char gethostbyname ();
22751 int
22752 main ()
22753 {
22754 gethostbyname ();
22755   ;
22756   return 0;
22757 }
22758 _ACEOF
22759 rm -f conftest.$ac_objext conftest$ac_exeext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761   (eval $ac_link) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } &&
22765          { ac_try='test -s conftest$ac_exeext'
22766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767   (eval $ac_try) 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; }; then
22771   ac_cv_lib_bsd_gethostbyname=yes
22772 else
22773   echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 ac_cv_lib_bsd_gethostbyname=no
22777 fi
22778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22779 LIBS=$ac_check_lib_save_LIBS
22780 fi
22781 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22782 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22783 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22784   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22785 fi
22786
22787       fi
22788     fi
22789
22790     # lieder@skyler.mavd.honeywell.com says without -lsocket,
22791     # socket/setsockopt and other routines are undefined under SCO ODT
22792     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
22793     # on later versions), says Simon Leinen: it contains gethostby*
22794     # variants that don't use the name server (or something).  -lsocket
22795     # must be given before -lnsl if both are needed.  We assume that
22796     # if connect needs -lnsl, so does gethostbyname.
22797     echo "$as_me:$LINENO: checking for connect" >&5
22798 echo $ECHO_N "checking for connect... $ECHO_C" >&6
22799 if test "${ac_cv_func_connect+set}" = set; then
22800   echo $ECHO_N "(cached) $ECHO_C" >&6
22801 else
22802   cat >conftest.$ac_ext <<_ACEOF
22803 #line $LINENO "configure"
22804 /* confdefs.h.  */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h.  */
22809 /* System header to define __stub macros and hopefully few prototypes,
22810     which can conflict with char connect (); below.
22811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22812     <limits.h> exists even on freestanding compilers.  */
22813 #ifdef __STDC__
22814 # include <limits.h>
22815 #else
22816 # include <assert.h>
22817 #endif
22818 /* Override any gcc2 internal prototype to avoid an error.  */
22819 #ifdef __cplusplus
22820 extern "C"
22821 {
22822 #endif
22823 /* We use char because int might match the return type of a gcc2
22824    builtin and then its argument prototype would still apply.  */
22825 char connect ();
22826 /* The GNU C library defines this for functions which it implements
22827     to always fail with ENOSYS.  Some functions are actually named
22828     something starting with __ and the normal name is an alias.  */
22829 #if defined (__stub_connect) || defined (__stub___connect)
22830 choke me
22831 #else
22832 char (*f) () = connect;
22833 #endif
22834 #ifdef __cplusplus
22835 }
22836 #endif
22837
22838 int
22839 main ()
22840 {
22841 return f != connect;
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22848   (eval $ac_link) 2>&5
22849   ac_status=$?
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); } &&
22852          { ac_try='test -s conftest$ac_exeext'
22853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854   (eval $ac_try) 2>&5
22855   ac_status=$?
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); }; }; then
22858   ac_cv_func_connect=yes
22859 else
22860   echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 ac_cv_func_connect=no
22864 fi
22865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22866 fi
22867 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22868 echo "${ECHO_T}$ac_cv_func_connect" >&6
22869
22870     if test $ac_cv_func_connect = no; then
22871       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22872 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22873 if test "${ac_cv_lib_socket_connect+set}" = set; then
22874   echo $ECHO_N "(cached) $ECHO_C" >&6
22875 else
22876   ac_check_lib_save_LIBS=$LIBS
22877 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22878 cat >conftest.$ac_ext <<_ACEOF
22879 #line $LINENO "configure"
22880 /* confdefs.h.  */
22881 _ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h.  */
22885
22886 /* Override any gcc2 internal prototype to avoid an error.  */
22887 #ifdef __cplusplus
22888 extern "C"
22889 #endif
22890 /* We use char because int might match the return type of a gcc2
22891    builtin and then its argument prototype would still apply.  */
22892 char connect ();
22893 int
22894 main ()
22895 {
22896 connect ();
22897   ;
22898   return 0;
22899 }
22900 _ACEOF
22901 rm -f conftest.$ac_objext conftest$ac_exeext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22903   (eval $ac_link) 2>&5
22904   ac_status=$?
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } &&
22907          { ac_try='test -s conftest$ac_exeext'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; }; then
22913   ac_cv_lib_socket_connect=yes
22914 else
22915   echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918 ac_cv_lib_socket_connect=no
22919 fi
22920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22921 LIBS=$ac_check_lib_save_LIBS
22922 fi
22923 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22924 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22925 if test $ac_cv_lib_socket_connect = yes; then
22926   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22927 fi
22928
22929     fi
22930
22931     # Guillermo Gomez says -lposix is necessary on A/UX.
22932     echo "$as_me:$LINENO: checking for remove" >&5
22933 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22934 if test "${ac_cv_func_remove+set}" = set; then
22935   echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937   cat >conftest.$ac_ext <<_ACEOF
22938 #line $LINENO "configure"
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944 /* System header to define __stub macros and hopefully few prototypes,
22945     which can conflict with char remove (); below.
22946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22947     <limits.h> exists even on freestanding compilers.  */
22948 #ifdef __STDC__
22949 # include <limits.h>
22950 #else
22951 # include <assert.h>
22952 #endif
22953 /* Override any gcc2 internal prototype to avoid an error.  */
22954 #ifdef __cplusplus
22955 extern "C"
22956 {
22957 #endif
22958 /* We use char because int might match the return type of a gcc2
22959    builtin and then its argument prototype would still apply.  */
22960 char remove ();
22961 /* The GNU C library defines this for functions which it implements
22962     to always fail with ENOSYS.  Some functions are actually named
22963     something starting with __ and the normal name is an alias.  */
22964 #if defined (__stub_remove) || defined (__stub___remove)
22965 choke me
22966 #else
22967 char (*f) () = remove;
22968 #endif
22969 #ifdef __cplusplus
22970 }
22971 #endif
22972
22973 int
22974 main ()
22975 {
22976 return f != remove;
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983   (eval $ac_link) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } &&
22987          { ac_try='test -s conftest$ac_exeext'
22988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); }; }; then
22993   ac_cv_func_remove=yes
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ac_cv_func_remove=no
22999 fi
23000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23001 fi
23002 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23003 echo "${ECHO_T}$ac_cv_func_remove" >&6
23004
23005     if test $ac_cv_func_remove = no; then
23006       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23007 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23008 if test "${ac_cv_lib_posix_remove+set}" = set; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011   ac_check_lib_save_LIBS=$LIBS
23012 LIBS="-lposix  $LIBS"
23013 cat >conftest.$ac_ext <<_ACEOF
23014 #line $LINENO "configure"
23015 /* confdefs.h.  */
23016 _ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h.  */
23020
23021 /* Override any gcc2 internal prototype to avoid an error.  */
23022 #ifdef __cplusplus
23023 extern "C"
23024 #endif
23025 /* We use char because int might match the return type of a gcc2
23026    builtin and then its argument prototype would still apply.  */
23027 char remove ();
23028 int
23029 main ()
23030 {
23031 remove ();
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext conftest$ac_exeext
23037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23038   (eval $ac_link) 2>&5
23039   ac_status=$?
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } &&
23042          { ac_try='test -s conftest$ac_exeext'
23043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044   (eval $ac_try) 2>&5
23045   ac_status=$?
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); }; }; then
23048   ac_cv_lib_posix_remove=yes
23049 else
23050   echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053 ac_cv_lib_posix_remove=no
23054 fi
23055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23056 LIBS=$ac_check_lib_save_LIBS
23057 fi
23058 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23059 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23060 if test $ac_cv_lib_posix_remove = yes; then
23061   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23062 fi
23063
23064     fi
23065
23066     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23067     echo "$as_me:$LINENO: checking for shmat" >&5
23068 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23069 if test "${ac_cv_func_shmat+set}" = set; then
23070   echo $ECHO_N "(cached) $ECHO_C" >&6
23071 else
23072   cat >conftest.$ac_ext <<_ACEOF
23073 #line $LINENO "configure"
23074 /* confdefs.h.  */
23075 _ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h.  */
23079 /* System header to define __stub macros and hopefully few prototypes,
23080     which can conflict with char shmat (); below.
23081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23082     <limits.h> exists even on freestanding compilers.  */
23083 #ifdef __STDC__
23084 # include <limits.h>
23085 #else
23086 # include <assert.h>
23087 #endif
23088 /* Override any gcc2 internal prototype to avoid an error.  */
23089 #ifdef __cplusplus
23090 extern "C"
23091 {
23092 #endif
23093 /* We use char because int might match the return type of a gcc2
23094    builtin and then its argument prototype would still apply.  */
23095 char shmat ();
23096 /* The GNU C library defines this for functions which it implements
23097     to always fail with ENOSYS.  Some functions are actually named
23098     something starting with __ and the normal name is an alias.  */
23099 #if defined (__stub_shmat) || defined (__stub___shmat)
23100 choke me
23101 #else
23102 char (*f) () = shmat;
23103 #endif
23104 #ifdef __cplusplus
23105 }
23106 #endif
23107
23108 int
23109 main ()
23110 {
23111 return f != shmat;
23112   ;
23113   return 0;
23114 }
23115 _ACEOF
23116 rm -f conftest.$ac_objext conftest$ac_exeext
23117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23118   (eval $ac_link) 2>&5
23119   ac_status=$?
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); } &&
23122          { ac_try='test -s conftest$ac_exeext'
23123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124   (eval $ac_try) 2>&5
23125   ac_status=$?
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); }; }; then
23128   ac_cv_func_shmat=yes
23129 else
23130   echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23132
23133 ac_cv_func_shmat=no
23134 fi
23135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23136 fi
23137 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23138 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23139
23140     if test $ac_cv_func_shmat = no; then
23141       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23142 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23143 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23144   echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146   ac_check_lib_save_LIBS=$LIBS
23147 LIBS="-lipc  $LIBS"
23148 cat >conftest.$ac_ext <<_ACEOF
23149 #line $LINENO "configure"
23150 /* confdefs.h.  */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h.  */
23155
23156 /* Override any gcc2 internal prototype to avoid an error.  */
23157 #ifdef __cplusplus
23158 extern "C"
23159 #endif
23160 /* We use char because int might match the return type of a gcc2
23161    builtin and then its argument prototype would still apply.  */
23162 char shmat ();
23163 int
23164 main ()
23165 {
23166 shmat ();
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext conftest$ac_exeext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23173   (eval $ac_link) 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } &&
23177          { ac_try='test -s conftest$ac_exeext'
23178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179   (eval $ac_try) 2>&5
23180   ac_status=$?
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); }; }; then
23183   ac_cv_lib_ipc_shmat=yes
23184 else
23185   echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23187
23188 ac_cv_lib_ipc_shmat=no
23189 fi
23190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23191 LIBS=$ac_check_lib_save_LIBS
23192 fi
23193 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23194 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23195 if test $ac_cv_lib_ipc_shmat = yes; then
23196   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23197 fi
23198
23199     fi
23200   fi
23201
23202   # Check for libraries that X11R6 Xt/Xaw programs need.
23203   ac_save_LDFLAGS=$LDFLAGS
23204   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23205   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23206   # check for ICE first), but we must link in the order -lSM -lICE or
23207   # we get undefined symbols.  So assume we have SM if we have ICE.
23208   # These have to be linked with before -lX11, unlike the other
23209   # libraries we check for below, so use a different variable.
23210   # John Interrante, Karl Berry
23211   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23212 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23213 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23214   echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216   ac_check_lib_save_LIBS=$LIBS
23217 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23218 cat >conftest.$ac_ext <<_ACEOF
23219 #line $LINENO "configure"
23220 /* confdefs.h.  */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h.  */
23225
23226 /* Override any gcc2 internal prototype to avoid an error.  */
23227 #ifdef __cplusplus
23228 extern "C"
23229 #endif
23230 /* We use char because int might match the return type of a gcc2
23231    builtin and then its argument prototype would still apply.  */
23232 char IceConnectionNumber ();
23233 int
23234 main ()
23235 {
23236 IceConnectionNumber ();
23237   ;
23238   return 0;
23239 }
23240 _ACEOF
23241 rm -f conftest.$ac_objext conftest$ac_exeext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23243   (eval $ac_link) 2>&5
23244   ac_status=$?
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); } &&
23247          { ac_try='test -s conftest$ac_exeext'
23248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249   (eval $ac_try) 2>&5
23250   ac_status=$?
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); }; }; then
23253   ac_cv_lib_ICE_IceConnectionNumber=yes
23254 else
23255   echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23257
23258 ac_cv_lib_ICE_IceConnectionNumber=no
23259 fi
23260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23261 LIBS=$ac_check_lib_save_LIBS
23262 fi
23263 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23264 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23265 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23266   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23267 fi
23268
23269   LDFLAGS=$ac_save_LDFLAGS
23270
23271 fi
23272
23273
23274         if test "$no_x" = "yes"; then
23275           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23276 echo "$as_me: error: X11 not found" >&2;}
23277    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23278         fi
23279
23280         GUI_TK_LIBRARY="$X_LIBS"
23281         TOOLKIT_INCLUDE="$X_CFLAGS"
23282         AFMINSTALL=afminstall
23283         COMPILED_X_PROGRAM=0
23284
23285         if test "$wxUSE_NANOX" = "yes"; then
23286             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23287 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
23288             if test "x$MICROWIN" = x ; then
23289                 echo "$as_me:$LINENO: result: not found" >&5
23290 echo "${ECHO_T}not found" >&6
23291                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23292 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23293    { (exit 1); exit 1; }; }
23294             else
23295                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23296 echo "${ECHO_T}$MICROWIN" >&6
23297                 cat >>confdefs.h <<\_ACEOF
23298 #define wxUSE_NANOX 1
23299 _ACEOF
23300
23301             fi
23302         fi
23303
23304         if test "$wxUSE_UNICODE" = "yes"; then
23305
23306   succeeded=no
23307
23308   if test -z "$PKG_CONFIG"; then
23309     # Extract the first word of "pkg-config", so it can be a program name with args.
23310 set dummy pkg-config; ac_word=$2
23311 echo "$as_me:$LINENO: checking for $ac_word" >&5
23312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23313 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23314   echo $ECHO_N "(cached) $ECHO_C" >&6
23315 else
23316   case $PKG_CONFIG in
23317   [\\/]* | ?:[\\/]*)
23318   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23319   ;;
23320   *)
23321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23322 for as_dir in $PATH
23323 do
23324   IFS=$as_save_IFS
23325   test -z "$as_dir" && as_dir=.
23326   for ac_exec_ext in '' $ac_executable_extensions; do
23327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23328     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23330     break 2
23331   fi
23332 done
23333 done
23334
23335   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23336   ;;
23337 esac
23338 fi
23339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23340
23341 if test -n "$PKG_CONFIG"; then
23342   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23343 echo "${ECHO_T}$PKG_CONFIG" >&6
23344 else
23345   echo "$as_me:$LINENO: result: no" >&5
23346 echo "${ECHO_T}no" >&6
23347 fi
23348
23349   fi
23350
23351   if test "$PKG_CONFIG" = "no" ; then
23352      echo "*** The pkg-config script could not be found. Make sure it is"
23353      echo "*** in your path, or set the PKG_CONFIG environment variable"
23354      echo "*** to the full path to pkg-config."
23355      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23356   else
23357      PKG_CONFIG_MIN_VERSION=0.9.0
23358      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23359         echo "$as_me:$LINENO: checking for pangox" >&5
23360 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
23361
23362         if $PKG_CONFIG --exists "pangox" ; then
23363             echo "$as_me:$LINENO: result: yes" >&5
23364 echo "${ECHO_T}yes" >&6
23365             succeeded=yes
23366
23367             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23368 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
23369             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
23370             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23371 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
23372
23373             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23374 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
23375             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
23376             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23377 echo "${ECHO_T}$PANGOX_LIBS" >&6
23378         else
23379             PANGOX_CFLAGS=""
23380             PANGOX_LIBS=""
23381             ## If we have a custom action on failure, don't print errors, but
23382             ## do set a variable so people can do so.
23383             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
23384
23385         fi
23386
23387
23388
23389      else
23390         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23391         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23392      fi
23393   fi
23394
23395   if test $succeeded = yes; then
23396
23397                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
23398                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
23399
23400   else
23401
23402                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
23403 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
23404    { (exit 1); exit 1; }; }
23405
23406
23407   fi
23408
23409
23410   succeeded=no
23411
23412   if test -z "$PKG_CONFIG"; then
23413     # Extract the first word of "pkg-config", so it can be a program name with args.
23414 set dummy pkg-config; ac_word=$2
23415 echo "$as_me:$LINENO: checking for $ac_word" >&5
23416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23418   echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420   case $PKG_CONFIG in
23421   [\\/]* | ?:[\\/]*)
23422   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23423   ;;
23424   *)
23425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23426 for as_dir in $PATH
23427 do
23428   IFS=$as_save_IFS
23429   test -z "$as_dir" && as_dir=.
23430   for ac_exec_ext in '' $ac_executable_extensions; do
23431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23432     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23434     break 2
23435   fi
23436 done
23437 done
23438
23439   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23440   ;;
23441 esac
23442 fi
23443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23444
23445 if test -n "$PKG_CONFIG"; then
23446   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23447 echo "${ECHO_T}$PKG_CONFIG" >&6
23448 else
23449   echo "$as_me:$LINENO: result: no" >&5
23450 echo "${ECHO_T}no" >&6
23451 fi
23452
23453   fi
23454
23455   if test "$PKG_CONFIG" = "no" ; then
23456      echo "*** The pkg-config script could not be found. Make sure it is"
23457      echo "*** in your path, or set the PKG_CONFIG environment variable"
23458      echo "*** to the full path to pkg-config."
23459      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23460   else
23461      PKG_CONFIG_MIN_VERSION=0.9.0
23462      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23463         echo "$as_me:$LINENO: checking for pangoft2" >&5
23464 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23465
23466         if $PKG_CONFIG --exists "pangoft2" ; then
23467             echo "$as_me:$LINENO: result: yes" >&5
23468 echo "${ECHO_T}yes" >&6
23469             succeeded=yes
23470
23471             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23472 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23473             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23474             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23475 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23476
23477             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23478 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23479             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23480             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23481 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23482         else
23483             PANGOFT2_CFLAGS=""
23484             PANGOFT2_LIBS=""
23485             ## If we have a custom action on failure, don't print errors, but
23486             ## do set a variable so people can do so.
23487             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23488
23489         fi
23490
23491
23492
23493      else
23494         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23495         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23496      fi
23497   fi
23498
23499   if test $succeeded = yes; then
23500
23501                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23502                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23503
23504   else
23505
23506                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23507 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23508                         wxUSE_PRINTING_ARCHITECTURE="no"
23509
23510
23511   fi
23512
23513
23514   succeeded=no
23515
23516   if test -z "$PKG_CONFIG"; then
23517     # Extract the first word of "pkg-config", so it can be a program name with args.
23518 set dummy pkg-config; ac_word=$2
23519 echo "$as_me:$LINENO: checking for $ac_word" >&5
23520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23522   echo $ECHO_N "(cached) $ECHO_C" >&6
23523 else
23524   case $PKG_CONFIG in
23525   [\\/]* | ?:[\\/]*)
23526   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23527   ;;
23528   *)
23529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23530 for as_dir in $PATH
23531 do
23532   IFS=$as_save_IFS
23533   test -z "$as_dir" && as_dir=.
23534   for ac_exec_ext in '' $ac_executable_extensions; do
23535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23536     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23538     break 2
23539   fi
23540 done
23541 done
23542
23543   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23544   ;;
23545 esac
23546 fi
23547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23548
23549 if test -n "$PKG_CONFIG"; then
23550   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23551 echo "${ECHO_T}$PKG_CONFIG" >&6
23552 else
23553   echo "$as_me:$LINENO: result: no" >&5
23554 echo "${ECHO_T}no" >&6
23555 fi
23556
23557   fi
23558
23559   if test "$PKG_CONFIG" = "no" ; then
23560      echo "*** The pkg-config script could not be found. Make sure it is"
23561      echo "*** in your path, or set the PKG_CONFIG environment variable"
23562      echo "*** to the full path to pkg-config."
23563      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23564   else
23565      PKG_CONFIG_MIN_VERSION=0.9.0
23566      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23567         echo "$as_me:$LINENO: checking for pangoxft" >&5
23568 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
23569
23570         if $PKG_CONFIG --exists "pangoxft" ; then
23571             echo "$as_me:$LINENO: result: yes" >&5
23572 echo "${ECHO_T}yes" >&6
23573             succeeded=yes
23574
23575             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23576 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
23577             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
23578             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23579 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
23580
23581             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23582 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
23583             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
23584             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23585 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
23586         else
23587             PANGOXFT_CFLAGS=""
23588             PANGOXFT_LIBS=""
23589             ## If we have a custom action on failure, don't print errors, but
23590             ## do set a variable so people can do so.
23591             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
23592
23593         fi
23594
23595
23596
23597      else
23598         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23599         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23600      fi
23601   fi
23602
23603   if test $succeeded = yes; then
23604
23605                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
23606                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
23607
23608   else
23609
23610                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23611 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23612
23613
23614   fi
23615
23616         fi
23617
23618         wxUSE_UNIVERSAL="yes"
23619
23620         if test "$wxUSE_NANOX" = "yes"; then
23621             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
23622             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"
23623             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23624         else
23625             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
23626         fi
23627
23628         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23629         TOOLKIT=X11
23630         GUIDIST=X11_DIST
23631     fi
23632
23633     if test "$wxUSE_MOTIF" = 1; then
23634                         if test "$no_x" = yes; then
23635   # Not all programs may use this symbol, but it does not hurt to define it.
23636
23637 cat >>confdefs.h <<\_ACEOF
23638 #define X_DISPLAY_MISSING 1
23639 _ACEOF
23640
23641   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23642 else
23643   if test -n "$x_includes"; then
23644     X_CFLAGS="$X_CFLAGS -I$x_includes"
23645   fi
23646
23647   # It would also be nice to do this for all -L options, not just this one.
23648   if test -n "$x_libraries"; then
23649     X_LIBS="$X_LIBS -L$x_libraries"
23650     # For Solaris; some versions of Sun CC require a space after -R and
23651     # others require no space.  Words are not sufficient . . . .
23652     case `(uname -sr) 2>/dev/null` in
23653     "SunOS 5"*)
23654       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23655 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23656       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23657       cat >conftest.$ac_ext <<_ACEOF
23658 #line $LINENO "configure"
23659 /* confdefs.h.  */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h.  */
23664
23665 int
23666 main ()
23667 {
23668
23669   ;
23670   return 0;
23671 }
23672 _ACEOF
23673 rm -f conftest.$ac_objext conftest$ac_exeext
23674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23675   (eval $ac_link) 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } &&
23679          { ac_try='test -s conftest$ac_exeext'
23680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681   (eval $ac_try) 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); }; }; then
23685   ac_R_nospace=yes
23686 else
23687   echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690 ac_R_nospace=no
23691 fi
23692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23693       if test $ac_R_nospace = yes; then
23694         echo "$as_me:$LINENO: result: no" >&5
23695 echo "${ECHO_T}no" >&6
23696         X_LIBS="$X_LIBS -R$x_libraries"
23697       else
23698         LIBS="$ac_xsave_LIBS -R $x_libraries"
23699         cat >conftest.$ac_ext <<_ACEOF
23700 #line $LINENO "configure"
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706
23707 int
23708 main ()
23709 {
23710
23711   ;
23712   return 0;
23713 }
23714 _ACEOF
23715 rm -f conftest.$ac_objext conftest$ac_exeext
23716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23717   (eval $ac_link) 2>&5
23718   ac_status=$?
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); } &&
23721          { ac_try='test -s conftest$ac_exeext'
23722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723   (eval $ac_try) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); }; }; then
23727   ac_R_space=yes
23728 else
23729   echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732 ac_R_space=no
23733 fi
23734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23735         if test $ac_R_space = yes; then
23736           echo "$as_me:$LINENO: result: yes" >&5
23737 echo "${ECHO_T}yes" >&6
23738           X_LIBS="$X_LIBS -R $x_libraries"
23739         else
23740           echo "$as_me:$LINENO: result: neither works" >&5
23741 echo "${ECHO_T}neither works" >&6
23742         fi
23743       fi
23744       LIBS=$ac_xsave_LIBS
23745     esac
23746   fi
23747
23748   # Check for system-dependent libraries X programs must link with.
23749   # Do this before checking for the system-independent R6 libraries
23750   # (-lICE), since we may need -lsocket or whatever for X linking.
23751
23752   if test "$ISC" = yes; then
23753     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23754   else
23755     # Martyn Johnson says this is needed for Ultrix, if the X
23756     # libraries were built with DECnet support.  And Karl Berry says
23757     # the Alpha needs dnet_stub (dnet does not exist).
23758     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23759     cat >conftest.$ac_ext <<_ACEOF
23760 #line $LINENO "configure"
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766
23767 /* Override any gcc2 internal prototype to avoid an error.  */
23768 #ifdef __cplusplus
23769 extern "C"
23770 #endif
23771 /* We use char because int might match the return type of a gcc2
23772    builtin and then its argument prototype would still apply.  */
23773 char XOpenDisplay ();
23774 int
23775 main ()
23776 {
23777 XOpenDisplay ();
23778   ;
23779   return 0;
23780 }
23781 _ACEOF
23782 rm -f conftest.$ac_objext conftest$ac_exeext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23784   (eval $ac_link) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); } &&
23788          { ac_try='test -s conftest$ac_exeext'
23789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790   (eval $ac_try) 2>&5
23791   ac_status=$?
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); }; }; then
23794   :
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23800 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23801 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23802   echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804   ac_check_lib_save_LIBS=$LIBS
23805 LIBS="-ldnet  $LIBS"
23806 cat >conftest.$ac_ext <<_ACEOF
23807 #line $LINENO "configure"
23808 /* confdefs.h.  */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h.  */
23813
23814 /* Override any gcc2 internal prototype to avoid an error.  */
23815 #ifdef __cplusplus
23816 extern "C"
23817 #endif
23818 /* We use char because int might match the return type of a gcc2
23819    builtin and then its argument prototype would still apply.  */
23820 char dnet_ntoa ();
23821 int
23822 main ()
23823 {
23824 dnet_ntoa ();
23825   ;
23826   return 0;
23827 }
23828 _ACEOF
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23831   (eval $ac_link) 2>&5
23832   ac_status=$?
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); } &&
23835          { ac_try='test -s conftest$ac_exeext'
23836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837   (eval $ac_try) 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; }; then
23841   ac_cv_lib_dnet_dnet_ntoa=yes
23842 else
23843   echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846 ac_cv_lib_dnet_dnet_ntoa=no
23847 fi
23848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23849 LIBS=$ac_check_lib_save_LIBS
23850 fi
23851 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23852 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23853 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23854   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23855 fi
23856
23857     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23858       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23859 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23860 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23861   echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863   ac_check_lib_save_LIBS=$LIBS
23864 LIBS="-ldnet_stub  $LIBS"
23865 cat >conftest.$ac_ext <<_ACEOF
23866 #line $LINENO "configure"
23867 /* confdefs.h.  */
23868 _ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h.  */
23872
23873 /* Override any gcc2 internal prototype to avoid an error.  */
23874 #ifdef __cplusplus
23875 extern "C"
23876 #endif
23877 /* We use char because int might match the return type of a gcc2
23878    builtin and then its argument prototype would still apply.  */
23879 char dnet_ntoa ();
23880 int
23881 main ()
23882 {
23883 dnet_ntoa ();
23884   ;
23885   return 0;
23886 }
23887 _ACEOF
23888 rm -f conftest.$ac_objext conftest$ac_exeext
23889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23890   (eval $ac_link) 2>&5
23891   ac_status=$?
23892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893   (exit $ac_status); } &&
23894          { ac_try='test -s conftest$ac_exeext'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; }; then
23900   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23901 else
23902   echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23904
23905 ac_cv_lib_dnet_stub_dnet_ntoa=no
23906 fi
23907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23908 LIBS=$ac_check_lib_save_LIBS
23909 fi
23910 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23911 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23912 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23913   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23914 fi
23915
23916     fi
23917 fi
23918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23919     LIBS="$ac_xsave_LIBS"
23920
23921     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23922     # to get the SysV transport functions.
23923     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23924     # needs -lnsl.
23925     # The nsl library prevents programs from opening the X display
23926     # on Irix 5.2, according to T.E. Dickey.
23927     # The functions gethostbyname, getservbyname, and inet_addr are
23928     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23929     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23930 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23931 if test "${ac_cv_func_gethostbyname+set}" = set; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934   cat >conftest.$ac_ext <<_ACEOF
23935 #line $LINENO "configure"
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941 /* System header to define __stub macros and hopefully few prototypes,
23942     which can conflict with char gethostbyname (); below.
23943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23944     <limits.h> exists even on freestanding compilers.  */
23945 #ifdef __STDC__
23946 # include <limits.h>
23947 #else
23948 # include <assert.h>
23949 #endif
23950 /* Override any gcc2 internal prototype to avoid an error.  */
23951 #ifdef __cplusplus
23952 extern "C"
23953 {
23954 #endif
23955 /* We use char because int might match the return type of a gcc2
23956    builtin and then its argument prototype would still apply.  */
23957 char gethostbyname ();
23958 /* The GNU C library defines this for functions which it implements
23959     to always fail with ENOSYS.  Some functions are actually named
23960     something starting with __ and the normal name is an alias.  */
23961 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23962 choke me
23963 #else
23964 char (*f) () = gethostbyname;
23965 #endif
23966 #ifdef __cplusplus
23967 }
23968 #endif
23969
23970 int
23971 main ()
23972 {
23973 return f != gethostbyname;
23974   ;
23975   return 0;
23976 }
23977 _ACEOF
23978 rm -f conftest.$ac_objext conftest$ac_exeext
23979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23980   (eval $ac_link) 2>&5
23981   ac_status=$?
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); } &&
23984          { ac_try='test -s conftest$ac_exeext'
23985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986   (eval $ac_try) 2>&5
23987   ac_status=$?
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); }; }; then
23990   ac_cv_func_gethostbyname=yes
23991 else
23992   echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23994
23995 ac_cv_func_gethostbyname=no
23996 fi
23997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23998 fi
23999 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24000 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24001
24002     if test $ac_cv_func_gethostbyname = no; then
24003       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24004 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24005 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24006   echo $ECHO_N "(cached) $ECHO_C" >&6
24007 else
24008   ac_check_lib_save_LIBS=$LIBS
24009 LIBS="-lnsl  $LIBS"
24010 cat >conftest.$ac_ext <<_ACEOF
24011 #line $LINENO "configure"
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017
24018 /* Override any gcc2 internal prototype to avoid an error.  */
24019 #ifdef __cplusplus
24020 extern "C"
24021 #endif
24022 /* We use char because int might match the return type of a gcc2
24023    builtin and then its argument prototype would still apply.  */
24024 char gethostbyname ();
24025 int
24026 main ()
24027 {
24028 gethostbyname ();
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext conftest$ac_exeext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24035   (eval $ac_link) 2>&5
24036   ac_status=$?
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); } &&
24039          { ac_try='test -s conftest$ac_exeext'
24040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041   (eval $ac_try) 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; }; then
24045   ac_cv_lib_nsl_gethostbyname=yes
24046 else
24047   echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 ac_cv_lib_nsl_gethostbyname=no
24051 fi
24052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24053 LIBS=$ac_check_lib_save_LIBS
24054 fi
24055 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24056 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24057 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24058   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24059 fi
24060
24061       if test $ac_cv_lib_nsl_gethostbyname = no; then
24062         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24063 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24064 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24065   echo $ECHO_N "(cached) $ECHO_C" >&6
24066 else
24067   ac_check_lib_save_LIBS=$LIBS
24068 LIBS="-lbsd  $LIBS"
24069 cat >conftest.$ac_ext <<_ACEOF
24070 #line $LINENO "configure"
24071 /* confdefs.h.  */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h.  */
24076
24077 /* Override any gcc2 internal prototype to avoid an error.  */
24078 #ifdef __cplusplus
24079 extern "C"
24080 #endif
24081 /* We use char because int might match the return type of a gcc2
24082    builtin and then its argument prototype would still apply.  */
24083 char gethostbyname ();
24084 int
24085 main ()
24086 {
24087 gethostbyname ();
24088   ;
24089   return 0;
24090 }
24091 _ACEOF
24092 rm -f conftest.$ac_objext conftest$ac_exeext
24093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24094   (eval $ac_link) 2>&5
24095   ac_status=$?
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } &&
24098          { ac_try='test -s conftest$ac_exeext'
24099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100   (eval $ac_try) 2>&5
24101   ac_status=$?
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); }; }; then
24104   ac_cv_lib_bsd_gethostbyname=yes
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109 ac_cv_lib_bsd_gethostbyname=no
24110 fi
24111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24112 LIBS=$ac_check_lib_save_LIBS
24113 fi
24114 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24115 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24116 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24117   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24118 fi
24119
24120       fi
24121     fi
24122
24123     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24124     # socket/setsockopt and other routines are undefined under SCO ODT
24125     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24126     # on later versions), says Simon Leinen: it contains gethostby*
24127     # variants that don't use the name server (or something).  -lsocket
24128     # must be given before -lnsl if both are needed.  We assume that
24129     # if connect needs -lnsl, so does gethostbyname.
24130     echo "$as_me:$LINENO: checking for connect" >&5
24131 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24132 if test "${ac_cv_func_connect+set}" = set; then
24133   echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135   cat >conftest.$ac_ext <<_ACEOF
24136 #line $LINENO "configure"
24137 /* confdefs.h.  */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h.  */
24142 /* System header to define __stub macros and hopefully few prototypes,
24143     which can conflict with char connect (); below.
24144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24145     <limits.h> exists even on freestanding compilers.  */
24146 #ifdef __STDC__
24147 # include <limits.h>
24148 #else
24149 # include <assert.h>
24150 #endif
24151 /* Override any gcc2 internal prototype to avoid an error.  */
24152 #ifdef __cplusplus
24153 extern "C"
24154 {
24155 #endif
24156 /* We use char because int might match the return type of a gcc2
24157    builtin and then its argument prototype would still apply.  */
24158 char connect ();
24159 /* The GNU C library defines this for functions which it implements
24160     to always fail with ENOSYS.  Some functions are actually named
24161     something starting with __ and the normal name is an alias.  */
24162 #if defined (__stub_connect) || defined (__stub___connect)
24163 choke me
24164 #else
24165 char (*f) () = connect;
24166 #endif
24167 #ifdef __cplusplus
24168 }
24169 #endif
24170
24171 int
24172 main ()
24173 {
24174 return f != connect;
24175   ;
24176   return 0;
24177 }
24178 _ACEOF
24179 rm -f conftest.$ac_objext conftest$ac_exeext
24180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24181   (eval $ac_link) 2>&5
24182   ac_status=$?
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } &&
24185          { ac_try='test -s conftest$ac_exeext'
24186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187   (eval $ac_try) 2>&5
24188   ac_status=$?
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); }; }; then
24191   ac_cv_func_connect=yes
24192 else
24193   echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196 ac_cv_func_connect=no
24197 fi
24198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24199 fi
24200 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24201 echo "${ECHO_T}$ac_cv_func_connect" >&6
24202
24203     if test $ac_cv_func_connect = no; then
24204       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24205 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24206 if test "${ac_cv_lib_socket_connect+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209   ac_check_lib_save_LIBS=$LIBS
24210 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24211 cat >conftest.$ac_ext <<_ACEOF
24212 #line $LINENO "configure"
24213 /* confdefs.h.  */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h.  */
24218
24219 /* Override any gcc2 internal prototype to avoid an error.  */
24220 #ifdef __cplusplus
24221 extern "C"
24222 #endif
24223 /* We use char because int might match the return type of a gcc2
24224    builtin and then its argument prototype would still apply.  */
24225 char connect ();
24226 int
24227 main ()
24228 {
24229 connect ();
24230   ;
24231   return 0;
24232 }
24233 _ACEOF
24234 rm -f conftest.$ac_objext conftest$ac_exeext
24235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24236   (eval $ac_link) 2>&5
24237   ac_status=$?
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); } &&
24240          { ac_try='test -s conftest$ac_exeext'
24241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242   (eval $ac_try) 2>&5
24243   ac_status=$?
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); }; }; then
24246   ac_cv_lib_socket_connect=yes
24247 else
24248   echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 ac_cv_lib_socket_connect=no
24252 fi
24253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24255 fi
24256 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24257 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24258 if test $ac_cv_lib_socket_connect = yes; then
24259   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24260 fi
24261
24262     fi
24263
24264     # Guillermo Gomez says -lposix is necessary on A/UX.
24265     echo "$as_me:$LINENO: checking for remove" >&5
24266 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24267 if test "${ac_cv_func_remove+set}" = set; then
24268   echo $ECHO_N "(cached) $ECHO_C" >&6
24269 else
24270   cat >conftest.$ac_ext <<_ACEOF
24271 #line $LINENO "configure"
24272 /* confdefs.h.  */
24273 _ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h.  */
24277 /* System header to define __stub macros and hopefully few prototypes,
24278     which can conflict with char remove (); below.
24279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24280     <limits.h> exists even on freestanding compilers.  */
24281 #ifdef __STDC__
24282 # include <limits.h>
24283 #else
24284 # include <assert.h>
24285 #endif
24286 /* Override any gcc2 internal prototype to avoid an error.  */
24287 #ifdef __cplusplus
24288 extern "C"
24289 {
24290 #endif
24291 /* We use char because int might match the return type of a gcc2
24292    builtin and then its argument prototype would still apply.  */
24293 char remove ();
24294 /* The GNU C library defines this for functions which it implements
24295     to always fail with ENOSYS.  Some functions are actually named
24296     something starting with __ and the normal name is an alias.  */
24297 #if defined (__stub_remove) || defined (__stub___remove)
24298 choke me
24299 #else
24300 char (*f) () = remove;
24301 #endif
24302 #ifdef __cplusplus
24303 }
24304 #endif
24305
24306 int
24307 main ()
24308 {
24309 return f != remove;
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24316   (eval $ac_link) 2>&5
24317   ac_status=$?
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); } &&
24320          { ac_try='test -s conftest$ac_exeext'
24321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322   (eval $ac_try) 2>&5
24323   ac_status=$?
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); }; }; then
24326   ac_cv_func_remove=yes
24327 else
24328   echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24330
24331 ac_cv_func_remove=no
24332 fi
24333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24334 fi
24335 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24336 echo "${ECHO_T}$ac_cv_func_remove" >&6
24337
24338     if test $ac_cv_func_remove = no; then
24339       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24340 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24341 if test "${ac_cv_lib_posix_remove+set}" = set; then
24342   echo $ECHO_N "(cached) $ECHO_C" >&6
24343 else
24344   ac_check_lib_save_LIBS=$LIBS
24345 LIBS="-lposix  $LIBS"
24346 cat >conftest.$ac_ext <<_ACEOF
24347 #line $LINENO "configure"
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353
24354 /* Override any gcc2 internal prototype to avoid an error.  */
24355 #ifdef __cplusplus
24356 extern "C"
24357 #endif
24358 /* We use char because int might match the return type of a gcc2
24359    builtin and then its argument prototype would still apply.  */
24360 char remove ();
24361 int
24362 main ()
24363 {
24364 remove ();
24365   ;
24366   return 0;
24367 }
24368 _ACEOF
24369 rm -f conftest.$ac_objext conftest$ac_exeext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24371   (eval $ac_link) 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); } &&
24375          { ac_try='test -s conftest$ac_exeext'
24376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); }; }; then
24381   ac_cv_lib_posix_remove=yes
24382 else
24383   echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386 ac_cv_lib_posix_remove=no
24387 fi
24388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24389 LIBS=$ac_check_lib_save_LIBS
24390 fi
24391 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24392 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24393 if test $ac_cv_lib_posix_remove = yes; then
24394   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24395 fi
24396
24397     fi
24398
24399     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24400     echo "$as_me:$LINENO: checking for shmat" >&5
24401 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24402 if test "${ac_cv_func_shmat+set}" = set; then
24403   echo $ECHO_N "(cached) $ECHO_C" >&6
24404 else
24405   cat >conftest.$ac_ext <<_ACEOF
24406 #line $LINENO "configure"
24407 /* confdefs.h.  */
24408 _ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h.  */
24412 /* System header to define __stub macros and hopefully few prototypes,
24413     which can conflict with char shmat (); below.
24414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24415     <limits.h> exists even on freestanding compilers.  */
24416 #ifdef __STDC__
24417 # include <limits.h>
24418 #else
24419 # include <assert.h>
24420 #endif
24421 /* Override any gcc2 internal prototype to avoid an error.  */
24422 #ifdef __cplusplus
24423 extern "C"
24424 {
24425 #endif
24426 /* We use char because int might match the return type of a gcc2
24427    builtin and then its argument prototype would still apply.  */
24428 char shmat ();
24429 /* The GNU C library defines this for functions which it implements
24430     to always fail with ENOSYS.  Some functions are actually named
24431     something starting with __ and the normal name is an alias.  */
24432 #if defined (__stub_shmat) || defined (__stub___shmat)
24433 choke me
24434 #else
24435 char (*f) () = shmat;
24436 #endif
24437 #ifdef __cplusplus
24438 }
24439 #endif
24440
24441 int
24442 main ()
24443 {
24444 return f != shmat;
24445   ;
24446   return 0;
24447 }
24448 _ACEOF
24449 rm -f conftest.$ac_objext conftest$ac_exeext
24450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24451   (eval $ac_link) 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } &&
24455          { ac_try='test -s conftest$ac_exeext'
24456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; }; then
24461   ac_cv_func_shmat=yes
24462 else
24463   echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466 ac_cv_func_shmat=no
24467 fi
24468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24469 fi
24470 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24471 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24472
24473     if test $ac_cv_func_shmat = no; then
24474       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24475 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24476 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24477   echo $ECHO_N "(cached) $ECHO_C" >&6
24478 else
24479   ac_check_lib_save_LIBS=$LIBS
24480 LIBS="-lipc  $LIBS"
24481 cat >conftest.$ac_ext <<_ACEOF
24482 #line $LINENO "configure"
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488
24489 /* Override any gcc2 internal prototype to avoid an error.  */
24490 #ifdef __cplusplus
24491 extern "C"
24492 #endif
24493 /* We use char because int might match the return type of a gcc2
24494    builtin and then its argument prototype would still apply.  */
24495 char shmat ();
24496 int
24497 main ()
24498 {
24499 shmat ();
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 rm -f conftest.$ac_objext conftest$ac_exeext
24505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24506   (eval $ac_link) 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); } &&
24510          { ac_try='test -s conftest$ac_exeext'
24511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512   (eval $ac_try) 2>&5
24513   ac_status=$?
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); }; }; then
24516   ac_cv_lib_ipc_shmat=yes
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 ac_cv_lib_ipc_shmat=no
24522 fi
24523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24524 LIBS=$ac_check_lib_save_LIBS
24525 fi
24526 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24527 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24528 if test $ac_cv_lib_ipc_shmat = yes; then
24529   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24530 fi
24531
24532     fi
24533   fi
24534
24535   # Check for libraries that X11R6 Xt/Xaw programs need.
24536   ac_save_LDFLAGS=$LDFLAGS
24537   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24538   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24539   # check for ICE first), but we must link in the order -lSM -lICE or
24540   # we get undefined symbols.  So assume we have SM if we have ICE.
24541   # These have to be linked with before -lX11, unlike the other
24542   # libraries we check for below, so use a different variable.
24543   # John Interrante, Karl Berry
24544   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24545 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24546 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549   ac_check_lib_save_LIBS=$LIBS
24550 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24551 cat >conftest.$ac_ext <<_ACEOF
24552 #line $LINENO "configure"
24553 /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558
24559 /* Override any gcc2 internal prototype to avoid an error.  */
24560 #ifdef __cplusplus
24561 extern "C"
24562 #endif
24563 /* We use char because int might match the return type of a gcc2
24564    builtin and then its argument prototype would still apply.  */
24565 char IceConnectionNumber ();
24566 int
24567 main ()
24568 {
24569 IceConnectionNumber ();
24570   ;
24571   return 0;
24572 }
24573 _ACEOF
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576   (eval $ac_link) 2>&5
24577   ac_status=$?
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); } &&
24580          { ac_try='test -s conftest$ac_exeext'
24581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582   (eval $ac_try) 2>&5
24583   ac_status=$?
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); }; }; then
24586   ac_cv_lib_ICE_IceConnectionNumber=yes
24587 else
24588   echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24590
24591 ac_cv_lib_ICE_IceConnectionNumber=no
24592 fi
24593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24594 LIBS=$ac_check_lib_save_LIBS
24595 fi
24596 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24597 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24598 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24599   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24600 fi
24601
24602   LDFLAGS=$ac_save_LDFLAGS
24603
24604 fi
24605
24606
24607         if test "$no_x" = "yes"; then
24608           { { echo "$as_me:$LINENO: error: X11 not found" >&5
24609 echo "$as_me: error: X11 not found" >&2;}
24610    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24611         fi
24612
24613                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24614         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
24615         AFMINSTALL=afminstall
24616         COMPILED_X_PROGRAM=0
24617
24618         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24619 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24620
24621 ac_find_includes=
24622 for ac_dir in $SEARCH_INCLUDE /usr/include;
24623   do
24624     if test -f "$ac_dir/Xm/Xm.h"; then
24625       ac_find_includes=$ac_dir
24626       break
24627     fi
24628   done
24629
24630         if test "$ac_find_includes" != "" ; then
24631             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24632 echo "${ECHO_T}found in $ac_find_includes" >&6
24633
24634     if test "x$ac_find_includes" = "x/usr/include"; then
24635     ac_path_to_include=""
24636   else
24637     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24638     result=$?
24639     if test $result = 0; then
24640       ac_path_to_include=""
24641     else
24642       ac_path_to_include=" -I$ac_find_includes"
24643     fi
24644   fi
24645
24646             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
24647         else
24648             cat >conftest.$ac_ext <<_ACEOF
24649 #line $LINENO "configure"
24650 /* confdefs.h.  */
24651 _ACEOF
24652 cat confdefs.h >>conftest.$ac_ext
24653 cat >>conftest.$ac_ext <<_ACEOF
24654 /* end confdefs.h.  */
24655
24656                     #include <Xm/Xm.h>
24657
24658 int
24659 main ()
24660 {
24661
24662                     int version;
24663                     version = xmUseVersion;
24664
24665   ;
24666   return 0;
24667 }
24668 _ACEOF
24669 rm -f conftest.$ac_objext
24670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24671   (eval $ac_compile) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); } &&
24675          { ac_try='test -s conftest.$ac_objext'
24676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677   (eval $ac_try) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); }; }; then
24681
24682                     echo "$as_me:$LINENO: result: found in default search path" >&5
24683 echo "${ECHO_T}found in default search path" >&6
24684                     COMPILED_X_PROGRAM=1
24685
24686 else
24687   echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690
24691                     echo "$as_me:$LINENO: result: no" >&5
24692 echo "${ECHO_T}no" >&6
24693                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24694 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24695    { (exit 1); exit 1; }; }
24696
24697
24698 fi
24699 rm -f conftest.$ac_objext conftest.$ac_ext
24700         fi
24701
24702         if test "$COMPILED_X_PROGRAM" = 0; then
24703             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24704 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24705
24706 ac_find_libraries=
24707 for ac_dir in $SEARCH_LIB /usr/lib;
24708   do
24709     for ac_extension in a so sl dylib; do
24710       if test -f "$ac_dir/libXm.$ac_extension"; then
24711         ac_find_libraries=$ac_dir
24712         break 2
24713       fi
24714     done
24715   done
24716
24717             if test "$ac_find_libraries" != "" ; then
24718                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24719 echo "${ECHO_T}found at $ac_find_libraries" >&6
24720
24721
24722   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24723   result=$?
24724   if test $result = 0; then
24725     ac_path_to_link=""
24726   else
24727     ac_path_to_link=" -L$ac_find_libraries"
24728   fi
24729
24730                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24731             else
24732                                                                 save_CFLAGS=$CFLAGS
24733                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24734
24735                 cat >conftest.$ac_ext <<_ACEOF
24736 #line $LINENO "configure"
24737 /* confdefs.h.  */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h.  */
24742
24743                         #include <Xm/Xm.h>
24744
24745 int
24746 main ()
24747 {
24748
24749                         int version;
24750                         version = xmUseVersion;
24751
24752   ;
24753   return 0;
24754 }
24755 _ACEOF
24756 rm -f conftest.$ac_objext
24757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24758   (eval $ac_compile) 2>&5
24759   ac_status=$?
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } &&
24762          { ac_try='test -s conftest.$ac_objext'
24763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764   (eval $ac_try) 2>&5
24765   ac_status=$?
24766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); }; }; then
24768
24769                         echo "$as_me:$LINENO: result: found in default search path" >&5
24770 echo "${ECHO_T}found in default search path" >&6
24771                         COMPILED_X_PROGRAM=1
24772
24773 else
24774   echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777
24778                         echo "$as_me:$LINENO: result: no" >&5
24779 echo "${ECHO_T}no" >&6
24780                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24781 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24782    { (exit 1); exit 1; }; }
24783
24784
24785 fi
24786 rm -f conftest.$ac_objext conftest.$ac_ext
24787
24788                 CFLAGS=$save_CFLAGS
24789             fi
24790         fi
24791
24792         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24793 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
24794         libp_link=""
24795         libsm_ice_link=""
24796         libs_found=0
24797         for libp in "" " -lXp"; do
24798             if test "$libs_found" = "0"; then
24799                 for libsm_ice in "" " -lSM -lICE"; do
24800                     if test "$libs_found" = "0"; then
24801                         save_LIBS="$LIBS"
24802                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
24803                         save_CFLAGS=$CFLAGS
24804                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24805
24806                         cat >conftest.$ac_ext <<_ACEOF
24807 #line $LINENO "configure"
24808 /* confdefs.h.  */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h.  */
24813
24814                                 #include <Xm/Xm.h>
24815                                 #include <Xm/List.h>
24816
24817 int
24818 main ()
24819 {
24820
24821                                 XmString string = NULL;
24822                                 Widget w = NULL;
24823                                 int position = 0;
24824                                 XmListAddItem(w, string, position);
24825
24826   ;
24827   return 0;
24828 }
24829 _ACEOF
24830 rm -f conftest.$ac_objext conftest$ac_exeext
24831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24832   (eval $ac_link) 2>&5
24833   ac_status=$?
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } &&
24836          { ac_try='test -s conftest$ac_exeext'
24837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838   (eval $ac_try) 2>&5
24839   ac_status=$?
24840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841   (exit $ac_status); }; }; then
24842
24843                                 libp_link="$libp"
24844                                 libsm_ice_link="$libsm_ice"
24845                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24846 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24847                                 libs_found=1
24848
24849 else
24850   echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853
24854
24855 fi
24856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24857
24858                         LIBS="$save_LIBS"
24859                         CFLAGS=$save_CFLAGS
24860                     fi
24861                 done
24862             fi
24863         done
24864
24865         if test "$libs_found" = "0"; then
24866             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24867 echo "${ECHO_T}can't find the right libraries" >&6
24868             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24869 echo "$as_me: error: can't link a simple motif program" >&2;}
24870    { (exit 1); exit 1; }; }
24871         fi
24872
24873         save_CFLAGS=$CFLAGS
24874         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24875         echo "$as_me:$LINENO: checking for Motif 2" >&5
24876 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24877         cat >conftest.$ac_ext <<_ACEOF
24878 #line $LINENO "configure"
24879 /* confdefs.h.  */
24880 _ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h.  */
24884
24885                         #include <Xm/Xm.h>
24886
24887 int
24888 main ()
24889 {
24890
24891                         #if XmVersion < 2000
24892                         #error "Not Motif 2"
24893                         #endif
24894
24895   ;
24896   return 0;
24897 }
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24901   (eval $ac_compile) 2>&5
24902   ac_status=$?
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); } &&
24905          { ac_try='test -s conftest.$ac_objext'
24906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907   (eval $ac_try) 2>&5
24908   ac_status=$?
24909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); }; }; then
24911
24912                         cat >>confdefs.h <<\_ACEOF
24913 #define __WXMOTIF20__ 1
24914 _ACEOF
24915
24916                         echo "$as_me:$LINENO: result: found" >&5
24917 echo "${ECHO_T}found" >&6
24918
24919 else
24920   echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24922
24923
24924                         cat >>confdefs.h <<\_ACEOF
24925 #define __WXMOTIF20__ 0
24926 _ACEOF
24927
24928                         echo "$as_me:$LINENO: result: not found" >&5
24929 echo "${ECHO_T}not found" >&6
24930
24931 fi
24932 rm -f conftest.$ac_objext conftest.$ac_ext
24933         CFLAGS=$save_CFLAGS
24934
24935         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
24936         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
24937         TOOLKIT=MOTIF
24938         GUIDIST=MOTIF_DIST
24939     fi
24940
24941     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24942                 if test "$wxUSE_LIBXPM" = "sys"; then
24943             echo "$as_me:$LINENO: checking for Xpm library" >&5
24944 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24945
24946 ac_find_libraries=
24947 for ac_dir in $SEARCH_LIB /usr/lib;
24948   do
24949     for ac_extension in a so sl dylib; do
24950       if test -f "$ac_dir/libXpm.$ac_extension"; then
24951         ac_find_libraries=$ac_dir
24952         break 2
24953       fi
24954     done
24955   done
24956
24957             if test "$ac_find_libraries" != "" ; then
24958
24959   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24960   result=$?
24961   if test $result = 0; then
24962     ac_path_to_link=""
24963   else
24964     ac_path_to_link=" -L$ac_find_libraries"
24965   fi
24966
24967                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24968                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24969 echo "${ECHO_T}found at $ac_find_libraries" >&6
24970
24971                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24972 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24973 if test "${wx_cv_x11_xpm_h+set}" = set; then
24974   echo $ECHO_N "(cached) $ECHO_C" >&6
24975 else
24976
24977                         save_CFLAGS=$CFLAGS
24978                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24979
24980                         cat >conftest.$ac_ext <<_ACEOF
24981 #line $LINENO "configure"
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987
24988                                 #include <X11/xpm.h>
24989
24990 int
24991 main ()
24992 {
24993
24994                                 int version;
24995                                 version = XpmLibraryVersion();
24996
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest.$ac_objext
25002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25003   (eval $ac_compile) 2>&5
25004   ac_status=$?
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); } &&
25007          { ac_try='test -s conftest.$ac_objext'
25008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009   (eval $ac_try) 2>&5
25010   ac_status=$?
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); }; }; then
25013   wx_cv_x11_xpm_h=yes
25014 else
25015   echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018 wx_cv_x11_xpm_h=no
25019
25020 fi
25021 rm -f conftest.$ac_objext conftest.$ac_ext
25022
25023                         CFLAGS=$save_CFLAGS
25024
25025
25026 fi
25027 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25028 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25029
25030                 if test $wx_cv_x11_xpm_h = "yes"; then
25031                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25032                     cat >>confdefs.h <<\_ACEOF
25033 #define wxHAVE_LIB_XPM 1
25034 _ACEOF
25035
25036                 else
25037                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25038 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25039                 fi
25040             fi
25041
25042         fi
25043
25044                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25045 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25046 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25047   echo $ECHO_N "(cached) $ECHO_C" >&6
25048 else
25049   ac_check_lib_save_LIBS=$LIBS
25050 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25051 cat >conftest.$ac_ext <<_ACEOF
25052 #line $LINENO "configure"
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058
25059 /* Override any gcc2 internal prototype to avoid an error.  */
25060 #ifdef __cplusplus
25061 extern "C"
25062 #endif
25063 /* We use char because int might match the return type of a gcc2
25064    builtin and then its argument prototype would still apply.  */
25065 char XShapeQueryExtension ();
25066 int
25067 main ()
25068 {
25069 XShapeQueryExtension ();
25070   ;
25071   return 0;
25072 }
25073 _ACEOF
25074 rm -f conftest.$ac_objext conftest$ac_exeext
25075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25076   (eval $ac_link) 2>&5
25077   ac_status=$?
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); } &&
25080          { ac_try='test -s conftest$ac_exeext'
25081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082   (eval $ac_try) 2>&5
25083   ac_status=$?
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); }; }; then
25086   ac_cv_lib_Xext_XShapeQueryExtension=yes
25087 else
25088   echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25090
25091 ac_cv_lib_Xext_XShapeQueryExtension=no
25092 fi
25093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25094 LIBS=$ac_check_lib_save_LIBS
25095 fi
25096 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25097 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25098 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25099
25100                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25101                       wxHAVE_XEXT_LIB=1
25102
25103 fi
25104
25105
25106         if test "$wxHAVE_XEXT_LIB" = 1; then
25107             save_CFLAGS="$CFLAGS"
25108             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25109
25110             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
25111 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
25112             cat >conftest.$ac_ext <<_ACEOF
25113 #line $LINENO "configure"
25114 /* confdefs.h.  */
25115 _ACEOF
25116 cat confdefs.h >>conftest.$ac_ext
25117 cat >>conftest.$ac_ext <<_ACEOF
25118 /* end confdefs.h.  */
25119
25120                             #include <X11/Xlib.h>
25121                             #include <X11/extensions/shape.h>
25122
25123 int
25124 main ()
25125 {
25126
25127                             int dummy1, dummy2;
25128                             XShapeQueryExtension((Display*)NULL,
25129                                                  (int*)NULL, (int*)NULL);
25130
25131   ;
25132   return 0;
25133 }
25134 _ACEOF
25135 rm -f conftest.$ac_objext
25136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25137   (eval $ac_compile) 2>&5
25138   ac_status=$?
25139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140   (exit $ac_status); } &&
25141          { ac_try='test -s conftest.$ac_objext'
25142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143   (eval $ac_try) 2>&5
25144   ac_status=$?
25145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146   (exit $ac_status); }; }; then
25147
25148                             cat >>confdefs.h <<\_ACEOF
25149 #define HAVE_XSHAPE 1
25150 _ACEOF
25151
25152                             echo "$as_me:$LINENO: result: found" >&5
25153 echo "${ECHO_T}found" >&6
25154
25155 else
25156   echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159
25160                             echo "$as_me:$LINENO: result: not found" >&5
25161 echo "${ECHO_T}not found" >&6
25162
25163 fi
25164 rm -f conftest.$ac_objext conftest.$ac_ext
25165             CFLAGS="$save_CFLAGS"
25166
25167         fi
25168     fi
25169
25170     if test "$wxUSE_MAC" = 1; then
25171         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
25172 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
25173         if test "$GCC" = yes; then
25174             echo "$as_me:$LINENO: result: gcc" >&5
25175 echo "${ECHO_T}gcc" >&6
25176             CPPFLAGS_PASCAL="-fpascal-strings"
25177         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
25178             echo "$as_me:$LINENO: result: xlc" >&5
25179 echo "${ECHO_T}xlc" >&6
25180             CPPFLAGS_PASCAL="-qmacpstr"
25181         else
25182             echo "$as_me:$LINENO: result: none" >&5
25183 echo "${ECHO_T}none" >&6
25184         fi
25185
25186         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
25187
25188         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
25189         TOOLKIT=MAC
25190                 GUIDIST=MACX_DIST
25191                         WXBASEPORT="_carbon"
25192     fi
25193
25194     if test "$wxUSE_COCOA" = 1; then
25195         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
25196         TOOLKIT=COCOA
25197         GUIDIST=COCOA_DIST
25198     fi
25199
25200     if test "$wxUSE_PM" = 1; then
25201         TOOLKIT=PM
25202         GUIDIST=GTK_DIST
25203     fi
25204
25205         if test "$TOOLKIT" = "PM" ; then
25206         TOOLKIT_DIR="os2"
25207     else
25208         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
25209     fi
25210
25211         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
25212
25213     if test "$wxUSE_UNIVERSAL" = "yes"; then
25214         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
25215
25216                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
25217         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
25218
25219         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
25220         if test "$wxUSE_X11" = 1; then
25221             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
25222         else
25223             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
25224         fi
25225         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
25226         WIDGET_SET=univ
25227     else
25228         ALL_OBJECTS="\$(GUIOBJS)"
25229         ALL_SOURCES="\$(ALL_SOURCES)"
25230         ALL_HEADERS="\$(ALL_HEADERS)"
25231     fi
25232
25233     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
25234
25235     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
25236         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
25237     fi
25238
25239     if test "$wxUSE_HTML" = "yes"; then
25240         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
25241     fi
25242
25243     if test "$wxUSE_LIBJPEG" = "builtin" ; then
25244         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
25245     fi
25246     if test "$wxUSE_LIBTIFF" = "builtin" ; then
25247         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
25248     fi
25249     if test "$wxUSE_LIBPNG" = "builtin" ; then
25250         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
25251     fi
25252
25253         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
25254     DISTDIR="wx\$(TOOLKIT)"
25255 else
25256     USE_GUI=0
25257
25258             TOOLKIT_DIR="base"
25259
25260         if test "$USE_WIN32" = 1 ; then
25261         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
25262         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
25263
25264                         TOOLKIT="MSW"
25265     else
25266         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
25267         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
25268     fi
25269
25270     ALL_SOURCES="\$(ALL_SOURCES)"
25271     ALL_HEADERS="\$(ALL_HEADERS)"
25272
25273     PORT_FILES="\${top_srcdir}/src/files.lst"
25274
25275         GUIDIST="BASE_DIST"
25276     DISTDIR="wxBase"
25277 fi
25278
25279
25280
25281
25282 IODBC_C_SRC=""
25283
25284
25285 if test "$TOOLKIT" != "MSW" ; then
25286
25287     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
25288
25289         if test "${ac_cv_header_sql_h+set}" = set; then
25290   echo "$as_me:$LINENO: checking for sql.h" >&5
25291 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25292 if test "${ac_cv_header_sql_h+set}" = set; then
25293   echo $ECHO_N "(cached) $ECHO_C" >&6
25294 fi
25295 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25296 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25297 else
25298   # Is the header compilable?
25299 echo "$as_me:$LINENO: checking sql.h usability" >&5
25300 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25301 cat >conftest.$ac_ext <<_ACEOF
25302 #line $LINENO "configure"
25303 /* confdefs.h.  */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h.  */
25308 $ac_includes_default
25309 #include <sql.h>
25310 _ACEOF
25311 rm -f conftest.$ac_objext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25313   (eval $ac_compile) 2>&5
25314   ac_status=$?
25315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316   (exit $ac_status); } &&
25317          { ac_try='test -s conftest.$ac_objext'
25318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319   (eval $ac_try) 2>&5
25320   ac_status=$?
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); }; }; then
25323   ac_header_compiler=yes
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328 ac_header_compiler=no
25329 fi
25330 rm -f conftest.$ac_objext conftest.$ac_ext
25331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6
25333
25334 # Is the header present?
25335 echo "$as_me:$LINENO: checking sql.h presence" >&5
25336 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25337 cat >conftest.$ac_ext <<_ACEOF
25338 #line $LINENO "configure"
25339 /* confdefs.h.  */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h.  */
25344 #include <sql.h>
25345 _ACEOF
25346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } >/dev/null; then
25354   if test -s conftest.err; then
25355     ac_cpp_err=$ac_c_preproc_warn_flag
25356   else
25357     ac_cpp_err=
25358   fi
25359 else
25360   ac_cpp_err=yes
25361 fi
25362 if test -z "$ac_cpp_err"; then
25363   ac_header_preproc=yes
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368   ac_header_preproc=no
25369 fi
25370 rm -f conftest.err conftest.$ac_ext
25371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 echo "${ECHO_T}$ac_header_preproc" >&6
25373
25374 # So?  What about this header?
25375 case $ac_header_compiler:$ac_header_preproc in
25376   yes:no )
25377     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25378 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25380 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25381     (
25382       cat <<\_ASBOX
25383 ## ------------------------------------ ##
25384 ## Report this to bug-autoconf@gnu.org. ##
25385 ## ------------------------------------ ##
25386 _ASBOX
25387     ) |
25388       sed "s/^/$as_me: WARNING:     /" >&2
25389     ;;
25390   no:yes )
25391     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25392 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25394 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25396 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25397     (
25398       cat <<\_ASBOX
25399 ## ------------------------------------ ##
25400 ## Report this to bug-autoconf@gnu.org. ##
25401 ## ------------------------------------ ##
25402 _ASBOX
25403     ) |
25404       sed "s/^/$as_me: WARNING:     /" >&2
25405     ;;
25406 esac
25407 echo "$as_me:$LINENO: checking for sql.h" >&5
25408 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25409 if test "${ac_cv_header_sql_h+set}" = set; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   ac_cv_header_sql_h=$ac_header_preproc
25413 fi
25414 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25415 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25416
25417 fi
25418 if test $ac_cv_header_sql_h = yes; then
25419   found_sql_h=1
25420 fi
25421
25422
25423         if test "x$found_sql_h" = "x1" ; then
25424             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
25425 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
25426 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429   ac_check_lib_save_LIBS=$LIBS
25430 LIBS="-liodbc  $LIBS"
25431 cat >conftest.$ac_ext <<_ACEOF
25432 #line $LINENO "configure"
25433 /* confdefs.h.  */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h.  */
25438
25439 /* Override any gcc2 internal prototype to avoid an error.  */
25440 #ifdef __cplusplus
25441 extern "C"
25442 #endif
25443 /* We use char because int might match the return type of a gcc2
25444    builtin and then its argument prototype would still apply.  */
25445 char SQLAllocEnv ();
25446 int
25447 main ()
25448 {
25449 SQLAllocEnv ();
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456   (eval $ac_link) 2>&5
25457   ac_status=$?
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } &&
25460          { ac_try='test -s conftest$ac_exeext'
25461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462   (eval $ac_try) 2>&5
25463   ac_status=$?
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); }; }; then
25466   ac_cv_lib_iodbc_SQLAllocEnv=yes
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471 ac_cv_lib_iodbc_SQLAllocEnv=no
25472 fi
25473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25474 LIBS=$ac_check_lib_save_LIBS
25475 fi
25476 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
25477 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
25478 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
25479   ODBC_LINK=" -liodbc"
25480 else
25481
25482                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
25483 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
25484 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
25485   echo $ECHO_N "(cached) $ECHO_C" >&6
25486 else
25487   ac_check_lib_save_LIBS=$LIBS
25488 LIBS="-lunixodbc  $LIBS"
25489 cat >conftest.$ac_ext <<_ACEOF
25490 #line $LINENO "configure"
25491 /* confdefs.h.  */
25492 _ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h.  */
25496
25497 /* Override any gcc2 internal prototype to avoid an error.  */
25498 #ifdef __cplusplus
25499 extern "C"
25500 #endif
25501 /* We use char because int might match the return type of a gcc2
25502    builtin and then its argument prototype would still apply.  */
25503 char SQLAllocEnv ();
25504 int
25505 main ()
25506 {
25507 SQLAllocEnv ();
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 rm -f conftest.$ac_objext conftest$ac_exeext
25513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25514   (eval $ac_link) 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); } &&
25518          { ac_try='test -s conftest$ac_exeext'
25519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520   (eval $ac_try) 2>&5
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); }; }; then
25524   ac_cv_lib_unixodbc_SQLAllocEnv=yes
25525 else
25526   echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529 ac_cv_lib_unixodbc_SQLAllocEnv=no
25530 fi
25531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25532 LIBS=$ac_check_lib_save_LIBS
25533 fi
25534 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
25535 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
25536 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
25537   ODBC_LINK=" -lunixodbc"
25538 else
25539
25540                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
25541 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
25542 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
25543   echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545   ac_check_lib_save_LIBS=$LIBS
25546 LIBS="-lodbc  $LIBS"
25547 cat >conftest.$ac_ext <<_ACEOF
25548 #line $LINENO "configure"
25549 /* confdefs.h.  */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h.  */
25554
25555 /* Override any gcc2 internal prototype to avoid an error.  */
25556 #ifdef __cplusplus
25557 extern "C"
25558 #endif
25559 /* We use char because int might match the return type of a gcc2
25560    builtin and then its argument prototype would still apply.  */
25561 char SQLAllocEnv ();
25562 int
25563 main ()
25564 {
25565 SQLAllocEnv ();
25566   ;
25567   return 0;
25568 }
25569 _ACEOF
25570 rm -f conftest.$ac_objext conftest$ac_exeext
25571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25572   (eval $ac_link) 2>&5
25573   ac_status=$?
25574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575   (exit $ac_status); } &&
25576          { ac_try='test -s conftest$ac_exeext'
25577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25578   (eval $ac_try) 2>&5
25579   ac_status=$?
25580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581   (exit $ac_status); }; }; then
25582   ac_cv_lib_odbc_SQLAllocEnv=yes
25583 else
25584   echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25586
25587 ac_cv_lib_odbc_SQLAllocEnv=no
25588 fi
25589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25590 LIBS=$ac_check_lib_save_LIBS
25591 fi
25592 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25593 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25594 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
25595   ODBC_LINK=" -lodbc"
25596 fi
25597
25598
25599 fi
25600
25601
25602 fi
25603
25604         fi
25605         if test "x$ODBC_LINK" = "x" ; then
25606             if test "$wxUSE_ODBC" = "sys" ; then
25607                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25608 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25609    { (exit 1); exit 1; }; }
25610             else
25611                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25612 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25613                 wxUSE_ODBC=builtin
25614             fi
25615         else
25616                         wxUSE_ODBC=sys
25617         fi
25618     fi
25619     if test "$wxUSE_ODBC" != "no" ; then
25620         cat >>confdefs.h <<\_ACEOF
25621 #define wxUSE_ODBC 1
25622 _ACEOF
25623
25624         if test "$wxUSE_ODBC" = "builtin" ; then
25625             cat >>confdefs.h <<\_ACEOF
25626 #define wxUSE_BUILTIN_IODBC 1
25627 _ACEOF
25628
25629         fi
25630         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25631
25632                 WXODBCFLAG="-D_IODBC_"
25633     fi
25634 fi
25635
25636 if test "$wxUSE_REGEX" = "builtin" ; then
25637     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
25638 fi
25639 if test "$wxUSE_ZLIB" = "builtin" ; then
25640     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
25641 fi
25642
25643 if test "$wxUSE_DISPLAY" = "yes"; then
25644     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25645         echo "$as_me:$LINENO: checking for Xinerama" >&5
25646 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25647
25648 ac_find_libraries=
25649 for ac_dir in $SEARCH_LIB /usr/lib;
25650   do
25651     for ac_extension in a so sl dylib; do
25652       if test -f "$ac_dir/libXinerama.$ac_extension"; then
25653         ac_find_libraries=$ac_dir
25654         break 2
25655       fi
25656     done
25657   done
25658
25659         if test "$ac_find_libraries" != "" ; then
25660
25661   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25662   result=$?
25663   if test $result = 0; then
25664     ac_path_to_link=""
25665   else
25666     ac_path_to_link=" -L$ac_find_libraries"
25667   fi
25668
25669             if test "$ac_path_to_link" != " -L/usr/lib" ; then
25670                 LDFLAGS="$LDFLAGS $ac_path_to_link"
25671             fi
25672             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25673             echo "$as_me:$LINENO: result: yes" >&5
25674 echo "${ECHO_T}yes" >&6
25675
25676             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25677 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25678
25679 ac_find_libraries=
25680 for ac_dir in $SEARCH_LIB /usr/lib;
25681   do
25682     for ac_extension in a so sl dylib; do
25683       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25684         ac_find_libraries=$ac_dir
25685         break 2
25686       fi
25687     done
25688   done
25689
25690             if test "$ac_find_libraries" != "" ; then
25691                 echo "$as_me:$LINENO: result: yes" >&5
25692 echo "${ECHO_T}yes" >&6
25693
25694 for ac_header in X11/extensions/xf86vmode.h
25695 do
25696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25697 echo "$as_me:$LINENO: checking for $ac_header" >&5
25698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25700   echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702   cat >conftest.$ac_ext <<_ACEOF
25703 #line $LINENO "configure"
25704 /* confdefs.h.  */
25705 _ACEOF
25706 cat confdefs.h >>conftest.$ac_ext
25707 cat >>conftest.$ac_ext <<_ACEOF
25708 /* end confdefs.h.  */
25709
25710                                       #if HAVE_X11_XLIB_H
25711                                         #include <X11/Xlib.h>
25712                                       #endif
25713
25714
25715 #include <$ac_header>
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719   (eval $ac_compile) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); } &&
25723          { ac_try='test -s conftest.$ac_objext'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; }; then
25729   eval "$as_ac_Header=yes"
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 eval "$as_ac_Header=no"
25735 fi
25736 rm -f conftest.$ac_objext conftest.$ac_ext
25737 fi
25738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25741   cat >>confdefs.h <<_ACEOF
25742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25743 _ACEOF
25744
25745                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25746
25747 fi
25748
25749 done
25750
25751             else
25752                 echo "$as_me:$LINENO: result: no" >&5
25753 echo "${ECHO_T}no" >&6
25754             fi
25755
25756         else
25757             echo "$as_me:$LINENO: result: no" >&5
25758 echo "${ECHO_T}no" >&6
25759             { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
25760 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
25761             wxUSE_DISPLAY="no"
25762         fi
25763     fi
25764 fi
25765
25766
25767 USE_OPENGL=0
25768 if test "$wxUSE_OPENGL" = "yes"; then
25769     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
25770         OPENGL_LIBS="-framework OpenGL -framework AGL"
25771     elif test "$wxUSE_MSW" = 1; then
25772         OPENGL_LIBS="-lopengl32 -lglu32"
25773     else
25774
25775
25776 ac_find_includes=
25777 for ac_dir in $SEARCH_INCLUDE /usr/include;
25778   do
25779     if test -f "$ac_dir/GL/gl.h"; then
25780       ac_find_includes=$ac_dir
25781       break
25782     fi
25783   done
25784
25785         if test "$ac_find_includes" != "" ; then
25786             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25787 echo "${ECHO_T}found in $ac_find_includes" >&6
25788
25789     if test "x$ac_find_includes" = "x/usr/include"; then
25790     ac_path_to_include=""
25791   else
25792     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25793     result=$?
25794     if test $result = 0; then
25795       ac_path_to_include=""
25796     else
25797       ac_path_to_include=" -I$ac_find_includes"
25798     fi
25799   fi
25800
25801             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
25802         fi
25803
25804         if test "${ac_cv_header_GL_gl_h+set}" = set; then
25805   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25806 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25807 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25808   echo $ECHO_N "(cached) $ECHO_C" >&6
25809 fi
25810 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25811 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25812 else
25813   # Is the header compilable?
25814 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25815 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25816 cat >conftest.$ac_ext <<_ACEOF
25817 #line $LINENO "configure"
25818 /* confdefs.h.  */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h.  */
25823 $ac_includes_default
25824 #include <GL/gl.h>
25825 _ACEOF
25826 rm -f conftest.$ac_objext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25828   (eval $ac_compile) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; }; then
25838   ac_header_compiler=yes
25839 else
25840   echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_header_compiler=no
25844 fi
25845 rm -f conftest.$ac_objext conftest.$ac_ext
25846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25847 echo "${ECHO_T}$ac_header_compiler" >&6
25848
25849 # Is the header present?
25850 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25851 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25852 cat >conftest.$ac_ext <<_ACEOF
25853 #line $LINENO "configure"
25854 /* confdefs.h.  */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h.  */
25859 #include <GL/gl.h>
25860 _ACEOF
25861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } >/dev/null; then
25869   if test -s conftest.err; then
25870     ac_cpp_err=$ac_c_preproc_warn_flag
25871   else
25872     ac_cpp_err=
25873   fi
25874 else
25875   ac_cpp_err=yes
25876 fi
25877 if test -z "$ac_cpp_err"; then
25878   ac_header_preproc=yes
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883   ac_header_preproc=no
25884 fi
25885 rm -f conftest.err conftest.$ac_ext
25886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25887 echo "${ECHO_T}$ac_header_preproc" >&6
25888
25889 # So?  What about this header?
25890 case $ac_header_compiler:$ac_header_preproc in
25891   yes:no )
25892     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25893 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25894     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25895 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25896     (
25897       cat <<\_ASBOX
25898 ## ------------------------------------ ##
25899 ## Report this to bug-autoconf@gnu.org. ##
25900 ## ------------------------------------ ##
25901 _ASBOX
25902     ) |
25903       sed "s/^/$as_me: WARNING:     /" >&2
25904     ;;
25905   no:yes )
25906     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25907 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25908     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25909 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25910     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25911 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25912     (
25913       cat <<\_ASBOX
25914 ## ------------------------------------ ##
25915 ## Report this to bug-autoconf@gnu.org. ##
25916 ## ------------------------------------ ##
25917 _ASBOX
25918     ) |
25919       sed "s/^/$as_me: WARNING:     /" >&2
25920     ;;
25921 esac
25922 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25923 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25924 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25925   echo $ECHO_N "(cached) $ECHO_C" >&6
25926 else
25927   ac_cv_header_GL_gl_h=$ac_header_preproc
25928 fi
25929 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25930 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25931
25932 fi
25933 if test $ac_cv_header_GL_gl_h = yes; then
25934
25935                 found_gl=0
25936
25937                 echo "$as_me:$LINENO: checking for -lGL" >&5
25938 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25939
25940 ac_find_libraries=
25941 for ac_dir in $SEARCH_LIB /usr/lib;
25942   do
25943     for ac_extension in a so sl dylib; do
25944       if test -f "$ac_dir/libGL.$ac_extension"; then
25945         ac_find_libraries=$ac_dir
25946         break 2
25947       fi
25948     done
25949   done
25950
25951                 if test "$ac_find_libraries" != "" ; then
25952
25953   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25954   result=$?
25955   if test $result = 0; then
25956     ac_path_to_link=""
25957   else
25958     ac_path_to_link=" -L$ac_find_libraries"
25959   fi
25960
25961                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
25962                         LDFLAGS_GL="$ac_path_to_link"
25963                     fi
25964
25965
25966 ac_find_libraries=
25967 for ac_dir in $SEARCH_LIB /usr/lib;
25968   do
25969     for ac_extension in a so sl dylib; do
25970       if test -f "$ac_dir/libGLU.$ac_extension"; then
25971         ac_find_libraries=$ac_dir
25972         break 2
25973       fi
25974     done
25975   done
25976
25977                     if test "$ac_find_libraries" != "" ; then
25978
25979   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25980   result=$?
25981   if test $result = 0; then
25982     ac_path_to_link=""
25983   else
25984     ac_path_to_link=" -L$ac_find_libraries"
25985   fi
25986
25987                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
25988                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
25989                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25990                         fi
25991
25992                         found_gl=1
25993                         OPENGL_LIBS="-lGL -lGLU"
25994                         echo "$as_me:$LINENO: result: yes" >&5
25995 echo "${ECHO_T}yes" >&6
25996                     fi
25997                 fi
25998
25999                 if test "$found_gl" != 1; then
26000                     echo "$as_me:$LINENO: result: no" >&5
26001 echo "${ECHO_T}no" >&6
26002                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26003 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26004
26005 ac_find_libraries=
26006 for ac_dir in $SEARCH_LIB /usr/lib;
26007   do
26008     for ac_extension in a so sl dylib; do
26009       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26010         ac_find_libraries=$ac_dir
26011         break 2
26012       fi
26013     done
26014   done
26015
26016                     if test "$ac_find_libraries" != "" ; then
26017
26018   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26019   result=$?
26020   if test $result = 0; then
26021     ac_path_to_link=""
26022   else
26023     ac_path_to_link=" -L$ac_find_libraries"
26024   fi
26025
26026                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26027                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
26028                         echo "$as_me:$LINENO: result: yes" >&5
26029 echo "${ECHO_T}yes" >&6
26030                     else
26031                         echo "$as_me:$LINENO: result: no" >&5
26032 echo "${ECHO_T}no" >&6
26033                     fi
26034                 fi
26035
26036 fi
26037
26038
26039
26040         if test "x$OPENGL_LIBS" = "x"; then
26041                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26042 echo "$as_me: error: OpenGL libraries not available" >&2;}
26043    { (exit 1); exit 1; }; }
26044         fi
26045     fi
26046
26047     if test "$wxUSE_OPENGL" = "yes"; then
26048         USE_OPENGL=1
26049         cat >>confdefs.h <<\_ACEOF
26050 #define wxUSE_OPENGL 1
26051 _ACEOF
26052
26053         cat >>confdefs.h <<\_ACEOF
26054 #define wxUSE_GLCANVAS 1
26055 _ACEOF
26056
26057         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
26058     fi
26059 fi
26060
26061 if test -z "$TOOLKIT_VPATH" ; then
26062     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
26063 fi
26064
26065 if test -n "$TOOLKIT" ; then
26066     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26067 fi
26068
26069 UNICODE=0
26070 lib_unicode_suffix=
26071 if test "$wxUSE_UNICODE" = "yes"; then
26072     lib_unicode_suffix=u
26073     UNICODE=1
26074 fi
26075
26076 lib_debug_suffix=
26077 DEBUG_FLAG=0
26078 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
26079     lib_debug_suffix=d
26080     DEBUG_FLAG=1
26081 fi
26082
26083 DEBUG_INFO=0
26084 if test "$wxUSE_DEBUG_INFO" = "yes"; then
26085     DEBUG_INFO=1
26086 fi
26087
26088 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
26089
26090 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
26091 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
26092
26093 if test "$cross_compiling" = "yes"; then
26094     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
26095     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
26096     HOST_SUFFIX="-${host_alias}"
26097 fi
26098
26099 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
26100 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
26101 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
26102 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
26103
26104 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26105 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26106
26107 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26108 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26109 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26110 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26111
26112 case "${host}" in
26113     *-*-cygwin* | *-*-mingw32* )
26114         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26115         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26116         ;;
26117
26118     *-*-darwin* )
26119
26120         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26121         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26122
26123         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26124         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26125         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26126         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26127
26128                         if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26129             WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
26130             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
26131         fi
26132         ;;
26133 esac
26134
26135 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26136 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26137
26138 WXCONFIG_LIBS="-l${WX_LIBRARY}"
26139 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26140
26141 if test "$wxUSE_OPENGL" = "yes"; then
26142     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26143     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26144 fi
26145
26146
26147
26148 if test "$wxUSE_SHARED" = "yes"; then
26149     case "${host}" in
26150       *-pc-os2_emx | *-pc-os2-emx | \
26151       *-pc-msdosdjgpp )
26152                 wxUSE_SHARED=no
26153         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26154 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
26155       ;;
26156     esac
26157 fi
26158
26159 SHARED=0
26160 if test "$wxUSE_SHARED" = "yes"; then
26161     SHARED=1
26162
26163
26164   found_versioning=no
26165
26166
26167     if test $found_versioning = no ; then
26168       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26169 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26170 if test "${wx_cv_version_script+set}" = set; then
26171   echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173
26174         echo "VER_1 { *; };" >conftest.sym
26175         echo "int main() { return 0; }" >conftest.cpp
26176
26177         if { ac_try='
26178                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
26179                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; } ; then
26185           if test -s conftest.stderr ; then
26186               wx_cv_version_script=no
26187           else
26188               wx_cv_version_script=yes
26189           fi
26190         else
26191           wx_cv_version_script=no
26192         fi
26193         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
26194
26195 fi
26196 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26197 echo "${ECHO_T}$wx_cv_version_script" >&6
26198       if test $wx_cv_version_script = yes ; then
26199         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
26200       fi
26201   fi
26202
26203
26204     case "${host}" in
26205       *-*-linux* | *-*-gnu* )
26206         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26207         ;;
26208
26209       *-*-solaris2* )
26210         if test "$GCC" = yes ; then
26211                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
26212
26213                                     saveLdflags="$LDFLAGS"
26214             LDFLAGS="$saveLdflags -Wl,-rpath,/"
26215             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
26216 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
26217             cat >conftest.$ac_ext <<_ACEOF
26218 #line $LINENO "configure"
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224
26225 int
26226 main ()
26227 {
26228
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 rm -f conftest.$ac_objext conftest$ac_exeext
26234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26235   (eval $ac_link) 2>&5
26236   ac_status=$?
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); } &&
26239          { ac_try='test -s conftest$ac_exeext'
26240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241   (eval $ac_try) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; }; then
26245
26246                     echo "$as_me:$LINENO: result: yes" >&5
26247 echo "${ECHO_T}yes" >&6
26248                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26249
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254
26255                     echo "$as_me:$LINENO: result: no" >&5
26256 echo "${ECHO_T}no" >&6
26257                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
26258 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
26259                     LDFLAGS="$saveLdflags -Wl,-R,/"
26260                     cat >conftest.$ac_ext <<_ACEOF
26261 #line $LINENO "configure"
26262 /* confdefs.h.  */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h.  */
26267
26268 int
26269 main ()
26270 {
26271
26272   ;
26273   return 0;
26274 }
26275 _ACEOF
26276 rm -f conftest.$ac_objext conftest$ac_exeext
26277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26278   (eval $ac_link) 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } &&
26282          { ac_try='test -s conftest$ac_exeext'
26283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284   (eval $ac_try) 2>&5
26285   ac_status=$?
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); }; }; then
26288
26289                              echo "$as_me:$LINENO: result: yes" >&5
26290 echo "${ECHO_T}yes" >&6
26291                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
26292 else
26293   echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296
26297                             echo "$as_me:$LINENO: result: no" >&5
26298 echo "${ECHO_T}no" >&6
26299
26300 fi
26301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26302
26303 fi
26304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26305             LDFLAGS="$saveLdflags"
26306         else
26307             SHARED_LD="${CXX} -G -o"
26308             PIC_FLAG="-KPIC"
26309             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
26310         fi
26311       ;;
26312
26313       powerpc-*-darwin* )
26314         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
26315         cat <<EOF >change-install-names
26316 #!/bin/sh
26317 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
26318 inst_cmd="install_name_tool "
26319 for i in \${libnames} ; do
26320     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
26321 done
26322 \${inst_cmd} \${3}
26323 EOF
26324         chmod +x change-install-names
26325       ;;
26326
26327     esac
26328
26329         if test "x$WX_TARGET_LIBRARY" = "x"; then
26330         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
26331         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
26332     fi
26333
26334         WX_TARGET_LIBRARY_TYPE="so"
26335     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
26336 fi
26337
26338 if test "$wxUSE_SHARED" = "no"; then
26339
26340         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
26341                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26342     fi
26343
26344     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
26345         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26346     fi
26347
26348     if test "$wxUSE_OPENGL" = "yes"; then
26349         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
26350         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
26351     else
26352         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
26353     fi
26354
26355     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
26356     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
26357
26358     WX_TARGET_LIBRARY_TYPE="a"
26359     INSTALL_LIBRARY='$(INSTALL_DATA)'
26360
26361             STATIC_FLAG="yes"
26362 else
26363     STATIC_FLAG="no"
26364 fi
26365
26366 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
26367         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
26368     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
26369     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
26370
26371     # Extract the first word of "Rez", so it can be a program name with args.
26372 set dummy Rez; ac_word=$2
26373 echo "$as_me:$LINENO: checking for $ac_word" >&5
26374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26375 if test "${ac_cv_prog_RESCOMP+set}" = set; then
26376   echo $ECHO_N "(cached) $ECHO_C" >&6
26377 else
26378   if test -n "$RESCOMP"; then
26379   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
26380 else
26381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26382 for as_dir in $PATH
26383 do
26384   IFS=$as_save_IFS
26385   test -z "$as_dir" && as_dir=.
26386   for ac_exec_ext in '' $ac_executable_extensions; do
26387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26388     ac_cv_prog_RESCOMP="Rez"
26389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26390     break 2
26391   fi
26392 done
26393 done
26394
26395   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
26396 fi
26397 fi
26398 RESCOMP=$ac_cv_prog_RESCOMP
26399 if test -n "$RESCOMP"; then
26400   echo "$as_me:$LINENO: result: $RESCOMP" >&5
26401 echo "${ECHO_T}$RESCOMP" >&6
26402 else
26403   echo "$as_me:$LINENO: result: no" >&5
26404 echo "${ECHO_T}no" >&6
26405 fi
26406
26407     # Extract the first word of "DeRez", so it can be a program name with args.
26408 set dummy DeRez; ac_word=$2
26409 echo "$as_me:$LINENO: checking for $ac_word" >&5
26410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26411 if test "${ac_cv_prog_DEREZ+set}" = set; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   if test -n "$DEREZ"; then
26415   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
26416 else
26417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26418 for as_dir in $PATH
26419 do
26420   IFS=$as_save_IFS
26421   test -z "$as_dir" && as_dir=.
26422   for ac_exec_ext in '' $ac_executable_extensions; do
26423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26424     ac_cv_prog_DEREZ="DeRez"
26425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26426     break 2
26427   fi
26428 done
26429 done
26430
26431   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
26432 fi
26433 fi
26434 DEREZ=$ac_cv_prog_DEREZ
26435 if test -n "$DEREZ"; then
26436   echo "$as_me:$LINENO: result: $DEREZ" >&5
26437 echo "${ECHO_T}$DEREZ" >&6
26438 else
26439   echo "$as_me:$LINENO: result: no" >&5
26440 echo "${ECHO_T}no" >&6
26441 fi
26442
26443     # Extract the first word of "SetFile", so it can be a program name with args.
26444 set dummy SetFile; ac_word=$2
26445 echo "$as_me:$LINENO: checking for $ac_word" >&5
26446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26447 if test "${ac_cv_prog_SETFILE+set}" = set; then
26448   echo $ECHO_N "(cached) $ECHO_C" >&6
26449 else
26450   if test -n "$SETFILE"; then
26451   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
26452 else
26453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26454 for as_dir in $PATH
26455 do
26456   IFS=$as_save_IFS
26457   test -z "$as_dir" && as_dir=.
26458   for ac_exec_ext in '' $ac_executable_extensions; do
26459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26460     ac_cv_prog_SETFILE="SetFile"
26461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26462     break 2
26463   fi
26464 done
26465 done
26466
26467   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
26468 fi
26469 fi
26470 SETFILE=$ac_cv_prog_SETFILE
26471 if test -n "$SETFILE"; then
26472   echo "$as_me:$LINENO: result: $SETFILE" >&5
26473 echo "${ECHO_T}$SETFILE" >&6
26474 else
26475   echo "$as_me:$LINENO: result: no" >&5
26476 echo "${ECHO_T}no" >&6
26477 fi
26478
26479
26480     MACSETFILE="\$(SETFILE)"
26481
26482             if test "$wxUSE_MAC" = 1; then
26483         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
26484
26485                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26486     else
26487         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
26488         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26489     fi
26490 else
26491         MACSETFILE="@#"
26492     MACRESWXCONFIG="#"
26493
26494         if test "$wxUSE_PM" = 1; then
26495         MACRESCOMP="emxbind -ep"
26496     else
26497         MACRESCOMP="@#"
26498     fi
26499 fi
26500
26501
26502
26503 echo "$as_me:$LINENO: checking for mode_t" >&5
26504 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
26505 if test "${ac_cv_type_mode_t+set}" = set; then
26506   echo $ECHO_N "(cached) $ECHO_C" >&6
26507 else
26508   cat >conftest.$ac_ext <<_ACEOF
26509 #line $LINENO "configure"
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 $ac_includes_default
26516 int
26517 main ()
26518 {
26519 if ((mode_t *) 0)
26520   return 0;
26521 if (sizeof (mode_t))
26522   return 0;
26523   ;
26524   return 0;
26525 }
26526 _ACEOF
26527 rm -f conftest.$ac_objext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26529   (eval $ac_compile) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } &&
26533          { ac_try='test -s conftest.$ac_objext'
26534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535   (eval $ac_try) 2>&5
26536   ac_status=$?
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); }; }; then
26539   ac_cv_type_mode_t=yes
26540 else
26541   echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26543
26544 ac_cv_type_mode_t=no
26545 fi
26546 rm -f conftest.$ac_objext conftest.$ac_ext
26547 fi
26548 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26549 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
26550 if test $ac_cv_type_mode_t = yes; then
26551   :
26552 else
26553
26554 cat >>confdefs.h <<_ACEOF
26555 #define mode_t int
26556 _ACEOF
26557
26558 fi
26559
26560 echo "$as_me:$LINENO: checking for off_t" >&5
26561 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26562 if test "${ac_cv_type_off_t+set}" = set; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565   cat >conftest.$ac_ext <<_ACEOF
26566 #line $LINENO "configure"
26567 /* confdefs.h.  */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h.  */
26572 $ac_includes_default
26573 int
26574 main ()
26575 {
26576 if ((off_t *) 0)
26577   return 0;
26578 if (sizeof (off_t))
26579   return 0;
26580   ;
26581   return 0;
26582 }
26583 _ACEOF
26584 rm -f conftest.$ac_objext
26585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26586   (eval $ac_compile) 2>&5
26587   ac_status=$?
26588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); } &&
26590          { ac_try='test -s conftest.$ac_objext'
26591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592   (eval $ac_try) 2>&5
26593   ac_status=$?
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); }; }; then
26596   ac_cv_type_off_t=yes
26597 else
26598   echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26600
26601 ac_cv_type_off_t=no
26602 fi
26603 rm -f conftest.$ac_objext conftest.$ac_ext
26604 fi
26605 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26606 echo "${ECHO_T}$ac_cv_type_off_t" >&6
26607 if test $ac_cv_type_off_t = yes; then
26608   :
26609 else
26610
26611 cat >>confdefs.h <<_ACEOF
26612 #define off_t long
26613 _ACEOF
26614
26615 fi
26616
26617 echo "$as_me:$LINENO: checking for pid_t" >&5
26618 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26619 if test "${ac_cv_type_pid_t+set}" = set; then
26620   echo $ECHO_N "(cached) $ECHO_C" >&6
26621 else
26622   cat >conftest.$ac_ext <<_ACEOF
26623 #line $LINENO "configure"
26624 /* confdefs.h.  */
26625 _ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h.  */
26629 $ac_includes_default
26630 int
26631 main ()
26632 {
26633 if ((pid_t *) 0)
26634   return 0;
26635 if (sizeof (pid_t))
26636   return 0;
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 rm -f conftest.$ac_objext
26642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26643   (eval $ac_compile) 2>&5
26644   ac_status=$?
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } &&
26647          { ac_try='test -s conftest.$ac_objext'
26648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649   (eval $ac_try) 2>&5
26650   ac_status=$?
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); }; }; then
26653   ac_cv_type_pid_t=yes
26654 else
26655   echo "$as_me: failed program was:" >&5
26656 sed 's/^/| /' conftest.$ac_ext >&5
26657
26658 ac_cv_type_pid_t=no
26659 fi
26660 rm -f conftest.$ac_objext conftest.$ac_ext
26661 fi
26662 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26663 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26664 if test $ac_cv_type_pid_t = yes; then
26665   :
26666 else
26667
26668 cat >>confdefs.h <<_ACEOF
26669 #define pid_t int
26670 _ACEOF
26671
26672 fi
26673
26674 echo "$as_me:$LINENO: checking for size_t" >&5
26675 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26676 if test "${ac_cv_type_size_t+set}" = set; then
26677   echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679   cat >conftest.$ac_ext <<_ACEOF
26680 #line $LINENO "configure"
26681 /* confdefs.h.  */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h.  */
26686 $ac_includes_default
26687 int
26688 main ()
26689 {
26690 if ((size_t *) 0)
26691   return 0;
26692 if (sizeof (size_t))
26693   return 0;
26694   ;
26695   return 0;
26696 }
26697 _ACEOF
26698 rm -f conftest.$ac_objext
26699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26700   (eval $ac_compile) 2>&5
26701   ac_status=$?
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } &&
26704          { ac_try='test -s conftest.$ac_objext'
26705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26706   (eval $ac_try) 2>&5
26707   ac_status=$?
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); }; }; then
26710   ac_cv_type_size_t=yes
26711 else
26712   echo "$as_me: failed program was:" >&5
26713 sed 's/^/| /' conftest.$ac_ext >&5
26714
26715 ac_cv_type_size_t=no
26716 fi
26717 rm -f conftest.$ac_objext conftest.$ac_ext
26718 fi
26719 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26720 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26721 if test $ac_cv_type_size_t = yes; then
26722   :
26723 else
26724
26725 cat >>confdefs.h <<_ACEOF
26726 #define size_t unsigned
26727 _ACEOF
26728
26729 fi
26730
26731 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26732 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26733 if test "${ac_cv_type_uid_t+set}" = set; then
26734   echo $ECHO_N "(cached) $ECHO_C" >&6
26735 else
26736   cat >conftest.$ac_ext <<_ACEOF
26737 #line $LINENO "configure"
26738 /* confdefs.h.  */
26739 _ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h.  */
26743 #include <sys/types.h>
26744
26745 _ACEOF
26746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26747   $EGREP "uid_t" >/dev/null 2>&1; then
26748   ac_cv_type_uid_t=yes
26749 else
26750   ac_cv_type_uid_t=no
26751 fi
26752 rm -f conftest*
26753
26754 fi
26755 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26756 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26757 if test $ac_cv_type_uid_t = no; then
26758
26759 cat >>confdefs.h <<\_ACEOF
26760 #define uid_t int
26761 _ACEOF
26762
26763
26764 cat >>confdefs.h <<\_ACEOF
26765 #define gid_t int
26766 _ACEOF
26767
26768 fi
26769
26770
26771
26772
26773 ac_ext=cc
26774 ac_cpp='$CXXCPP $CPPFLAGS'
26775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26778
26779 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26780 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26781 if test "${wx_cv_size_t_is_uint+set}" = set; then
26782   echo $ECHO_N "(cached) $ECHO_C" >&6
26783 else
26784
26785                             cat >conftest.$ac_ext <<_ACEOF
26786 #line $LINENO "configure"
26787 /* confdefs.h.  */
26788 _ACEOF
26789 cat confdefs.h >>conftest.$ac_ext
26790 cat >>conftest.$ac_ext <<_ACEOF
26791 /* end confdefs.h.  */
26792 #include <stddef.h>
26793 int
26794 main ()
26795 {
26796
26797             return 0; }
26798
26799             struct Foo { void foo(size_t); void foo(unsigned int); };
26800
26801             int bar() {
26802
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 rm -f conftest.$ac_objext
26808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26809   (eval $ac_compile) 2>&5
26810   ac_status=$?
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } &&
26813          { ac_try='test -s conftest.$ac_objext'
26814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815   (eval $ac_try) 2>&5
26816   ac_status=$?
26817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818   (exit $ac_status); }; }; then
26819   wx_cv_size_t_is_uint=no
26820 else
26821   echo "$as_me: failed program was:" >&5
26822 sed 's/^/| /' conftest.$ac_ext >&5
26823
26824 wx_cv_size_t_is_uint=yes
26825
26826 fi
26827 rm -f conftest.$ac_objext conftest.$ac_ext
26828
26829
26830 fi
26831 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26832 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
26833
26834 if test "$wx_cv_size_t_is_uint" = "yes"; then
26835     cat >>confdefs.h <<\_ACEOF
26836 #define wxSIZE_T_IS_UINT 1
26837 _ACEOF
26838
26839 else
26840     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26841 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26842 if test "${wx_cv_size_t_is_ulong+set}" = set; then
26843   echo $ECHO_N "(cached) $ECHO_C" >&6
26844 else
26845   cat >conftest.$ac_ext <<_ACEOF
26846 #line $LINENO "configure"
26847 /* confdefs.h.  */
26848 _ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h.  */
26852 #include <stddef.h>
26853 int
26854 main ()
26855 {
26856
26857                 return 0; }
26858
26859                 struct Foo { void foo(size_t); void foo(unsigned long); };
26860
26861                 int bar() {
26862
26863   ;
26864   return 0;
26865 }
26866 _ACEOF
26867 rm -f conftest.$ac_objext
26868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26869   (eval $ac_compile) 2>&5
26870   ac_status=$?
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } &&
26873          { ac_try='test -s conftest.$ac_objext'
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   wx_cv_size_t_is_ulong=no
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 wx_cv_size_t_is_ulong=yes
26885
26886 fi
26887 rm -f conftest.$ac_objext conftest.$ac_ext
26888
26889 fi
26890 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26891 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
26892
26893     if test "$wx_cv_size_t_is_ulong" = "yes"; then
26894         cat >>confdefs.h <<\_ACEOF
26895 #define wxSIZE_T_IS_ULONG 1
26896 _ACEOF
26897
26898     fi
26899 fi
26900
26901 ac_ext=c
26902 ac_cpp='$CPP $CPPFLAGS'
26903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26906
26907
26908
26909 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26910 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26911 if test "${wx_cv_struct_pw_gecos+set}" = set; then
26912   echo $ECHO_N "(cached) $ECHO_C" >&6
26913 else
26914
26915         cat >conftest.$ac_ext <<_ACEOF
26916 #line $LINENO "configure"
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922 #include <pwd.h>
26923 int
26924 main ()
26925 {
26926
26927                 char *p;
26928                 struct passwd *pw;
26929                 p = pw->pw_gecos;
26930
26931   ;
26932   return 0;
26933 }
26934 _ACEOF
26935 rm -f conftest.$ac_objext
26936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26937   (eval $ac_compile) 2>&5
26938   ac_status=$?
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } &&
26941          { ac_try='test -s conftest.$ac_objext'
26942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943   (eval $ac_try) 2>&5
26944   ac_status=$?
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); }; }; then
26947
26948                 wx_cv_struct_pw_gecos=yes
26949
26950 else
26951   echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26953
26954
26955                 wx_cv_struct_pw_gecos=no
26956
26957
26958 fi
26959 rm -f conftest.$ac_objext conftest.$ac_ext
26960
26961
26962 fi
26963 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26964 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
26965
26966 if test "$wx_cv_struct_pw_gecos" = "yes"; then
26967     cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_PW_GECOS 1
26969 _ACEOF
26970
26971 fi
26972
26973
26974 if test "$wx_cv_sizeof_wchar_t" != "0"; then
26975     cat >>confdefs.h <<\_ACEOF
26976 #define wxUSE_WCHAR_T 1
26977 _ACEOF
26978
26979
26980         WCSLEN_FOUND=0
26981     WCHAR_LINK=
26982
26983 for ac_func in wcslen
26984 do
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26988 if eval "test \"\${$as_ac_var+set}\" = set"; then
26989   echo $ECHO_N "(cached) $ECHO_C" >&6
26990 else
26991   cat >conftest.$ac_ext <<_ACEOF
26992 #line $LINENO "configure"
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998 /* System header to define __stub macros and hopefully few prototypes,
26999     which can conflict with char $ac_func (); below.
27000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27001     <limits.h> exists even on freestanding compilers.  */
27002 #ifdef __STDC__
27003 # include <limits.h>
27004 #else
27005 # include <assert.h>
27006 #endif
27007 /* Override any gcc2 internal prototype to avoid an error.  */
27008 #ifdef __cplusplus
27009 extern "C"
27010 {
27011 #endif
27012 /* We use char because int might match the return type of a gcc2
27013    builtin and then its argument prototype would still apply.  */
27014 char $ac_func ();
27015 /* The GNU C library defines this for functions which it implements
27016     to always fail with ENOSYS.  Some functions are actually named
27017     something starting with __ and the normal name is an alias.  */
27018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27019 choke me
27020 #else
27021 char (*f) () = $ac_func;
27022 #endif
27023 #ifdef __cplusplus
27024 }
27025 #endif
27026
27027 int
27028 main ()
27029 {
27030 return f != $ac_func;
27031   ;
27032   return 0;
27033 }
27034 _ACEOF
27035 rm -f conftest.$ac_objext conftest$ac_exeext
27036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27037   (eval $ac_link) 2>&5
27038   ac_status=$?
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); } &&
27041          { ac_try='test -s conftest$ac_exeext'
27042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043   (eval $ac_try) 2>&5
27044   ac_status=$?
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); }; }; then
27047   eval "$as_ac_var=yes"
27048 else
27049   echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 eval "$as_ac_var=no"
27053 fi
27054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27055 fi
27056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27058 if test `eval echo '${'$as_ac_var'}'` = yes; then
27059   cat >>confdefs.h <<_ACEOF
27060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27061 _ACEOF
27062  WCSLEN_FOUND=1
27063 fi
27064 done
27065
27066
27067     if test "$WCSLEN_FOUND" = 0; then
27068         if test "$TOOLKIT" = "MSW"; then
27069             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
27070 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
27071 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
27072   echo $ECHO_N "(cached) $ECHO_C" >&6
27073 else
27074   ac_check_lib_save_LIBS=$LIBS
27075 LIBS="-lmsvcrt  $LIBS"
27076 cat >conftest.$ac_ext <<_ACEOF
27077 #line $LINENO "configure"
27078 /* confdefs.h.  */
27079 _ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h.  */
27083
27084 /* Override any gcc2 internal prototype to avoid an error.  */
27085 #ifdef __cplusplus
27086 extern "C"
27087 #endif
27088 /* We use char because int might match the return type of a gcc2
27089    builtin and then its argument prototype would still apply.  */
27090 char wcslen ();
27091 int
27092 main ()
27093 {
27094 wcslen ();
27095   ;
27096   return 0;
27097 }
27098 _ACEOF
27099 rm -f conftest.$ac_objext conftest$ac_exeext
27100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27101   (eval $ac_link) 2>&5
27102   ac_status=$?
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } &&
27105          { ac_try='test -s conftest$ac_exeext'
27106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107   (eval $ac_try) 2>&5
27108   ac_status=$?
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); }; }; then
27111   ac_cv_lib_msvcrt_wcslen=yes
27112 else
27113   echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27115
27116 ac_cv_lib_msvcrt_wcslen=no
27117 fi
27118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27119 LIBS=$ac_check_lib_save_LIBS
27120 fi
27121 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
27122 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
27123 if test $ac_cv_lib_msvcrt_wcslen = yes; then
27124   WCHAR_OK=1
27125 fi
27126
27127         else
27128             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
27129 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
27130 if test "${ac_cv_lib_w_wcslen+set}" = set; then
27131   echo $ECHO_N "(cached) $ECHO_C" >&6
27132 else
27133   ac_check_lib_save_LIBS=$LIBS
27134 LIBS="-lw  $LIBS"
27135 cat >conftest.$ac_ext <<_ACEOF
27136 #line $LINENO "configure"
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142
27143 /* Override any gcc2 internal prototype to avoid an error.  */
27144 #ifdef __cplusplus
27145 extern "C"
27146 #endif
27147 /* We use char because int might match the return type of a gcc2
27148    builtin and then its argument prototype would still apply.  */
27149 char wcslen ();
27150 int
27151 main ()
27152 {
27153 wcslen ();
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27160   (eval $ac_link) 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); } &&
27164          { ac_try='test -s conftest$ac_exeext'
27165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27166   (eval $ac_try) 2>&5
27167   ac_status=$?
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); }; }; then
27170   ac_cv_lib_w_wcslen=yes
27171 else
27172   echo "$as_me: failed program was:" >&5
27173 sed 's/^/| /' conftest.$ac_ext >&5
27174
27175 ac_cv_lib_w_wcslen=no
27176 fi
27177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27178 LIBS=$ac_check_lib_save_LIBS
27179 fi
27180 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
27181 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
27182 if test $ac_cv_lib_w_wcslen = yes; then
27183
27184                             WCHAR_LINK=" -lw"
27185                             WCSLEN_FOUND=1
27186
27187 fi
27188
27189         fi
27190     fi
27191
27192     if test "$WCSLEN_FOUND" = 1; then
27193         cat >>confdefs.h <<\_ACEOF
27194 #define HAVE_WCSLEN 1
27195 _ACEOF
27196
27197     fi
27198
27199
27200 for ac_func in wcsrtombs
27201 do
27202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27203 echo "$as_me:$LINENO: checking for $ac_func" >&5
27204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27205 if eval "test \"\${$as_ac_var+set}\" = set"; then
27206   echo $ECHO_N "(cached) $ECHO_C" >&6
27207 else
27208   cat >conftest.$ac_ext <<_ACEOF
27209 #line $LINENO "configure"
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 /* System header to define __stub macros and hopefully few prototypes,
27216     which can conflict with char $ac_func (); below.
27217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27218     <limits.h> exists even on freestanding compilers.  */
27219 #ifdef __STDC__
27220 # include <limits.h>
27221 #else
27222 # include <assert.h>
27223 #endif
27224 /* Override any gcc2 internal prototype to avoid an error.  */
27225 #ifdef __cplusplus
27226 extern "C"
27227 {
27228 #endif
27229 /* We use char because int might match the return type of a gcc2
27230    builtin and then its argument prototype would still apply.  */
27231 char $ac_func ();
27232 /* The GNU C library defines this for functions which it implements
27233     to always fail with ENOSYS.  Some functions are actually named
27234     something starting with __ and the normal name is an alias.  */
27235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27236 choke me
27237 #else
27238 char (*f) () = $ac_func;
27239 #endif
27240 #ifdef __cplusplus
27241 }
27242 #endif
27243
27244 int
27245 main ()
27246 {
27247 return f != $ac_func;
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 rm -f conftest.$ac_objext conftest$ac_exeext
27253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27254   (eval $ac_link) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); } &&
27258          { ac_try='test -s conftest$ac_exeext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   eval "$as_ac_var=yes"
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269 eval "$as_ac_var=no"
27270 fi
27271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27272 fi
27273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27275 if test `eval echo '${'$as_ac_var'}'` = yes; then
27276   cat >>confdefs.h <<_ACEOF
27277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27278 _ACEOF
27279
27280 fi
27281 done
27282
27283 else
27284     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
27285 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
27286 fi
27287
27288
27289
27290 ac_ext=cc
27291 ac_cpp='$CXXCPP $CPPFLAGS'
27292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27295
27296
27297
27298 for ac_func in vsnprintf
27299 do
27300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27301 echo "$as_me:$LINENO: checking for $ac_func" >&5
27302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27303 if eval "test \"\${$as_ac_var+set}\" = set"; then
27304   echo $ECHO_N "(cached) $ECHO_C" >&6
27305 else
27306   cat >conftest.$ac_ext <<_ACEOF
27307 #line $LINENO "configure"
27308 /* confdefs.h.  */
27309 _ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h.  */
27313 /* System header to define __stub macros and hopefully few prototypes,
27314     which can conflict with char $ac_func (); below.
27315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27316     <limits.h> exists even on freestanding compilers.  */
27317 #ifdef __STDC__
27318 # include <limits.h>
27319 #else
27320 # include <assert.h>
27321 #endif
27322 /* Override any gcc2 internal prototype to avoid an error.  */
27323 #ifdef __cplusplus
27324 extern "C"
27325 {
27326 #endif
27327 /* We use char because int might match the return type of a gcc2
27328    builtin and then its argument prototype would still apply.  */
27329 char $ac_func ();
27330 /* The GNU C library defines this for functions which it implements
27331     to always fail with ENOSYS.  Some functions are actually named
27332     something starting with __ and the normal name is an alias.  */
27333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27334 choke me
27335 #else
27336 char (*f) () = $ac_func;
27337 #endif
27338 #ifdef __cplusplus
27339 }
27340 #endif
27341
27342 int
27343 main ()
27344 {
27345 return f != $ac_func;
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest.$ac_objext conftest$ac_exeext
27351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27352   (eval $ac_link) 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); } &&
27356          { ac_try='test -s conftest$ac_exeext'
27357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358   (eval $ac_try) 2>&5
27359   ac_status=$?
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); }; }; then
27362   eval "$as_ac_var=yes"
27363 else
27364   echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27366
27367 eval "$as_ac_var=no"
27368 fi
27369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27370 fi
27371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27373 if test `eval echo '${'$as_ac_var'}'` = yes; then
27374   cat >>confdefs.h <<_ACEOF
27375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27376 _ACEOF
27377
27378 fi
27379 done
27380
27381
27382 if test "$ac_cv_func_vsnprintf" = "yes"; then
27383         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
27384 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
27385 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
27386   echo $ECHO_N "(cached) $ECHO_C" >&6
27387 else
27388
27389             cat >conftest.$ac_ext <<_ACEOF
27390 #line $LINENO "configure"
27391 /* confdefs.h.  */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h.  */
27396
27397                     #include <stdio.h>
27398                     #include <stdarg.h>
27399
27400 int
27401 main ()
27402 {
27403
27404                     char *buf;
27405                     va_list ap;
27406                     vsnprintf(buf, 10u, "%s", ap);
27407
27408   ;
27409   return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext
27413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27414   (eval $ac_compile) 2>&5
27415   ac_status=$?
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } &&
27418          { ac_try='test -s conftest.$ac_objext'
27419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27420   (eval $ac_try) 2>&5
27421   ac_status=$?
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); }; }; then
27424   wx_cv_func_vsnprintf_decl=yes
27425 else
27426   echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27428
27429 wx_cv_func_vsnprintf_decl=no
27430
27431 fi
27432 rm -f conftest.$ac_objext conftest.$ac_ext
27433
27434
27435 fi
27436 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
27437 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
27438
27439     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
27440         cat >>confdefs.h <<\_ACEOF
27441 #define HAVE_VSNPRINTF_DECL 1
27442 _ACEOF
27443
27444     fi
27445 fi
27446
27447 if test "$wxUSE_UNICODE" = yes; then
27448
27449
27450
27451 for ac_func in fputwc wprintf vswprintf
27452 do
27453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27454 echo "$as_me:$LINENO: checking for $ac_func" >&5
27455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27456 if eval "test \"\${$as_ac_var+set}\" = set"; then
27457   echo $ECHO_N "(cached) $ECHO_C" >&6
27458 else
27459   cat >conftest.$ac_ext <<_ACEOF
27460 #line $LINENO "configure"
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466 /* System header to define __stub macros and hopefully few prototypes,
27467     which can conflict with char $ac_func (); below.
27468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27469     <limits.h> exists even on freestanding compilers.  */
27470 #ifdef __STDC__
27471 # include <limits.h>
27472 #else
27473 # include <assert.h>
27474 #endif
27475 /* Override any gcc2 internal prototype to avoid an error.  */
27476 #ifdef __cplusplus
27477 extern "C"
27478 {
27479 #endif
27480 /* We use char because int might match the return type of a gcc2
27481    builtin and then its argument prototype would still apply.  */
27482 char $ac_func ();
27483 /* The GNU C library defines this for functions which it implements
27484     to always fail with ENOSYS.  Some functions are actually named
27485     something starting with __ and the normal name is an alias.  */
27486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27487 choke me
27488 #else
27489 char (*f) () = $ac_func;
27490 #endif
27491 #ifdef __cplusplus
27492 }
27493 #endif
27494
27495 int
27496 main ()
27497 {
27498 return f != $ac_func;
27499   ;
27500   return 0;
27501 }
27502 _ACEOF
27503 rm -f conftest.$ac_objext conftest$ac_exeext
27504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27505   (eval $ac_link) 2>&5
27506   ac_status=$?
27507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508   (exit $ac_status); } &&
27509          { ac_try='test -s conftest$ac_exeext'
27510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27511   (eval $ac_try) 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; }; then
27515   eval "$as_ac_var=yes"
27516 else
27517   echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520 eval "$as_ac_var=no"
27521 fi
27522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27523 fi
27524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27526 if test `eval echo '${'$as_ac_var'}'` = yes; then
27527   cat >>confdefs.h <<_ACEOF
27528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27529 _ACEOF
27530
27531 fi
27532 done
27533
27534
27535                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
27536 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
27537     cat >conftest.$ac_ext <<_ACEOF
27538 #line $LINENO "configure"
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 #include <wchar.h>
27545 int
27546 main ()
27547 {
27548 &_vsnwprintf;
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext
27554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27555   (eval $ac_compile) 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } &&
27559          { ac_try='test -s conftest.$ac_objext'
27560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561   (eval $ac_try) 2>&5
27562   ac_status=$?
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); }; }; then
27565   echo "$as_me:$LINENO: result: yes" >&5
27566 echo "${ECHO_T}yes" >&6
27567                     cat >>confdefs.h <<\_ACEOF
27568 #define HAVE__VSNWPRINTF 1
27569 _ACEOF
27570
27571 else
27572   echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27574
27575 echo "$as_me:$LINENO: result: no" >&5
27576 echo "${ECHO_T}no" >&6
27577 fi
27578 rm -f conftest.$ac_objext conftest.$ac_ext;
27579 fi
27580
27581 ac_ext=c
27582 ac_cpp='$CPP $CPPFLAGS'
27583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27586
27587
27588
27589
27590 if test "$TOOLKIT" != "MSW"; then
27591
27592
27593
27594
27595 ac_ext=cc
27596 ac_cpp='$CXXCPP $CPPFLAGS'
27597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27600
27601
27602
27603
27604 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
27605 if test "${with_libiconv_prefix+set}" = set; then
27606   withval="$with_libiconv_prefix"
27607
27608     for dir in `echo "$withval" | tr : ' '`; do
27609       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27610       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27611     done
27612
27613 fi;
27614
27615   echo "$as_me:$LINENO: checking for iconv" >&5
27616 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27617 if test "${am_cv_func_iconv+set}" = set; then
27618   echo $ECHO_N "(cached) $ECHO_C" >&6
27619 else
27620
27621     am_cv_func_iconv="no, consider installing GNU libiconv"
27622     am_cv_lib_iconv=no
27623     cat >conftest.$ac_ext <<_ACEOF
27624 #line $LINENO "configure"
27625 /* confdefs.h.  */
27626 _ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h.  */
27630 #include <stdlib.h>
27631 #include <iconv.h>
27632 int
27633 main ()
27634 {
27635 iconv_t cd = iconv_open("","");
27636        iconv(cd,NULL,NULL,NULL,NULL);
27637        iconv_close(cd);
27638   ;
27639   return 0;
27640 }
27641 _ACEOF
27642 rm -f conftest.$ac_objext conftest$ac_exeext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27644   (eval $ac_link) 2>&5
27645   ac_status=$?
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); } &&
27648          { ac_try='test -s conftest$ac_exeext'
27649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27650   (eval $ac_try) 2>&5
27651   ac_status=$?
27652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653   (exit $ac_status); }; }; then
27654   am_cv_func_iconv=yes
27655 else
27656   echo "$as_me: failed program was:" >&5
27657 sed 's/^/| /' conftest.$ac_ext >&5
27658
27659 fi
27660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27661     if test "$am_cv_func_iconv" != yes; then
27662       am_save_LIBS="$LIBS"
27663       LIBS="$LIBS -liconv"
27664       cat >conftest.$ac_ext <<_ACEOF
27665 #line $LINENO "configure"
27666 /* confdefs.h.  */
27667 _ACEOF
27668 cat confdefs.h >>conftest.$ac_ext
27669 cat >>conftest.$ac_ext <<_ACEOF
27670 /* end confdefs.h.  */
27671 #include <stdlib.h>
27672 #include <iconv.h>
27673 int
27674 main ()
27675 {
27676 iconv_t cd = iconv_open("","");
27677          iconv(cd,NULL,NULL,NULL,NULL);
27678          iconv_close(cd);
27679   ;
27680   return 0;
27681 }
27682 _ACEOF
27683 rm -f conftest.$ac_objext conftest$ac_exeext
27684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27685   (eval $ac_link) 2>&5
27686   ac_status=$?
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); } &&
27689          { ac_try='test -s conftest$ac_exeext'
27690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691   (eval $ac_try) 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); }; }; then
27695   am_cv_lib_iconv=yes
27696         am_cv_func_iconv=yes
27697 else
27698   echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 fi
27702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27703       LIBS="$am_save_LIBS"
27704     fi
27705
27706 fi
27707 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27708 echo "${ECHO_T}$am_cv_func_iconv" >&6
27709   if test "$am_cv_func_iconv" = yes; then
27710
27711 cat >>confdefs.h <<\_ACEOF
27712 #define HAVE_ICONV 1
27713 _ACEOF
27714
27715     echo "$as_me:$LINENO: checking if iconv needs const" >&5
27716 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27717 if test "${wx_cv_func_iconv_const+set}" = set; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 #line $LINENO "configure"
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727
27728 #include <stdlib.h>
27729 #include <iconv.h>
27730 extern
27731 #ifdef __cplusplus
27732 "C"
27733 #endif
27734 #if defined(__STDC__) || defined(__cplusplus)
27735 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27736 #else
27737 size_t iconv();
27738 #endif
27739
27740 int
27741 main ()
27742 {
27743
27744   ;
27745   return 0;
27746 }
27747 _ACEOF
27748 rm -f conftest.$ac_objext
27749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27750   (eval $ac_compile) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); } &&
27754          { ac_try='test -s conftest.$ac_objext'
27755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756   (eval $ac_try) 2>&5
27757   ac_status=$?
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); }; }; then
27760   wx_cv_func_iconv_const="no"
27761 else
27762   echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765 wx_cv_func_iconv_const="yes"
27766
27767 fi
27768 rm -f conftest.$ac_objext conftest.$ac_ext
27769
27770 fi
27771 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27772 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
27773
27774     iconv_const=
27775     if test "x$wx_cv_func_iconv_const" = "xyes"; then
27776         iconv_const="const"
27777     fi
27778
27779
27780 cat >>confdefs.h <<_ACEOF
27781 #define ICONV_CONST $iconv_const
27782 _ACEOF
27783
27784   fi
27785   LIBICONV=
27786   if test "$am_cv_lib_iconv" = yes; then
27787     LIBICONV="-liconv"
27788   fi
27789
27790
27791 LIBS="$LIBICONV $LIBS"
27792 ac_ext=c
27793 ac_cpp='$CPP $CPPFLAGS'
27794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27797
27798
27799 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
27800
27801 for ac_func in sigaction
27802 do
27803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27804 echo "$as_me:$LINENO: checking for $ac_func" >&5
27805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27806 if eval "test \"\${$as_ac_var+set}\" = set"; then
27807   echo $ECHO_N "(cached) $ECHO_C" >&6
27808 else
27809   cat >conftest.$ac_ext <<_ACEOF
27810 #line $LINENO "configure"
27811 /* confdefs.h.  */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h.  */
27816 /* System header to define __stub macros and hopefully few prototypes,
27817     which can conflict with char $ac_func (); below.
27818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27819     <limits.h> exists even on freestanding compilers.  */
27820 #ifdef __STDC__
27821 # include <limits.h>
27822 #else
27823 # include <assert.h>
27824 #endif
27825 /* Override any gcc2 internal prototype to avoid an error.  */
27826 #ifdef __cplusplus
27827 extern "C"
27828 {
27829 #endif
27830 /* We use char because int might match the return type of a gcc2
27831    builtin and then its argument prototype would still apply.  */
27832 char $ac_func ();
27833 /* The GNU C library defines this for functions which it implements
27834     to always fail with ENOSYS.  Some functions are actually named
27835     something starting with __ and the normal name is an alias.  */
27836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27837 choke me
27838 #else
27839 char (*f) () = $ac_func;
27840 #endif
27841 #ifdef __cplusplus
27842 }
27843 #endif
27844
27845 int
27846 main ()
27847 {
27848 return f != $ac_func;
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27855   (eval $ac_link) 2>&5
27856   ac_status=$?
27857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858   (exit $ac_status); } &&
27859          { ac_try='test -s conftest$ac_exeext'
27860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861   (eval $ac_try) 2>&5
27862   ac_status=$?
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); }; }; then
27865   eval "$as_ac_var=yes"
27866 else
27867   echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870 eval "$as_ac_var=no"
27871 fi
27872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27873 fi
27874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27876 if test `eval echo '${'$as_ac_var'}'` = yes; then
27877   cat >>confdefs.h <<_ACEOF
27878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27879 _ACEOF
27880
27881 fi
27882 done
27883
27884
27885     if test "$ac_cv_func_sigaction" = "no"; then
27886         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27887 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
27888         wxUSE_ON_FATAL_EXCEPTION=no
27889     fi
27890
27891     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
27892
27893
27894       ac_ext=cc
27895 ac_cpp='$CXXCPP $CPPFLAGS'
27896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27899
27900
27901       echo "$as_me:$LINENO: checking for sa_handler type" >&5
27902 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27903 if test "${wx_cv_type_sa_handler+set}" = set; then
27904   echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906
27907         cat >conftest.$ac_ext <<_ACEOF
27908 #line $LINENO "configure"
27909 /* confdefs.h.  */
27910 _ACEOF
27911 cat confdefs.h >>conftest.$ac_ext
27912 cat >>conftest.$ac_ext <<_ACEOF
27913 /* end confdefs.h.  */
27914 #include <signal.h>
27915 int
27916 main ()
27917 {
27918
27919                         extern void testSigHandler(int);
27920
27921                         struct sigaction sa;
27922                         sa.sa_handler = testSigHandler;
27923
27924   ;
27925   return 0;
27926 }
27927 _ACEOF
27928 rm -f conftest.$ac_objext
27929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27930   (eval $ac_compile) 2>&5
27931   ac_status=$?
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); } &&
27934          { ac_try='test -s conftest.$ac_objext'
27935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936   (eval $ac_try) 2>&5
27937   ac_status=$?
27938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); }; }; then
27940
27941                         wx_cv_type_sa_handler=int
27942
27943 else
27944   echo "$as_me: failed program was:" >&5
27945 sed 's/^/| /' conftest.$ac_ext >&5
27946
27947
27948                         wx_cv_type_sa_handler=void
27949
27950 fi
27951 rm -f conftest.$ac_objext conftest.$ac_ext
27952
27953 fi
27954 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27955 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
27956
27957       ac_ext=c
27958 ac_cpp='$CPP $CPPFLAGS'
27959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27962
27963
27964       cat >>confdefs.h <<_ACEOF
27965 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
27966 _ACEOF
27967
27968     fi
27969 fi
27970
27971
27972
27973 for ac_func in mkstemp mktemp
27974 do
27975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27976 echo "$as_me:$LINENO: checking for $ac_func" >&5
27977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27978 if eval "test \"\${$as_ac_var+set}\" = set"; then
27979   echo $ECHO_N "(cached) $ECHO_C" >&6
27980 else
27981   cat >conftest.$ac_ext <<_ACEOF
27982 #line $LINENO "configure"
27983 /* confdefs.h.  */
27984 _ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h.  */
27988 /* System header to define __stub macros and hopefully few prototypes,
27989     which can conflict with char $ac_func (); below.
27990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27991     <limits.h> exists even on freestanding compilers.  */
27992 #ifdef __STDC__
27993 # include <limits.h>
27994 #else
27995 # include <assert.h>
27996 #endif
27997 /* Override any gcc2 internal prototype to avoid an error.  */
27998 #ifdef __cplusplus
27999 extern "C"
28000 {
28001 #endif
28002 /* We use char because int might match the return type of a gcc2
28003    builtin and then its argument prototype would still apply.  */
28004 char $ac_func ();
28005 /* The GNU C library defines this for functions which it implements
28006     to always fail with ENOSYS.  Some functions are actually named
28007     something starting with __ and the normal name is an alias.  */
28008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28009 choke me
28010 #else
28011 char (*f) () = $ac_func;
28012 #endif
28013 #ifdef __cplusplus
28014 }
28015 #endif
28016
28017 int
28018 main ()
28019 {
28020 return f != $ac_func;
28021   ;
28022   return 0;
28023 }
28024 _ACEOF
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28027   (eval $ac_link) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); } &&
28031          { ac_try='test -s conftest$ac_exeext'
28032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033   (eval $ac_try) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; }; then
28037   eval "$as_ac_var=yes"
28038 else
28039   echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 eval "$as_ac_var=no"
28043 fi
28044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28045 fi
28046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28048 if test `eval echo '${'$as_ac_var'}'` = yes; then
28049   cat >>confdefs.h <<_ACEOF
28050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28051 _ACEOF
28052  break
28053 fi
28054 done
28055
28056
28057 echo "$as_me:$LINENO: checking for statfs" >&5
28058 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
28059 if test "${wx_cv_func_statfs+set}" = set; then
28060   echo $ECHO_N "(cached) $ECHO_C" >&6
28061 else
28062   cat >conftest.$ac_ext <<_ACEOF
28063 #line $LINENO "configure"
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069
28070              #if defined(__BSD__)
28071                #include <sys/param.h>
28072                #include <sys/mount.h>
28073              #else
28074                #include <sys/vfs.h>
28075              #endif
28076
28077 int
28078 main ()
28079 {
28080
28081              long l;
28082              struct statfs fs;
28083              statfs("/", &fs);
28084              l = fs.f_bsize;
28085              l += fs.f_blocks;
28086              l += fs.f_bavail;
28087
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 rm -f conftest.$ac_objext
28093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28094   (eval $ac_compile) 2>&5
28095   ac_status=$?
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); } &&
28098          { ac_try='test -s conftest.$ac_objext'
28099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28100   (eval $ac_try) 2>&5
28101   ac_status=$?
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); }; }; then
28104
28105              wx_cv_func_statfs=yes
28106
28107 else
28108   echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28110
28111
28112              wx_cv_func_statfs=no
28113
28114
28115 fi
28116 rm -f conftest.$ac_objext conftest.$ac_ext
28117
28118 fi
28119 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
28120 echo "${ECHO_T}$wx_cv_func_statfs" >&6
28121
28122 if test "$wx_cv_func_statfs" = "yes"; then
28123     wx_cv_type_statvfs_t="struct statfs"
28124     cat >>confdefs.h <<\_ACEOF
28125 #define HAVE_STATFS 1
28126 _ACEOF
28127
28128 else
28129     echo "$as_me:$LINENO: checking for statvfs" >&5
28130 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
28131 if test "${wx_cv_func_statvfs+set}" = set; then
28132   echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134   cat >conftest.$ac_ext <<_ACEOF
28135 #line $LINENO "configure"
28136 /* confdefs.h.  */
28137 _ACEOF
28138 cat confdefs.h >>conftest.$ac_ext
28139 cat >>conftest.$ac_ext <<_ACEOF
28140 /* end confdefs.h.  */
28141
28142                 #include <stddef.h>
28143                 #include <sys/statvfs.h>
28144
28145 int
28146 main ()
28147 {
28148
28149                 statvfs("/", NULL);
28150
28151   ;
28152   return 0;
28153 }
28154 _ACEOF
28155 rm -f conftest.$ac_objext
28156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28157   (eval $ac_compile) 2>&5
28158   ac_status=$?
28159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160   (exit $ac_status); } &&
28161          { ac_try='test -s conftest.$ac_objext'
28162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163   (eval $ac_try) 2>&5
28164   ac_status=$?
28165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166   (exit $ac_status); }; }; then
28167   wx_cv_func_statvfs=yes
28168 else
28169   echo "$as_me: failed program was:" >&5
28170 sed 's/^/| /' conftest.$ac_ext >&5
28171
28172 wx_cv_func_statvfs=no
28173
28174 fi
28175 rm -f conftest.$ac_objext conftest.$ac_ext
28176
28177 fi
28178 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
28179 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
28180
28181     if test "$wx_cv_func_statvfs" = "yes"; then
28182
28183
28184         ac_ext=cc
28185 ac_cpp='$CXXCPP $CPPFLAGS'
28186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28189
28190
28191         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
28192 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
28193 if test "${wx_cv_type_statvfs_t+set}" = set; then
28194   echo $ECHO_N "(cached) $ECHO_C" >&6
28195 else
28196   cat >conftest.$ac_ext <<_ACEOF
28197 #line $LINENO "configure"
28198 /* confdefs.h.  */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h.  */
28203
28204                     #include <sys/statvfs.h>
28205
28206 int
28207 main ()
28208 {
28209
28210                     long l;
28211                     statvfs_t fs;
28212                     statvfs("/", &fs);
28213                     l = fs.f_bsize;
28214                     l += fs.f_blocks;
28215                     l += fs.f_bavail;
28216
28217   ;
28218   return 0;
28219 }
28220 _ACEOF
28221 rm -f conftest.$ac_objext
28222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28223   (eval $ac_compile) 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } &&
28227          { ac_try='test -s conftest.$ac_objext'
28228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229   (eval $ac_try) 2>&5
28230   ac_status=$?
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); }; }; then
28233   wx_cv_type_statvfs_t=statvfs_t
28234 else
28235   echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28237
28238
28239                     cat >conftest.$ac_ext <<_ACEOF
28240 #line $LINENO "configure"
28241 /* confdefs.h.  */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h.  */
28246
28247                             #include <sys/statvfs.h>
28248
28249 int
28250 main ()
28251 {
28252
28253                             long l;
28254                             struct statvfs fs;
28255                             statvfs("/", &fs);
28256                             l = fs.f_bsize;
28257                             l += fs.f_blocks;
28258                             l += fs.f_bavail;
28259
28260   ;
28261   return 0;
28262 }
28263 _ACEOF
28264 rm -f conftest.$ac_objext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266   (eval $ac_compile) 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } &&
28270          { ac_try='test -s conftest.$ac_objext'
28271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28272   (eval $ac_try) 2>&5
28273   ac_status=$?
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); }; }; then
28276   wx_cv_type_statvfs_t="struct statvfs"
28277 else
28278   echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.$ac_ext >&5
28280
28281 wx_cv_type_statvfs_t="unknown"
28282
28283 fi
28284 rm -f conftest.$ac_objext conftest.$ac_ext
28285
28286
28287 fi
28288 rm -f conftest.$ac_objext conftest.$ac_ext
28289
28290 fi
28291 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
28292 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
28293
28294         ac_ext=c
28295 ac_cpp='$CPP $CPPFLAGS'
28296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28299
28300
28301         if test "$wx_cv_type_statvfs_t" != "unknown"; then
28302             cat >>confdefs.h <<\_ACEOF
28303 #define HAVE_STATVFS 1
28304 _ACEOF
28305
28306         fi
28307     else
28308                 wx_cv_type_statvfs_t="unknown"
28309     fi
28310 fi
28311
28312 if test "$wx_cv_type_statvfs_t" != "unknown"; then
28313     cat >>confdefs.h <<_ACEOF
28314 #define WX_STATFS_T $wx_cv_type_statvfs_t
28315 _ACEOF
28316
28317 else
28318     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
28319 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
28320 fi
28321
28322 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
28323
28324
28325 for ac_func in fcntl flock
28326 do
28327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28328 echo "$as_me:$LINENO: checking for $ac_func" >&5
28329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28330 if eval "test \"\${$as_ac_var+set}\" = set"; then
28331   echo $ECHO_N "(cached) $ECHO_C" >&6
28332 else
28333   cat >conftest.$ac_ext <<_ACEOF
28334 #line $LINENO "configure"
28335 /* confdefs.h.  */
28336 _ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h.  */
28340 /* System header to define __stub macros and hopefully few prototypes,
28341     which can conflict with char $ac_func (); below.
28342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28343     <limits.h> exists even on freestanding compilers.  */
28344 #ifdef __STDC__
28345 # include <limits.h>
28346 #else
28347 # include <assert.h>
28348 #endif
28349 /* Override any gcc2 internal prototype to avoid an error.  */
28350 #ifdef __cplusplus
28351 extern "C"
28352 {
28353 #endif
28354 /* We use char because int might match the return type of a gcc2
28355    builtin and then its argument prototype would still apply.  */
28356 char $ac_func ();
28357 /* The GNU C library defines this for functions which it implements
28358     to always fail with ENOSYS.  Some functions are actually named
28359     something starting with __ and the normal name is an alias.  */
28360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28361 choke me
28362 #else
28363 char (*f) () = $ac_func;
28364 #endif
28365 #ifdef __cplusplus
28366 }
28367 #endif
28368
28369 int
28370 main ()
28371 {
28372 return f != $ac_func;
28373   ;
28374   return 0;
28375 }
28376 _ACEOF
28377 rm -f conftest.$ac_objext conftest$ac_exeext
28378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28379   (eval $ac_link) 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); } &&
28383          { ac_try='test -s conftest$ac_exeext'
28384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385   (eval $ac_try) 2>&5
28386   ac_status=$?
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); }; }; then
28389   eval "$as_ac_var=yes"
28390 else
28391   echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28393
28394 eval "$as_ac_var=no"
28395 fi
28396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28397 fi
28398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28400 if test `eval echo '${'$as_ac_var'}'` = yes; then
28401   cat >>confdefs.h <<_ACEOF
28402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28403 _ACEOF
28404  break
28405 fi
28406 done
28407
28408
28409     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
28410         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
28411 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
28412         wxUSE_SNGLINST_CHECKER=no
28413     fi
28414 fi
28415
28416
28417 for ac_func in timegm
28418 do
28419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28420 echo "$as_me:$LINENO: checking for $ac_func" >&5
28421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28422 if eval "test \"\${$as_ac_var+set}\" = set"; then
28423   echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28425   cat >conftest.$ac_ext <<_ACEOF
28426 #line $LINENO "configure"
28427 /* confdefs.h.  */
28428 _ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h.  */
28432 /* System header to define __stub macros and hopefully few prototypes,
28433     which can conflict with char $ac_func (); below.
28434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28435     <limits.h> exists even on freestanding compilers.  */
28436 #ifdef __STDC__
28437 # include <limits.h>
28438 #else
28439 # include <assert.h>
28440 #endif
28441 /* Override any gcc2 internal prototype to avoid an error.  */
28442 #ifdef __cplusplus
28443 extern "C"
28444 {
28445 #endif
28446 /* We use char because int might match the return type of a gcc2
28447    builtin and then its argument prototype would still apply.  */
28448 char $ac_func ();
28449 /* The GNU C library defines this for functions which it implements
28450     to always fail with ENOSYS.  Some functions are actually named
28451     something starting with __ and the normal name is an alias.  */
28452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28453 choke me
28454 #else
28455 char (*f) () = $ac_func;
28456 #endif
28457 #ifdef __cplusplus
28458 }
28459 #endif
28460
28461 int
28462 main ()
28463 {
28464 return f != $ac_func;
28465   ;
28466   return 0;
28467 }
28468 _ACEOF
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28471   (eval $ac_link) 2>&5
28472   ac_status=$?
28473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474   (exit $ac_status); } &&
28475          { ac_try='test -s conftest$ac_exeext'
28476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477   (eval $ac_try) 2>&5
28478   ac_status=$?
28479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480   (exit $ac_status); }; }; then
28481   eval "$as_ac_var=yes"
28482 else
28483   echo "$as_me: failed program was:" >&5
28484 sed 's/^/| /' conftest.$ac_ext >&5
28485
28486 eval "$as_ac_var=no"
28487 fi
28488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28489 fi
28490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28492 if test `eval echo '${'$as_ac_var'}'` = yes; then
28493   cat >>confdefs.h <<_ACEOF
28494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28495 _ACEOF
28496
28497 fi
28498 done
28499
28500
28501
28502
28503 for ac_func in putenv setenv
28504 do
28505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28506 echo "$as_me:$LINENO: checking for $ac_func" >&5
28507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28508 if eval "test \"\${$as_ac_var+set}\" = set"; then
28509   echo $ECHO_N "(cached) $ECHO_C" >&6
28510 else
28511   cat >conftest.$ac_ext <<_ACEOF
28512 #line $LINENO "configure"
28513 /* confdefs.h.  */
28514 _ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h.  */
28518 /* System header to define __stub macros and hopefully few prototypes,
28519     which can conflict with char $ac_func (); below.
28520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28521     <limits.h> exists even on freestanding compilers.  */
28522 #ifdef __STDC__
28523 # include <limits.h>
28524 #else
28525 # include <assert.h>
28526 #endif
28527 /* Override any gcc2 internal prototype to avoid an error.  */
28528 #ifdef __cplusplus
28529 extern "C"
28530 {
28531 #endif
28532 /* We use char because int might match the return type of a gcc2
28533    builtin and then its argument prototype would still apply.  */
28534 char $ac_func ();
28535 /* The GNU C library defines this for functions which it implements
28536     to always fail with ENOSYS.  Some functions are actually named
28537     something starting with __ and the normal name is an alias.  */
28538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28539 choke me
28540 #else
28541 char (*f) () = $ac_func;
28542 #endif
28543 #ifdef __cplusplus
28544 }
28545 #endif
28546
28547 int
28548 main ()
28549 {
28550 return f != $ac_func;
28551   ;
28552   return 0;
28553 }
28554 _ACEOF
28555 rm -f conftest.$ac_objext conftest$ac_exeext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28557   (eval $ac_link) 2>&5
28558   ac_status=$?
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); } &&
28561          { ac_try='test -s conftest$ac_exeext'
28562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563   (eval $ac_try) 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; }; then
28567   eval "$as_ac_var=yes"
28568 else
28569   echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28571
28572 eval "$as_ac_var=no"
28573 fi
28574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28575 fi
28576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28578 if test `eval echo '${'$as_ac_var'}'` = yes; then
28579   cat >>confdefs.h <<_ACEOF
28580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28581 _ACEOF
28582  break
28583 fi
28584 done
28585
28586
28587 HAVE_SOME_SLEEP_FUNC=0
28588 if test "$USE_BEOS" = 1; then
28589             cat >>confdefs.h <<\_ACEOF
28590 #define HAVE_SLEEP 1
28591 _ACEOF
28592
28593     HAVE_SOME_SLEEP_FUNC=1
28594 fi
28595
28596 if test "$USE_DARWIN" = 1; then
28597             cat >>confdefs.h <<\_ACEOF
28598 #define HAVE_USLEEP 1
28599 _ACEOF
28600
28601     HAVE_SOME_SLEEP_FUNC=1
28602 fi
28603
28604 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28605         POSIX4_LINK=
28606
28607 for ac_func in nanosleep
28608 do
28609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28610 echo "$as_me:$LINENO: checking for $ac_func" >&5
28611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28612 if eval "test \"\${$as_ac_var+set}\" = set"; then
28613   echo $ECHO_N "(cached) $ECHO_C" >&6
28614 else
28615   cat >conftest.$ac_ext <<_ACEOF
28616 #line $LINENO "configure"
28617 /* confdefs.h.  */
28618 _ACEOF
28619 cat confdefs.h >>conftest.$ac_ext
28620 cat >>conftest.$ac_ext <<_ACEOF
28621 /* end confdefs.h.  */
28622 /* System header to define __stub macros and hopefully few prototypes,
28623     which can conflict with char $ac_func (); below.
28624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28625     <limits.h> exists even on freestanding compilers.  */
28626 #ifdef __STDC__
28627 # include <limits.h>
28628 #else
28629 # include <assert.h>
28630 #endif
28631 /* Override any gcc2 internal prototype to avoid an error.  */
28632 #ifdef __cplusplus
28633 extern "C"
28634 {
28635 #endif
28636 /* We use char because int might match the return type of a gcc2
28637    builtin and then its argument prototype would still apply.  */
28638 char $ac_func ();
28639 /* The GNU C library defines this for functions which it implements
28640     to always fail with ENOSYS.  Some functions are actually named
28641     something starting with __ and the normal name is an alias.  */
28642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28643 choke me
28644 #else
28645 char (*f) () = $ac_func;
28646 #endif
28647 #ifdef __cplusplus
28648 }
28649 #endif
28650
28651 int
28652 main ()
28653 {
28654 return f != $ac_func;
28655   ;
28656   return 0;
28657 }
28658 _ACEOF
28659 rm -f conftest.$ac_objext conftest$ac_exeext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28661   (eval $ac_link) 2>&5
28662   ac_status=$?
28663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664   (exit $ac_status); } &&
28665          { ac_try='test -s conftest$ac_exeext'
28666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667   (eval $ac_try) 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); }; }; then
28671   eval "$as_ac_var=yes"
28672 else
28673   echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28675
28676 eval "$as_ac_var=no"
28677 fi
28678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28679 fi
28680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28682 if test `eval echo '${'$as_ac_var'}'` = yes; then
28683   cat >>confdefs.h <<_ACEOF
28684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28685 _ACEOF
28686  cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_NANOSLEEP 1
28688 _ACEOF
28689
28690 else
28691
28692             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28693 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28694 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28695   echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697   ac_check_lib_save_LIBS=$LIBS
28698 LIBS="-lposix4  $LIBS"
28699 cat >conftest.$ac_ext <<_ACEOF
28700 #line $LINENO "configure"
28701 /* confdefs.h.  */
28702 _ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h.  */
28706
28707 /* Override any gcc2 internal prototype to avoid an error.  */
28708 #ifdef __cplusplus
28709 extern "C"
28710 #endif
28711 /* We use char because int might match the return type of a gcc2
28712    builtin and then its argument prototype would still apply.  */
28713 char nanosleep ();
28714 int
28715 main ()
28716 {
28717 nanosleep ();
28718   ;
28719   return 0;
28720 }
28721 _ACEOF
28722 rm -f conftest.$ac_objext conftest$ac_exeext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28724   (eval $ac_link) 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); } &&
28728          { ac_try='test -s conftest$ac_exeext'
28729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730   (eval $ac_try) 2>&5
28731   ac_status=$?
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); }; }; then
28734   ac_cv_lib_posix4_nanosleep=yes
28735 else
28736   echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28738
28739 ac_cv_lib_posix4_nanosleep=no
28740 fi
28741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28742 LIBS=$ac_check_lib_save_LIBS
28743 fi
28744 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28745 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28746 if test $ac_cv_lib_posix4_nanosleep = yes; then
28747
28748                     cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_NANOSLEEP 1
28750 _ACEOF
28751
28752                     POSIX4_LINK=" -lposix4"
28753
28754 else
28755
28756
28757 for ac_func in usleep
28758 do
28759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28760 echo "$as_me:$LINENO: checking for $ac_func" >&5
28761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28762 if eval "test \"\${$as_ac_var+set}\" = set"; then
28763   echo $ECHO_N "(cached) $ECHO_C" >&6
28764 else
28765   cat >conftest.$ac_ext <<_ACEOF
28766 #line $LINENO "configure"
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772 /* System header to define __stub macros and hopefully few prototypes,
28773     which can conflict with char $ac_func (); below.
28774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28775     <limits.h> exists even on freestanding compilers.  */
28776 #ifdef __STDC__
28777 # include <limits.h>
28778 #else
28779 # include <assert.h>
28780 #endif
28781 /* Override any gcc2 internal prototype to avoid an error.  */
28782 #ifdef __cplusplus
28783 extern "C"
28784 {
28785 #endif
28786 /* We use char because int might match the return type of a gcc2
28787    builtin and then its argument prototype would still apply.  */
28788 char $ac_func ();
28789 /* The GNU C library defines this for functions which it implements
28790     to always fail with ENOSYS.  Some functions are actually named
28791     something starting with __ and the normal name is an alias.  */
28792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28793 choke me
28794 #else
28795 char (*f) () = $ac_func;
28796 #endif
28797 #ifdef __cplusplus
28798 }
28799 #endif
28800
28801 int
28802 main ()
28803 {
28804 return f != $ac_func;
28805   ;
28806   return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest.$ac_objext conftest$ac_exeext
28810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28811   (eval $ac_link) 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); } &&
28815          { ac_try='test -s conftest$ac_exeext'
28816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817   (eval $ac_try) 2>&5
28818   ac_status=$?
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; }; then
28821   eval "$as_ac_var=yes"
28822 else
28823   echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28825
28826 eval "$as_ac_var=no"
28827 fi
28828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28829 fi
28830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28832 if test `eval echo '${'$as_ac_var'}'` = yes; then
28833   cat >>confdefs.h <<_ACEOF
28834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28835 _ACEOF
28836  cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_USLEEP 1
28838 _ACEOF
28839
28840 else
28841   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28842 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28843
28844 fi
28845 done
28846
28847
28848
28849 fi
28850
28851
28852
28853 fi
28854 done
28855
28856 fi
28857
28858
28859
28860 for ac_func in uname gethostname
28861 do
28862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28863 echo "$as_me:$LINENO: checking for $ac_func" >&5
28864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28865 if eval "test \"\${$as_ac_var+set}\" = set"; then
28866   echo $ECHO_N "(cached) $ECHO_C" >&6
28867 else
28868   cat >conftest.$ac_ext <<_ACEOF
28869 #line $LINENO "configure"
28870 /* confdefs.h.  */
28871 _ACEOF
28872 cat confdefs.h >>conftest.$ac_ext
28873 cat >>conftest.$ac_ext <<_ACEOF
28874 /* end confdefs.h.  */
28875 /* System header to define __stub macros and hopefully few prototypes,
28876     which can conflict with char $ac_func (); below.
28877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28878     <limits.h> exists even on freestanding compilers.  */
28879 #ifdef __STDC__
28880 # include <limits.h>
28881 #else
28882 # include <assert.h>
28883 #endif
28884 /* Override any gcc2 internal prototype to avoid an error.  */
28885 #ifdef __cplusplus
28886 extern "C"
28887 {
28888 #endif
28889 /* We use char because int might match the return type of a gcc2
28890    builtin and then its argument prototype would still apply.  */
28891 char $ac_func ();
28892 /* The GNU C library defines this for functions which it implements
28893     to always fail with ENOSYS.  Some functions are actually named
28894     something starting with __ and the normal name is an alias.  */
28895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28896 choke me
28897 #else
28898 char (*f) () = $ac_func;
28899 #endif
28900 #ifdef __cplusplus
28901 }
28902 #endif
28903
28904 int
28905 main ()
28906 {
28907 return f != $ac_func;
28908   ;
28909   return 0;
28910 }
28911 _ACEOF
28912 rm -f conftest.$ac_objext conftest$ac_exeext
28913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28914   (eval $ac_link) 2>&5
28915   ac_status=$?
28916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917   (exit $ac_status); } &&
28918          { ac_try='test -s conftest$ac_exeext'
28919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920   (eval $ac_try) 2>&5
28921   ac_status=$?
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); }; }; then
28924   eval "$as_ac_var=yes"
28925 else
28926   echo "$as_me: failed program was:" >&5
28927 sed 's/^/| /' conftest.$ac_ext >&5
28928
28929 eval "$as_ac_var=no"
28930 fi
28931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28932 fi
28933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28935 if test `eval echo '${'$as_ac_var'}'` = yes; then
28936   cat >>confdefs.h <<_ACEOF
28937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28938 _ACEOF
28939  break
28940 fi
28941 done
28942
28943
28944
28945
28946 ac_ext=cc
28947 ac_cpp='$CXXCPP $CPPFLAGS'
28948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28951
28952
28953
28954 for ac_func in strtok_r
28955 do
28956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28957 echo "$as_me:$LINENO: checking for $ac_func" >&5
28958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28959 if eval "test \"\${$as_ac_var+set}\" = set"; then
28960   echo $ECHO_N "(cached) $ECHO_C" >&6
28961 else
28962   cat >conftest.$ac_ext <<_ACEOF
28963 #line $LINENO "configure"
28964 /* confdefs.h.  */
28965 _ACEOF
28966 cat confdefs.h >>conftest.$ac_ext
28967 cat >>conftest.$ac_ext <<_ACEOF
28968 /* end confdefs.h.  */
28969 /* System header to define __stub macros and hopefully few prototypes,
28970     which can conflict with char $ac_func (); below.
28971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28972     <limits.h> exists even on freestanding compilers.  */
28973 #ifdef __STDC__
28974 # include <limits.h>
28975 #else
28976 # include <assert.h>
28977 #endif
28978 /* Override any gcc2 internal prototype to avoid an error.  */
28979 #ifdef __cplusplus
28980 extern "C"
28981 {
28982 #endif
28983 /* We use char because int might match the return type of a gcc2
28984    builtin and then its argument prototype would still apply.  */
28985 char $ac_func ();
28986 /* The GNU C library defines this for functions which it implements
28987     to always fail with ENOSYS.  Some functions are actually named
28988     something starting with __ and the normal name is an alias.  */
28989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28990 choke me
28991 #else
28992 char (*f) () = $ac_func;
28993 #endif
28994 #ifdef __cplusplus
28995 }
28996 #endif
28997
28998 int
28999 main ()
29000 {
29001 return f != $ac_func;
29002   ;
29003   return 0;
29004 }
29005 _ACEOF
29006 rm -f conftest.$ac_objext conftest$ac_exeext
29007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29008   (eval $ac_link) 2>&5
29009   ac_status=$?
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); } &&
29012          { ac_try='test -s conftest$ac_exeext'
29013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29014   (eval $ac_try) 2>&5
29015   ac_status=$?
29016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017   (exit $ac_status); }; }; then
29018   eval "$as_ac_var=yes"
29019 else
29020   echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29022
29023 eval "$as_ac_var=no"
29024 fi
29025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29026 fi
29027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29029 if test `eval echo '${'$as_ac_var'}'` = yes; then
29030   cat >>confdefs.h <<_ACEOF
29031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29032 _ACEOF
29033
29034 fi
29035 done
29036
29037
29038 ac_ext=c
29039 ac_cpp='$CPP $CPPFLAGS'
29040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29043
29044
29045 INET_LINK=
29046
29047 for ac_func in inet_addr
29048 do
29049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29050 echo "$as_me:$LINENO: checking for $ac_func" >&5
29051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29052 if eval "test \"\${$as_ac_var+set}\" = set"; then
29053   echo $ECHO_N "(cached) $ECHO_C" >&6
29054 else
29055   cat >conftest.$ac_ext <<_ACEOF
29056 #line $LINENO "configure"
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062 /* System header to define __stub macros and hopefully few prototypes,
29063     which can conflict with char $ac_func (); below.
29064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29065     <limits.h> exists even on freestanding compilers.  */
29066 #ifdef __STDC__
29067 # include <limits.h>
29068 #else
29069 # include <assert.h>
29070 #endif
29071 /* Override any gcc2 internal prototype to avoid an error.  */
29072 #ifdef __cplusplus
29073 extern "C"
29074 {
29075 #endif
29076 /* We use char because int might match the return type of a gcc2
29077    builtin and then its argument prototype would still apply.  */
29078 char $ac_func ();
29079 /* The GNU C library defines this for functions which it implements
29080     to always fail with ENOSYS.  Some functions are actually named
29081     something starting with __ and the normal name is an alias.  */
29082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29083 choke me
29084 #else
29085 char (*f) () = $ac_func;
29086 #endif
29087 #ifdef __cplusplus
29088 }
29089 #endif
29090
29091 int
29092 main ()
29093 {
29094 return f != $ac_func;
29095   ;
29096   return 0;
29097 }
29098 _ACEOF
29099 rm -f conftest.$ac_objext conftest$ac_exeext
29100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29101   (eval $ac_link) 2>&5
29102   ac_status=$?
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -s conftest$ac_exeext'
29106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107   (eval $ac_try) 2>&5
29108   ac_status=$?
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); }; }; then
29111   eval "$as_ac_var=yes"
29112 else
29113   echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29115
29116 eval "$as_ac_var=no"
29117 fi
29118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29119 fi
29120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29122 if test `eval echo '${'$as_ac_var'}'` = yes; then
29123   cat >>confdefs.h <<_ACEOF
29124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29125 _ACEOF
29126  cat >>confdefs.h <<\_ACEOF
29127 #define HAVE_INET_ADDR 1
29128 _ACEOF
29129
29130 else
29131
29132         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
29133 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
29134 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
29135   echo $ECHO_N "(cached) $ECHO_C" >&6
29136 else
29137   ac_check_lib_save_LIBS=$LIBS
29138 LIBS="-lnsl  $LIBS"
29139 cat >conftest.$ac_ext <<_ACEOF
29140 #line $LINENO "configure"
29141 /* confdefs.h.  */
29142 _ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h.  */
29146
29147 /* Override any gcc2 internal prototype to avoid an error.  */
29148 #ifdef __cplusplus
29149 extern "C"
29150 #endif
29151 /* We use char because int might match the return type of a gcc2
29152    builtin and then its argument prototype would still apply.  */
29153 char inet_addr ();
29154 int
29155 main ()
29156 {
29157 inet_addr ();
29158   ;
29159   return 0;
29160 }
29161 _ACEOF
29162 rm -f conftest.$ac_objext conftest$ac_exeext
29163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29164   (eval $ac_link) 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); } &&
29168          { ac_try='test -s conftest$ac_exeext'
29169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170   (eval $ac_try) 2>&5
29171   ac_status=$?
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); }; }; then
29174   ac_cv_lib_nsl_inet_addr=yes
29175 else
29176   echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29178
29179 ac_cv_lib_nsl_inet_addr=no
29180 fi
29181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29182 LIBS=$ac_check_lib_save_LIBS
29183 fi
29184 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
29185 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
29186 if test $ac_cv_lib_nsl_inet_addr = yes; then
29187   INET_LINK="nsl"
29188 else
29189
29190                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
29191 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
29192 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
29193   echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195   ac_check_lib_save_LIBS=$LIBS
29196 LIBS="-lresolv  $LIBS"
29197 cat >conftest.$ac_ext <<_ACEOF
29198 #line $LINENO "configure"
29199 /* confdefs.h.  */
29200 _ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h.  */
29204
29205 /* Override any gcc2 internal prototype to avoid an error.  */
29206 #ifdef __cplusplus
29207 extern "C"
29208 #endif
29209 /* We use char because int might match the return type of a gcc2
29210    builtin and then its argument prototype would still apply.  */
29211 char inet_addr ();
29212 int
29213 main ()
29214 {
29215 inet_addr ();
29216   ;
29217   return 0;
29218 }
29219 _ACEOF
29220 rm -f conftest.$ac_objext conftest$ac_exeext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29222   (eval $ac_link) 2>&5
29223   ac_status=$?
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } &&
29226          { ac_try='test -s conftest$ac_exeext'
29227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228   (eval $ac_try) 2>&5
29229   ac_status=$?
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); }; }; then
29232   ac_cv_lib_resolv_inet_addr=yes
29233 else
29234   echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29236
29237 ac_cv_lib_resolv_inet_addr=no
29238 fi
29239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29240 LIBS=$ac_check_lib_save_LIBS
29241 fi
29242 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
29243 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
29244 if test $ac_cv_lib_resolv_inet_addr = yes; then
29245   INET_LINK="resolv"
29246 else
29247
29248                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
29249 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
29250 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
29251   echo $ECHO_N "(cached) $ECHO_C" >&6
29252 else
29253   ac_check_lib_save_LIBS=$LIBS
29254 LIBS="-lsocket  $LIBS"
29255 cat >conftest.$ac_ext <<_ACEOF
29256 #line $LINENO "configure"
29257 /* confdefs.h.  */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h.  */
29262
29263 /* Override any gcc2 internal prototype to avoid an error.  */
29264 #ifdef __cplusplus
29265 extern "C"
29266 #endif
29267 /* We use char because int might match the return type of a gcc2
29268    builtin and then its argument prototype would still apply.  */
29269 char inet_addr ();
29270 int
29271 main ()
29272 {
29273 inet_addr ();
29274   ;
29275   return 0;
29276 }
29277 _ACEOF
29278 rm -f conftest.$ac_objext conftest$ac_exeext
29279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29280   (eval $ac_link) 2>&5
29281   ac_status=$?
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); } &&
29284          { ac_try='test -s conftest$ac_exeext'
29285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286   (eval $ac_try) 2>&5
29287   ac_status=$?
29288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289   (exit $ac_status); }; }; then
29290   ac_cv_lib_socket_inet_addr=yes
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295 ac_cv_lib_socket_inet_addr=no
29296 fi
29297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29298 LIBS=$ac_check_lib_save_LIBS
29299 fi
29300 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
29301 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
29302 if test $ac_cv_lib_socket_inet_addr = yes; then
29303   INET_LINK="socket"
29304
29305 fi
29306
29307
29308
29309 fi
29310
29311
29312
29313 fi
29314
29315
29316
29317 fi
29318 done
29319
29320
29321
29322 for ac_func in inet_aton
29323 do
29324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29325 echo "$as_me:$LINENO: checking for $ac_func" >&5
29326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29327 if eval "test \"\${$as_ac_var+set}\" = set"; then
29328   echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330   cat >conftest.$ac_ext <<_ACEOF
29331 #line $LINENO "configure"
29332 /* confdefs.h.  */
29333 _ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h.  */
29337 /* System header to define __stub macros and hopefully few prototypes,
29338     which can conflict with char $ac_func (); below.
29339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29340     <limits.h> exists even on freestanding compilers.  */
29341 #ifdef __STDC__
29342 # include <limits.h>
29343 #else
29344 # include <assert.h>
29345 #endif
29346 /* Override any gcc2 internal prototype to avoid an error.  */
29347 #ifdef __cplusplus
29348 extern "C"
29349 {
29350 #endif
29351 /* We use char because int might match the return type of a gcc2
29352    builtin and then its argument prototype would still apply.  */
29353 char $ac_func ();
29354 /* The GNU C library defines this for functions which it implements
29355     to always fail with ENOSYS.  Some functions are actually named
29356     something starting with __ and the normal name is an alias.  */
29357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29358 choke me
29359 #else
29360 char (*f) () = $ac_func;
29361 #endif
29362 #ifdef __cplusplus
29363 }
29364 #endif
29365
29366 int
29367 main ()
29368 {
29369 return f != $ac_func;
29370   ;
29371   return 0;
29372 }
29373 _ACEOF
29374 rm -f conftest.$ac_objext conftest$ac_exeext
29375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29376   (eval $ac_link) 2>&5
29377   ac_status=$?
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); } &&
29380          { ac_try='test -s conftest$ac_exeext'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; }; then
29386   eval "$as_ac_var=yes"
29387 else
29388   echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29390
29391 eval "$as_ac_var=no"
29392 fi
29393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29394 fi
29395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29397 if test `eval echo '${'$as_ac_var'}'` = yes; then
29398   cat >>confdefs.h <<_ACEOF
29399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29400 _ACEOF
29401  cat >>confdefs.h <<\_ACEOF
29402 #define HAVE_INET_ATON 1
29403 _ACEOF
29404
29405 else
29406
29407                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
29408 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
29409 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
29410 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29411   echo $ECHO_N "(cached) $ECHO_C" >&6
29412 else
29413   ac_check_lib_save_LIBS=$LIBS
29414 LIBS="-l$INET_LINK  $LIBS"
29415 cat >conftest.$ac_ext <<_ACEOF
29416 #line $LINENO "configure"
29417 /* confdefs.h.  */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h.  */
29422
29423 /* Override any gcc2 internal prototype to avoid an error.  */
29424 #ifdef __cplusplus
29425 extern "C"
29426 #endif
29427 /* We use char because int might match the return type of a gcc2
29428    builtin and then its argument prototype would still apply.  */
29429 char inet_aton ();
29430 int
29431 main ()
29432 {
29433 inet_aton ();
29434   ;
29435   return 0;
29436 }
29437 _ACEOF
29438 rm -f conftest.$ac_objext conftest$ac_exeext
29439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29440   (eval $ac_link) 2>&5
29441   ac_status=$?
29442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443   (exit $ac_status); } &&
29444          { ac_try='test -s conftest$ac_exeext'
29445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29446   (eval $ac_try) 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; }; then
29450   eval "$as_ac_Lib=yes"
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455 eval "$as_ac_Lib=no"
29456 fi
29457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29458 LIBS=$ac_check_lib_save_LIBS
29459 fi
29460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29461 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29462 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29463   cat >>confdefs.h <<\_ACEOF
29464 #define HAVE_INET_ATON 1
29465 _ACEOF
29466
29467 fi
29468
29469
29470 fi
29471 done
29472
29473
29474 if test "x$INET_LINK" != "x"; then
29475     cat >>confdefs.h <<\_ACEOF
29476 #define HAVE_INET_ADDR 1
29477 _ACEOF
29478
29479     INET_LINK=" -l$INET_LINK"
29480 fi
29481
29482 fi
29483
29484
29485
29486 EXTRALIBS_ESD=
29487 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
29488 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
29489 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
29490   echo $ECHO_N "(cached) $ECHO_C" >&6
29491 else
29492   ac_check_lib_save_LIBS=$LIBS
29493 LIBS="-lesd  $LIBS"
29494 cat >conftest.$ac_ext <<_ACEOF
29495 #line $LINENO "configure"
29496 /* confdefs.h.  */
29497 _ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h.  */
29501
29502 /* Override any gcc2 internal prototype to avoid an error.  */
29503 #ifdef __cplusplus
29504 extern "C"
29505 #endif
29506 /* We use char because int might match the return type of a gcc2
29507    builtin and then its argument prototype would still apply.  */
29508 char esd_close ();
29509 int
29510 main ()
29511 {
29512 esd_close ();
29513   ;
29514   return 0;
29515 }
29516 _ACEOF
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519   (eval $ac_link) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } &&
29523          { ac_try='test -s conftest$ac_exeext'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; }; then
29529   ac_cv_lib_esd_esd_close=yes
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 ac_cv_lib_esd_esd_close=no
29535 fi
29536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29537 LIBS=$ac_check_lib_save_LIBS
29538 fi
29539 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
29540 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
29541 if test $ac_cv_lib_esd_esd_close = yes; then
29542
29543
29544 for ac_header in esd.h
29545 do
29546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29548   echo "$as_me:$LINENO: checking for $ac_header" >&5
29549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29551   echo $ECHO_N "(cached) $ECHO_C" >&6
29552 fi
29553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29555 else
29556   # Is the header compilable?
29557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29559 cat >conftest.$ac_ext <<_ACEOF
29560 #line $LINENO "configure"
29561 /* confdefs.h.  */
29562 _ACEOF
29563 cat confdefs.h >>conftest.$ac_ext
29564 cat >>conftest.$ac_ext <<_ACEOF
29565 /* end confdefs.h.  */
29566 $ac_includes_default
29567 #include <$ac_header>
29568 _ACEOF
29569 rm -f conftest.$ac_objext
29570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29571   (eval $ac_compile) 2>&5
29572   ac_status=$?
29573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574   (exit $ac_status); } &&
29575          { ac_try='test -s conftest.$ac_objext'
29576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29577   (eval $ac_try) 2>&5
29578   ac_status=$?
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); }; }; then
29581   ac_header_compiler=yes
29582 else
29583   echo "$as_me: failed program was:" >&5
29584 sed 's/^/| /' conftest.$ac_ext >&5
29585
29586 ac_header_compiler=no
29587 fi
29588 rm -f conftest.$ac_objext conftest.$ac_ext
29589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29590 echo "${ECHO_T}$ac_header_compiler" >&6
29591
29592 # Is the header present?
29593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29595 cat >conftest.$ac_ext <<_ACEOF
29596 #line $LINENO "configure"
29597 /* confdefs.h.  */
29598 _ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h.  */
29602 #include <$ac_header>
29603 _ACEOF
29604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29606   ac_status=$?
29607   grep -v '^ *+' conftest.er1 >conftest.err
29608   rm -f conftest.er1
29609   cat conftest.err >&5
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); } >/dev/null; then
29612   if test -s conftest.err; then
29613     ac_cpp_err=$ac_c_preproc_warn_flag
29614   else
29615     ac_cpp_err=
29616   fi
29617 else
29618   ac_cpp_err=yes
29619 fi
29620 if test -z "$ac_cpp_err"; then
29621   ac_header_preproc=yes
29622 else
29623   echo "$as_me: failed program was:" >&5
29624 sed 's/^/| /' conftest.$ac_ext >&5
29625
29626   ac_header_preproc=no
29627 fi
29628 rm -f conftest.err conftest.$ac_ext
29629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29630 echo "${ECHO_T}$ac_header_preproc" >&6
29631
29632 # So?  What about this header?
29633 case $ac_header_compiler:$ac_header_preproc in
29634   yes:no )
29635     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29639     (
29640       cat <<\_ASBOX
29641 ## ------------------------------------ ##
29642 ## Report this to bug-autoconf@gnu.org. ##
29643 ## ------------------------------------ ##
29644 _ASBOX
29645     ) |
29646       sed "s/^/$as_me: WARNING:     /" >&2
29647     ;;
29648   no:yes )
29649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29651     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29655     (
29656       cat <<\_ASBOX
29657 ## ------------------------------------ ##
29658 ## Report this to bug-autoconf@gnu.org. ##
29659 ## ------------------------------------ ##
29660 _ASBOX
29661     ) |
29662       sed "s/^/$as_me: WARNING:     /" >&2
29663     ;;
29664 esac
29665 echo "$as_me:$LINENO: checking for $ac_header" >&5
29666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29668   echo $ECHO_N "(cached) $ECHO_C" >&6
29669 else
29670   eval "$as_ac_Header=$ac_header_preproc"
29671 fi
29672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29674
29675 fi
29676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29677   cat >>confdefs.h <<_ACEOF
29678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29679 _ACEOF
29680
29681     EXTRALIBS_ESD="-lesd"
29682
29683 fi
29684
29685 done
29686
29687
29688 fi
29689
29690
29691
29692 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29693 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29694 cat >conftest.$ac_ext <<_ACEOF
29695 #line $LINENO "configure"
29696 /* confdefs.h.  */
29697 _ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h.  */
29701 #ifdef __linux__
29702                 #include <linux/cdrom.h>
29703                 #else
29704                 /* For Solaris */
29705                 #include <sys/cdio.h>
29706                 #endif
29707
29708 int
29709 main ()
29710 {
29711 struct cdrom_tocentry entry, old_entry;
29712   ;
29713   return 0;
29714 }
29715 _ACEOF
29716 rm -f conftest.$ac_objext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29718   (eval $ac_compile) 2>&5
29719   ac_status=$?
29720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721   (exit $ac_status); } &&
29722          { ac_try='test -s conftest.$ac_objext'
29723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29724   (eval $ac_try) 2>&5
29725   ac_status=$?
29726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727   (exit $ac_status); }; }; then
29728   echo "$as_me:$LINENO: result: yes" >&5
29729 echo "${ECHO_T}yes" >&6
29730                 cat >>confdefs.h <<\_ACEOF
29731 #define HAVE_KNOWN_CDROM_INTERFACE 1
29732 _ACEOF
29733
29734 else
29735   echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29737
29738 echo "$as_me:$LINENO: result: no" >&5
29739 echo "${ECHO_T}no" >&6
29740 fi
29741 rm -f conftest.$ac_objext conftest.$ac_ext
29742
29743
29744 cat >confcache <<\_ACEOF
29745 # This file is a shell script that caches the results of configure
29746 # tests run on this system so they can be shared between configure
29747 # scripts and configure runs, see configure's option --config-cache.
29748 # It is not useful on other systems.  If it contains results you don't
29749 # want to keep, you may remove or edit it.
29750 #
29751 # config.status only pays attention to the cache file if you give it
29752 # the --recheck option to rerun configure.
29753 #
29754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29756 # following values.
29757
29758 _ACEOF
29759
29760 # The following way of writing the cache mishandles newlines in values,
29761 # but we know of no workaround that is simple, portable, and efficient.
29762 # So, don't put newlines in cache variables' values.
29763 # Ultrix sh set writes to stderr and can't be redirected directly,
29764 # and sets the high bit in the cache file unless we assign to the vars.
29765 {
29766   (set) 2>&1 |
29767     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29768     *ac_space=\ *)
29769       # `set' does not quote correctly, so add quotes (double-quote
29770       # substitution turns \\\\ into \\, and sed turns \\ into \).
29771       sed -n \
29772         "s/'/'\\\\''/g;
29773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29774       ;;
29775     *)
29776       # `set' quotes correctly as required by POSIX, so do not add quotes.
29777       sed -n \
29778         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29779       ;;
29780     esac;
29781 } |
29782   sed '
29783      t clear
29784      : clear
29785      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29786      t end
29787      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29788      : end' >>confcache
29789 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29790   if test -w $cache_file; then
29791     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29792     cat confcache >$cache_file
29793   else
29794     echo "not updating unwritable cache $cache_file"
29795   fi
29796 fi
29797 rm -f confcache
29798
29799
29800 CPP_MT_FLAG=
29801 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
29802
29803
29804     THREADS_LINK=
29805     THREADS_CFLAGS=
29806
29807     if test "$wxUSE_THREADS" = "yes" ; then
29808         if test "$USE_BEOS" = 1; then
29809             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29810 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
29811             wxUSE_THREADS="no"
29812         fi
29813     fi
29814
29815     if test "$wxUSE_THREADS" = "yes" ; then
29816
29817
29818                                 THREAD_OPTS="-pthread"
29819         case "${host}" in
29820           *-*-solaris2* | *-*-sunos4* )
29821                 if test "x$GCC" = "xyes"; then
29822                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
29823                 else
29824                     THREAD_OPTS="-mt $THREAD_OPTS"
29825                 fi
29826                 ;;
29827           *-*-freebsd*)
29828                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29829                 ;;
29830           *-*-darwin* | *-*-cygwin* )
29831                                                 THREAD_OPTS=""
29832                 ;;
29833           *-*-aix*)
29834                                 THREAD_OPTS="pthreads"
29835                 ;;
29836           *-hp-hpux* )
29837                                                                 if test "x$GCC" != "xyes"; then
29838                     THREAD_OPTS=""
29839                 fi
29840                 ;;
29841
29842           *-*-irix* )
29843                                                                 if test "x$GCC" = "xyes"; then
29844                     THREAD_OPTS=""
29845                 fi
29846                 ;;
29847
29848           *-*-*UnixWare*)
29849                                 if test "x$GCC" != "xyes"; then
29850                     THREAD_OPTS="-Ethread"
29851                 fi
29852                 ;;
29853         esac
29854
29855                                 THREAD_OPTS="$THREAD_OPTS pthread none"
29856
29857                 THREADS_OK=no
29858         for flag in $THREAD_OPTS; do
29859             case $flag in
29860                 none)
29861                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29862 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
29863                     ;;
29864
29865                 -*)
29866                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29867 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
29868                     THREADS_CFLAGS="$flag"
29869                     ;;
29870
29871                 *)
29872                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29873 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
29874                     THREADS_LINK="-l$flag"
29875                     ;;
29876               esac
29877
29878               save_LIBS="$LIBS"
29879               save_CFLAGS="$CFLAGS"
29880               LIBS="$THREADS_LINK $LIBS"
29881               CFLAGS="$THREADS_CFLAGS $CFLAGS"
29882
29883               cat >conftest.$ac_ext <<_ACEOF
29884 #line $LINENO "configure"
29885 /* confdefs.h.  */
29886 _ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h.  */
29890 #include <pthread.h>
29891 int
29892 main ()
29893 {
29894 pthread_create(0,0,0,0);
29895   ;
29896   return 0;
29897 }
29898 _ACEOF
29899 rm -f conftest.$ac_objext conftest$ac_exeext
29900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29901   (eval $ac_link) 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   THREADS_OK=yes
29912 else
29913   echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29915
29916 fi
29917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29918
29919               LIBS="$save_LIBS"
29920               CFLAGS="$save_CFLAGS"
29921
29922               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29923 echo "${ECHO_T}$THREADS_OK" >&6
29924               if test "x$THREADS_OK" = "xyes"; then
29925                       break;
29926               fi
29927
29928               THREADS_LINK=""
29929               THREADS_CFLAGS=""
29930       done
29931
29932       if test "x$THREADS_OK" != "xyes"; then
29933           wxUSE_THREADS=no
29934           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29935 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
29936       else
29937                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29938           LIBS="$THREADS_LINK $LIBS"
29939
29940           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29941 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
29942           flag=no
29943           case "${host}" in
29944             *-aix*)
29945                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29946                 flag="-D_THREAD_SAFE"
29947                 ;;
29948             *-freebsd*)
29949                 flag="-D_THREAD_SAFE"
29950                 ;;
29951             *-hp-hpux* )
29952                 flag="-D_REENTRANT"
29953                 if test "x$GCC" != "xyes"; then
29954                                         flag="$flag -D_RWSTD_MULTI_THREAD"
29955                 fi
29956                 ;;
29957             *solaris* | alpha*-osf*)
29958                 flag="-D_REENTRANT"
29959                 ;;
29960           esac
29961           echo "$as_me:$LINENO: result: ${flag}" >&5
29962 echo "${ECHO_T}${flag}" >&6
29963           if test "x$flag" != xno; then
29964               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
29965           fi
29966
29967           if test "x$THREADS_CFLAGS" != "x"; then
29968                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
29969             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29970           fi
29971       fi
29972     fi
29973
29974         if test "$wxUSE_THREADS" = "yes" ; then
29975
29976 for ac_func in thr_setconcurrency
29977 do
29978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29979 echo "$as_me:$LINENO: checking for $ac_func" >&5
29980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29981 if eval "test \"\${$as_ac_var+set}\" = set"; then
29982   echo $ECHO_N "(cached) $ECHO_C" >&6
29983 else
29984   cat >conftest.$ac_ext <<_ACEOF
29985 #line $LINENO "configure"
29986 /* confdefs.h.  */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h.  */
29991 /* System header to define __stub macros and hopefully few prototypes,
29992     which can conflict with char $ac_func (); below.
29993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29994     <limits.h> exists even on freestanding compilers.  */
29995 #ifdef __STDC__
29996 # include <limits.h>
29997 #else
29998 # include <assert.h>
29999 #endif
30000 /* Override any gcc2 internal prototype to avoid an error.  */
30001 #ifdef __cplusplus
30002 extern "C"
30003 {
30004 #endif
30005 /* We use char because int might match the return type of a gcc2
30006    builtin and then its argument prototype would still apply.  */
30007 char $ac_func ();
30008 /* The GNU C library defines this for functions which it implements
30009     to always fail with ENOSYS.  Some functions are actually named
30010     something starting with __ and the normal name is an alias.  */
30011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30012 choke me
30013 #else
30014 char (*f) () = $ac_func;
30015 #endif
30016 #ifdef __cplusplus
30017 }
30018 #endif
30019
30020 int
30021 main ()
30022 {
30023 return f != $ac_func;
30024   ;
30025   return 0;
30026 }
30027 _ACEOF
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30030   (eval $ac_link) 2>&5
30031   ac_status=$?
30032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033   (exit $ac_status); } &&
30034          { ac_try='test -s conftest$ac_exeext'
30035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036   (eval $ac_try) 2>&5
30037   ac_status=$?
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); }; }; then
30040   eval "$as_ac_var=yes"
30041 else
30042   echo "$as_me: failed program was:" >&5
30043 sed 's/^/| /' conftest.$ac_ext >&5
30044
30045 eval "$as_ac_var=no"
30046 fi
30047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30048 fi
30049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30051 if test `eval echo '${'$as_ac_var'}'` = yes; then
30052   cat >>confdefs.h <<_ACEOF
30053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30054 _ACEOF
30055
30056 fi
30057 done
30058
30059
30060
30061 for ac_header in sched.h
30062 do
30063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30065   echo "$as_me:$LINENO: checking for $ac_header" >&5
30066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30068   echo $ECHO_N "(cached) $ECHO_C" >&6
30069 fi
30070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30072 else
30073   # Is the header compilable?
30074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30076 cat >conftest.$ac_ext <<_ACEOF
30077 #line $LINENO "configure"
30078 /* confdefs.h.  */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h.  */
30083 $ac_includes_default
30084 #include <$ac_header>
30085 _ACEOF
30086 rm -f conftest.$ac_objext
30087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30088   (eval $ac_compile) 2>&5
30089   ac_status=$?
30090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30091   (exit $ac_status); } &&
30092          { ac_try='test -s conftest.$ac_objext'
30093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094   (eval $ac_try) 2>&5
30095   ac_status=$?
30096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097   (exit $ac_status); }; }; then
30098   ac_header_compiler=yes
30099 else
30100   echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30102
30103 ac_header_compiler=no
30104 fi
30105 rm -f conftest.$ac_objext conftest.$ac_ext
30106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30107 echo "${ECHO_T}$ac_header_compiler" >&6
30108
30109 # Is the header present?
30110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30112 cat >conftest.$ac_ext <<_ACEOF
30113 #line $LINENO "configure"
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119 #include <$ac_header>
30120 _ACEOF
30121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30123   ac_status=$?
30124   grep -v '^ *+' conftest.er1 >conftest.err
30125   rm -f conftest.er1
30126   cat conftest.err >&5
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); } >/dev/null; then
30129   if test -s conftest.err; then
30130     ac_cpp_err=$ac_c_preproc_warn_flag
30131   else
30132     ac_cpp_err=
30133   fi
30134 else
30135   ac_cpp_err=yes
30136 fi
30137 if test -z "$ac_cpp_err"; then
30138   ac_header_preproc=yes
30139 else
30140   echo "$as_me: failed program was:" >&5
30141 sed 's/^/| /' conftest.$ac_ext >&5
30142
30143   ac_header_preproc=no
30144 fi
30145 rm -f conftest.err conftest.$ac_ext
30146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30147 echo "${ECHO_T}$ac_header_preproc" >&6
30148
30149 # So?  What about this header?
30150 case $ac_header_compiler:$ac_header_preproc in
30151   yes:no )
30152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30156     (
30157       cat <<\_ASBOX
30158 ## ------------------------------------ ##
30159 ## Report this to bug-autoconf@gnu.org. ##
30160 ## ------------------------------------ ##
30161 _ASBOX
30162     ) |
30163       sed "s/^/$as_me: WARNING:     /" >&2
30164     ;;
30165   no:yes )
30166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30168     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30172     (
30173       cat <<\_ASBOX
30174 ## ------------------------------------ ##
30175 ## Report this to bug-autoconf@gnu.org. ##
30176 ## ------------------------------------ ##
30177 _ASBOX
30178     ) |
30179       sed "s/^/$as_me: WARNING:     /" >&2
30180     ;;
30181 esac
30182 echo "$as_me:$LINENO: checking for $ac_header" >&5
30183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30185   echo $ECHO_N "(cached) $ECHO_C" >&6
30186 else
30187   eval "$as_ac_Header=$ac_header_preproc"
30188 fi
30189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30191
30192 fi
30193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30194   cat >>confdefs.h <<_ACEOF
30195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30196 _ACEOF
30197
30198 fi
30199
30200 done
30201
30202       if test "$ac_cv_header_sched_h" = "yes"; then
30203           echo "$as_me:$LINENO: checking for sched_yield" >&5
30204 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
30205 if test "${ac_cv_func_sched_yield+set}" = set; then
30206   echo $ECHO_N "(cached) $ECHO_C" >&6
30207 else
30208   cat >conftest.$ac_ext <<_ACEOF
30209 #line $LINENO "configure"
30210 /* confdefs.h.  */
30211 _ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h.  */
30215 /* System header to define __stub macros and hopefully few prototypes,
30216     which can conflict with char sched_yield (); below.
30217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30218     <limits.h> exists even on freestanding compilers.  */
30219 #ifdef __STDC__
30220 # include <limits.h>
30221 #else
30222 # include <assert.h>
30223 #endif
30224 /* Override any gcc2 internal prototype to avoid an error.  */
30225 #ifdef __cplusplus
30226 extern "C"
30227 {
30228 #endif
30229 /* We use char because int might match the return type of a gcc2
30230    builtin and then its argument prototype would still apply.  */
30231 char sched_yield ();
30232 /* The GNU C library defines this for functions which it implements
30233     to always fail with ENOSYS.  Some functions are actually named
30234     something starting with __ and the normal name is an alias.  */
30235 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
30236 choke me
30237 #else
30238 char (*f) () = sched_yield;
30239 #endif
30240 #ifdef __cplusplus
30241 }
30242 #endif
30243
30244 int
30245 main ()
30246 {
30247 return f != sched_yield;
30248   ;
30249   return 0;
30250 }
30251 _ACEOF
30252 rm -f conftest.$ac_objext conftest$ac_exeext
30253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30254   (eval $ac_link) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); } &&
30258          { ac_try='test -s conftest$ac_exeext'
30259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260   (eval $ac_try) 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; }; then
30264   ac_cv_func_sched_yield=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269 ac_cv_func_sched_yield=no
30270 fi
30271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30272 fi
30273 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
30274 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
30275 if test $ac_cv_func_sched_yield = yes; then
30276   cat >>confdefs.h <<\_ACEOF
30277 #define HAVE_SCHED_YIELD 1
30278 _ACEOF
30279
30280 else
30281
30282                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
30283 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
30284 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
30285   echo $ECHO_N "(cached) $ECHO_C" >&6
30286 else
30287   ac_check_lib_save_LIBS=$LIBS
30288 LIBS="-lposix4  $LIBS"
30289 cat >conftest.$ac_ext <<_ACEOF
30290 #line $LINENO "configure"
30291 /* confdefs.h.  */
30292 _ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h.  */
30296
30297 /* Override any gcc2 internal prototype to avoid an error.  */
30298 #ifdef __cplusplus
30299 extern "C"
30300 #endif
30301 /* We use char because int might match the return type of a gcc2
30302    builtin and then its argument prototype would still apply.  */
30303 char sched_yield ();
30304 int
30305 main ()
30306 {
30307 sched_yield ();
30308   ;
30309   return 0;
30310 }
30311 _ACEOF
30312 rm -f conftest.$ac_objext conftest$ac_exeext
30313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30314   (eval $ac_link) 2>&5
30315   ac_status=$?
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); } &&
30318          { ac_try='test -s conftest$ac_exeext'
30319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30320   (eval $ac_try) 2>&5
30321   ac_status=$?
30322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323   (exit $ac_status); }; }; then
30324   ac_cv_lib_posix4_sched_yield=yes
30325 else
30326   echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30328
30329 ac_cv_lib_posix4_sched_yield=no
30330 fi
30331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30332 LIBS=$ac_check_lib_save_LIBS
30333 fi
30334 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
30335 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
30336 if test $ac_cv_lib_posix4_sched_yield = yes; then
30337   cat >>confdefs.h <<\_ACEOF
30338 #define HAVE_SCHED_YIELD 1
30339 _ACEOF
30340  POSIX4_LINK=" -lposix4"
30341 else
30342   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
30343 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
30344
30345 fi
30346
30347
30348
30349 fi
30350
30351       fi
30352
30353                                           HAVE_PRIOR_FUNCS=0
30354       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
30355 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
30356 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
30357   echo $ECHO_N "(cached) $ECHO_C" >&6
30358 else
30359   cat >conftest.$ac_ext <<_ACEOF
30360 #line $LINENO "configure"
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366 /* System header to define __stub macros and hopefully few prototypes,
30367     which can conflict with char pthread_attr_getschedpolicy (); below.
30368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30369     <limits.h> exists even on freestanding compilers.  */
30370 #ifdef __STDC__
30371 # include <limits.h>
30372 #else
30373 # include <assert.h>
30374 #endif
30375 /* Override any gcc2 internal prototype to avoid an error.  */
30376 #ifdef __cplusplus
30377 extern "C"
30378 {
30379 #endif
30380 /* We use char because int might match the return type of a gcc2
30381    builtin and then its argument prototype would still apply.  */
30382 char pthread_attr_getschedpolicy ();
30383 /* The GNU C library defines this for functions which it implements
30384     to always fail with ENOSYS.  Some functions are actually named
30385     something starting with __ and the normal name is an alias.  */
30386 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
30387 choke me
30388 #else
30389 char (*f) () = pthread_attr_getschedpolicy;
30390 #endif
30391 #ifdef __cplusplus
30392 }
30393 #endif
30394
30395 int
30396 main ()
30397 {
30398 return f != pthread_attr_getschedpolicy;
30399   ;
30400   return 0;
30401 }
30402 _ACEOF
30403 rm -f conftest.$ac_objext conftest$ac_exeext
30404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30405   (eval $ac_link) 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); } &&
30409          { ac_try='test -s conftest$ac_exeext'
30410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30411   (eval $ac_try) 2>&5
30412   ac_status=$?
30413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414   (exit $ac_status); }; }; then
30415   ac_cv_func_pthread_attr_getschedpolicy=yes
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30419
30420 ac_cv_func_pthread_attr_getschedpolicy=no
30421 fi
30422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30423 fi
30424 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
30425 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
30426 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
30427   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
30428 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
30429 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
30430   echo $ECHO_N "(cached) $ECHO_C" >&6
30431 else
30432   cat >conftest.$ac_ext <<_ACEOF
30433 #line $LINENO "configure"
30434 /* confdefs.h.  */
30435 _ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h.  */
30439 /* System header to define __stub macros and hopefully few prototypes,
30440     which can conflict with char pthread_attr_setschedparam (); below.
30441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30442     <limits.h> exists even on freestanding compilers.  */
30443 #ifdef __STDC__
30444 # include <limits.h>
30445 #else
30446 # include <assert.h>
30447 #endif
30448 /* Override any gcc2 internal prototype to avoid an error.  */
30449 #ifdef __cplusplus
30450 extern "C"
30451 {
30452 #endif
30453 /* We use char because int might match the return type of a gcc2
30454    builtin and then its argument prototype would still apply.  */
30455 char pthread_attr_setschedparam ();
30456 /* The GNU C library defines this for functions which it implements
30457     to always fail with ENOSYS.  Some functions are actually named
30458     something starting with __ and the normal name is an alias.  */
30459 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
30460 choke me
30461 #else
30462 char (*f) () = pthread_attr_setschedparam;
30463 #endif
30464 #ifdef __cplusplus
30465 }
30466 #endif
30467
30468 int
30469 main ()
30470 {
30471 return f != pthread_attr_setschedparam;
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30478   (eval $ac_link) 2>&5
30479   ac_status=$?
30480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481   (exit $ac_status); } &&
30482          { ac_try='test -s conftest$ac_exeext'
30483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30484   (eval $ac_try) 2>&5
30485   ac_status=$?
30486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487   (exit $ac_status); }; }; then
30488   ac_cv_func_pthread_attr_setschedparam=yes
30489 else
30490   echo "$as_me: failed program was:" >&5
30491 sed 's/^/| /' conftest.$ac_ext >&5
30492
30493 ac_cv_func_pthread_attr_setschedparam=no
30494 fi
30495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30496 fi
30497 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
30498 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
30499 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
30500   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
30501 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
30502 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
30503   echo $ECHO_N "(cached) $ECHO_C" >&6
30504 else
30505   cat >conftest.$ac_ext <<_ACEOF
30506 #line $LINENO "configure"
30507 /* confdefs.h.  */
30508 _ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h.  */
30512 /* System header to define __stub macros and hopefully few prototypes,
30513     which can conflict with char sched_get_priority_max (); below.
30514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30515     <limits.h> exists even on freestanding compilers.  */
30516 #ifdef __STDC__
30517 # include <limits.h>
30518 #else
30519 # include <assert.h>
30520 #endif
30521 /* Override any gcc2 internal prototype to avoid an error.  */
30522 #ifdef __cplusplus
30523 extern "C"
30524 {
30525 #endif
30526 /* We use char because int might match the return type of a gcc2
30527    builtin and then its argument prototype would still apply.  */
30528 char sched_get_priority_max ();
30529 /* The GNU C library defines this for functions which it implements
30530     to always fail with ENOSYS.  Some functions are actually named
30531     something starting with __ and the normal name is an alias.  */
30532 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
30533 choke me
30534 #else
30535 char (*f) () = sched_get_priority_max;
30536 #endif
30537 #ifdef __cplusplus
30538 }
30539 #endif
30540
30541 int
30542 main ()
30543 {
30544 return f != sched_get_priority_max;
30545   ;
30546   return 0;
30547 }
30548 _ACEOF
30549 rm -f conftest.$ac_objext conftest$ac_exeext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30551   (eval $ac_link) 2>&5
30552   ac_status=$?
30553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554   (exit $ac_status); } &&
30555          { ac_try='test -s conftest$ac_exeext'
30556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30557   (eval $ac_try) 2>&5
30558   ac_status=$?
30559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560   (exit $ac_status); }; }; then
30561   ac_cv_func_sched_get_priority_max=yes
30562 else
30563   echo "$as_me: failed program was:" >&5
30564 sed 's/^/| /' conftest.$ac_ext >&5
30565
30566 ac_cv_func_sched_get_priority_max=no
30567 fi
30568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30569 fi
30570 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
30571 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
30572 if test $ac_cv_func_sched_get_priority_max = yes; then
30573   HAVE_PRIOR_FUNCS=1
30574 else
30575   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
30576 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
30577 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
30578   echo $ECHO_N "(cached) $ECHO_C" >&6
30579 else
30580   ac_check_lib_save_LIBS=$LIBS
30581 LIBS="-lposix4  $LIBS"
30582 cat >conftest.$ac_ext <<_ACEOF
30583 #line $LINENO "configure"
30584 /* confdefs.h.  */
30585 _ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h.  */
30589
30590 /* Override any gcc2 internal prototype to avoid an error.  */
30591 #ifdef __cplusplus
30592 extern "C"
30593 #endif
30594 /* We use char because int might match the return type of a gcc2
30595    builtin and then its argument prototype would still apply.  */
30596 char sched_get_priority_max ();
30597 int
30598 main ()
30599 {
30600 sched_get_priority_max ();
30601   ;
30602   return 0;
30603 }
30604 _ACEOF
30605 rm -f conftest.$ac_objext conftest$ac_exeext
30606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30607   (eval $ac_link) 2>&5
30608   ac_status=$?
30609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610   (exit $ac_status); } &&
30611          { ac_try='test -s conftest$ac_exeext'
30612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613   (eval $ac_try) 2>&5
30614   ac_status=$?
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); }; }; then
30617   ac_cv_lib_posix4_sched_get_priority_max=yes
30618 else
30619   echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.$ac_ext >&5
30621
30622 ac_cv_lib_posix4_sched_get_priority_max=no
30623 fi
30624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30625 LIBS=$ac_check_lib_save_LIBS
30626 fi
30627 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30628 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30629 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
30630
30631                                 HAVE_PRIOR_FUNCS=1
30632                                 POSIX4_LINK=" -lposix4"
30633
30634 fi
30635
30636
30637 fi
30638
30639
30640 fi
30641
30642
30643 fi
30644
30645
30646       if test "$HAVE_PRIOR_FUNCS" = 1; then
30647         cat >>confdefs.h <<\_ACEOF
30648 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
30649 _ACEOF
30650
30651       else
30652         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30653 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
30654       fi
30655
30656       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30657 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30658 if test "${ac_cv_func_pthread_cancel+set}" = set; then
30659   echo $ECHO_N "(cached) $ECHO_C" >&6
30660 else
30661   cat >conftest.$ac_ext <<_ACEOF
30662 #line $LINENO "configure"
30663 /* confdefs.h.  */
30664 _ACEOF
30665 cat confdefs.h >>conftest.$ac_ext
30666 cat >>conftest.$ac_ext <<_ACEOF
30667 /* end confdefs.h.  */
30668 /* System header to define __stub macros and hopefully few prototypes,
30669     which can conflict with char pthread_cancel (); below.
30670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30671     <limits.h> exists even on freestanding compilers.  */
30672 #ifdef __STDC__
30673 # include <limits.h>
30674 #else
30675 # include <assert.h>
30676 #endif
30677 /* Override any gcc2 internal prototype to avoid an error.  */
30678 #ifdef __cplusplus
30679 extern "C"
30680 {
30681 #endif
30682 /* We use char because int might match the return type of a gcc2
30683    builtin and then its argument prototype would still apply.  */
30684 char pthread_cancel ();
30685 /* The GNU C library defines this for functions which it implements
30686     to always fail with ENOSYS.  Some functions are actually named
30687     something starting with __ and the normal name is an alias.  */
30688 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30689 choke me
30690 #else
30691 char (*f) () = pthread_cancel;
30692 #endif
30693 #ifdef __cplusplus
30694 }
30695 #endif
30696
30697 int
30698 main ()
30699 {
30700 return f != pthread_cancel;
30701   ;
30702   return 0;
30703 }
30704 _ACEOF
30705 rm -f conftest.$ac_objext conftest$ac_exeext
30706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30707   (eval $ac_link) 2>&5
30708   ac_status=$?
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } &&
30711          { ac_try='test -s conftest$ac_exeext'
30712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713   (eval $ac_try) 2>&5
30714   ac_status=$?
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); }; }; then
30717   ac_cv_func_pthread_cancel=yes
30718 else
30719   echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30721
30722 ac_cv_func_pthread_cancel=no
30723 fi
30724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30725 fi
30726 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30727 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30728 if test $ac_cv_func_pthread_cancel = yes; then
30729   cat >>confdefs.h <<\_ACEOF
30730 #define HAVE_PTHREAD_CANCEL 1
30731 _ACEOF
30732
30733 else
30734   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30735 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
30736 fi
30737
30738
30739
30740
30741       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30742 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30743 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30744   echo $ECHO_N "(cached) $ECHO_C" >&6
30745 else
30746
30747         cat >conftest.$ac_ext <<_ACEOF
30748 #line $LINENO "configure"
30749 /* confdefs.h.  */
30750 _ACEOF
30751 cat confdefs.h >>conftest.$ac_ext
30752 cat >>conftest.$ac_ext <<_ACEOF
30753 /* end confdefs.h.  */
30754 #include <pthread.h>
30755 int
30756 main ()
30757 {
30758
30759                pthread_mutexattr_t attr;
30760                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
30761
30762   ;
30763   return 0;
30764 }
30765 _ACEOF
30766 rm -f conftest.$ac_objext
30767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30768   (eval $ac_compile) 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); } &&
30772          { ac_try='test -s conftest.$ac_objext'
30773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774   (eval $ac_try) 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); }; }; then
30778
30779                wx_cv_type_pthread_mutexattr_t=yes
30780
30781 else
30782   echo "$as_me: failed program was:" >&5
30783 sed 's/^/| /' conftest.$ac_ext >&5
30784
30785
30786                wx_cv_type_pthread_mutexattr_t=no
30787
30788
30789 fi
30790 rm -f conftest.$ac_objext conftest.$ac_ext
30791
30792 fi
30793 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30794 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
30795
30796       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
30797         cat >>confdefs.h <<\_ACEOF
30798 #define HAVE_PTHREAD_MUTEXATTR_T 1
30799 _ACEOF
30800
30801       else
30802                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30803 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30804 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30805   echo $ECHO_N "(cached) $ECHO_C" >&6
30806 else
30807
30808             cat >conftest.$ac_ext <<_ACEOF
30809 #line $LINENO "configure"
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815 #include <pthread.h>
30816 int
30817 main ()
30818 {
30819
30820                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
30821
30822   ;
30823   return 0;
30824 }
30825 _ACEOF
30826 rm -f conftest.$ac_objext
30827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30828   (eval $ac_compile) 2>&5
30829   ac_status=$?
30830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831   (exit $ac_status); } &&
30832          { ac_try='test -s conftest.$ac_objext'
30833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834   (eval $ac_try) 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; }; then
30838
30839                     wx_cv_type_pthread_rec_mutex_init=yes
30840
30841 else
30842   echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30844
30845
30846                     wx_cv_type_pthread_rec_mutex_init=no
30847
30848
30849 fi
30850 rm -f conftest.$ac_objext conftest.$ac_ext
30851
30852 fi
30853 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30854 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
30855         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
30856           cat >>confdefs.h <<\_ACEOF
30857 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
30858 _ACEOF
30859
30860         else
30861                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30862 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
30863         fi
30864       fi
30865     fi
30866
30867 else
30868     if test "$wxUSE_THREADS" = "yes" ; then
30869       case "${host}" in
30870         *-*-mingw32* )
30871                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30872 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30873 if test "${wx_cv_cflags_mthread+set}" = set; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876
30877                     CFLAGS_OLD="$CFLAGS"
30878                     CFLAGS="$CFLAGS -mthreads"
30879                     cat >conftest.$ac_ext <<_ACEOF
30880 #line $LINENO "configure"
30881 /* confdefs.h.  */
30882 _ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h.  */
30886
30887 int
30888 main ()
30889 {
30890
30891   ;
30892   return 0;
30893 }
30894 _ACEOF
30895 rm -f conftest.$ac_objext
30896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30897   (eval $ac_compile) 2>&5
30898   ac_status=$?
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); } &&
30901          { ac_try='test -s conftest.$ac_objext'
30902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903   (eval $ac_try) 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   wx_cv_cflags_mthread=yes
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912 wx_cv_cflags_mthread=no
30913
30914 fi
30915 rm -f conftest.$ac_objext conftest.$ac_ext
30916
30917
30918 fi
30919 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30920 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
30921
30922             if test "$wx_cv_cflags_mthread" = "yes"; then
30923                                 CXXFLAGS="$CXXFLAGS -mthreads"
30924                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30925                 LDFLAGS="$LDFLAGS -mthreads"
30926             else
30927                                 CFLAGS="$CFLAGS_OLD"
30928             fi
30929         ;;
30930         *-pc-os2*emx )
30931             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30932             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30933             LDFLAGS="$LDFLAGS -Zmt"
30934         ;;
30935       esac
30936     fi
30937 fi
30938
30939 if test "$wxUSE_THREADS" = "yes"; then
30940   cat >>confdefs.h <<\_ACEOF
30941 #define wxUSE_THREADS 1
30942 _ACEOF
30943
30944
30945   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
30946 else
30947       if test "$ac_cv_func_strtok_r" = "yes"; then
30948     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30949 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
30950     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30951         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
30952         echo "$as_me:$LINENO: result: yes" >&5
30953 echo "${ECHO_T}yes" >&6
30954     else
30955         echo "$as_me:$LINENO: result: no" >&5
30956 echo "${ECHO_T}no" >&6
30957     fi
30958   fi
30959 fi
30960
30961 if test "$WXGTK20" = 1 ; then
30962   cat >>confdefs.h <<_ACEOF
30963 #define __WXGTK20__ $WXGTK20
30964 _ACEOF
30965
30966   WXGTK12=1
30967 fi
30968
30969 if test "$WXGTK12" = 1 ; then
30970   cat >>confdefs.h <<_ACEOF
30971 #define __WXGTK12__ $WXGTK12
30972 _ACEOF
30973
30974 fi
30975
30976 if test "$WXGTK127" = 1 ; then
30977   cat >>confdefs.h <<_ACEOF
30978 #define __WXGTK127__ $WXGTK127
30979 _ACEOF
30980
30981 fi
30982
30983 if test "$WXGPE" = 1 ; then
30984   cat >>confdefs.h <<_ACEOF
30985 #define __WXGPE__ $WXGPE
30986 _ACEOF
30987
30988 fi
30989
30990 WXDEBUG=
30991
30992 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30993     WXDEBUG="-g"
30994     wxUSE_OPTIMISE=no
30995 fi
30996
30997 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30998     wxUSE_DEBUG_INFO=yes
30999     WXDEBUG="-ggdb"
31000 fi
31001
31002 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
31003     cat >>confdefs.h <<\_ACEOF
31004 #define WXDEBUG 1
31005 _ACEOF
31006
31007     WXDEBUG_DEFINE="-D__WXDEBUG__"
31008 else
31009     if test "$wxUSE_GTK" = 1 ; then
31010         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
31011     fi
31012 fi
31013
31014 if test "$wxUSE_MEM_TRACING" = "yes" ; then
31015     cat >>confdefs.h <<\_ACEOF
31016 #define wxUSE_MEMORY_TRACING 1
31017 _ACEOF
31018
31019     cat >>confdefs.h <<\_ACEOF
31020 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
31021 _ACEOF
31022
31023     cat >>confdefs.h <<\_ACEOF
31024 #define wxUSE_DEBUG_NEW_ALWAYS 1
31025 _ACEOF
31026
31027     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
31028 fi
31029
31030 if test "$wxUSE_DMALLOC" = "yes" ; then
31031     DMALLOC_LIBS="-ldmalloc"
31032 fi
31033
31034 PROFILE=
31035 if test "$wxUSE_PROFILE" = "yes" ; then
31036     PROFILE=" -pg"
31037 fi
31038
31039 CODE_GEN_FLAGS=
31040 CODE_GEN_FLAGS_CXX=
31041 if test "$GCC" = "yes" ; then
31042     if test "$wxUSE_NO_RTTI" = "yes" ; then
31043         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
31044     fi
31045     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
31046         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
31047     fi
31048     if test "$wxUSE_PERMISSIVE" = "yes" ; then
31049         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
31050     fi
31051
31052                                                 case "${host}" in
31053       powerpc*-*-aix* )
31054         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
31055         ;;
31056       *-hppa* )
31057         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
31058         ;;
31059     esac
31060 fi
31061
31062 OPTIMISE=
31063 if test "$wxUSE_OPTIMISE" = "no" ; then
31064     if test "$GCC" = yes ; then
31065                         OPTIMISE="-O0"
31066     fi
31067 else
31068     if test "$GCC" = yes ; then
31069         OPTIMISE="-O2"
31070
31071                 case "${host}" in
31072             i586-*-*|i686-*-* )
31073             OPTIMISE="${OPTIMISE} "
31074         ;;
31075         esac
31076     else
31077         OPTIMISE="-O"
31078     fi
31079 fi
31080
31081
31082 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
31083     cat >>confdefs.h <<\_ACEOF
31084 #define WXWIN_COMPATIBILITY_2_2 1
31085 _ACEOF
31086
31087
31088     WXWIN_COMPATIBILITY_2_4="yes"
31089 fi
31090
31091 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
31092     cat >>confdefs.h <<\_ACEOF
31093 #define WXWIN_COMPATIBILITY_2_4 1
31094 _ACEOF
31095
31096 fi
31097
31098
31099 if test "$wxUSE_GUI" = "yes"; then
31100   cat >>confdefs.h <<\_ACEOF
31101 #define wxUSE_GUI 1
31102 _ACEOF
31103
31104
31105                       else
31106   cat >>confdefs.h <<\_ACEOF
31107 #define wxUSE_NOGUI 1
31108 _ACEOF
31109
31110 fi
31111
31112
31113 if test "$wxUSE_UNIX" = "yes"; then
31114   cat >>confdefs.h <<\_ACEOF
31115 #define wxUSE_UNIX 1
31116 _ACEOF
31117
31118 fi
31119
31120
31121 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31122
31123     HAVE_DL_FUNCS=0
31124     HAVE_SHL_FUNCS=0
31125     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31126         if test "$USE_DARWIN" = 1; then
31127                         HAVE_DL_FUNCS=1
31128         else
31129
31130 for ac_func in dlopen
31131 do
31132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31133 echo "$as_me:$LINENO: checking for $ac_func" >&5
31134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31135 if eval "test \"\${$as_ac_var+set}\" = set"; then
31136   echo $ECHO_N "(cached) $ECHO_C" >&6
31137 else
31138   cat >conftest.$ac_ext <<_ACEOF
31139 #line $LINENO "configure"
31140 /* confdefs.h.  */
31141 _ACEOF
31142 cat confdefs.h >>conftest.$ac_ext
31143 cat >>conftest.$ac_ext <<_ACEOF
31144 /* end confdefs.h.  */
31145 /* System header to define __stub macros and hopefully few prototypes,
31146     which can conflict with char $ac_func (); below.
31147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31148     <limits.h> exists even on freestanding compilers.  */
31149 #ifdef __STDC__
31150 # include <limits.h>
31151 #else
31152 # include <assert.h>
31153 #endif
31154 /* Override any gcc2 internal prototype to avoid an error.  */
31155 #ifdef __cplusplus
31156 extern "C"
31157 {
31158 #endif
31159 /* We use char because int might match the return type of a gcc2
31160    builtin and then its argument prototype would still apply.  */
31161 char $ac_func ();
31162 /* The GNU C library defines this for functions which it implements
31163     to always fail with ENOSYS.  Some functions are actually named
31164     something starting with __ and the normal name is an alias.  */
31165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31166 choke me
31167 #else
31168 char (*f) () = $ac_func;
31169 #endif
31170 #ifdef __cplusplus
31171 }
31172 #endif
31173
31174 int
31175 main ()
31176 {
31177 return f != $ac_func;
31178   ;
31179   return 0;
31180 }
31181 _ACEOF
31182 rm -f conftest.$ac_objext conftest$ac_exeext
31183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31184   (eval $ac_link) 2>&5
31185   ac_status=$?
31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187   (exit $ac_status); } &&
31188          { ac_try='test -s conftest$ac_exeext'
31189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190   (eval $ac_try) 2>&5
31191   ac_status=$?
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); }; }; then
31194   eval "$as_ac_var=yes"
31195 else
31196   echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31198
31199 eval "$as_ac_var=no"
31200 fi
31201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31202 fi
31203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31205 if test `eval echo '${'$as_ac_var'}'` = yes; then
31206   cat >>confdefs.h <<_ACEOF
31207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31208 _ACEOF
31209
31210                 cat >>confdefs.h <<\_ACEOF
31211 #define HAVE_DLOPEN 1
31212 _ACEOF
31213
31214                 HAVE_DL_FUNCS=1
31215
31216 else
31217
31218                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31219 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31221   echo $ECHO_N "(cached) $ECHO_C" >&6
31222 else
31223   ac_check_lib_save_LIBS=$LIBS
31224 LIBS="-ldl  $LIBS"
31225 cat >conftest.$ac_ext <<_ACEOF
31226 #line $LINENO "configure"
31227 /* confdefs.h.  */
31228 _ACEOF
31229 cat confdefs.h >>conftest.$ac_ext
31230 cat >>conftest.$ac_ext <<_ACEOF
31231 /* end confdefs.h.  */
31232
31233 /* Override any gcc2 internal prototype to avoid an error.  */
31234 #ifdef __cplusplus
31235 extern "C"
31236 #endif
31237 /* We use char because int might match the return type of a gcc2
31238    builtin and then its argument prototype would still apply.  */
31239 char dlopen ();
31240 int
31241 main ()
31242 {
31243 dlopen ();
31244   ;
31245   return 0;
31246 }
31247 _ACEOF
31248 rm -f conftest.$ac_objext conftest$ac_exeext
31249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31250   (eval $ac_link) 2>&5
31251   ac_status=$?
31252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253   (exit $ac_status); } &&
31254          { ac_try='test -s conftest$ac_exeext'
31255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31256   (eval $ac_try) 2>&5
31257   ac_status=$?
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); }; }; then
31260   ac_cv_lib_dl_dlopen=yes
31261 else
31262   echo "$as_me: failed program was:" >&5
31263 sed 's/^/| /' conftest.$ac_ext >&5
31264
31265 ac_cv_lib_dl_dlopen=no
31266 fi
31267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31268 LIBS=$ac_check_lib_save_LIBS
31269 fi
31270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31272 if test $ac_cv_lib_dl_dlopen = yes; then
31273
31274                                 cat >>confdefs.h <<\_ACEOF
31275 #define HAVE_DLOPEN 1
31276 _ACEOF
31277
31278                                 HAVE_DL_FUNCS=1
31279                                 DL_LINK=" -ldl$DL_LINK"
31280
31281 else
31282
31283
31284 for ac_func in shl_load
31285 do
31286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31287 echo "$as_me:$LINENO: checking for $ac_func" >&5
31288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31289 if eval "test \"\${$as_ac_var+set}\" = set"; then
31290   echo $ECHO_N "(cached) $ECHO_C" >&6
31291 else
31292   cat >conftest.$ac_ext <<_ACEOF
31293 #line $LINENO "configure"
31294 /* confdefs.h.  */
31295 _ACEOF
31296 cat confdefs.h >>conftest.$ac_ext
31297 cat >>conftest.$ac_ext <<_ACEOF
31298 /* end confdefs.h.  */
31299 /* System header to define __stub macros and hopefully few prototypes,
31300     which can conflict with char $ac_func (); below.
31301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31302     <limits.h> exists even on freestanding compilers.  */
31303 #ifdef __STDC__
31304 # include <limits.h>
31305 #else
31306 # include <assert.h>
31307 #endif
31308 /* Override any gcc2 internal prototype to avoid an error.  */
31309 #ifdef __cplusplus
31310 extern "C"
31311 {
31312 #endif
31313 /* We use char because int might match the return type of a gcc2
31314    builtin and then its argument prototype would still apply.  */
31315 char $ac_func ();
31316 /* The GNU C library defines this for functions which it implements
31317     to always fail with ENOSYS.  Some functions are actually named
31318     something starting with __ and the normal name is an alias.  */
31319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31320 choke me
31321 #else
31322 char (*f) () = $ac_func;
31323 #endif
31324 #ifdef __cplusplus
31325 }
31326 #endif
31327
31328 int
31329 main ()
31330 {
31331 return f != $ac_func;
31332   ;
31333   return 0;
31334 }
31335 _ACEOF
31336 rm -f conftest.$ac_objext conftest$ac_exeext
31337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31338   (eval $ac_link) 2>&5
31339   ac_status=$?
31340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341   (exit $ac_status); } &&
31342          { ac_try='test -s conftest$ac_exeext'
31343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344   (eval $ac_try) 2>&5
31345   ac_status=$?
31346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347   (exit $ac_status); }; }; then
31348   eval "$as_ac_var=yes"
31349 else
31350   echo "$as_me: failed program was:" >&5
31351 sed 's/^/| /' conftest.$ac_ext >&5
31352
31353 eval "$as_ac_var=no"
31354 fi
31355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31356 fi
31357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31359 if test `eval echo '${'$as_ac_var'}'` = yes; then
31360   cat >>confdefs.h <<_ACEOF
31361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31362 _ACEOF
31363
31364                                                 cat >>confdefs.h <<\_ACEOF
31365 #define HAVE_SHL_LOAD 1
31366 _ACEOF
31367
31368                                                 HAVE_SHL_FUNCS=1
31369
31370 else
31371
31372                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31373 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31374 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31375   echo $ECHO_N "(cached) $ECHO_C" >&6
31376 else
31377   ac_check_lib_save_LIBS=$LIBS
31378 LIBS="-lshl_load  $LIBS"
31379 cat >conftest.$ac_ext <<_ACEOF
31380 #line $LINENO "configure"
31381 /* confdefs.h.  */
31382 _ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h.  */
31386
31387 /* Override any gcc2 internal prototype to avoid an error.  */
31388 #ifdef __cplusplus
31389 extern "C"
31390 #endif
31391 /* We use char because int might match the return type of a gcc2
31392    builtin and then its argument prototype would still apply.  */
31393 char dld ();
31394 int
31395 main ()
31396 {
31397 dld ();
31398   ;
31399   return 0;
31400 }
31401 _ACEOF
31402 rm -f conftest.$ac_objext conftest$ac_exeext
31403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31404   (eval $ac_link) 2>&5
31405   ac_status=$?
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); } &&
31408          { ac_try='test -s conftest$ac_exeext'
31409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410   (eval $ac_try) 2>&5
31411   ac_status=$?
31412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413   (exit $ac_status); }; }; then
31414   ac_cv_lib_shl_load_dld=yes
31415 else
31416   echo "$as_me: failed program was:" >&5
31417 sed 's/^/| /' conftest.$ac_ext >&5
31418
31419 ac_cv_lib_shl_load_dld=no
31420 fi
31421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31422 LIBS=$ac_check_lib_save_LIBS
31423 fi
31424 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31425 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31426 if test $ac_cv_lib_shl_load_dld = yes; then
31427
31428                                                                 HAVE_SHL_FUNCS=1
31429                                                                 DL_LINK=" -ldld$DL_LINK"
31430
31431 fi
31432
31433
31434 fi
31435 done
31436
31437
31438 fi
31439
31440
31441 fi
31442 done
31443
31444
31445                 if test "$HAVE_DL_FUNCS" = 1; then
31446
31447 for ac_func in dlerror
31448 do
31449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31450 echo "$as_me:$LINENO: checking for $ac_func" >&5
31451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31452 if eval "test \"\${$as_ac_var+set}\" = set"; then
31453   echo $ECHO_N "(cached) $ECHO_C" >&6
31454 else
31455   cat >conftest.$ac_ext <<_ACEOF
31456 #line $LINENO "configure"
31457 /* confdefs.h.  */
31458 _ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h.  */
31462 /* System header to define __stub macros and hopefully few prototypes,
31463     which can conflict with char $ac_func (); below.
31464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31465     <limits.h> exists even on freestanding compilers.  */
31466 #ifdef __STDC__
31467 # include <limits.h>
31468 #else
31469 # include <assert.h>
31470 #endif
31471 /* Override any gcc2 internal prototype to avoid an error.  */
31472 #ifdef __cplusplus
31473 extern "C"
31474 {
31475 #endif
31476 /* We use char because int might match the return type of a gcc2
31477    builtin and then its argument prototype would still apply.  */
31478 char $ac_func ();
31479 /* The GNU C library defines this for functions which it implements
31480     to always fail with ENOSYS.  Some functions are actually named
31481     something starting with __ and the normal name is an alias.  */
31482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31483 choke me
31484 #else
31485 char (*f) () = $ac_func;
31486 #endif
31487 #ifdef __cplusplus
31488 }
31489 #endif
31490
31491 int
31492 main ()
31493 {
31494 return f != $ac_func;
31495   ;
31496   return 0;
31497 }
31498 _ACEOF
31499 rm -f conftest.$ac_objext conftest$ac_exeext
31500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31501   (eval $ac_link) 2>&5
31502   ac_status=$?
31503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504   (exit $ac_status); } &&
31505          { ac_try='test -s conftest$ac_exeext'
31506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31507   (eval $ac_try) 2>&5
31508   ac_status=$?
31509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510   (exit $ac_status); }; }; then
31511   eval "$as_ac_var=yes"
31512 else
31513   echo "$as_me: failed program was:" >&5
31514 sed 's/^/| /' conftest.$ac_ext >&5
31515
31516 eval "$as_ac_var=no"
31517 fi
31518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31519 fi
31520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31522 if test `eval echo '${'$as_ac_var'}'` = yes; then
31523   cat >>confdefs.h <<_ACEOF
31524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31525 _ACEOF
31526  cat >>confdefs.h <<\_ACEOF
31527 #define HAVE_DLERROR 1
31528 _ACEOF
31529
31530 else
31531
31532                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31533 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31534 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31535   echo $ECHO_N "(cached) $ECHO_C" >&6
31536 else
31537   ac_check_lib_save_LIBS=$LIBS
31538 LIBS="-ldl  $LIBS"
31539 cat >conftest.$ac_ext <<_ACEOF
31540 #line $LINENO "configure"
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546
31547 /* Override any gcc2 internal prototype to avoid an error.  */
31548 #ifdef __cplusplus
31549 extern "C"
31550 #endif
31551 /* We use char because int might match the return type of a gcc2
31552    builtin and then its argument prototype would still apply.  */
31553 char dlerror ();
31554 int
31555 main ()
31556 {
31557 dlerror ();
31558   ;
31559   return 0;
31560 }
31561 _ACEOF
31562 rm -f conftest.$ac_objext conftest$ac_exeext
31563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31564   (eval $ac_link) 2>&5
31565   ac_status=$?
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); } &&
31568          { ac_try='test -s conftest$ac_exeext'
31569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570   (eval $ac_try) 2>&5
31571   ac_status=$?
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); }; }; then
31574   ac_cv_lib_dl_dlerror=yes
31575 else
31576   echo "$as_me: failed program was:" >&5
31577 sed 's/^/| /' conftest.$ac_ext >&5
31578
31579 ac_cv_lib_dl_dlerror=no
31580 fi
31581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31582 LIBS=$ac_check_lib_save_LIBS
31583 fi
31584 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31585 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31586 if test $ac_cv_lib_dl_dlerror = yes; then
31587   cat >>confdefs.h <<\_ACEOF
31588 #define HAVE_DLERROR 1
31589 _ACEOF
31590
31591 fi
31592
31593
31594
31595 fi
31596 done
31597
31598         fi
31599         fi
31600
31601         if test "$HAVE_DL_FUNCS" = 0; then
31602             if test "$HAVE_SHL_FUNCS" = 0; then
31603               if test "$USE_UNIX" = 1; then
31604                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31605 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31606                   wxUSE_DYNAMIC_LOADER=no
31607                   wxUSE_DYNLIB_CLASS=no
31608               else
31609                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31610 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31611               fi
31612             fi
31613         fi
31614     fi
31615 fi
31616
31617 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31618     cat >>confdefs.h <<\_ACEOF
31619 #define wxUSE_DYNAMIC_LOADER 1
31620 _ACEOF
31621
31622 fi
31623 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31624     cat >>confdefs.h <<\_ACEOF
31625 #define wxUSE_DYNLIB_CLASS 1
31626 _ACEOF
31627
31628 fi
31629
31630
31631
31632 if test "$wxUSE_PLUGINS" = "yes" ; then
31633     if test "$wxUSE_SHARED" = "no" ; then
31634         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
31635 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
31636         wxUSE_PLUGINS=no
31637     fi
31638     if test "$wxUSE_MONOLITHIC" = "yes" ; then
31639         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
31640 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
31641         wxUSE_PLUGINS=no
31642     fi
31643     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
31644         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
31645 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
31646         wxUSE_PLUGINS=no
31647     fi
31648     if test "$wxUSE_PLUGINS" = "yes" ; then
31649         cat >>confdefs.h <<\_ACEOF
31650 #define wxUSE_PLUGINS 1
31651 _ACEOF
31652
31653     fi
31654 fi
31655
31656
31657 if test "$wxUSE_STL" = "yes"; then
31658   cat >>confdefs.h <<\_ACEOF
31659 #define wxUSE_STL 1
31660 _ACEOF
31661
31662 fi
31663
31664 if test "$wxUSE_APPLE_IEEE" = "yes"; then
31665   cat >>confdefs.h <<\_ACEOF
31666 #define wxUSE_APPLE_IEEE 1
31667 _ACEOF
31668
31669 fi
31670
31671 if test "$wxUSE_TIMER" = "yes"; then
31672   cat >>confdefs.h <<\_ACEOF
31673 #define wxUSE_TIMER 1
31674 _ACEOF
31675
31676 fi
31677
31678 WITH_PLUGIN_SDL=0
31679 if test "$wxUSE_SOUND" = "yes"; then
31680       if test "$USE_UNIX" = "1" ; then
31681
31682 for ac_header in sys/soundcard.h
31683 do
31684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31686   echo "$as_me:$LINENO: checking for $ac_header" >&5
31687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31689   echo $ECHO_N "(cached) $ECHO_C" >&6
31690 fi
31691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31693 else
31694   # Is the header compilable?
31695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31697 cat >conftest.$ac_ext <<_ACEOF
31698 #line $LINENO "configure"
31699 /* confdefs.h.  */
31700 _ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h.  */
31704 $ac_includes_default
31705 #include <$ac_header>
31706 _ACEOF
31707 rm -f conftest.$ac_objext
31708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31709   (eval $ac_compile) 2>&5
31710   ac_status=$?
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); } &&
31713          { ac_try='test -s conftest.$ac_objext'
31714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31715   (eval $ac_try) 2>&5
31716   ac_status=$?
31717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718   (exit $ac_status); }; }; then
31719   ac_header_compiler=yes
31720 else
31721   echo "$as_me: failed program was:" >&5
31722 sed 's/^/| /' conftest.$ac_ext >&5
31723
31724 ac_header_compiler=no
31725 fi
31726 rm -f conftest.$ac_objext conftest.$ac_ext
31727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31728 echo "${ECHO_T}$ac_header_compiler" >&6
31729
31730 # Is the header present?
31731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31733 cat >conftest.$ac_ext <<_ACEOF
31734 #line $LINENO "configure"
31735 /* confdefs.h.  */
31736 _ACEOF
31737 cat confdefs.h >>conftest.$ac_ext
31738 cat >>conftest.$ac_ext <<_ACEOF
31739 /* end confdefs.h.  */
31740 #include <$ac_header>
31741 _ACEOF
31742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31744   ac_status=$?
31745   grep -v '^ *+' conftest.er1 >conftest.err
31746   rm -f conftest.er1
31747   cat conftest.err >&5
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); } >/dev/null; then
31750   if test -s conftest.err; then
31751     ac_cpp_err=$ac_c_preproc_warn_flag
31752   else
31753     ac_cpp_err=
31754   fi
31755 else
31756   ac_cpp_err=yes
31757 fi
31758 if test -z "$ac_cpp_err"; then
31759   ac_header_preproc=yes
31760 else
31761   echo "$as_me: failed program was:" >&5
31762 sed 's/^/| /' conftest.$ac_ext >&5
31763
31764   ac_header_preproc=no
31765 fi
31766 rm -f conftest.err conftest.$ac_ext
31767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31768 echo "${ECHO_T}$ac_header_preproc" >&6
31769
31770 # So?  What about this header?
31771 case $ac_header_compiler:$ac_header_preproc in
31772   yes:no )
31773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31777     (
31778       cat <<\_ASBOX
31779 ## ------------------------------------ ##
31780 ## Report this to bug-autoconf@gnu.org. ##
31781 ## ------------------------------------ ##
31782 _ASBOX
31783     ) |
31784       sed "s/^/$as_me: WARNING:     /" >&2
31785     ;;
31786   no:yes )
31787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31789     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31793     (
31794       cat <<\_ASBOX
31795 ## ------------------------------------ ##
31796 ## Report this to bug-autoconf@gnu.org. ##
31797 ## ------------------------------------ ##
31798 _ASBOX
31799     ) |
31800       sed "s/^/$as_me: WARNING:     /" >&2
31801     ;;
31802 esac
31803 echo "$as_me:$LINENO: checking for $ac_header" >&5
31804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31806   echo $ECHO_N "(cached) $ECHO_C" >&6
31807 else
31808   eval "$as_ac_Header=$ac_header_preproc"
31809 fi
31810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31812
31813 fi
31814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31815   cat >>confdefs.h <<_ACEOF
31816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31817 _ACEOF
31818
31819 fi
31820
31821 done
31822
31823
31824     if test "$wxUSE_LIBSDL" != "no"; then
31825
31826 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
31827 if test "${with_sdl_prefix+set}" = set; then
31828   withval="$with_sdl_prefix"
31829   sdl_prefix="$withval"
31830 else
31831   sdl_prefix=""
31832 fi;
31833
31834 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
31835 if test "${with_sdl_exec_prefix+set}" = set; then
31836   withval="$with_sdl_exec_prefix"
31837   sdl_exec_prefix="$withval"
31838 else
31839   sdl_exec_prefix=""
31840 fi;
31841 # Check whether --enable-sdltest or --disable-sdltest was given.
31842 if test "${enable_sdltest+set}" = set; then
31843   enableval="$enable_sdltest"
31844
31845 else
31846   enable_sdltest=yes
31847 fi;
31848
31849   if test x$sdl_exec_prefix != x ; then
31850      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31851      if test x${SDL_CONFIG+set} != xset ; then
31852         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31853      fi
31854   fi
31855   if test x$sdl_prefix != x ; then
31856      sdl_args="$sdl_args --prefix=$sdl_prefix"
31857      if test x${SDL_CONFIG+set} != xset ; then
31858         SDL_CONFIG=$sdl_prefix/bin/sdl-config
31859      fi
31860   fi
31861
31862
31863   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31864   # Extract the first word of "sdl-config", so it can be a program name with args.
31865 set dummy sdl-config; ac_word=$2
31866 echo "$as_me:$LINENO: checking for $ac_word" >&5
31867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31868 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31869   echo $ECHO_N "(cached) $ECHO_C" >&6
31870 else
31871   case $SDL_CONFIG in
31872   [\\/]* | ?:[\\/]*)
31873   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31874   ;;
31875   *)
31876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31877 for as_dir in $PATH
31878 do
31879   IFS=$as_save_IFS
31880   test -z "$as_dir" && as_dir=.
31881   for ac_exec_ext in '' $ac_executable_extensions; do
31882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31883     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31885     break 2
31886   fi
31887 done
31888 done
31889
31890   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31891   ;;
31892 esac
31893 fi
31894 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31895
31896 if test -n "$SDL_CONFIG"; then
31897   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31898 echo "${ECHO_T}$SDL_CONFIG" >&6
31899 else
31900   echo "$as_me:$LINENO: result: no" >&5
31901 echo "${ECHO_T}no" >&6
31902 fi
31903
31904   min_sdl_version=1.2.0
31905   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31906 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
31907   no_sdl=""
31908   if test "$SDL_CONFIG" = "no" ; then
31909     no_sdl=yes
31910   else
31911     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31912     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31913
31914     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31915            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31916     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31917            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31918     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31919            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31920     if test "x$enable_sdltest" = "xyes" ; then
31921       ac_save_CFLAGS="$CFLAGS"
31922       ac_save_LIBS="$LIBS"
31923       CFLAGS="$CFLAGS $SDL_CFLAGS"
31924       LIBS="$LIBS $SDL_LIBS"
31925       rm -f conf.sdltest
31926       if test "$cross_compiling" = yes; then
31927   echo $ac_n "cross compiling; assumed OK... $ac_c"
31928 else
31929   cat >conftest.$ac_ext <<_ACEOF
31930 #line $LINENO "configure"
31931 /* confdefs.h.  */
31932 _ACEOF
31933 cat confdefs.h >>conftest.$ac_ext
31934 cat >>conftest.$ac_ext <<_ACEOF
31935 /* end confdefs.h.  */
31936
31937 #include <stdio.h>
31938 #include <stdlib.h>
31939 #include <string.h>
31940 #include "SDL.h"
31941
31942 char*
31943 my_strdup (char *str)
31944 {
31945   char *new_str;
31946
31947   if (str)
31948     {
31949       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31950       strcpy (new_str, str);
31951     }
31952   else
31953     new_str = NULL;
31954
31955   return new_str;
31956 }
31957
31958 int main (int argc, char *argv[])
31959 {
31960   int major, minor, micro;
31961   char *tmp_version;
31962
31963   /* This hangs on some systems (?)
31964   system ("touch conf.sdltest");
31965   */
31966   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31967
31968   /* HP/UX 9 (%@#!) writes to sscanf strings */
31969   tmp_version = my_strdup("$min_sdl_version");
31970   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31971      printf("%s, bad version string\n", "$min_sdl_version");
31972      exit(1);
31973    }
31974
31975    if (($sdl_major_version > major) ||
31976       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31977       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31978     {
31979       return 0;
31980     }
31981   else
31982     {
31983       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31984       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31985       printf("*** best to upgrade to the required version.\n");
31986       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31987       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31988       printf("*** config.cache before re-running configure\n");
31989       return 1;
31990     }
31991 }
31992
31993
31994 _ACEOF
31995 rm -f conftest$ac_exeext
31996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31997   (eval $ac_link) 2>&5
31998   ac_status=$?
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32002   (eval $ac_try) 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); }; }; then
32006   :
32007 else
32008   echo "$as_me: program exited with status $ac_status" >&5
32009 echo "$as_me: failed program was:" >&5
32010 sed 's/^/| /' conftest.$ac_ext >&5
32011
32012 ( exit $ac_status )
32013 no_sdl=yes
32014 fi
32015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32016 fi
32017        CFLAGS="$ac_save_CFLAGS"
32018        LIBS="$ac_save_LIBS"
32019      fi
32020   fi
32021   if test "x$no_sdl" = x ; then
32022      echo "$as_me:$LINENO: result: yes" >&5
32023 echo "${ECHO_T}yes" >&6
32024
32025                     EXTRALIBS_SDL="$SDL_LIBS"
32026                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
32027                     cat >>confdefs.h <<\_ACEOF
32028 #define wxUSE_LIBSDL 1
32029 _ACEOF
32030
32031
32032   else
32033      echo "$as_me:$LINENO: result: no" >&5
32034 echo "${ECHO_T}no" >&6
32035      if test "$SDL_CONFIG" = "no" ; then
32036        echo "*** The sdl-config script installed by SDL could not be found"
32037        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
32038        echo "*** your path, or set the SDL_CONFIG environment variable to the"
32039        echo "*** full path to sdl-config."
32040      else
32041        if test -f conf.sdltest ; then
32042         :
32043        else
32044           echo "*** Could not run SDL test program, checking why..."
32045           CFLAGS="$CFLAGS $SDL_CFLAGS"
32046           LIBS="$LIBS $SDL_LIBS"
32047           cat >conftest.$ac_ext <<_ACEOF
32048 #line $LINENO "configure"
32049 /* confdefs.h.  */
32050 _ACEOF
32051 cat confdefs.h >>conftest.$ac_ext
32052 cat >>conftest.$ac_ext <<_ACEOF
32053 /* end confdefs.h.  */
32054
32055 #include <stdio.h>
32056 #include "SDL.h"
32057
32058 int main(int argc, char *argv[])
32059 { return 0; }
32060 #undef  main
32061 #define main K_and_R_C_main
32062
32063 int
32064 main ()
32065 {
32066  return 0;
32067   ;
32068   return 0;
32069 }
32070 _ACEOF
32071 rm -f conftest.$ac_objext conftest$ac_exeext
32072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32073   (eval $ac_link) 2>&5
32074   ac_status=$?
32075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076   (exit $ac_status); } &&
32077          { ac_try='test -s conftest$ac_exeext'
32078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079   (eval $ac_try) 2>&5
32080   ac_status=$?
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); }; }; then
32083    echo "*** The test program compiled, but did not run. This usually means"
32084           echo "*** that the run-time linker is not finding SDL or finding the wrong"
32085           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
32086           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32087           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32088           echo "*** is required on your system"
32089           echo "***"
32090           echo "*** If you have an old version installed, it is best to remove it, although"
32091           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32092 else
32093   echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32095
32096  echo "*** The test program failed to compile or link. See the file config.log for the"
32097           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
32098           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
32099           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
32100 fi
32101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32102           CFLAGS="$ac_save_CFLAGS"
32103           LIBS="$ac_save_LIBS"
32104        fi
32105      fi
32106      SDL_CFLAGS=""
32107      SDL_LIBS=""
32108      wxUSE_LIBSDL="no"
32109   fi
32110
32111
32112   rm -f conf.sdltest
32113
32114       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
32115         WITH_PLUGIN_SDL=1
32116       fi
32117     fi
32118   fi
32119
32120   cat >>confdefs.h <<\_ACEOF
32121 #define wxUSE_SOUND 1
32122 _ACEOF
32123
32124   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
32125 fi
32126
32127 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32128   cat >>confdefs.h <<\_ACEOF
32129 #define wxUSE_CMDLINE_PARSER 1
32130 _ACEOF
32131
32132 fi
32133
32134 if test "$wxUSE_STOPWATCH" = "yes"; then
32135   cat >>confdefs.h <<\_ACEOF
32136 #define wxUSE_STOPWATCH 1
32137 _ACEOF
32138
32139 fi
32140
32141 if test "$wxUSE_DATETIME" = "yes"; then
32142   cat >>confdefs.h <<\_ACEOF
32143 #define wxUSE_DATETIME 1
32144 _ACEOF
32145
32146 fi
32147
32148 if test "$wxUSE_FILE" = "yes"; then
32149   cat >>confdefs.h <<\_ACEOF
32150 #define wxUSE_FILE 1
32151 _ACEOF
32152
32153 fi
32154
32155 if test "$wxUSE_FFILE" = "yes"; then
32156   cat >>confdefs.h <<\_ACEOF
32157 #define wxUSE_FFILE 1
32158 _ACEOF
32159
32160 fi
32161
32162 if test "$wxUSE_FILESYSTEM" = "yes"; then
32163   cat >>confdefs.h <<\_ACEOF
32164 #define wxUSE_FILESYSTEM 1
32165 _ACEOF
32166
32167 fi
32168
32169 if test "$wxUSE_FS_ZIP" = "yes"; then
32170   cat >>confdefs.h <<\_ACEOF
32171 #define wxUSE_FS_ZIP 1
32172 _ACEOF
32173
32174 fi
32175
32176 if test "$wxUSE_ZIPSTREAM" = "yes"; then
32177   cat >>confdefs.h <<\_ACEOF
32178 #define wxUSE_ZIPSTREAM 1
32179 _ACEOF
32180
32181 fi
32182
32183 if test "$wxUSE_GZSTREAM" = "yes"; then
32184   cat >>confdefs.h <<\_ACEOF
32185 #define wxUSE_GZSTREAM 1
32186 _ACEOF
32187
32188 fi
32189
32190 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32191   cat >>confdefs.h <<\_ACEOF
32192 #define wxUSE_ON_FATAL_EXCEPTION 1
32193 _ACEOF
32194
32195 fi
32196
32197 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32198   cat >>confdefs.h <<\_ACEOF
32199 #define wxUSE_SNGLINST_CHECKER 1
32200 _ACEOF
32201
32202 fi
32203
32204 if test "$wxUSE_BUSYINFO" = "yes"; then
32205   cat >>confdefs.h <<\_ACEOF
32206 #define wxUSE_BUSYINFO 1
32207 _ACEOF
32208
32209 fi
32210
32211 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32212   cat >>confdefs.h <<\_ACEOF
32213 #define wxUSE_STD_IOSTREAM 1
32214 _ACEOF
32215
32216 fi
32217
32218 if test "$wxUSE_TEXTBUFFER" = "yes"; then
32219     cat >>confdefs.h <<\_ACEOF
32220 #define wxUSE_TEXTBUFFER 1
32221 _ACEOF
32222
32223 fi
32224
32225 if test "$wxUSE_TEXTFILE" = "yes"; then
32226   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32227     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32228 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32229   else
32230     cat >>confdefs.h <<\_ACEOF
32231 #define wxUSE_TEXTFILE 1
32232 _ACEOF
32233
32234   fi
32235 fi
32236
32237 if test "$wxUSE_CONFIG" = "yes" ; then
32238   if test "$wxUSE_TEXTFILE" != "yes"; then
32239     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32240 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32241   else
32242     cat >>confdefs.h <<\_ACEOF
32243 #define wxUSE_CONFIG 1
32244 _ACEOF
32245
32246     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32247   fi
32248 fi
32249
32250 if test "$wxUSE_INTL" = "yes" ; then
32251   if test "$wxUSE_FILE" != "yes"; then
32252     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32253 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32254   else
32255     cat >>confdefs.h <<\_ACEOF
32256 #define wxUSE_INTL 1
32257 _ACEOF
32258
32259     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32260     GUIDIST="$GUIDIST INTL_DIST"
32261   fi
32262 fi
32263
32264 if test "$wxUSE_LOG" = "yes"; then
32265   cat >>confdefs.h <<\_ACEOF
32266 #define wxUSE_LOG 1
32267 _ACEOF
32268
32269
32270     if test "$wxUSE_LOGGUI" = "yes"; then
32271       cat >>confdefs.h <<\_ACEOF
32272 #define wxUSE_LOGGUI 1
32273 _ACEOF
32274
32275     fi
32276
32277     if test "$wxUSE_LOGWINDOW" = "yes"; then
32278       cat >>confdefs.h <<\_ACEOF
32279 #define wxUSE_LOGWINDOW 1
32280 _ACEOF
32281
32282     fi
32283
32284     if test "$wxUSE_LOGDIALOG" = "yes"; then
32285       cat >>confdefs.h <<\_ACEOF
32286 #define wxUSE_LOG_DIALOG 1
32287 _ACEOF
32288
32289     fi
32290 fi
32291
32292 if test "$wxUSE_LONGLONG" = "yes"; then
32293   cat >>confdefs.h <<\_ACEOF
32294 #define wxUSE_LONGLONG 1
32295 _ACEOF
32296
32297 fi
32298
32299 if test "$wxUSE_GEOMETRY" = "yes"; then
32300   cat >>confdefs.h <<\_ACEOF
32301 #define wxUSE_GEOMETRY 1
32302 _ACEOF
32303
32304 fi
32305
32306 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32307   cat >>confdefs.h <<\_ACEOF
32308 #define wxUSE_DIALUP_MANAGER 1
32309 _ACEOF
32310
32311   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32312 fi
32313
32314 if test "$wxUSE_STREAMS" = "yes" ; then
32315   cat >>confdefs.h <<\_ACEOF
32316 #define wxUSE_STREAMS 1
32317 _ACEOF
32318
32319 fi
32320
32321
32322 if test "$wxUSE_DATETIME" = "yes"; then
32323
32324 for ac_func in strptime
32325 do
32326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32327 echo "$as_me:$LINENO: checking for $ac_func" >&5
32328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32329 if eval "test \"\${$as_ac_var+set}\" = set"; then
32330   echo $ECHO_N "(cached) $ECHO_C" >&6
32331 else
32332   cat >conftest.$ac_ext <<_ACEOF
32333 #line $LINENO "configure"
32334 /* confdefs.h.  */
32335 _ACEOF
32336 cat confdefs.h >>conftest.$ac_ext
32337 cat >>conftest.$ac_ext <<_ACEOF
32338 /* end confdefs.h.  */
32339 /* System header to define __stub macros and hopefully few prototypes,
32340     which can conflict with char $ac_func (); below.
32341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32342     <limits.h> exists even on freestanding compilers.  */
32343 #ifdef __STDC__
32344 # include <limits.h>
32345 #else
32346 # include <assert.h>
32347 #endif
32348 /* Override any gcc2 internal prototype to avoid an error.  */
32349 #ifdef __cplusplus
32350 extern "C"
32351 {
32352 #endif
32353 /* We use char because int might match the return type of a gcc2
32354    builtin and then its argument prototype would still apply.  */
32355 char $ac_func ();
32356 /* The GNU C library defines this for functions which it implements
32357     to always fail with ENOSYS.  Some functions are actually named
32358     something starting with __ and the normal name is an alias.  */
32359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32360 choke me
32361 #else
32362 char (*f) () = $ac_func;
32363 #endif
32364 #ifdef __cplusplus
32365 }
32366 #endif
32367
32368 int
32369 main ()
32370 {
32371 return f != $ac_func;
32372   ;
32373   return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest.$ac_objext conftest$ac_exeext
32377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32378   (eval $ac_link) 2>&5
32379   ac_status=$?
32380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381   (exit $ac_status); } &&
32382          { ac_try='test -s conftest$ac_exeext'
32383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384   (eval $ac_try) 2>&5
32385   ac_status=$?
32386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387   (exit $ac_status); }; }; then
32388   eval "$as_ac_var=yes"
32389 else
32390   echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32392
32393 eval "$as_ac_var=no"
32394 fi
32395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32396 fi
32397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32399 if test `eval echo '${'$as_ac_var'}'` = yes; then
32400   cat >>confdefs.h <<_ACEOF
32401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32402 _ACEOF
32403
32404 fi
32405 done
32406
32407
32408             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
32409 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
32410 if test "${wx_cv_var_timezone+set}" = set; then
32411   echo $ECHO_N "(cached) $ECHO_C" >&6
32412 else
32413
32414                         cat >conftest.$ac_ext <<_ACEOF
32415 #line $LINENO "configure"
32416 /* confdefs.h.  */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h.  */
32421
32422                                 #include <time.h>
32423
32424 int
32425 main ()
32426 {
32427
32428                                 int tz;
32429                                 tz = timezone;
32430
32431   ;
32432   return 0;
32433 }
32434 _ACEOF
32435 rm -f conftest.$ac_objext
32436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32437   (eval $ac_compile) 2>&5
32438   ac_status=$?
32439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440   (exit $ac_status); } &&
32441          { ac_try='test -s conftest.$ac_objext'
32442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443   (eval $ac_try) 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; }; then
32447
32448                                 wx_cv_var_timezone=timezone
32449
32450 else
32451   echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32453
32454
32455                                 cat >conftest.$ac_ext <<_ACEOF
32456 #line $LINENO "configure"
32457 /* confdefs.h.  */
32458 _ACEOF
32459 cat confdefs.h >>conftest.$ac_ext
32460 cat >>conftest.$ac_ext <<_ACEOF
32461 /* end confdefs.h.  */
32462
32463                                         #include <time.h>
32464
32465 int
32466 main ()
32467 {
32468
32469                                         int tz;
32470                                         tz = _timezone;
32471
32472   ;
32473   return 0;
32474 }
32475 _ACEOF
32476 rm -f conftest.$ac_objext
32477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32478   (eval $ac_compile) 2>&5
32479   ac_status=$?
32480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481   (exit $ac_status); } &&
32482          { ac_try='test -s conftest.$ac_objext'
32483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32484   (eval $ac_try) 2>&5
32485   ac_status=$?
32486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487   (exit $ac_status); }; }; then
32488
32489                                         wx_cv_var_timezone=_timezone
32490
32491 else
32492   echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32494
32495
32496                                         cat >conftest.$ac_ext <<_ACEOF
32497 #line $LINENO "configure"
32498 /* confdefs.h.  */
32499 _ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h.  */
32503
32504                                                 #include <time.h>
32505
32506 int
32507 main ()
32508 {
32509
32510                                                 int tz;
32511                                                 tz = __timezone;
32512
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext
32518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32519   (eval $ac_compile) 2>&5
32520   ac_status=$?
32521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); } &&
32523          { ac_try='test -s conftest.$ac_objext'
32524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32525   (eval $ac_try) 2>&5
32526   ac_status=$?
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); }; }; then
32529
32530                                                 wx_cv_var_timezone=__timezone
32531
32532 else
32533   echo "$as_me: failed program was:" >&5
32534 sed 's/^/| /' conftest.$ac_ext >&5
32535
32536
32537                                                 if test "$USE_DOS" = 0 ; then
32538                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
32539 echo "$as_me: WARNING: no timezone variable" >&2;}
32540                                                 fi
32541
32542
32543 fi
32544 rm -f conftest.$ac_objext conftest.$ac_ext
32545
32546
32547 fi
32548 rm -f conftest.$ac_objext conftest.$ac_ext
32549
32550
32551 fi
32552 rm -f conftest.$ac_objext conftest.$ac_ext
32553
32554
32555 fi
32556 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
32557 echo "${ECHO_T}$wx_cv_var_timezone" >&6
32558
32559         if test "x$wx_cv_var_timezone" != x ; then
32560         cat >>confdefs.h <<_ACEOF
32561 #define WX_TIMEZONE $wx_cv_var_timezone
32562 _ACEOF
32563
32564     fi
32565
32566
32567 for ac_func in localtime
32568 do
32569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32570 echo "$as_me:$LINENO: checking for $ac_func" >&5
32571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32572 if eval "test \"\${$as_ac_var+set}\" = set"; then
32573   echo $ECHO_N "(cached) $ECHO_C" >&6
32574 else
32575   cat >conftest.$ac_ext <<_ACEOF
32576 #line $LINENO "configure"
32577 /* confdefs.h.  */
32578 _ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h.  */
32582 /* System header to define __stub macros and hopefully few prototypes,
32583     which can conflict with char $ac_func (); below.
32584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32585     <limits.h> exists even on freestanding compilers.  */
32586 #ifdef __STDC__
32587 # include <limits.h>
32588 #else
32589 # include <assert.h>
32590 #endif
32591 /* Override any gcc2 internal prototype to avoid an error.  */
32592 #ifdef __cplusplus
32593 extern "C"
32594 {
32595 #endif
32596 /* We use char because int might match the return type of a gcc2
32597    builtin and then its argument prototype would still apply.  */
32598 char $ac_func ();
32599 /* The GNU C library defines this for functions which it implements
32600     to always fail with ENOSYS.  Some functions are actually named
32601     something starting with __ and the normal name is an alias.  */
32602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32603 choke me
32604 #else
32605 char (*f) () = $ac_func;
32606 #endif
32607 #ifdef __cplusplus
32608 }
32609 #endif
32610
32611 int
32612 main ()
32613 {
32614 return f != $ac_func;
32615   ;
32616   return 0;
32617 }
32618 _ACEOF
32619 rm -f conftest.$ac_objext conftest$ac_exeext
32620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32621   (eval $ac_link) 2>&5
32622   ac_status=$?
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); } &&
32625          { ac_try='test -s conftest$ac_exeext'
32626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627   (eval $ac_try) 2>&5
32628   ac_status=$?
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); }; }; then
32631   eval "$as_ac_var=yes"
32632 else
32633   echo "$as_me: failed program was:" >&5
32634 sed 's/^/| /' conftest.$ac_ext >&5
32635
32636 eval "$as_ac_var=no"
32637 fi
32638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32639 fi
32640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32642 if test `eval echo '${'$as_ac_var'}'` = yes; then
32643   cat >>confdefs.h <<_ACEOF
32644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32645 _ACEOF
32646
32647 fi
32648 done
32649
32650
32651     if test "$ac_cv_func_localtime" = "yes"; then
32652         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
32653 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
32654 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
32655   echo $ECHO_N "(cached) $ECHO_C" >&6
32656 else
32657
32658             cat >conftest.$ac_ext <<_ACEOF
32659 #line $LINENO "configure"
32660 /* confdefs.h.  */
32661 _ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h.  */
32665
32666                     #include <time.h>
32667
32668 int
32669 main ()
32670 {
32671
32672                     struct tm tm;
32673                     tm.tm_gmtoff++;
32674
32675   ;
32676   return 0;
32677 }
32678 _ACEOF
32679 rm -f conftest.$ac_objext
32680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32681   (eval $ac_compile) 2>&5
32682   ac_status=$?
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); } &&
32685          { ac_try='test -s conftest.$ac_objext'
32686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32687   (eval $ac_try) 2>&5
32688   ac_status=$?
32689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690   (exit $ac_status); }; }; then
32691
32692                     wx_cv_struct_tm_has_gmtoff=yes
32693
32694 else
32695   echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698 wx_cv_struct_tm_has_gmtoff=no
32699
32700 fi
32701 rm -f conftest.$ac_objext conftest.$ac_ext
32702
32703 fi
32704 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
32705 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
32706     fi
32707
32708     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
32709         cat >>confdefs.h <<\_ACEOF
32710 #define WX_GMTOFF_IN_TM 1
32711 _ACEOF
32712
32713     fi
32714
32715
32716
32717 for ac_func in gettimeofday ftime
32718 do
32719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32720 echo "$as_me:$LINENO: checking for $ac_func" >&5
32721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32722 if eval "test \"\${$as_ac_var+set}\" = set"; then
32723   echo $ECHO_N "(cached) $ECHO_C" >&6
32724 else
32725   cat >conftest.$ac_ext <<_ACEOF
32726 #line $LINENO "configure"
32727 /* confdefs.h.  */
32728 _ACEOF
32729 cat confdefs.h >>conftest.$ac_ext
32730 cat >>conftest.$ac_ext <<_ACEOF
32731 /* end confdefs.h.  */
32732 /* System header to define __stub macros and hopefully few prototypes,
32733     which can conflict with char $ac_func (); below.
32734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32735     <limits.h> exists even on freestanding compilers.  */
32736 #ifdef __STDC__
32737 # include <limits.h>
32738 #else
32739 # include <assert.h>
32740 #endif
32741 /* Override any gcc2 internal prototype to avoid an error.  */
32742 #ifdef __cplusplus
32743 extern "C"
32744 {
32745 #endif
32746 /* We use char because int might match the return type of a gcc2
32747    builtin and then its argument prototype would still apply.  */
32748 char $ac_func ();
32749 /* The GNU C library defines this for functions which it implements
32750     to always fail with ENOSYS.  Some functions are actually named
32751     something starting with __ and the normal name is an alias.  */
32752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32753 choke me
32754 #else
32755 char (*f) () = $ac_func;
32756 #endif
32757 #ifdef __cplusplus
32758 }
32759 #endif
32760
32761 int
32762 main ()
32763 {
32764 return f != $ac_func;
32765   ;
32766   return 0;
32767 }
32768 _ACEOF
32769 rm -f conftest.$ac_objext conftest$ac_exeext
32770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32771   (eval $ac_link) 2>&5
32772   ac_status=$?
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); } &&
32775          { ac_try='test -s conftest$ac_exeext'
32776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777   (eval $ac_try) 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   eval "$as_ac_var=yes"
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786 eval "$as_ac_var=no"
32787 fi
32788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32789 fi
32790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32792 if test `eval echo '${'$as_ac_var'}'` = yes; then
32793   cat >>confdefs.h <<_ACEOF
32794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32795 _ACEOF
32796  break
32797 fi
32798 done
32799
32800
32801     if test "$ac_cv_func_gettimeofday" = "yes"; then
32802         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
32803 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
32804 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
32805   echo $ECHO_N "(cached) $ECHO_C" >&6
32806 else
32807
32808
32809
32810             ac_ext=cc
32811 ac_cpp='$CXXCPP $CPPFLAGS'
32812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32815
32816
32817             cat >conftest.$ac_ext <<_ACEOF
32818 #line $LINENO "configure"
32819 /* confdefs.h.  */
32820 _ACEOF
32821 cat confdefs.h >>conftest.$ac_ext
32822 cat >>conftest.$ac_ext <<_ACEOF
32823 /* end confdefs.h.  */
32824
32825                     #include <sys/time.h>
32826                     #include <unistd.h>
32827
32828 int
32829 main ()
32830 {
32831
32832                     struct timeval tv;
32833                     gettimeofday(&tv, NULL);
32834
32835   ;
32836   return 0;
32837 }
32838 _ACEOF
32839 rm -f conftest.$ac_objext
32840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32841   (eval $ac_compile) 2>&5
32842   ac_status=$?
32843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844   (exit $ac_status); } &&
32845          { ac_try='test -s conftest.$ac_objext'
32846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32847   (eval $ac_try) 2>&5
32848   ac_status=$?
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); }; }; then
32851   wx_cv_func_gettimeofday_has_2_args=yes
32852 else
32853   echo "$as_me: failed program was:" >&5
32854 sed 's/^/| /' conftest.$ac_ext >&5
32855
32856 cat >conftest.$ac_ext <<_ACEOF
32857 #line $LINENO "configure"
32858 /* confdefs.h.  */
32859 _ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h.  */
32863
32864                         #include <sys/time.h>
32865                         #include <unistd.h>
32866
32867 int
32868 main ()
32869 {
32870
32871                         struct timeval tv;
32872                         gettimeofday(&tv);
32873
32874   ;
32875   return 0;
32876 }
32877 _ACEOF
32878 rm -f conftest.$ac_objext
32879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32880   (eval $ac_compile) 2>&5
32881   ac_status=$?
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); } &&
32884          { ac_try='test -s conftest.$ac_objext'
32885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886   (eval $ac_try) 2>&5
32887   ac_status=$?
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; }; then
32890   wx_cv_func_gettimeofday_has_2_args=no
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895
32896                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
32897 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
32898                         wx_cv_func_gettimeofday_has_2_args=unknown
32899
32900
32901 fi
32902 rm -f conftest.$ac_objext conftest.$ac_ext
32903
32904 fi
32905 rm -f conftest.$ac_objext conftest.$ac_ext
32906             ac_ext=c
32907 ac_cpp='$CPP $CPPFLAGS'
32908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32911
32912
32913 fi
32914 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
32915 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
32916
32917         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
32918             cat >>confdefs.h <<\_ACEOF
32919 #define WX_GETTIMEOFDAY_NO_TZ 1
32920 _ACEOF
32921
32922         fi
32923     fi
32924
32925     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
32926 fi
32927
32928
32929 if test "$wxUSE_SOCKETS" = "yes"; then
32930     if test "$wxUSE_MGL" = "1"; then
32931         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
32932 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
32933         wxUSE_SOCKETS="no"
32934     fi
32935 fi
32936
32937 if test "$wxUSE_SOCKETS" = "yes"; then
32938         if test "$TOOLKIT" != "MSW"; then
32939                 echo "$as_me:$LINENO: checking for socket" >&5
32940 echo $ECHO_N "checking for socket... $ECHO_C" >&6
32941 if test "${ac_cv_func_socket+set}" = set; then
32942   echo $ECHO_N "(cached) $ECHO_C" >&6
32943 else
32944   cat >conftest.$ac_ext <<_ACEOF
32945 #line $LINENO "configure"
32946 /* confdefs.h.  */
32947 _ACEOF
32948 cat confdefs.h >>conftest.$ac_ext
32949 cat >>conftest.$ac_ext <<_ACEOF
32950 /* end confdefs.h.  */
32951 /* System header to define __stub macros and hopefully few prototypes,
32952     which can conflict with char socket (); below.
32953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32954     <limits.h> exists even on freestanding compilers.  */
32955 #ifdef __STDC__
32956 # include <limits.h>
32957 #else
32958 # include <assert.h>
32959 #endif
32960 /* Override any gcc2 internal prototype to avoid an error.  */
32961 #ifdef __cplusplus
32962 extern "C"
32963 {
32964 #endif
32965 /* We use char because int might match the return type of a gcc2
32966    builtin and then its argument prototype would still apply.  */
32967 char socket ();
32968 /* The GNU C library defines this for functions which it implements
32969     to always fail with ENOSYS.  Some functions are actually named
32970     something starting with __ and the normal name is an alias.  */
32971 #if defined (__stub_socket) || defined (__stub___socket)
32972 choke me
32973 #else
32974 char (*f) () = socket;
32975 #endif
32976 #ifdef __cplusplus
32977 }
32978 #endif
32979
32980 int
32981 main ()
32982 {
32983 return f != socket;
32984   ;
32985   return 0;
32986 }
32987 _ACEOF
32988 rm -f conftest.$ac_objext conftest$ac_exeext
32989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32990   (eval $ac_link) 2>&5
32991   ac_status=$?
32992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993   (exit $ac_status); } &&
32994          { ac_try='test -s conftest$ac_exeext'
32995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32996   (eval $ac_try) 2>&5
32997   ac_status=$?
32998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999   (exit $ac_status); }; }; then
33000   ac_cv_func_socket=yes
33001 else
33002   echo "$as_me: failed program was:" >&5
33003 sed 's/^/| /' conftest.$ac_ext >&5
33004
33005 ac_cv_func_socket=no
33006 fi
33007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33008 fi
33009 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33010 echo "${ECHO_T}$ac_cv_func_socket" >&6
33011 if test $ac_cv_func_socket = yes; then
33012   :
33013 else
33014
33015                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
33016 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33017 if test "${ac_cv_lib_socket_socket+set}" = set; then
33018   echo $ECHO_N "(cached) $ECHO_C" >&6
33019 else
33020   ac_check_lib_save_LIBS=$LIBS
33021 LIBS="-lsocket  $LIBS"
33022 cat >conftest.$ac_ext <<_ACEOF
33023 #line $LINENO "configure"
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029
33030 /* Override any gcc2 internal prototype to avoid an error.  */
33031 #ifdef __cplusplus
33032 extern "C"
33033 #endif
33034 /* We use char because int might match the return type of a gcc2
33035    builtin and then its argument prototype would still apply.  */
33036 char socket ();
33037 int
33038 main ()
33039 {
33040 socket ();
33041   ;
33042   return 0;
33043 }
33044 _ACEOF
33045 rm -f conftest.$ac_objext conftest$ac_exeext
33046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33047   (eval $ac_link) 2>&5
33048   ac_status=$?
33049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050   (exit $ac_status); } &&
33051          { ac_try='test -s conftest$ac_exeext'
33052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053   (eval $ac_try) 2>&5
33054   ac_status=$?
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); }; }; then
33057   ac_cv_lib_socket_socket=yes
33058 else
33059   echo "$as_me: failed program was:" >&5
33060 sed 's/^/| /' conftest.$ac_ext >&5
33061
33062 ac_cv_lib_socket_socket=no
33063 fi
33064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33065 LIBS=$ac_check_lib_save_LIBS
33066 fi
33067 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33068 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33069 if test $ac_cv_lib_socket_socket = yes; then
33070   if test "$INET_LINK" != " -lsocket"; then
33071                         INET_LINK="$INET_LINK -lsocket"
33072                     fi
33073 else
33074
33075                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
33076 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
33077                         wxUSE_SOCKETS=no
33078
33079
33080 fi
33081
33082
33083
33084 fi
33085
33086     fi
33087 fi
33088
33089 if test "$wxUSE_SOCKETS" = "yes" ; then
33090                 if test "$TOOLKIT" != "MSW"; then
33091                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33092 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33093 if test "${wx_cv_type_getsockname3+set}" = set; then
33094   echo $ECHO_N "(cached) $ECHO_C" >&6
33095 else
33096
33097                 cat >conftest.$ac_ext <<_ACEOF
33098 #line $LINENO "configure"
33099 /* confdefs.h.  */
33100 _ACEOF
33101 cat confdefs.h >>conftest.$ac_ext
33102 cat >>conftest.$ac_ext <<_ACEOF
33103 /* end confdefs.h.  */
33104
33105                         #include <sys/types.h>
33106                         #include <sys/socket.h>
33107
33108 int
33109 main ()
33110 {
33111
33112                         socklen_t len;
33113                         getsockname(0, 0, &len);
33114
33115   ;
33116   return 0;
33117 }
33118 _ACEOF
33119 rm -f conftest.$ac_objext
33120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33121   (eval $ac_compile) 2>&5
33122   ac_status=$?
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); } &&
33125          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33131   wx_cv_type_getsockname3=socklen_t
33132 else
33133   echo "$as_me: failed program was:" >&5
33134 sed 's/^/| /' conftest.$ac_ext >&5
33135
33136
33137                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
33138                         if test "$GCC" = yes ; then
33139                             CFLAGS="$CFLAGS -Werror"
33140                         fi
33141
33142                         cat >conftest.$ac_ext <<_ACEOF
33143 #line $LINENO "configure"
33144 /* confdefs.h.  */
33145 _ACEOF
33146 cat confdefs.h >>conftest.$ac_ext
33147 cat >>conftest.$ac_ext <<_ACEOF
33148 /* end confdefs.h.  */
33149
33150                                 #include <sys/types.h>
33151                                 #include <sys/socket.h>
33152
33153 int
33154 main ()
33155 {
33156
33157                                 size_t len;
33158                                 getsockname(0, 0, &len);
33159
33160   ;
33161   return 0;
33162 }
33163 _ACEOF
33164 rm -f conftest.$ac_objext
33165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33166   (eval $ac_compile) 2>&5
33167   ac_status=$?
33168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169   (exit $ac_status); } &&
33170          { ac_try='test -s conftest.$ac_objext'
33171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172   (eval $ac_try) 2>&5
33173   ac_status=$?
33174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175   (exit $ac_status); }; }; then
33176   wx_cv_type_getsockname3=size_t
33177 else
33178   echo "$as_me: failed program was:" >&5
33179 sed 's/^/| /' conftest.$ac_ext >&5
33180
33181 cat >conftest.$ac_ext <<_ACEOF
33182 #line $LINENO "configure"
33183 /* confdefs.h.  */
33184 _ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h.  */
33188
33189                                     #include <sys/types.h>
33190                                     #include <sys/socket.h>
33191
33192 int
33193 main ()
33194 {
33195
33196                                     int len;
33197                                     getsockname(0, 0, &len);
33198
33199   ;
33200   return 0;
33201 }
33202 _ACEOF
33203 rm -f conftest.$ac_objext
33204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33205   (eval $ac_compile) 2>&5
33206   ac_status=$?
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } &&
33209          { ac_try='test -s conftest.$ac_objext'
33210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211   (eval $ac_try) 2>&5
33212   ac_status=$?
33213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214   (exit $ac_status); }; }; then
33215   wx_cv_type_getsockname3=int
33216 else
33217   echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33219
33220 wx_cv_type_getsockname3=unknown
33221
33222 fi
33223 rm -f conftest.$ac_objext conftest.$ac_ext
33224
33225 fi
33226 rm -f conftest.$ac_objext conftest.$ac_ext
33227
33228                         CFLAGS="$CFLAGS_OLD"
33229
33230
33231 fi
33232 rm -f conftest.$ac_objext conftest.$ac_ext
33233
33234 fi
33235 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
33236 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
33237
33238         if test "$wx_cv_type_getsockname3" = "unknown"; then
33239             wxUSE_SOCKETS=no
33240             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
33241 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
33242         else
33243             cat >>confdefs.h <<_ACEOF
33244 #define SOCKLEN_T $wx_cv_type_getsockname3
33245 _ACEOF
33246
33247         fi
33248     fi
33249 fi
33250
33251 if test "$wxUSE_SOCKETS" = "yes" ; then
33252     cat >>confdefs.h <<\_ACEOF
33253 #define wxUSE_SOCKETS 1
33254 _ACEOF
33255
33256     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
33257 fi
33258
33259 if test "$wxUSE_PROTOCOL" = "yes"; then
33260     if test "$wxUSE_SOCKETS" != "yes"; then
33261         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
33262 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
33263         wxUSE_PROTOCOL=no
33264     fi
33265 fi
33266
33267 if test "$wxUSE_PROTOCOL" = "yes"; then
33268     cat >>confdefs.h <<\_ACEOF
33269 #define wxUSE_PROTOCOL 1
33270 _ACEOF
33271
33272
33273     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
33274         cat >>confdefs.h <<\_ACEOF
33275 #define wxUSE_PROTOCOL_HTTP 1
33276 _ACEOF
33277
33278     fi
33279     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
33280         cat >>confdefs.h <<\_ACEOF
33281 #define wxUSE_PROTOCOL_FTP 1
33282 _ACEOF
33283
33284     fi
33285     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
33286         cat >>confdefs.h <<\_ACEOF
33287 #define wxUSE_PROTOCOL_FILE 1
33288 _ACEOF
33289
33290     fi
33291 else
33292     if test "$wxUSE_FS_INET" = "yes"; then
33293         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
33294 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
33295         wxUSE_FS_INET="no"
33296     fi
33297 fi
33298
33299 if test "$wxUSE_URL" = "yes"; then
33300     if test "$wxUSE_PROTOCOL" != "yes"; then
33301         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
33302 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
33303         wxUSE_URL=no
33304     fi
33305     if test "$wxUSE_URL" = "yes"; then
33306         cat >>confdefs.h <<\_ACEOF
33307 #define wxUSE_URL 1
33308 _ACEOF
33309
33310     fi
33311 fi
33312
33313 if test "$wxUSE_FS_INET" = "yes"; then
33314   cat >>confdefs.h <<\_ACEOF
33315 #define wxUSE_FS_INET 1
33316 _ACEOF
33317
33318 fi
33319
33320
33321 if test "$wxUSE_GUI" = "yes"; then
33322
33323     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
33324         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
33325 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
33326         wxUSE_JOYSTICK=no
33327      fi
33328
33329          if test "$TOOLKIT" != "MSW"; then
33330         if test "$wxUSE_JOYSTICK" = "yes"; then
33331
33332 for ac_header in linux/joystick.h
33333 do
33334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33336   echo "$as_me:$LINENO: checking for $ac_header" >&5
33337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 fi
33341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33343 else
33344   # Is the header compilable?
33345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33347 cat >conftest.$ac_ext <<_ACEOF
33348 #line $LINENO "configure"
33349 /* confdefs.h.  */
33350 _ACEOF
33351 cat confdefs.h >>conftest.$ac_ext
33352 cat >>conftest.$ac_ext <<_ACEOF
33353 /* end confdefs.h.  */
33354 $ac_includes_default
33355 #include <$ac_header>
33356 _ACEOF
33357 rm -f conftest.$ac_objext
33358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33359   (eval $ac_compile) 2>&5
33360   ac_status=$?
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); } &&
33363          { ac_try='test -s conftest.$ac_objext'
33364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365   (eval $ac_try) 2>&5
33366   ac_status=$?
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); }; }; then
33369   ac_header_compiler=yes
33370 else
33371   echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33373
33374 ac_header_compiler=no
33375 fi
33376 rm -f conftest.$ac_objext conftest.$ac_ext
33377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33378 echo "${ECHO_T}$ac_header_compiler" >&6
33379
33380 # Is the header present?
33381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33383 cat >conftest.$ac_ext <<_ACEOF
33384 #line $LINENO "configure"
33385 /* confdefs.h.  */
33386 _ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h.  */
33390 #include <$ac_header>
33391 _ACEOF
33392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33394   ac_status=$?
33395   grep -v '^ *+' conftest.er1 >conftest.err
33396   rm -f conftest.er1
33397   cat conftest.err >&5
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); } >/dev/null; then
33400   if test -s conftest.err; then
33401     ac_cpp_err=$ac_c_preproc_warn_flag
33402   else
33403     ac_cpp_err=
33404   fi
33405 else
33406   ac_cpp_err=yes
33407 fi
33408 if test -z "$ac_cpp_err"; then
33409   ac_header_preproc=yes
33410 else
33411   echo "$as_me: failed program was:" >&5
33412 sed 's/^/| /' conftest.$ac_ext >&5
33413
33414   ac_header_preproc=no
33415 fi
33416 rm -f conftest.err conftest.$ac_ext
33417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33418 echo "${ECHO_T}$ac_header_preproc" >&6
33419
33420 # So?  What about this header?
33421 case $ac_header_compiler:$ac_header_preproc in
33422   yes:no )
33423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33427     (
33428       cat <<\_ASBOX
33429 ## ------------------------------------ ##
33430 ## Report this to bug-autoconf@gnu.org. ##
33431 ## ------------------------------------ ##
33432 _ASBOX
33433     ) |
33434       sed "s/^/$as_me: WARNING:     /" >&2
33435     ;;
33436   no:yes )
33437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33439     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33443     (
33444       cat <<\_ASBOX
33445 ## ------------------------------------ ##
33446 ## Report this to bug-autoconf@gnu.org. ##
33447 ## ------------------------------------ ##
33448 _ASBOX
33449     ) |
33450       sed "s/^/$as_me: WARNING:     /" >&2
33451     ;;
33452 esac
33453 echo "$as_me:$LINENO: checking for $ac_header" >&5
33454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33456   echo $ECHO_N "(cached) $ECHO_C" >&6
33457 else
33458   eval "$as_ac_Header=$ac_header_preproc"
33459 fi
33460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33462
33463 fi
33464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33465   cat >>confdefs.h <<_ACEOF
33466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33467 _ACEOF
33468
33469 fi
33470
33471 done
33472
33473             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
33474                 wxUSE_JOYSTICK=no
33475                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
33476 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
33477             fi
33478         fi
33479     fi
33480
33481     if test "$wxUSE_JOYSTICK" = "yes"; then
33482         cat >>confdefs.h <<\_ACEOF
33483 #define wxUSE_JOYSTICK 1
33484 _ACEOF
33485
33486         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
33487     fi
33488 fi
33489
33490
33491
33492
33493 if test "$wxUSE_FONTMAP" = "yes" ; then
33494   cat >>confdefs.h <<\_ACEOF
33495 #define wxUSE_FONTMAP 1
33496 _ACEOF
33497
33498 fi
33499
33500 if test "$wxUSE_UNICODE" = "yes" ; then
33501   cat >>confdefs.h <<\_ACEOF
33502 #define wxUSE_UNICODE 1
33503 _ACEOF
33504
33505
33506   if test "$USE_WIN32" != 1; then
33507       wxUSE_UNICODE_MSLU=no
33508   fi
33509
33510   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
33511         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
33512 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
33513 if test "${ac_cv_lib_unicows_main+set}" = set; then
33514   echo $ECHO_N "(cached) $ECHO_C" >&6
33515 else
33516   ac_check_lib_save_LIBS=$LIBS
33517 LIBS="-lunicows  $LIBS"
33518 cat >conftest.$ac_ext <<_ACEOF
33519 #line $LINENO "configure"
33520 /* confdefs.h.  */
33521 _ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h.  */
33525
33526
33527 int
33528 main ()
33529 {
33530 main ();
33531   ;
33532   return 0;
33533 }
33534 _ACEOF
33535 rm -f conftest.$ac_objext conftest$ac_exeext
33536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33537   (eval $ac_link) 2>&5
33538   ac_status=$?
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); } &&
33541          { ac_try='test -s conftest$ac_exeext'
33542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543   (eval $ac_try) 2>&5
33544   ac_status=$?
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); }; }; then
33547   ac_cv_lib_unicows_main=yes
33548 else
33549   echo "$as_me: failed program was:" >&5
33550 sed 's/^/| /' conftest.$ac_ext >&5
33551
33552 ac_cv_lib_unicows_main=no
33553 fi
33554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33555 LIBS=$ac_check_lib_save_LIBS
33556 fi
33557 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
33558 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
33559 if test $ac_cv_lib_unicows_main = yes; then
33560
33561                 cat >>confdefs.h <<\_ACEOF
33562 #define wxUSE_UNICODE_MSLU 1
33563 _ACEOF
33564
33565
33566 else
33567
33568                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33569                              Applications will only run on Windows NT/2000/XP!" >&5
33570 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33571                              Applications will only run on Windows NT/2000/XP!" >&2;}
33572                 wxUSE_UNICODE_MSLU=no
33573
33574 fi
33575
33576     fi
33577 fi
33578
33579 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
33580   cat >>confdefs.h <<\_ACEOF
33581 #define wxUSE_EXPERIMENTAL_PRINTF 1
33582 _ACEOF
33583
33584 fi
33585
33586
33587 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
33588   cat >>confdefs.h <<\_ACEOF
33589 #define wxUSE_POSTSCRIPT 1
33590 _ACEOF
33591
33592 fi
33593
33594 cat >>confdefs.h <<\_ACEOF
33595 #define wxUSE_AFM_FOR_POSTSCRIPT 1
33596 _ACEOF
33597
33598
33599 cat >>confdefs.h <<\_ACEOF
33600 #define wxUSE_NORMALIZED_PS_FONTS 1
33601 _ACEOF
33602
33603
33604
33605 if test "$wxUSE_CONSTRAINTS" = "yes"; then
33606     cat >>confdefs.h <<\_ACEOF
33607 #define wxUSE_CONSTRAINTS 1
33608 _ACEOF
33609
33610     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
33611 fi
33612
33613 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33614    cat >>confdefs.h <<\_ACEOF
33615 #define wxUSE_MDI_ARCHITECTURE 1
33616 _ACEOF
33617
33618    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
33619 fi
33620
33621 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
33622     cat >>confdefs.h <<\_ACEOF
33623 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
33624 _ACEOF
33625
33626     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
33627     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33628         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
33629     fi
33630 fi
33631
33632 if test "$wxUSE_HELP" = "yes"; then
33633     cat >>confdefs.h <<\_ACEOF
33634 #define wxUSE_HELP 1
33635 _ACEOF
33636
33637     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
33638
33639     if test "$wxUSE_MSW" = 1; then
33640       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
33641         cat >>confdefs.h <<\_ACEOF
33642 #define wxUSE_MS_HTML_HELP 1
33643 _ACEOF
33644
33645       fi
33646     fi
33647
33648     if test "$wxUSE_WXHTML_HELP" = "yes"; then
33649       if test "$wxUSE_HTML" = "yes"; then
33650         cat >>confdefs.h <<\_ACEOF
33651 #define wxUSE_WXHTML_HELP 1
33652 _ACEOF
33653
33654       else
33655         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
33656 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
33657         wxUSE_WXHTML_HELP=no
33658       fi
33659     fi
33660 fi
33661
33662 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
33663     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33664         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
33665 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
33666     else
33667         cat >>confdefs.h <<\_ACEOF
33668 #define wxUSE_PRINTING_ARCHITECTURE 1
33669 _ACEOF
33670
33671     fi
33672     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
33673 fi
33674
33675 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
33676     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
33677 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
33678    { (exit 1); exit 1; }; }
33679 fi
33680
33681
33682 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
33683                           -o "$wxUSE_CLIPBOARD"     = "yes" \
33684                           -o "$wxUSE_OLE"     = "yes" \
33685                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
33686
33687 for ac_header in ole2.h
33688 do
33689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33691   echo "$as_me:$LINENO: checking for $ac_header" >&5
33692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33694   echo $ECHO_N "(cached) $ECHO_C" >&6
33695 fi
33696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33698 else
33699   # Is the header compilable?
33700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33702 cat >conftest.$ac_ext <<_ACEOF
33703 #line $LINENO "configure"
33704 /* confdefs.h.  */
33705 _ACEOF
33706 cat confdefs.h >>conftest.$ac_ext
33707 cat >>conftest.$ac_ext <<_ACEOF
33708 /* end confdefs.h.  */
33709 $ac_includes_default
33710 #include <$ac_header>
33711 _ACEOF
33712 rm -f conftest.$ac_objext
33713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33714   (eval $ac_compile) 2>&5
33715   ac_status=$?
33716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717   (exit $ac_status); } &&
33718          { ac_try='test -s conftest.$ac_objext'
33719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33720   (eval $ac_try) 2>&5
33721   ac_status=$?
33722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723   (exit $ac_status); }; }; then
33724   ac_header_compiler=yes
33725 else
33726   echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33728
33729 ac_header_compiler=no
33730 fi
33731 rm -f conftest.$ac_objext conftest.$ac_ext
33732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33733 echo "${ECHO_T}$ac_header_compiler" >&6
33734
33735 # Is the header present?
33736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33738 cat >conftest.$ac_ext <<_ACEOF
33739 #line $LINENO "configure"
33740 /* confdefs.h.  */
33741 _ACEOF
33742 cat confdefs.h >>conftest.$ac_ext
33743 cat >>conftest.$ac_ext <<_ACEOF
33744 /* end confdefs.h.  */
33745 #include <$ac_header>
33746 _ACEOF
33747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33749   ac_status=$?
33750   grep -v '^ *+' conftest.er1 >conftest.err
33751   rm -f conftest.er1
33752   cat conftest.err >&5
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); } >/dev/null; then
33755   if test -s conftest.err; then
33756     ac_cpp_err=$ac_c_preproc_warn_flag
33757   else
33758     ac_cpp_err=
33759   fi
33760 else
33761   ac_cpp_err=yes
33762 fi
33763 if test -z "$ac_cpp_err"; then
33764   ac_header_preproc=yes
33765 else
33766   echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33768
33769   ac_header_preproc=no
33770 fi
33771 rm -f conftest.err conftest.$ac_ext
33772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33773 echo "${ECHO_T}$ac_header_preproc" >&6
33774
33775 # So?  What about this header?
33776 case $ac_header_compiler:$ac_header_preproc in
33777   yes:no )
33778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33782     (
33783       cat <<\_ASBOX
33784 ## ------------------------------------ ##
33785 ## Report this to bug-autoconf@gnu.org. ##
33786 ## ------------------------------------ ##
33787 _ASBOX
33788     ) |
33789       sed "s/^/$as_me: WARNING:     /" >&2
33790     ;;
33791   no:yes )
33792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33794     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33798     (
33799       cat <<\_ASBOX
33800 ## ------------------------------------ ##
33801 ## Report this to bug-autoconf@gnu.org. ##
33802 ## ------------------------------------ ##
33803 _ASBOX
33804     ) |
33805       sed "s/^/$as_me: WARNING:     /" >&2
33806     ;;
33807 esac
33808 echo "$as_me:$LINENO: checking for $ac_header" >&5
33809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33811   echo $ECHO_N "(cached) $ECHO_C" >&6
33812 else
33813   eval "$as_ac_Header=$ac_header_preproc"
33814 fi
33815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33817
33818 fi
33819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33820   cat >>confdefs.h <<_ACEOF
33821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33822 _ACEOF
33823
33824 fi
33825
33826 done
33827
33828
33829     if test "$ac_cv_header_ole2_h" = "yes" ; then
33830         if test "$GCC" = yes ; then
33831
33832
33833             ac_ext=cc
33834 ac_cpp='$CXXCPP $CPPFLAGS'
33835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33838
33839
33840             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
33841 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
33842             cat >conftest.$ac_ext <<_ACEOF
33843 #line $LINENO "configure"
33844 /* confdefs.h.  */
33845 _ACEOF
33846 cat confdefs.h >>conftest.$ac_ext
33847 cat >>conftest.$ac_ext <<_ACEOF
33848 /* end confdefs.h.  */
33849 #include <windows.h>
33850                             #include <ole2.h>
33851 int
33852 main ()
33853 {
33854
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext
33860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33861   (eval $ac_compile) 2>&5
33862   ac_status=$?
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); } &&
33865          { ac_try='test -s conftest.$ac_objext'
33866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867   (eval $ac_try) 2>&5
33868   ac_status=$?
33869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870   (exit $ac_status); }; }; then
33871   echo "$as_me:$LINENO: result: no" >&5
33872 echo "${ECHO_T}no" >&6
33873 else
33874   echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.$ac_ext >&5
33876
33877 echo "$as_me:$LINENO: result: yes" >&5
33878 echo "${ECHO_T}yes" >&6
33879                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
33880 fi
33881 rm -f conftest.$ac_objext conftest.$ac_ext
33882             ac_ext=c
33883 ac_cpp='$CPP $CPPFLAGS'
33884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33887
33888             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
33889             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
33890             if test "$wxUSE_OLE" = "yes" ; then
33891                 cat >>confdefs.h <<\_ACEOF
33892 #define wxUSE_OLE 1
33893 _ACEOF
33894
33895             fi
33896         fi
33897
33898                 if test "$wxUSE_DATAOBJ" = "yes" ; then
33899             cat >>confdefs.h <<\_ACEOF
33900 #define wxUSE_DATAOBJ 1
33901 _ACEOF
33902
33903         fi
33904     else
33905         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
33906 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
33907
33908         wxUSE_CLIPBOARD=no
33909         wxUSE_DRAG_AND_DROP=no
33910         wxUSE_DATAOBJ=no
33911         wxUSE_OLE=no
33912     fi
33913
33914     if test "$wxUSE_METAFILE" = "yes"; then
33915         cat >>confdefs.h <<\_ACEOF
33916 #define wxUSE_METAFILE 1
33917 _ACEOF
33918
33919
33920                 cat >>confdefs.h <<\_ACEOF
33921 #define wxUSE_ENH_METAFILE 1
33922 _ACEOF
33923
33924     fi
33925 fi
33926
33927 if test "$wxUSE_IPC" = "yes"; then
33928     if test "$wxUSE_SOCKETS" != "yes"; then
33929         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
33930 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
33931     fi
33932
33933     cat >>confdefs.h <<\_ACEOF
33934 #define wxUSE_IPC 1
33935 _ACEOF
33936
33937 fi
33938
33939 if test "$wxUSE_CLIPBOARD" = "yes"; then
33940     if test "$wxUSE_MGL" = 1; then
33941         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
33942 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
33943         wxUSE_CLIPBOARD=no
33944     fi
33945
33946     if test "$wxUSE_CLIPBOARD" = "yes"; then
33947         cat >>confdefs.h <<\_ACEOF
33948 #define wxUSE_CLIPBOARD 1
33949 _ACEOF
33950
33951
33952                 cat >>confdefs.h <<\_ACEOF
33953 #define wxUSE_DATAOBJ 1
33954 _ACEOF
33955
33956     fi
33957 fi
33958
33959 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
33960     if test "$wxUSE_GTK" = 1; then
33961         if test "$WXGTK12" != 1; then
33962             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
33963 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
33964             wxUSE_DRAG_AND_DROP=no
33965         fi
33966     fi
33967
33968     if test "$wxUSE_MOTIF" = 1; then
33969         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
33970 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
33971         wxUSE_DRAG_AND_DROP=no
33972     fi
33973
33974     if test "$wxUSE_X11" = 1; then
33975         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
33976 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
33977         wxUSE_DRAG_AND_DROP=no
33978     fi
33979
33980     if test "$wxUSE_MGL" = 1; then
33981         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
33982 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
33983         wxUSE_DRAG_AND_DROP=no
33984     fi
33985
33986     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
33987         cat >>confdefs.h <<\_ACEOF
33988 #define wxUSE_DRAG_AND_DROP 1
33989 _ACEOF
33990
33991         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
33992     fi
33993
33994 fi
33995
33996 if test "$wxUSE_SPLINES" = "yes" ; then
33997   cat >>confdefs.h <<\_ACEOF
33998 #define wxUSE_SPLINES 1
33999 _ACEOF
34000
34001 fi
34002
34003
34004 USES_CONTROLS=0
34005 if test "$wxUSE_CONTROLS" = "yes"; then
34006   USES_CONTROLS=1
34007 fi
34008
34009 if test "$wxUSE_ACCEL" = "yes"; then
34010   cat >>confdefs.h <<\_ACEOF
34011 #define wxUSE_ACCEL 1
34012 _ACEOF
34013
34014   USES_CONTROLS=1
34015 fi
34016
34017 if test "$wxUSE_BUTTON" = "yes"; then
34018   cat >>confdefs.h <<\_ACEOF
34019 #define wxUSE_BUTTON 1
34020 _ACEOF
34021
34022   USES_CONTROLS=1
34023 fi
34024
34025 if test "$wxUSE_BMPBUTTON" = "yes"; then
34026   cat >>confdefs.h <<\_ACEOF
34027 #define wxUSE_BMPBUTTON 1
34028 _ACEOF
34029
34030   USES_CONTROLS=1
34031 fi
34032
34033 if test "$wxUSE_CALCTRL" = "yes"; then
34034   cat >>confdefs.h <<\_ACEOF
34035 #define wxUSE_CALENDARCTRL 1
34036 _ACEOF
34037
34038   USES_CONTROLS=1
34039   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
34040 fi
34041
34042 if test "$wxUSE_CARET" = "yes"; then
34043   cat >>confdefs.h <<\_ACEOF
34044 #define wxUSE_CARET 1
34045 _ACEOF
34046
34047   USES_CONTROLS=1
34048   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
34049 fi
34050
34051 if test "$wxUSE_COMBOBOX" = "yes"; then
34052   cat >>confdefs.h <<\_ACEOF
34053 #define wxUSE_COMBOBOX 1
34054 _ACEOF
34055
34056   USES_CONTROLS=1
34057 fi
34058
34059 if test "$wxUSE_CHOICE" = "yes"; then
34060   cat >>confdefs.h <<\_ACEOF
34061 #define wxUSE_CHOICE 1
34062 _ACEOF
34063
34064   USES_CONTROLS=1
34065 fi
34066
34067 if test "$wxUSE_CHECKBOX" = "yes"; then
34068   cat >>confdefs.h <<\_ACEOF
34069 #define wxUSE_CHECKBOX 1
34070 _ACEOF
34071
34072   USES_CONTROLS=1
34073 fi
34074
34075 if test "$wxUSE_CHECKLST" = "yes"; then
34076   cat >>confdefs.h <<\_ACEOF
34077 #define wxUSE_CHECKLISTBOX 1
34078 _ACEOF
34079
34080   USES_CONTROLS=1
34081   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
34082 fi
34083
34084 if test "$wxUSE_DISPLAY" = "yes"; then
34085     cat >>confdefs.h <<\_ACEOF
34086 #define wxUSE_DISPLAY 1
34087 _ACEOF
34088
34089     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
34090 fi
34091
34092 if test "$wxUSE_GAUGE" = "yes"; then
34093   cat >>confdefs.h <<\_ACEOF
34094 #define wxUSE_GAUGE 1
34095 _ACEOF
34096
34097   USES_CONTROLS=1
34098 fi
34099
34100 if test "$wxUSE_GRID" = "yes"; then
34101   cat >>confdefs.h <<\_ACEOF
34102 #define wxUSE_GRID 1
34103 _ACEOF
34104
34105   USES_CONTROLS=1
34106   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
34107 fi
34108
34109 if test "$wxUSE_IMAGLIST" = "yes"; then
34110     cat >>confdefs.h <<\_ACEOF
34111 #define wxUSE_IMAGLIST 1
34112 _ACEOF
34113
34114 fi
34115
34116 if test "$wxUSE_LISTBOOK" = "yes"; then
34117     cat >>confdefs.h <<\_ACEOF
34118 #define wxUSE_LISTBOOK 1
34119 _ACEOF
34120
34121     USES_CONTROLS=1
34122 fi
34123
34124 if test "$wxUSE_LISTBOX" = "yes"; then
34125     cat >>confdefs.h <<\_ACEOF
34126 #define wxUSE_LISTBOX 1
34127 _ACEOF
34128
34129     USES_CONTROLS=1
34130 fi
34131
34132 if test "$wxUSE_LISTCTRL" = "yes"; then
34133     if test "$wxUSE_IMAGLIST" = "yes"; then
34134         cat >>confdefs.h <<\_ACEOF
34135 #define wxUSE_LISTCTRL 1
34136 _ACEOF
34137
34138         USES_CONTROLS=1
34139         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
34140     else
34141         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
34142 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
34143     fi
34144 fi
34145
34146 if test "$wxUSE_NOTEBOOK" = "yes"; then
34147     cat >>confdefs.h <<\_ACEOF
34148 #define wxUSE_NOTEBOOK 1
34149 _ACEOF
34150
34151     USES_CONTROLS=1
34152     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
34153 fi
34154
34155
34156 if test "$wxUSE_RADIOBOX" = "yes"; then
34157     cat >>confdefs.h <<\_ACEOF
34158 #define wxUSE_RADIOBOX 1
34159 _ACEOF
34160
34161     USES_CONTROLS=1
34162 fi
34163
34164 if test "$wxUSE_RADIOBTN" = "yes"; then
34165     cat >>confdefs.h <<\_ACEOF
34166 #define wxUSE_RADIOBTN 1
34167 _ACEOF
34168
34169     USES_CONTROLS=1
34170 fi
34171
34172 if test "$wxUSE_SASH" = "yes"; then
34173     cat >>confdefs.h <<\_ACEOF
34174 #define wxUSE_SASH 1
34175 _ACEOF
34176
34177     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
34178 fi
34179
34180 if test "$wxUSE_SCROLLBAR" = "yes"; then
34181     cat >>confdefs.h <<\_ACEOF
34182 #define wxUSE_SCROLLBAR 1
34183 _ACEOF
34184
34185     USES_CONTROLS=1
34186     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
34187 fi
34188
34189 if test "$wxUSE_SLIDER" = "yes"; then
34190     cat >>confdefs.h <<\_ACEOF
34191 #define wxUSE_SLIDER 1
34192 _ACEOF
34193
34194     USES_CONTROLS=1
34195 fi
34196
34197 if test "$wxUSE_SPINBTN" = "yes"; then
34198     cat >>confdefs.h <<\_ACEOF
34199 #define wxUSE_SPINBTN 1
34200 _ACEOF
34201
34202     USES_CONTROLS=1
34203 fi
34204
34205 if test "$wxUSE_SPINCTRL" = "yes"; then
34206     cat >>confdefs.h <<\_ACEOF
34207 #define wxUSE_SPINCTRL 1
34208 _ACEOF
34209
34210     USES_CONTROLS=1
34211 fi
34212
34213 if test "$wxUSE_SPLITTER" = "yes"; then
34214     cat >>confdefs.h <<\_ACEOF
34215 #define wxUSE_SPLITTER 1
34216 _ACEOF
34217
34218     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
34219 fi
34220
34221 if test "$wxUSE_STATBMP" = "yes"; then
34222     cat >>confdefs.h <<\_ACEOF
34223 #define wxUSE_STATBMP 1
34224 _ACEOF
34225
34226     USES_CONTROLS=1
34227 fi
34228
34229 if test "$wxUSE_STATBOX" = "yes"; then
34230     cat >>confdefs.h <<\_ACEOF
34231 #define wxUSE_STATBOX 1
34232 _ACEOF
34233
34234     USES_CONTROLS=1
34235 fi
34236
34237 if test "$wxUSE_STATTEXT" = "yes"; then
34238     cat >>confdefs.h <<\_ACEOF
34239 #define wxUSE_STATTEXT 1
34240 _ACEOF
34241
34242     USES_CONTROLS=1
34243 fi
34244
34245 if test "$wxUSE_STATLINE" = "yes"; then
34246     cat >>confdefs.h <<\_ACEOF
34247 #define wxUSE_STATLINE 1
34248 _ACEOF
34249
34250     USES_CONTROLS=1
34251 fi
34252
34253 if test "$wxUSE_STATUSBAR" = "yes"; then
34254     cat >>confdefs.h <<\_ACEOF
34255 #define wxUSE_STATUSBAR 1
34256 _ACEOF
34257
34258     USES_CONTROLS=1
34259
34260     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
34261 fi
34262
34263 if test "$wxUSE_TABDIALOG" = "yes"; then
34264     cat >>confdefs.h <<\_ACEOF
34265 #define wxUSE_TAB_DIALOG 1
34266 _ACEOF
34267
34268     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
34269 fi
34270
34271 if test "$wxUSE_TEXTCTRL" = "yes"; then
34272     cat >>confdefs.h <<\_ACEOF
34273 #define wxUSE_TEXTCTRL 1
34274 _ACEOF
34275
34276     USES_CONTROLS=1
34277     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
34278 fi
34279
34280 if test "$wxUSE_TOGGLEBTN" = "yes"; then
34281     if test "$wxUSE_COCOA" = 1 ; then
34282         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
34283 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
34284         wxUSE_TOGGLEBTN=no
34285     fi
34286     if test "$wxUSE_UNIVERSAL" = "yes"; then
34287         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
34288 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
34289         wxUSE_TOGGLEBTN=no
34290     fi
34291
34292     if test "$wxUSE_TOGGLEBTN" = "yes"; then
34293         cat >>confdefs.h <<\_ACEOF
34294 #define wxUSE_TOGGLEBTN 1
34295 _ACEOF
34296
34297         USES_CONTROLS=1
34298     fi
34299 fi
34300
34301 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
34302     cat >>confdefs.h <<\_ACEOF
34303 #define wxUSE_TOOLBAR_SIMPLE 1
34304 _ACEOF
34305
34306     wxUSE_TOOLBAR="yes"
34307     USES_CONTROLS=1
34308 fi
34309
34310 if test "$wxUSE_TOOLBAR" = "yes"; then
34311     cat >>confdefs.h <<\_ACEOF
34312 #define wxUSE_TOOLBAR 1
34313 _ACEOF
34314
34315     USES_CONTROLS=1
34316
34317         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
34318         wxUSE_TOOLBAR_NATIVE="yes"
34319     fi
34320
34321     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
34322         cat >>confdefs.h <<\_ACEOF
34323 #define wxUSE_TOOLBAR_NATIVE 1
34324 _ACEOF
34325
34326         USES_CONTROLS=1
34327     fi
34328
34329     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
34330 fi
34331
34332 if test "$wxUSE_TOOLTIPS" = "yes"; then
34333     if test "$wxUSE_MOTIF" = 1; then
34334         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
34335 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
34336     else
34337         if test "$wxUSE_UNIVERSAL" = "yes"; then
34338             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
34339 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
34340         else
34341             cat >>confdefs.h <<\_ACEOF
34342 #define wxUSE_TOOLTIPS 1
34343 _ACEOF
34344
34345         fi
34346     fi
34347 fi
34348
34349 if test "$wxUSE_TREECTRL" = "yes"; then
34350     if test "$wxUSE_IMAGLIST" = "yes"; then
34351         cat >>confdefs.h <<\_ACEOF
34352 #define wxUSE_TREECTRL 1
34353 _ACEOF
34354
34355         USES_CONTROLS=1
34356         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
34357     else
34358         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
34359 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
34360     fi
34361 fi
34362
34363 if test "$wxUSE_POPUPWIN" = "yes"; then
34364     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
34365         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
34366 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
34367     else
34368         if test "$wxUSE_PM" = 1; then
34369             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
34370 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
34371         else
34372             cat >>confdefs.h <<\_ACEOF
34373 #define wxUSE_POPUPWIN 1
34374 _ACEOF
34375
34376
34377             USES_CONTROLS=1
34378         fi
34379     fi
34380 fi
34381
34382 if test "$wxUSE_TIPWINDOW" = "yes"; then
34383     if test "$wxUSE_PM" = 1; then
34384         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
34385 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
34386     else
34387         cat >>confdefs.h <<\_ACEOF
34388 #define wxUSE_TIPWINDOW 1
34389 _ACEOF
34390
34391     fi
34392 fi
34393
34394 if test "$USES_CONTROLS" = 1; then
34395     cat >>confdefs.h <<\_ACEOF
34396 #define wxUSE_CONTROLS 1
34397 _ACEOF
34398
34399 fi
34400
34401
34402 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
34403     cat >>confdefs.h <<\_ACEOF
34404 #define wxUSE_ACCESSIBILITY 1
34405 _ACEOF
34406
34407     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
34408 fi
34409
34410 if test "$wxUSE_DRAGIMAGE" = "yes"; then
34411     cat >>confdefs.h <<\_ACEOF
34412 #define wxUSE_DRAGIMAGE 1
34413 _ACEOF
34414
34415     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
34416 fi
34417
34418 if test "$wxUSE_EXCEPTIONS" = "yes"; then
34419     cat >>confdefs.h <<\_ACEOF
34420 #define wxUSE_EXCEPTIONS 1
34421 _ACEOF
34422
34423 fi
34424
34425 USE_HTML=0
34426 if test "$wxUSE_HTML" = "yes"; then
34427     cat >>confdefs.h <<\_ACEOF
34428 #define wxUSE_HTML 1
34429 _ACEOF
34430
34431     USE_HTML=1
34432     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
34433 fi
34434
34435 if test "$wxUSE_MENUS" = "yes"; then
34436     cat >>confdefs.h <<\_ACEOF
34437 #define wxUSE_MENUS 1
34438 _ACEOF
34439
34440     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
34441 fi
34442
34443 if test "$wxUSE_METAFILE" = "yes"; then
34444     cat >>confdefs.h <<\_ACEOF
34445 #define wxUSE_METAFILE 1
34446 _ACEOF
34447
34448 fi
34449
34450 if test "$wxUSE_MIMETYPE" = "yes"; then
34451     cat >>confdefs.h <<\_ACEOF
34452 #define wxUSE_MIMETYPE 1
34453 _ACEOF
34454
34455 fi
34456
34457 if test "$wxUSE_MINIFRAME" = "yes"; then
34458     cat >>confdefs.h <<\_ACEOF
34459 #define wxUSE_MINIFRAME 1
34460 _ACEOF
34461
34462     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
34463 fi
34464
34465 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
34466     cat >>confdefs.h <<\_ACEOF
34467 #define wxUSE_SYSTEM_OPTIONS 1
34468 _ACEOF
34469
34470     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
34471         "$TOOLKIT" = "MOTIF"; then
34472         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
34473     fi
34474 fi
34475
34476
34477 if test "$wxUSE_VALIDATORS" = "yes"; then
34478     cat >>confdefs.h <<\_ACEOF
34479 #define wxUSE_VALIDATORS 1
34480 _ACEOF
34481
34482     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
34483 fi
34484
34485 if test "$wxUSE_PALETTE" = "yes" ; then
34486   cat >>confdefs.h <<\_ACEOF
34487 #define wxUSE_PALETTE 1
34488 _ACEOF
34489
34490 fi
34491
34492 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
34493     LIBS=" -lunicows $LIBS"
34494 fi
34495
34496
34497 if test "$wxUSE_IMAGE" = "yes" ; then
34498     cat >>confdefs.h <<\_ACEOF
34499 #define wxUSE_IMAGE 1
34500 _ACEOF
34501
34502
34503     if test "$wxUSE_GIF" = "yes" ; then
34504       cat >>confdefs.h <<\_ACEOF
34505 #define wxUSE_GIF 1
34506 _ACEOF
34507
34508     fi
34509
34510     if test "$wxUSE_PCX" = "yes" ; then
34511       cat >>confdefs.h <<\_ACEOF
34512 #define wxUSE_PCX 1
34513 _ACEOF
34514
34515     fi
34516
34517     if test "$wxUSE_IFF" = "yes" ; then
34518       cat >>confdefs.h <<\_ACEOF
34519 #define wxUSE_IFF 1
34520 _ACEOF
34521
34522     fi
34523
34524     if test "$wxUSE_PNM" = "yes" ; then
34525       cat >>confdefs.h <<\_ACEOF
34526 #define wxUSE_PNM 1
34527 _ACEOF
34528
34529     fi
34530
34531     if test "$wxUSE_XPM" = "yes" ; then
34532       cat >>confdefs.h <<\_ACEOF
34533 #define wxUSE_XPM 1
34534 _ACEOF
34535
34536     fi
34537
34538     if test "$wxUSE_ICO_CUR" = "yes" ; then
34539       cat >>confdefs.h <<\_ACEOF
34540 #define wxUSE_ICO_CUR 1
34541 _ACEOF
34542
34543     fi
34544 fi
34545
34546
34547 if test "$wxUSE_CHOICEDLG" = "yes"; then
34548     cat >>confdefs.h <<\_ACEOF
34549 #define wxUSE_CHOICEDLG 1
34550 _ACEOF
34551
34552 fi
34553
34554 if test "$wxUSE_COLOURDLG" = "yes"; then
34555     cat >>confdefs.h <<\_ACEOF
34556 #define wxUSE_COLOURDLG 1
34557 _ACEOF
34558
34559 fi
34560
34561 if test "$wxUSE_FILEDLG" = "yes"; then
34562     cat >>confdefs.h <<\_ACEOF
34563 #define wxUSE_FILEDLG 1
34564 _ACEOF
34565
34566 fi
34567
34568 if test "$wxUSE_FINDREPLDLG" = "yes"; then
34569     cat >>confdefs.h <<\_ACEOF
34570 #define wxUSE_FINDREPLDLG 1
34571 _ACEOF
34572
34573 fi
34574
34575 if test "$wxUSE_FONTDLG" = "yes"; then
34576     cat >>confdefs.h <<\_ACEOF
34577 #define wxUSE_FONTDLG 1
34578 _ACEOF
34579
34580 fi
34581
34582 if test "$wxUSE_DIRDLG" = "yes"; then
34583     if test "$wxUSE_TREECTRL" != "yes"; then
34584         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
34585 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
34586     else
34587         cat >>confdefs.h <<\_ACEOF
34588 #define wxUSE_DIRDLG 1
34589 _ACEOF
34590
34591     fi
34592 fi
34593
34594 if test "$wxUSE_MSGDLG" = "yes"; then
34595     cat >>confdefs.h <<\_ACEOF
34596 #define wxUSE_MSGDLG 1
34597 _ACEOF
34598
34599 fi
34600
34601 if test "$wxUSE_NUMBERDLG" = "yes"; then
34602     cat >>confdefs.h <<\_ACEOF
34603 #define wxUSE_NUMBERDLG 1
34604 _ACEOF
34605
34606 fi
34607
34608 if test "$wxUSE_PROGRESSDLG" = "yes"; then
34609     if test "$wxUSE_CONSTRAINTS" != "yes"; then
34610        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
34611 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
34612     else
34613         cat >>confdefs.h <<\_ACEOF
34614 #define wxUSE_PROGRESSDLG 1
34615 _ACEOF
34616
34617     fi
34618 fi
34619
34620 if test "$wxUSE_SPLASH" = "yes"; then
34621     cat >>confdefs.h <<\_ACEOF
34622 #define wxUSE_SPLASH 1
34623 _ACEOF
34624
34625 fi
34626
34627 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
34628     if test "$wxUSE_CONSTRAINTS" != "yes"; then
34629        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
34630 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
34631     else
34632         cat >>confdefs.h <<\_ACEOF
34633 #define wxUSE_STARTUP_TIPS 1
34634 _ACEOF
34635
34636     fi
34637 fi
34638
34639 if test "$wxUSE_TEXTDLG" = "yes"; then
34640     cat >>confdefs.h <<\_ACEOF
34641 #define wxUSE_TEXTDLG 1
34642 _ACEOF
34643
34644 fi
34645
34646 if test "$wxUSE_WIZARDDLG" = "yes"; then
34647     cat >>confdefs.h <<\_ACEOF
34648 #define wxUSE_WIZARDDLG 1
34649 _ACEOF
34650
34651     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
34652 fi
34653
34654
34655 if test "$cross_compiling" = "yes"; then
34656         OSINFO="\"$host\""
34657 else
34658         OSINFO=`uname -s -r -m`
34659     OSINFO="\"$OSINFO\""
34660 fi
34661
34662 cat >>confdefs.h <<_ACEOF
34663 #define WXWIN_OS_DESCRIPTION $OSINFO
34664 _ACEOF
34665
34666
34667
34668 if test "x$prefix" != "xNONE"; then
34669     wxPREFIX=$prefix
34670 else
34671     wxPREFIX=$ac_default_prefix
34672 fi
34673
34674 cat >>confdefs.h <<_ACEOF
34675 #define wxINSTALL_PREFIX "$wxPREFIX"
34676 _ACEOF
34677
34678
34679 top_builddir_wxconfig=`pwd`
34680
34681
34682
34683 CORE_BASE_LIBS="net base"
34684 CORE_GUI_LIBS="adv core"
34685
34686 if test "$wxUSE_XML" = "yes" ; then
34687     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
34688 fi
34689 if test "$wxUSE_ODBC" != "no" ; then
34690     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
34691     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
34692 fi
34693 if test "$wxUSE_HTML" = "yes" ; then
34694     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
34695 fi
34696
34697 if test "$wxUSE_GUI" != "yes"; then
34698     CORE_GUI_LIBS=""
34699 fi
34700
34701
34702
34703
34704
34705
34706
34707
34708 if test "$wxUSE_MAC" = 1 ; then
34709     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
34710 fi
34711 if test "$wxUSE_COCOA" = 1 ; then
34712     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
34713 fi
34714
34715
34716 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
34717
34718 have_cos=0
34719 have_floor=0
34720
34721 for ac_func in cos
34722 do
34723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34724 echo "$as_me:$LINENO: checking for $ac_func" >&5
34725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34726 if eval "test \"\${$as_ac_var+set}\" = set"; then
34727   echo $ECHO_N "(cached) $ECHO_C" >&6
34728 else
34729   cat >conftest.$ac_ext <<_ACEOF
34730 #line $LINENO "configure"
34731 /* confdefs.h.  */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h.  */
34736 /* System header to define __stub macros and hopefully few prototypes,
34737     which can conflict with char $ac_func (); below.
34738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34739     <limits.h> exists even on freestanding compilers.  */
34740 #ifdef __STDC__
34741 # include <limits.h>
34742 #else
34743 # include <assert.h>
34744 #endif
34745 /* Override any gcc2 internal prototype to avoid an error.  */
34746 #ifdef __cplusplus
34747 extern "C"
34748 {
34749 #endif
34750 /* We use char because int might match the return type of a gcc2
34751    builtin and then its argument prototype would still apply.  */
34752 char $ac_func ();
34753 /* The GNU C library defines this for functions which it implements
34754     to always fail with ENOSYS.  Some functions are actually named
34755     something starting with __ and the normal name is an alias.  */
34756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34757 choke me
34758 #else
34759 char (*f) () = $ac_func;
34760 #endif
34761 #ifdef __cplusplus
34762 }
34763 #endif
34764
34765 int
34766 main ()
34767 {
34768 return f != $ac_func;
34769   ;
34770   return 0;
34771 }
34772 _ACEOF
34773 rm -f conftest.$ac_objext conftest$ac_exeext
34774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34775   (eval $ac_link) 2>&5
34776   ac_status=$?
34777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778   (exit $ac_status); } &&
34779          { ac_try='test -s conftest$ac_exeext'
34780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34781   (eval $ac_try) 2>&5
34782   ac_status=$?
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); }; }; then
34785   eval "$as_ac_var=yes"
34786 else
34787   echo "$as_me: failed program was:" >&5
34788 sed 's/^/| /' conftest.$ac_ext >&5
34789
34790 eval "$as_ac_var=no"
34791 fi
34792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34793 fi
34794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34796 if test `eval echo '${'$as_ac_var'}'` = yes; then
34797   cat >>confdefs.h <<_ACEOF
34798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34799 _ACEOF
34800  have_cos=1
34801 fi
34802 done
34803
34804
34805 for ac_func in floor
34806 do
34807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34808 echo "$as_me:$LINENO: checking for $ac_func" >&5
34809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34810 if eval "test \"\${$as_ac_var+set}\" = set"; then
34811   echo $ECHO_N "(cached) $ECHO_C" >&6
34812 else
34813   cat >conftest.$ac_ext <<_ACEOF
34814 #line $LINENO "configure"
34815 /* confdefs.h.  */
34816 _ACEOF
34817 cat confdefs.h >>conftest.$ac_ext
34818 cat >>conftest.$ac_ext <<_ACEOF
34819 /* end confdefs.h.  */
34820 /* System header to define __stub macros and hopefully few prototypes,
34821     which can conflict with char $ac_func (); below.
34822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34823     <limits.h> exists even on freestanding compilers.  */
34824 #ifdef __STDC__
34825 # include <limits.h>
34826 #else
34827 # include <assert.h>
34828 #endif
34829 /* Override any gcc2 internal prototype to avoid an error.  */
34830 #ifdef __cplusplus
34831 extern "C"
34832 {
34833 #endif
34834 /* We use char because int might match the return type of a gcc2
34835    builtin and then its argument prototype would still apply.  */
34836 char $ac_func ();
34837 /* The GNU C library defines this for functions which it implements
34838     to always fail with ENOSYS.  Some functions are actually named
34839     something starting with __ and the normal name is an alias.  */
34840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34841 choke me
34842 #else
34843 char (*f) () = $ac_func;
34844 #endif
34845 #ifdef __cplusplus
34846 }
34847 #endif
34848
34849 int
34850 main ()
34851 {
34852 return f != $ac_func;
34853   ;
34854   return 0;
34855 }
34856 _ACEOF
34857 rm -f conftest.$ac_objext conftest$ac_exeext
34858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34859   (eval $ac_link) 2>&5
34860   ac_status=$?
34861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862   (exit $ac_status); } &&
34863          { ac_try='test -s conftest$ac_exeext'
34864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34865   (eval $ac_try) 2>&5
34866   ac_status=$?
34867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868   (exit $ac_status); }; }; then
34869   eval "$as_ac_var=yes"
34870 else
34871   echo "$as_me: failed program was:" >&5
34872 sed 's/^/| /' conftest.$ac_ext >&5
34873
34874 eval "$as_ac_var=no"
34875 fi
34876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34877 fi
34878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34880 if test `eval echo '${'$as_ac_var'}'` = yes; then
34881   cat >>confdefs.h <<_ACEOF
34882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34883 _ACEOF
34884  have_floor=1
34885 fi
34886 done
34887
34888 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
34889 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
34890 if test "$have_cos" = 1 -a "$have_floor" = 1; then
34891     echo "$as_me:$LINENO: result: yes" >&5
34892 echo "${ECHO_T}yes" >&6
34893 else
34894     echo "$as_me:$LINENO: result: no" >&5
34895 echo "${ECHO_T}no" >&6
34896     LIBS="$LIBS -lm"
34897     # use different functions to avoid configure caching
34898     have_sin=0
34899     have_ceil=0
34900
34901 for ac_func in sin
34902 do
34903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34904 echo "$as_me:$LINENO: checking for $ac_func" >&5
34905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34906 if eval "test \"\${$as_ac_var+set}\" = set"; then
34907   echo $ECHO_N "(cached) $ECHO_C" >&6
34908 else
34909   cat >conftest.$ac_ext <<_ACEOF
34910 #line $LINENO "configure"
34911 /* confdefs.h.  */
34912 _ACEOF
34913 cat confdefs.h >>conftest.$ac_ext
34914 cat >>conftest.$ac_ext <<_ACEOF
34915 /* end confdefs.h.  */
34916 /* System header to define __stub macros and hopefully few prototypes,
34917     which can conflict with char $ac_func (); below.
34918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34919     <limits.h> exists even on freestanding compilers.  */
34920 #ifdef __STDC__
34921 # include <limits.h>
34922 #else
34923 # include <assert.h>
34924 #endif
34925 /* Override any gcc2 internal prototype to avoid an error.  */
34926 #ifdef __cplusplus
34927 extern "C"
34928 {
34929 #endif
34930 /* We use char because int might match the return type of a gcc2
34931    builtin and then its argument prototype would still apply.  */
34932 char $ac_func ();
34933 /* The GNU C library defines this for functions which it implements
34934     to always fail with ENOSYS.  Some functions are actually named
34935     something starting with __ and the normal name is an alias.  */
34936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34937 choke me
34938 #else
34939 char (*f) () = $ac_func;
34940 #endif
34941 #ifdef __cplusplus
34942 }
34943 #endif
34944
34945 int
34946 main ()
34947 {
34948 return f != $ac_func;
34949   ;
34950   return 0;
34951 }
34952 _ACEOF
34953 rm -f conftest.$ac_objext conftest$ac_exeext
34954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34955   (eval $ac_link) 2>&5
34956   ac_status=$?
34957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958   (exit $ac_status); } &&
34959          { ac_try='test -s conftest$ac_exeext'
34960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961   (eval $ac_try) 2>&5
34962   ac_status=$?
34963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964   (exit $ac_status); }; }; then
34965   eval "$as_ac_var=yes"
34966 else
34967   echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.$ac_ext >&5
34969
34970 eval "$as_ac_var=no"
34971 fi
34972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34973 fi
34974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34976 if test `eval echo '${'$as_ac_var'}'` = yes; then
34977   cat >>confdefs.h <<_ACEOF
34978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34979 _ACEOF
34980  have_sin=1
34981 fi
34982 done
34983
34984
34985 for ac_func in ceil
34986 do
34987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34988 echo "$as_me:$LINENO: checking for $ac_func" >&5
34989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34990 if eval "test \"\${$as_ac_var+set}\" = set"; then
34991   echo $ECHO_N "(cached) $ECHO_C" >&6
34992 else
34993   cat >conftest.$ac_ext <<_ACEOF
34994 #line $LINENO "configure"
34995 /* confdefs.h.  */
34996 _ACEOF
34997 cat confdefs.h >>conftest.$ac_ext
34998 cat >>conftest.$ac_ext <<_ACEOF
34999 /* end confdefs.h.  */
35000 /* System header to define __stub macros and hopefully few prototypes,
35001     which can conflict with char $ac_func (); below.
35002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35003     <limits.h> exists even on freestanding compilers.  */
35004 #ifdef __STDC__
35005 # include <limits.h>
35006 #else
35007 # include <assert.h>
35008 #endif
35009 /* Override any gcc2 internal prototype to avoid an error.  */
35010 #ifdef __cplusplus
35011 extern "C"
35012 {
35013 #endif
35014 /* We use char because int might match the return type of a gcc2
35015    builtin and then its argument prototype would still apply.  */
35016 char $ac_func ();
35017 /* The GNU C library defines this for functions which it implements
35018     to always fail with ENOSYS.  Some functions are actually named
35019     something starting with __ and the normal name is an alias.  */
35020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35021 choke me
35022 #else
35023 char (*f) () = $ac_func;
35024 #endif
35025 #ifdef __cplusplus
35026 }
35027 #endif
35028
35029 int
35030 main ()
35031 {
35032 return f != $ac_func;
35033   ;
35034   return 0;
35035 }
35036 _ACEOF
35037 rm -f conftest.$ac_objext conftest$ac_exeext
35038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35039   (eval $ac_link) 2>&5
35040   ac_status=$?
35041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042   (exit $ac_status); } &&
35043          { ac_try='test -s conftest$ac_exeext'
35044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045   (eval $ac_try) 2>&5
35046   ac_status=$?
35047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048   (exit $ac_status); }; }; then
35049   eval "$as_ac_var=yes"
35050 else
35051   echo "$as_me: failed program was:" >&5
35052 sed 's/^/| /' conftest.$ac_ext >&5
35053
35054 eval "$as_ac_var=no"
35055 fi
35056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35057 fi
35058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35060 if test `eval echo '${'$as_ac_var'}'` = yes; then
35061   cat >>confdefs.h <<_ACEOF
35062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35063 _ACEOF
35064  have_ceil=1
35065 fi
35066 done
35067
35068     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
35069 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
35070     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
35071         echo "$as_me:$LINENO: result: yes" >&5
35072 echo "${ECHO_T}yes" >&6
35073     else
35074         echo "$as_me:$LINENO: result: no" >&5
35075 echo "${ECHO_T}no" >&6
35076         # not sure we should warn the user, crash, etc.
35077     fi
35078 fi
35079
35080 if test "$wxUSE_GUI" = "yes"; then
35081
35082
35083             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
35084                      drawing dynamic erase event exec font image \
35085                      minimal propsize rotate shaped widgets render"
35086
35087     if test "$wxUSE_MONOLITHIC" != "yes"; then
35088         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
35089     fi
35090 else
35091     SAMPLES_SUBDIRS="console"
35092 fi
35093
35094
35095 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
35096 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
35097
35098 if test "$GXX" = yes ; then
35099         CXXWARNINGS="-Wall"
35100         fi
35101
35102 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
35103
35104 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
35105 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
35106 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
35107
35108
35109 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
35110 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
35111 EXTRALIBS_XML="$EXPAT_LINK"
35112 EXTRALIBS_HTML="$MSPACK_LINK"
35113 EXTRALIBS_ODBC="$ODBC_LINK"
35114 if test "$wxUSE_GUI" = "yes"; then
35115     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
35116 fi
35117 if test "$wxUSE_OPENGL" = "yes"; then
35118     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
35119 fi
35120
35121 LDFLAGS="$LDFLAGS $PROFILE"
35122
35123 if test "$wxUSE_GTK" = 1; then
35124     WXCONFIG_INCLUDE=
35125 else
35126     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
35127 fi
35128
35129 WXCONFIG_EXTRALIBS="$LIBS"
35130
35131 if test "$wxUSE_REGEX" = "builtin" ; then
35132     wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
35133 fi
35134 if test "$wxUSE_EXPAT" = "builtin" ; then
35135     wxconfig_3rdparty="$wxconfig_3rdparty expat"
35136 fi
35137 if test "$wxUSE_ODBC" = "builtin" ; then
35138     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35139 fi
35140 if test "$wxUSE_LIBTIFF" = "builtin" ; then
35141     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
35142 fi
35143 if test "$wxUSE_LIBJPEG" = "builtin" ; then
35144     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
35145 fi
35146 if test "$wxUSE_LIBPNG" = "builtin" ; then
35147     wxconfig_3rdparty="$wxconfig_3rdparty png"
35148 fi
35149 if test "$wxUSE_ZLIB" = "builtin" ; then
35150     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
35151 fi
35152 if test "$wxUSE_ODBC" = "builtin" ; then
35153     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35154 fi
35155
35156 for i in $wxconfig_3rdparty ; do
35157     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
35158 done
35159
35160
35161 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
35162     WXUNIV=1
35163 else
35164     WXUNIV=0
35165 fi
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175 if test $wxUSE_MONOLITHIC = "yes" ; then
35176     MONOLITHIC=1
35177 else
35178     MONOLITHIC=0
35179 fi
35180
35181 if test $wxUSE_PLUGINS = "yes" ; then
35182     USE_PLUGINS=1
35183 else
35184     USE_PLUGINS=0
35185 fi
35186
35187 if test $wxUSE_ODBC != "no" ; then
35188     USE_ODBC=1
35189 else
35190     USE_ODBC=0
35191 fi
35192
35193 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
35194     OFFICIAL_BUILD=1
35195 else
35196     OFFICIAL_BUILD=0
35197 fi
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
35220
35221
35222
35223
35224
35225
35226
35227     if test "x$BAKEFILE_HOST" = "x"; then
35228         BAKEFILE_HOST="${host}"
35229     fi
35230
35231     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
35232
35233     if test -n "$ac_tool_prefix"; then
35234   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35236 echo "$as_me:$LINENO: checking for $ac_word" >&5
35237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35238 if test "${ac_cv_prog_RANLIB+set}" = set; then
35239   echo $ECHO_N "(cached) $ECHO_C" >&6
35240 else
35241   if test -n "$RANLIB"; then
35242   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35243 else
35244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35245 for as_dir in $PATH
35246 do
35247   IFS=$as_save_IFS
35248   test -z "$as_dir" && as_dir=.
35249   for ac_exec_ext in '' $ac_executable_extensions; do
35250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35251     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35253     break 2
35254   fi
35255 done
35256 done
35257
35258 fi
35259 fi
35260 RANLIB=$ac_cv_prog_RANLIB
35261 if test -n "$RANLIB"; then
35262   echo "$as_me:$LINENO: result: $RANLIB" >&5
35263 echo "${ECHO_T}$RANLIB" >&6
35264 else
35265   echo "$as_me:$LINENO: result: no" >&5
35266 echo "${ECHO_T}no" >&6
35267 fi
35268
35269 fi
35270 if test -z "$ac_cv_prog_RANLIB"; then
35271   ac_ct_RANLIB=$RANLIB
35272   # Extract the first word of "ranlib", so it can be a program name with args.
35273 set dummy ranlib; ac_word=$2
35274 echo "$as_me:$LINENO: checking for $ac_word" >&5
35275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35276 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35277   echo $ECHO_N "(cached) $ECHO_C" >&6
35278 else
35279   if test -n "$ac_ct_RANLIB"; then
35280   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35281 else
35282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35283 for as_dir in $PATH
35284 do
35285   IFS=$as_save_IFS
35286   test -z "$as_dir" && as_dir=.
35287   for ac_exec_ext in '' $ac_executable_extensions; do
35288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35289     ac_cv_prog_ac_ct_RANLIB="ranlib"
35290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35291     break 2
35292   fi
35293 done
35294 done
35295
35296   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35297 fi
35298 fi
35299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35300 if test -n "$ac_ct_RANLIB"; then
35301   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35302 echo "${ECHO_T}$ac_ct_RANLIB" >&6
35303 else
35304   echo "$as_me:$LINENO: result: no" >&5
35305 echo "${ECHO_T}no" >&6
35306 fi
35307
35308   RANLIB=$ac_ct_RANLIB
35309 else
35310   RANLIB="$ac_cv_prog_RANLIB"
35311 fi
35312
35313     # Find a good install program.  We prefer a C program (faster),
35314 # so one script is as good as another.  But avoid the broken or
35315 # incompatible versions:
35316 # SysV /etc/install, /usr/sbin/install
35317 # SunOS /usr/etc/install
35318 # IRIX /sbin/install
35319 # AIX /bin/install
35320 # AmigaOS /C/install, which installs bootblocks on floppy discs
35321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
35323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35324 # ./install, which can be erroneously created by make from ./install.sh.
35325 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
35326 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
35327 if test -z "$INSTALL"; then
35328 if test "${ac_cv_path_install+set}" = set; then
35329   echo $ECHO_N "(cached) $ECHO_C" >&6
35330 else
35331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35332 for as_dir in $PATH
35333 do
35334   IFS=$as_save_IFS
35335   test -z "$as_dir" && as_dir=.
35336   # Account for people who put trailing slashes in PATH elements.
35337 case $as_dir/ in
35338   ./ | .// | /cC/* | \
35339   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35340   /usr/ucb/* ) ;;
35341   *)
35342     # OSF1 and SCO ODT 3.0 have their own names for install.
35343     # Don't use installbsd from OSF since it installs stuff as root
35344     # by default.
35345     for ac_prog in ginstall scoinst install; do
35346       for ac_exec_ext in '' $ac_executable_extensions; do
35347         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
35348           if test $ac_prog = install &&
35349             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35350             # AIX install.  It has an incompatible calling convention.
35351             :
35352           elif test $ac_prog = install &&
35353             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35354             # program-specific install script used by HP pwplus--don't use.
35355             :
35356           else
35357             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
35358             break 3
35359           fi
35360         fi
35361       done
35362     done
35363     ;;
35364 esac
35365 done
35366
35367
35368 fi
35369   if test "${ac_cv_path_install+set}" = set; then
35370     INSTALL=$ac_cv_path_install
35371   else
35372     # As a last resort, use the slow shell script.  We don't cache a
35373     # path for INSTALL within a source directory, because that will
35374     # break other packages using the cache if that directory is
35375     # removed, or if the path is relative.
35376     INSTALL=$ac_install_sh
35377   fi
35378 fi
35379 echo "$as_me:$LINENO: result: $INSTALL" >&5
35380 echo "${ECHO_T}$INSTALL" >&6
35381
35382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
35383 # It thinks the first close brace ends the variable substitution.
35384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
35385
35386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
35387
35388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
35389
35390     echo "$as_me:$LINENO: checking whether ln -s works" >&5
35391 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
35392 LN_S=$as_ln_s
35393 if test "$LN_S" = "ln -s"; then
35394   echo "$as_me:$LINENO: result: yes" >&5
35395 echo "${ECHO_T}yes" >&6
35396 else
35397   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35398 echo "${ECHO_T}no, using $LN_S" >&6
35399 fi
35400
35401
35402     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35403 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35404 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35405 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35406   echo $ECHO_N "(cached) $ECHO_C" >&6
35407 else
35408   cat >conftest.make <<\_ACEOF
35409 all:
35410         @echo 'ac_maketemp="$(MAKE)"'
35411 _ACEOF
35412 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35413 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35414 if test -n "$ac_maketemp"; then
35415   eval ac_cv_prog_make_${ac_make}_set=yes
35416 else
35417   eval ac_cv_prog_make_${ac_make}_set=no
35418 fi
35419 rm -f conftest.make
35420 fi
35421 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35422   echo "$as_me:$LINENO: result: yes" >&5
35423 echo "${ECHO_T}yes" >&6
35424   SET_MAKE=
35425 else
35426   echo "$as_me:$LINENO: result: no" >&5
35427 echo "${ECHO_T}no" >&6
35428   SET_MAKE="MAKE=${MAKE-make}"
35429 fi
35430
35431
35432
35433     if test -n "$ac_tool_prefix"; then
35434   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
35435 set dummy ${ac_tool_prefix}ar; ac_word=$2
35436 echo "$as_me:$LINENO: checking for $ac_word" >&5
35437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35438 if test "${ac_cv_prog_AR+set}" = set; then
35439   echo $ECHO_N "(cached) $ECHO_C" >&6
35440 else
35441   if test -n "$AR"; then
35442   ac_cv_prog_AR="$AR" # Let the user override the test.
35443 else
35444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35445 for as_dir in $PATH
35446 do
35447   IFS=$as_save_IFS
35448   test -z "$as_dir" && as_dir=.
35449   for ac_exec_ext in '' $ac_executable_extensions; do
35450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35451     ac_cv_prog_AR="${ac_tool_prefix}ar"
35452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35453     break 2
35454   fi
35455 done
35456 done
35457
35458 fi
35459 fi
35460 AR=$ac_cv_prog_AR
35461 if test -n "$AR"; then
35462   echo "$as_me:$LINENO: result: $AR" >&5
35463 echo "${ECHO_T}$AR" >&6
35464 else
35465   echo "$as_me:$LINENO: result: no" >&5
35466 echo "${ECHO_T}no" >&6
35467 fi
35468
35469 fi
35470 if test -z "$ac_cv_prog_AR"; then
35471   ac_ct_AR=$AR
35472   # Extract the first word of "ar", so it can be a program name with args.
35473 set dummy ar; ac_word=$2
35474 echo "$as_me:$LINENO: checking for $ac_word" >&5
35475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35476 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
35477   echo $ECHO_N "(cached) $ECHO_C" >&6
35478 else
35479   if test -n "$ac_ct_AR"; then
35480   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
35481 else
35482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35483 for as_dir in $PATH
35484 do
35485   IFS=$as_save_IFS
35486   test -z "$as_dir" && as_dir=.
35487   for ac_exec_ext in '' $ac_executable_extensions; do
35488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35489     ac_cv_prog_ac_ct_AR="ar"
35490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35491     break 2
35492   fi
35493 done
35494 done
35495
35496   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
35497 fi
35498 fi
35499 ac_ct_AR=$ac_cv_prog_ac_ct_AR
35500 if test -n "$ac_ct_AR"; then
35501   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
35502 echo "${ECHO_T}$ac_ct_AR" >&6
35503 else
35504   echo "$as_me:$LINENO: result: no" >&5
35505 echo "${ECHO_T}no" >&6
35506 fi
35507
35508   AR=$ac_ct_AR
35509 else
35510   AR="$ac_cv_prog_AR"
35511 fi
35512
35513     if test -n "$ac_tool_prefix"; then
35514   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
35515 set dummy ${ac_tool_prefix}strip; ac_word=$2
35516 echo "$as_me:$LINENO: checking for $ac_word" >&5
35517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35518 if test "${ac_cv_prog_STRIP+set}" = set; then
35519   echo $ECHO_N "(cached) $ECHO_C" >&6
35520 else
35521   if test -n "$STRIP"; then
35522   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35523 else
35524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35525 for as_dir in $PATH
35526 do
35527   IFS=$as_save_IFS
35528   test -z "$as_dir" && as_dir=.
35529   for ac_exec_ext in '' $ac_executable_extensions; do
35530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35531     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
35532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35533     break 2
35534   fi
35535 done
35536 done
35537
35538 fi
35539 fi
35540 STRIP=$ac_cv_prog_STRIP
35541 if test -n "$STRIP"; then
35542   echo "$as_me:$LINENO: result: $STRIP" >&5
35543 echo "${ECHO_T}$STRIP" >&6
35544 else
35545   echo "$as_me:$LINENO: result: no" >&5
35546 echo "${ECHO_T}no" >&6
35547 fi
35548
35549 fi
35550 if test -z "$ac_cv_prog_STRIP"; then
35551   ac_ct_STRIP=$STRIP
35552   # Extract the first word of "strip", so it can be a program name with args.
35553 set dummy strip; ac_word=$2
35554 echo "$as_me:$LINENO: checking for $ac_word" >&5
35555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35557   echo $ECHO_N "(cached) $ECHO_C" >&6
35558 else
35559   if test -n "$ac_ct_STRIP"; then
35560   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35561 else
35562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35563 for as_dir in $PATH
35564 do
35565   IFS=$as_save_IFS
35566   test -z "$as_dir" && as_dir=.
35567   for ac_exec_ext in '' $ac_executable_extensions; do
35568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35569     ac_cv_prog_ac_ct_STRIP="strip"
35570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35571     break 2
35572   fi
35573 done
35574 done
35575
35576   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
35577 fi
35578 fi
35579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35580 if test -n "$ac_ct_STRIP"; then
35581   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35582 echo "${ECHO_T}$ac_ct_STRIP" >&6
35583 else
35584   echo "$as_me:$LINENO: result: no" >&5
35585 echo "${ECHO_T}no" >&6
35586 fi
35587
35588   STRIP=$ac_ct_STRIP
35589 else
35590   STRIP="$ac_cv_prog_STRIP"
35591 fi
35592
35593     if test -n "$ac_tool_prefix"; then
35594   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
35595 set dummy ${ac_tool_prefix}nm; ac_word=$2
35596 echo "$as_me:$LINENO: checking for $ac_word" >&5
35597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35598 if test "${ac_cv_prog_NM+set}" = set; then
35599   echo $ECHO_N "(cached) $ECHO_C" >&6
35600 else
35601   if test -n "$NM"; then
35602   ac_cv_prog_NM="$NM" # Let the user override the test.
35603 else
35604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35605 for as_dir in $PATH
35606 do
35607   IFS=$as_save_IFS
35608   test -z "$as_dir" && as_dir=.
35609   for ac_exec_ext in '' $ac_executable_extensions; do
35610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35611     ac_cv_prog_NM="${ac_tool_prefix}nm"
35612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35613     break 2
35614   fi
35615 done
35616 done
35617
35618 fi
35619 fi
35620 NM=$ac_cv_prog_NM
35621 if test -n "$NM"; then
35622   echo "$as_me:$LINENO: result: $NM" >&5
35623 echo "${ECHO_T}$NM" >&6
35624 else
35625   echo "$as_me:$LINENO: result: no" >&5
35626 echo "${ECHO_T}no" >&6
35627 fi
35628
35629 fi
35630 if test -z "$ac_cv_prog_NM"; then
35631   ac_ct_NM=$NM
35632   # Extract the first word of "nm", so it can be a program name with args.
35633 set dummy nm; ac_word=$2
35634 echo "$as_me:$LINENO: checking for $ac_word" >&5
35635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35636 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
35637   echo $ECHO_N "(cached) $ECHO_C" >&6
35638 else
35639   if test -n "$ac_ct_NM"; then
35640   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
35641 else
35642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35643 for as_dir in $PATH
35644 do
35645   IFS=$as_save_IFS
35646   test -z "$as_dir" && as_dir=.
35647   for ac_exec_ext in '' $ac_executable_extensions; do
35648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35649     ac_cv_prog_ac_ct_NM="nm"
35650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35651     break 2
35652   fi
35653 done
35654 done
35655
35656   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
35657 fi
35658 fi
35659 ac_ct_NM=$ac_cv_prog_ac_ct_NM
35660 if test -n "$ac_ct_NM"; then
35661   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
35662 echo "${ECHO_T}$ac_ct_NM" >&6
35663 else
35664   echo "$as_me:$LINENO: result: no" >&5
35665 echo "${ECHO_T}no" >&6
35666 fi
35667
35668   NM=$ac_ct_NM
35669 else
35670   NM="$ac_cv_prog_NM"
35671 fi
35672
35673
35674     case ${BAKEFILE_HOST} in
35675         *-hp-hpux* )
35676             INSTALL_DIR="mkdir"
35677             ;;
35678         *)  INSTALL_DIR="$INSTALL -d"
35679             ;;
35680     esac
35681
35682
35683     LDFLAGS_GUI=
35684     case ${BAKEFILE_HOST} in
35685         *-*-cygwin* | *-*-mingw32* )
35686         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
35687     esac
35688
35689
35690     fi
35691
35692         echo "$as_me:$LINENO: checking if make is GNU make" >&5
35693 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
35694 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
35695   echo $ECHO_N "(cached) $ECHO_C" >&6
35696 else
35697
35698         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
35699                 egrep -s GNU > /dev/null); then
35700             bakefile_cv_prog_makeisgnu="yes"
35701         else
35702             bakefile_cv_prog_makeisgnu="no"
35703         fi
35704
35705 fi
35706 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
35707 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
35708
35709     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
35710         IF_GNU_MAKE=""
35711     else
35712         IF_GNU_MAKE="#"
35713     fi
35714
35715
35716
35717     PLATFORM_UNIX=0
35718     PLATFORM_WIN32=0
35719     PLATFORM_MSDOS=0
35720     PLATFORM_MAC=0
35721     PLATFORM_MACOSX=0
35722     PLATFORM_OS2=0
35723
35724     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
35725         case "${BAKEFILE_HOST}" in
35726             *-*-cygwin* | *-*-mingw32* )
35727                 PLATFORM_WIN32=1
35728             ;;
35729             *-pc-msdosdjgpp )
35730                 PLATFORM_MSDOS=1
35731             ;;
35732             *-pc-os2_emx | *-pc-os2-emx )
35733                 PLATFORM_OS2=1
35734             ;;
35735             powerpc-*-darwin* )
35736                 PLATFORM_MAC=1
35737                 PLATFORM_MACOSX=1
35738             ;;
35739             * )
35740                 PLATFORM_UNIX=1
35741             ;;
35742         esac
35743     else
35744         case "$BAKEFILE_FORCE_PLATFORM" in
35745             win32 )
35746                 PLATFORM_WIN32=1
35747             ;;
35748             msdos )
35749                 PLATFORM_MSDOS=1
35750             ;;
35751             os2 )
35752                 PLATFORM_OS2=1
35753             ;;
35754             darwin )
35755                 PLATFORM_MAC=1
35756                 PLATFORM_MACOSX=1
35757             ;;
35758             unix )
35759                 PLATFORM_UNIX=1
35760             ;;
35761             * )
35762                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
35763 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
35764    { (exit 1); exit 1; }; }
35765             ;;
35766         esac
35767     fi
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777     SO_SUFFIX="so"
35778     SO_SUFFIX_MODULE="so"
35779     EXEEXT=""
35780     LIBPREFIX=lib
35781     DLLPREFIX=lib
35782     DLLPREFIX_MODULE=
35783
35784     case "${BAKEFILE_HOST}" in
35785         *-hp-hpux* )
35786             SO_SUFFIX="sl"
35787             SO_SUFFIX_MODULE="sl"
35788         ;;
35789         *-*-aix* )
35790                                                                         SO_SUFFIX="a"
35791             SO_SUFFIX_MODULE="a"
35792         ;;
35793         *-*-cygwin* | *-*-mingw32* )
35794             SO_SUFFIX="dll"
35795             SO_SUFFIX_MODULE="dll"
35796             EXEEXT=".exe"
35797             DLLPREFIX=""
35798         ;;
35799         *-pc-msdosdjgpp )
35800             EXEEXT=".exe"
35801             DLLPREFIX=""
35802         ;;
35803         *-pc-os2_emx | *-pc-os2-emx )
35804             EXEEXT=".exe"
35805             DLLPREFIX=""
35806             LIBPREFIX=""
35807         ;;
35808         powerpc-*-darwin* )
35809             SO_SUFFIX="dylib"
35810             SO_SUFFIX_MODULE="bundle"
35811         ;;
35812     esac
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822         SHARED_LD_CC="\$(CC) -shared -o"
35823     SHARED_LD_CXX="\$(CXX) -shared -o"
35824
35825         if test "x$GCC" = "xyes"; then
35826                 PIC_FLAG="-fPIC"
35827     fi
35828
35829     case "${BAKEFILE_HOST}" in
35830       *-hp-hpux* )
35831                 if test "x$GCC" = "xyes"; then
35832                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
35833             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
35834         else
35835                         LDFLAGS="$LDFLAGS -L/usr/lib"
35836
35837             SHARED_LD_CC="${CC} -b -o"
35838             SHARED_LD_CXX="${CXX} -b -o"
35839             PIC_FLAG="+Z"
35840         fi
35841       ;;
35842
35843       *-*-linux* )
35844         if test "x$GCC" != "xyes"; then
35845             echo "$as_me:$LINENO: checking for Intel compiler" >&5
35846 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
35847 if test "${bakefile_cv_prog_icc+set}" = set; then
35848   echo $ECHO_N "(cached) $ECHO_C" >&6
35849 else
35850
35851                 cat >conftest.$ac_ext <<_ACEOF
35852 #line $LINENO "configure"
35853 /* confdefs.h.  */
35854 _ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h.  */
35858
35859 int
35860 main ()
35861 {
35862
35863                         #ifndef __INTEL_COMPILER
35864                         #error Not icc
35865                         #endif
35866
35867   ;
35868   return 0;
35869 }
35870 _ACEOF
35871 rm -f conftest.$ac_objext
35872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35873   (eval $ac_compile) 2>&5
35874   ac_status=$?
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); } &&
35877          { ac_try='test -s conftest.$ac_objext'
35878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879   (eval $ac_try) 2>&5
35880   ac_status=$?
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); }; }; then
35883   bakefile_cv_prog_icc=yes
35884 else
35885   echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35887
35888 bakefile_cv_prog_icc=no
35889
35890 fi
35891 rm -f conftest.$ac_objext conftest.$ac_ext
35892
35893 fi
35894 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
35895 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
35896             if test "$bakefile_cv_prog_icc" = "yes"; then
35897                 PIC_FLAG="-KPIC"
35898             fi
35899         fi
35900       ;;
35901
35902       *-*-solaris2* )
35903         if test "x$GCC" != xyes ; then
35904             SHARED_LD_CC="${CC} -G -o"
35905             SHARED_LD_CXX="${CXX} -G -o"
35906             PIC_FLAG="-KPIC"
35907         fi
35908       ;;
35909
35910       *-*-darwin* )
35911                         CFLAGS="$CFLAGS -fno-common"
35912         CXXFLAGS="$CXXFLAGS -fno-common"
35913
35914
35915                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
35916 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
35917 if test "${wx_cv_gcc31+set}" = set; then
35918   echo $ECHO_N "(cached) $ECHO_C" >&6
35919 else
35920
35921            cat >conftest.$ac_ext <<_ACEOF
35922 #line $LINENO "configure"
35923 /* confdefs.h.  */
35924 _ACEOF
35925 cat confdefs.h >>conftest.$ac_ext
35926 cat >>conftest.$ac_ext <<_ACEOF
35927 /* end confdefs.h.  */
35928
35929 int
35930 main ()
35931 {
35932
35933                    #if (__GNUC__ < 3) || \
35934                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
35935                        #error old gcc
35936                    #endif
35937
35938   ;
35939   return 0;
35940 }
35941 _ACEOF
35942 rm -f conftest.$ac_objext
35943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35944   (eval $ac_compile) 2>&5
35945   ac_status=$?
35946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947   (exit $ac_status); } &&
35948          { ac_try='test -s conftest.$ac_objext'
35949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950   (eval $ac_try) 2>&5
35951   ac_status=$?
35952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953   (exit $ac_status); }; }; then
35954
35955                    wx_cv_gcc31=yes
35956
35957 else
35958   echo "$as_me: failed program was:" >&5
35959 sed 's/^/| /' conftest.$ac_ext >&5
35960
35961
35962                    wx_cv_gcc31=no
35963
35964
35965 fi
35966 rm -f conftest.$ac_objext conftest.$ac_ext
35967
35968 fi
35969 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
35970 echo "${ECHO_T}$wx_cv_gcc31" >&6
35971         if test "$wx_cv_gcc31" = "no"; then
35972             cat <<EOF >shared-ld-sh
35973 #!/bin/sh
35974 #-----------------------------------------------------------------------------
35975 #-- Name:        distrib/mac/shared-ld-sh
35976 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
35977 #-- Author:      Gilles Depeyrot
35978 #-- Copyright:   (c) 2002 Gilles Depeyrot
35979 #-- Licence:     any use permitted
35980 #-----------------------------------------------------------------------------
35981
35982 verbose=0
35983 args=""
35984 objects=""
35985 linking_flag="-dynamiclib"
35986
35987 while test \${#} -gt 0; do
35988     case \${1} in
35989
35990        -v)
35991         verbose=1
35992         ;;
35993
35994        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
35995         # collect these options and values
35996         args="\${args} \${1} \${2}"
35997         shift
35998         ;;
35999
36000        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
36001         # collect these options
36002         args="\${args} \${1}"
36003         ;;
36004
36005        -dynamiclib|-bundle)
36006         linking_flag="\${1}"
36007         ;;
36008
36009        -*)
36010         echo "shared-ld: unhandled option '\${1}'"
36011         exit 1
36012         ;;
36013
36014         *.o | *.a | *.dylib)
36015         # collect object files
36016         objects="\${objects} \${1}"
36017         ;;
36018
36019         *)
36020         echo "shared-ld: unhandled argument '\${1}'"
36021         exit 1
36022         ;;
36023
36024     esac
36025     shift
36026 done
36027
36028 #
36029 # Link one module containing all the others
36030 #
36031 if test \${verbose} = 1; then
36032     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
36033 fi
36034 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
36035 status=\$?
36036 if test \${status} != 0; then
36037     exit \${status}
36038 fi
36039
36040 #
36041 # Link the shared library from the single module created
36042 #
36043 if test \${verbose} = 1; then
36044     echo "cc \${linking_flag} master.\$\$.o \${args}"
36045 fi
36046 c++ \${linking_flag} master.\$\$.o \${args}
36047 status=\$?
36048 if test \${status} != 0; then
36049     exit \${status}
36050 fi
36051
36052 #
36053 # Remove intermediate module
36054 #
36055 rm -f master.\$\$.o
36056
36057 exit 0
36058 EOF
36059             chmod +x shared-ld-sh
36060
36061                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
36062             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
36063             SHARED_LD_CXX="$SHARED_LD_CC"
36064             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
36065         else
36066                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
36067             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
36068             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
36069             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
36070         fi
36071
36072         PIC_FLAG="-dynamic -fPIC"
36073       ;;
36074
36075       *-*-aix* )
36076                 if test "x$GCC" != "xyes"; then
36077                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
36078 set dummy makeC++SharedLib; ac_word=$2
36079 echo "$as_me:$LINENO: checking for $ac_word" >&5
36080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36081 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
36082   echo $ECHO_N "(cached) $ECHO_C" >&6
36083 else
36084   if test -n "$AIX_CXX_LD"; then
36085   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
36086 else
36087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36088 for as_dir in $PATH
36089 do
36090   IFS=$as_save_IFS
36091   test -z "$as_dir" && as_dir=.
36092   for ac_exec_ext in '' $ac_executable_extensions; do
36093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36094     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
36095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36096     break 2
36097   fi
36098 done
36099 done
36100
36101   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
36102 fi
36103 fi
36104 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
36105 if test -n "$AIX_CXX_LD"; then
36106   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
36107 echo "${ECHO_T}$AIX_CXX_LD" >&6
36108 else
36109   echo "$as_me:$LINENO: result: no" >&5
36110 echo "${ECHO_T}no" >&6
36111 fi
36112
36113                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
36114             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
36115         fi
36116       ;;
36117
36118       *-*-beos* )
36119                         SHARED_LD_CC="${LD} -shared -o"
36120         SHARED_LD_CXX="${LD} -shared -o"
36121       ;;
36122
36123       *-*-irix* )
36124                 if test "x$GCC" != "xyes"; then
36125             PIC_FLAG="-KPIC"
36126         fi
36127       ;;
36128
36129       *-*-cygwin* | *-*-mingw32* )
36130         PIC_FLAG=""
36131       ;;
36132
36133       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
36134       *-*-sunos4* | \
36135       *-*-osf* | \
36136       *-*-dgux5* | \
36137       *-pc-os2_emx | *-pc-os2-emx | \
36138       *-*-sysv5* )
36139               ;;
36140
36141       *)
36142         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
36143 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
36144    { (exit 1); exit 1; }; }
36145     esac
36146
36147     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
36148         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
36149     fi
36150     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
36151         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
36152     fi
36153
36154
36155
36156
36157
36158
36159
36160
36161     USE_SOVERSION=0
36162     USE_SOVERLINUX=0
36163     USE_SOVERSOLARIS=0
36164     USE_SOSYMLINKS=0
36165     USE_MACVERSION=0
36166     SONAME_FLAG=
36167
36168     case "${BAKEFILE_HOST}" in
36169       *-*-linux* )
36170         SONAME_FLAG="-Wl,-soname,"
36171         USE_SOVERSION=1
36172         USE_SOVERLINUX=1
36173         USE_SOSYMLINKS=1
36174       ;;
36175
36176       *-*-solaris2* )
36177         SONAME_FLAG="-h "
36178         USE_SOVERSION=1
36179         USE_SOVERSOLARIS=1
36180         USE_SOSYMLINKS=1
36181       ;;
36182
36183       *-*-darwin* )
36184         USE_MACVERSION=1
36185         USE_SOVERSION=1
36186         USE_SOSYMLINKS=1
36187       ;;
36188     esac
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
36199 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
36200     DEPS_TRACKING=0
36201
36202     if test "x$GCC" = "xyes"; then
36203         DEPSMODE=gcc
36204         DEPS_TRACKING=1
36205         case "${BAKEFILE_HOST}" in
36206             powerpc-*-darwin* )
36207                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
36208             ;;
36209             * )
36210                 DEPSFLAG_GCC="-MMD"
36211             ;;
36212         esac
36213         echo "$as_me:$LINENO: result: gcc" >&5
36214 echo "${ECHO_T}gcc" >&6
36215     else
36216         echo "$as_me:$LINENO: result: none" >&5
36217 echo "${ECHO_T}none" >&6
36218     fi
36219
36220     if test $DEPS_TRACKING = 1 ; then
36221         cat <<EOF >bk-deps
36222 #!/bin/sh
36223
36224 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36225 # script. It is used to track C/C++ files dependencies in portable way.
36226 #
36227 # Permission is given to use this file in any way.
36228
36229 DEPSMODE=$DEPSMODE
36230 DEPSDIR=.deps
36231 DEPSFLAG_GCC="$DEPSFLAG_GCC"
36232
36233 mkdir -p \$DEPSDIR
36234
36235 if test \$DEPSMODE = gcc ; then
36236     \${*} \${DEPSFLAG_GCC}
36237     status=\${?}
36238     if test \${status} != 0 ; then
36239         exit \${status}
36240     fi
36241     # move created file to the location we want it in:
36242     while test \${#} -gt 0; do
36243         case "\${1}" in
36244             -o )
36245                 shift
36246                 objfile=\${1}
36247             ;;
36248             -* )
36249             ;;
36250             * )
36251                 srcfile=\${1}
36252             ;;
36253         esac
36254         shift
36255     done
36256     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
36257     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
36258     if test -f \$depfile ; then
36259         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
36260         rm -f \$depfile
36261     else
36262         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
36263         if test -f \$depfile ; then
36264             sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
36265             rm -f \$depfile
36266         fi
36267     fi
36268     exit 0
36269 else
36270     \${*}
36271     exit \${?}
36272 fi
36273 EOF
36274         chmod +x bk-deps
36275     fi
36276
36277
36278
36279
36280     RESCOMP=
36281     SETFILE=
36282
36283     case ${BAKEFILE_HOST} in
36284         *-*-cygwin* | *-*-mingw32* )
36285                         if test "$build" != "$host" ; then
36286                 RESCOMP=$host_alias-windres
36287             else
36288                 # Extract the first word of "windres", so it can be a program name with args.
36289 set dummy windres; ac_word=$2
36290 echo "$as_me:$LINENO: checking for $ac_word" >&5
36291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36292 if test "${ac_cv_prog_RESCOMP+set}" = set; then
36293   echo $ECHO_N "(cached) $ECHO_C" >&6
36294 else
36295   if test -n "$RESCOMP"; then
36296   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36297 else
36298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36299 for as_dir in $PATH
36300 do
36301   IFS=$as_save_IFS
36302   test -z "$as_dir" && as_dir=.
36303   for ac_exec_ext in '' $ac_executable_extensions; do
36304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36305     ac_cv_prog_RESCOMP="windres"
36306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36307     break 2
36308   fi
36309 done
36310 done
36311
36312   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
36313 fi
36314 fi
36315 RESCOMP=$ac_cv_prog_RESCOMP
36316 if test -n "$RESCOMP"; then
36317   echo "$as_me:$LINENO: result: $RESCOMP" >&5
36318 echo "${ECHO_T}$RESCOMP" >&6
36319 else
36320   echo "$as_me:$LINENO: result: no" >&5
36321 echo "${ECHO_T}no" >&6
36322 fi
36323
36324             fi
36325          ;;
36326
36327       *-*-darwin* )
36328             # Extract the first word of "Rez", so it can be a program name with args.
36329 set dummy Rez; ac_word=$2
36330 echo "$as_me:$LINENO: checking for $ac_word" >&5
36331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36332 if test "${ac_cv_prog_RESCOMP+set}" = set; then
36333   echo $ECHO_N "(cached) $ECHO_C" >&6
36334 else
36335   if test -n "$RESCOMP"; then
36336   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36337 else
36338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36339 for as_dir in $PATH
36340 do
36341   IFS=$as_save_IFS
36342   test -z "$as_dir" && as_dir=.
36343   for ac_exec_ext in '' $ac_executable_extensions; do
36344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36345     ac_cv_prog_RESCOMP="Rez"
36346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36347     break 2
36348   fi
36349 done
36350 done
36351
36352   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
36353 fi
36354 fi
36355 RESCOMP=$ac_cv_prog_RESCOMP
36356 if test -n "$RESCOMP"; then
36357   echo "$as_me:$LINENO: result: $RESCOMP" >&5
36358 echo "${ECHO_T}$RESCOMP" >&6
36359 else
36360   echo "$as_me:$LINENO: result: no" >&5
36361 echo "${ECHO_T}no" >&6
36362 fi
36363
36364             # Extract the first word of "SetFile", so it can be a program name with args.
36365 set dummy SetFile; ac_word=$2
36366 echo "$as_me:$LINENO: checking for $ac_word" >&5
36367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36368 if test "${ac_cv_prog_SETFILE+set}" = set; then
36369   echo $ECHO_N "(cached) $ECHO_C" >&6
36370 else
36371   if test -n "$SETFILE"; then
36372   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36373 else
36374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36375 for as_dir in $PATH
36376 do
36377   IFS=$as_save_IFS
36378   test -z "$as_dir" && as_dir=.
36379   for ac_exec_ext in '' $ac_executable_extensions; do
36380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36381     ac_cv_prog_SETFILE="SetFile"
36382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36383     break 2
36384   fi
36385 done
36386 done
36387
36388   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36389 fi
36390 fi
36391 SETFILE=$ac_cv_prog_SETFILE
36392 if test -n "$SETFILE"; then
36393   echo "$as_me:$LINENO: result: $SETFILE" >&5
36394 echo "${ECHO_T}$SETFILE" >&6
36395 else
36396   echo "$as_me:$LINENO: result: no" >&5
36397 echo "${ECHO_T}no" >&6
36398 fi
36399
36400         ;;
36401     esac
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
36413 if test "${enable_precomp_headers+set}" = set; then
36414   enableval="$enable_precomp_headers"
36415   bk_use_pch="$enableval"
36416 fi;
36417
36418     GCC_PCH=0
36419
36420     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
36421         if test "x$GCC" = "xyes"; then
36422                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
36423 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
36424             cat >conftest.$ac_ext <<_ACEOF
36425 #line $LINENO "configure"
36426 /* confdefs.h.  */
36427 _ACEOF
36428 cat confdefs.h >>conftest.$ac_ext
36429 cat >>conftest.$ac_ext <<_ACEOF
36430 /* end confdefs.h.  */
36431
36432 int
36433 main ()
36434 {
36435
36436                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
36437                         #error "no pch support"
36438                     #endif
36439                     #if (__GNUC__ < 3)
36440                         #error "no pch support"
36441                     #endif
36442                     #if (__GNUC__ == 3) && \
36443                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
36444                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
36445                         #error "no pch support"
36446                     #endif
36447
36448   ;
36449   return 0;
36450 }
36451 _ACEOF
36452 rm -f conftest.$ac_objext
36453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36454   (eval $ac_compile) 2>&5
36455   ac_status=$?
36456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457   (exit $ac_status); } &&
36458          { ac_try='test -s conftest.$ac_objext'
36459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460   (eval $ac_try) 2>&5
36461   ac_status=$?
36462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463   (exit $ac_status); }; }; then
36464
36465                     echo "$as_me:$LINENO: result: yes" >&5
36466 echo "${ECHO_T}yes" >&6
36467                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
36468                     GCC_PCH=1
36469
36470 else
36471   echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36473
36474
36475                     echo "$as_me:$LINENO: result: no" >&5
36476 echo "${ECHO_T}no" >&6
36477
36478 fi
36479 rm -f conftest.$ac_objext conftest.$ac_ext
36480             if test $GCC_PCH = 1 ; then
36481                 cat <<EOF >bk-make-pch
36482 #!/bin/sh
36483
36484 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36485 # script. It is used to generated precompiled headers.
36486 #
36487 # Permission is given to use this file in any way.
36488
36489 outfile="\${1}"
36490 header="\${2}"
36491 shift
36492 shift
36493
36494 compiler=
36495 headerfile=
36496 while test \${#} -gt 0; do
36497     case "\${1}" in
36498         -I* )
36499             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
36500             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
36501                 headerfile="\${incdir}/\${header}"
36502             fi
36503         ;;
36504     esac
36505     compiler="\${compiler} \${1}"
36506     shift
36507 done
36508
36509 if test "x\${headerfile}" = "x" ; then
36510     echo "error: can't find header \${header} in include paths" >2
36511 else
36512     if test -f \${outfile} ; then
36513         rm -f \${outfile}
36514     else
36515         mkdir -p \`dirname \${outfile}\`
36516     fi
36517     depsfile=".deps/\`basename \${outfile}\`.d"
36518     mkdir -p .deps
36519     # can do this because gcc is >= 3.4:
36520     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
36521     exit \${?}
36522 fi
36523 EOF
36524                 chmod +x bk-make-pch
36525             fi
36526         fi
36527     fi
36528
36529
36530
36531
36532
36533     COND_BUILD_DEBUG="#"
36534     if test "x$BUILD" = "xdebug" ; then
36535         COND_BUILD_DEBUG=""
36536     fi
36537
36538     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
36539     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
36540         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
36541     fi
36542
36543     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
36544     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
36545         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
36546     fi
36547
36548     COND_BUILD_DEBUG_UNICODE_0="#"
36549     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
36550         COND_BUILD_DEBUG_UNICODE_0=""
36551     fi
36552
36553     COND_BUILD_DEBUG_UNICODE_1="#"
36554     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
36555         COND_BUILD_DEBUG_UNICODE_1=""
36556     fi
36557
36558     COND_BUILD_RELEASE="#"
36559     if test "x$BUILD" = "xrelease" ; then
36560         COND_BUILD_RELEASE=""
36561     fi
36562
36563     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
36564     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
36565         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
36566     fi
36567
36568     COND_BUILD_RELEASE_UNICODE_0="#"
36569     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
36570         COND_BUILD_RELEASE_UNICODE_0=""
36571     fi
36572
36573     COND_BUILD_RELEASE_UNICODE_1="#"
36574     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
36575         COND_BUILD_RELEASE_UNICODE_1=""
36576     fi
36577
36578     COND_DEBUG_FLAG_1="#"
36579     if test "x$DEBUG_FLAG" = "x1" ; then
36580         COND_DEBUG_FLAG_1=""
36581     fi
36582
36583     COND_DEBUG_INFO_0="#"
36584     if test "x$DEBUG_INFO" = "x0" ; then
36585         COND_DEBUG_INFO_0=""
36586     fi
36587
36588     COND_DEBUG_INFO_1="#"
36589     if test "x$DEBUG_INFO" = "x1" ; then
36590         COND_DEBUG_INFO_1=""
36591     fi
36592
36593     COND_DEPS_TRACKING_0="#"
36594     if test "x$DEPS_TRACKING" = "x0" ; then
36595         COND_DEPS_TRACKING_0=""
36596     fi
36597
36598     COND_DEPS_TRACKING_1="#"
36599     if test "x$DEPS_TRACKING" = "x1" ; then
36600         COND_DEPS_TRACKING_1=""
36601     fi
36602
36603     COND_GCC_PCH_1="#"
36604     if test "x$GCC_PCH" = "x1" ; then
36605         COND_GCC_PCH_1=""
36606     fi
36607
36608     COND_MONOLITHIC_0="#"
36609     if test "x$MONOLITHIC" = "x0" ; then
36610         COND_MONOLITHIC_0=""
36611     fi
36612
36613     COND_MONOLITHIC_0_SHARED_0="#"
36614     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
36615         COND_MONOLITHIC_0_SHARED_0=""
36616     fi
36617
36618     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
36619     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
36620         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
36621     fi
36622
36623     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
36624     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36625         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
36626     fi
36627
36628     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
36629     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
36630         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
36631     fi
36632
36633     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
36634     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
36635         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
36636     fi
36637
36638     COND_MONOLITHIC_0_SHARED_1="#"
36639     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
36640         COND_MONOLITHIC_0_SHARED_1=""
36641     fi
36642
36643     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
36644     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
36645         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
36646     fi
36647
36648     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
36649     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36650         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
36651     fi
36652
36653     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
36654     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
36655         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
36656     fi
36657
36658     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
36659     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
36660         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
36661     fi
36662
36663     COND_MONOLITHIC_0_USE_ODBC_1="#"
36664     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
36665         COND_MONOLITHIC_0_USE_ODBC_1=""
36666     fi
36667
36668     COND_MONOLITHIC_1="#"
36669     if test "x$MONOLITHIC" = "x1" ; then
36670         COND_MONOLITHIC_1=""
36671     fi
36672
36673     COND_MONOLITHIC_1_SHARED_0="#"
36674     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
36675         COND_MONOLITHIC_1_SHARED_0=""
36676     fi
36677
36678     COND_MONOLITHIC_1_SHARED_1="#"
36679     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
36680         COND_MONOLITHIC_1_SHARED_1=""
36681     fi
36682
36683     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
36684     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
36685         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
36686     fi
36687
36688     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
36689     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
36690         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
36691     fi
36692
36693     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
36694     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
36695         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
36696     fi
36697
36698     COND_PLATFORM_MACOSX_1="#"
36699     if test "x$PLATFORM_MACOSX" = "x1" ; then
36700         COND_PLATFORM_MACOSX_1=""
36701     fi
36702
36703     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
36704     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
36705         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
36706     fi
36707
36708     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
36709     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
36710         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
36711     fi
36712
36713     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
36714     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
36715         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
36716     fi
36717
36718     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
36719     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
36720         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
36721     fi
36722
36723     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
36724     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
36725         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
36726     fi
36727
36728     COND_PLATFORM_MAC_1="#"
36729     if test "x$PLATFORM_MAC" = "x1" ; then
36730         COND_PLATFORM_MAC_1=""
36731     fi
36732
36733     COND_PLATFORM_OS2_1="#"
36734     if test "x$PLATFORM_OS2" = "x1" ; then
36735         COND_PLATFORM_OS2_1=""
36736     fi
36737
36738     COND_PLATFORM_UNIX_0="#"
36739     if test "x$PLATFORM_UNIX" = "x0" ; then
36740         COND_PLATFORM_UNIX_0=""
36741     fi
36742
36743     COND_PLATFORM_UNIX_1="#"
36744     if test "x$PLATFORM_UNIX" = "x1" ; then
36745         COND_PLATFORM_UNIX_1=""
36746     fi
36747
36748     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
36749     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
36750         COND_PLATFORM_UNIX_1_USE_GUI_1=""
36751     fi
36752
36753     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
36754     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
36755         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
36756     fi
36757
36758     COND_PLATFORM_WIN32_0="#"
36759     if test "x$PLATFORM_WIN32" = "x0" ; then
36760         COND_PLATFORM_WIN32_0=""
36761     fi
36762
36763     COND_PLATFORM_WIN32_1="#"
36764     if test "x$PLATFORM_WIN32" = "x1" ; then
36765         COND_PLATFORM_WIN32_1=""
36766     fi
36767
36768     COND_SHARED_0="#"
36769     if test "x$SHARED" = "x0" ; then
36770         COND_SHARED_0=""
36771     fi
36772
36773     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
36774     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36775         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
36776     fi
36777
36778     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36779     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36780         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36781     fi
36782
36783     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36784     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36785         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36786     fi
36787
36788     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36789     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36790         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36791     fi
36792
36793     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
36794     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
36795         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
36796     fi
36797
36798     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
36799     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
36800         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
36801     fi
36802
36803     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
36804     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
36805         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
36806     fi
36807
36808     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
36809     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
36810         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
36811     fi
36812
36813     COND_SHARED_1="#"
36814     if test "x$SHARED" = "x1" ; then
36815         COND_SHARED_1=""
36816     fi
36817
36818     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
36819     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36820         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
36821     fi
36822
36823     COND_TOOLKIT_COCOA="#"
36824     if test "x$TOOLKIT" = "xCOCOA" ; then
36825         COND_TOOLKIT_COCOA=""
36826     fi
36827
36828     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
36829     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36830         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
36831     fi
36832
36833     COND_TOOLKIT_GTK="#"
36834     if test "x$TOOLKIT" = "xGTK" ; then
36835         COND_TOOLKIT_GTK=""
36836     fi
36837
36838     COND_TOOLKIT_GTK_USE_GUI_1="#"
36839     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
36840         COND_TOOLKIT_GTK_USE_GUI_1=""
36841     fi
36842
36843     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
36844     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36845         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
36846     fi
36847
36848     COND_TOOLKIT_MAC="#"
36849     if test "x$TOOLKIT" = "xMAC" ; then
36850         COND_TOOLKIT_MAC=""
36851     fi
36852
36853     COND_TOOLKIT_MAC_USE_GUI_1="#"
36854     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
36855         COND_TOOLKIT_MAC_USE_GUI_1=""
36856     fi
36857
36858     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
36859     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36860         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
36861     fi
36862
36863     COND_TOOLKIT_MGL="#"
36864     if test "x$TOOLKIT" = "xMGL" ; then
36865         COND_TOOLKIT_MGL=""
36866     fi
36867
36868     COND_TOOLKIT_MGL_USE_GUI_1="#"
36869     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
36870         COND_TOOLKIT_MGL_USE_GUI_1=""
36871     fi
36872
36873     COND_TOOLKIT_MOTIF="#"
36874     if test "x$TOOLKIT" = "xMOTIF" ; then
36875         COND_TOOLKIT_MOTIF=""
36876     fi
36877
36878     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
36879     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
36880         COND_TOOLKIT_MOTIF_USE_GUI_1=""
36881     fi
36882
36883     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
36884     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36885         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
36886     fi
36887
36888     COND_TOOLKIT_MSW="#"
36889     if test "x$TOOLKIT" = "xMSW" ; then
36890         COND_TOOLKIT_MSW=""
36891     fi
36892
36893     COND_TOOLKIT_MSW_USE_GUI_1="#"
36894     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
36895         COND_TOOLKIT_MSW_USE_GUI_1=""
36896     fi
36897
36898     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
36899     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36900         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
36901     fi
36902
36903     COND_TOOLKIT_PM="#"
36904     if test "x$TOOLKIT" = "xPM" ; then
36905         COND_TOOLKIT_PM=""
36906     fi
36907
36908     COND_TOOLKIT_PM_USE_GUI_1="#"
36909     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
36910         COND_TOOLKIT_PM_USE_GUI_1=""
36911     fi
36912
36913     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
36914     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36915         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
36916     fi
36917
36918     COND_TOOLKIT_X11="#"
36919     if test "x$TOOLKIT" = "xX11" ; then
36920         COND_TOOLKIT_X11=""
36921     fi
36922
36923     COND_TOOLKIT_X11_USE_GUI_1="#"
36924     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
36925         COND_TOOLKIT_X11_USE_GUI_1=""
36926     fi
36927
36928     COND_UNICODE_1="#"
36929     if test "x$UNICODE" = "x1" ; then
36930         COND_UNICODE_1=""
36931     fi
36932
36933     COND_USE_EXCEPTIONS_0="#"
36934     if test "x$USE_EXCEPTIONS" = "x0" ; then
36935         COND_USE_EXCEPTIONS_0=""
36936     fi
36937
36938     COND_USE_EXCEPTIONS_1="#"
36939     if test "x$USE_EXCEPTIONS" = "x1" ; then
36940         COND_USE_EXCEPTIONS_1=""
36941     fi
36942
36943     COND_USE_GUI_0="#"
36944     if test "x$USE_GUI" = "x0" ; then
36945         COND_USE_GUI_0=""
36946     fi
36947
36948     COND_USE_GUI_1="#"
36949     if test "x$USE_GUI" = "x1" ; then
36950         COND_USE_GUI_1=""
36951     fi
36952
36953     COND_USE_GUI_1_WXUNIV_0="#"
36954     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36955         COND_USE_GUI_1_WXUNIV_0=""
36956     fi
36957
36958     COND_USE_GUI_1_WXUNIV_1="#"
36959     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
36960         COND_USE_GUI_1_WXUNIV_1=""
36961     fi
36962
36963     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36964     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36965         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36966     fi
36967
36968     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36969     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36970         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36971     fi
36972
36973     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36974     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36975         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36976     fi
36977
36978     COND_USE_ODBC_1="#"
36979     if test "x$USE_ODBC" = "x1" ; then
36980         COND_USE_ODBC_1=""
36981     fi
36982
36983     COND_USE_PLUGINS_0="#"
36984     if test "x$USE_PLUGINS" = "x0" ; then
36985         COND_USE_PLUGINS_0=""
36986     fi
36987
36988     COND_USE_SOSYMLINKS_1="#"
36989     if test "x$USE_SOSYMLINKS" = "x1" ; then
36990         COND_USE_SOSYMLINKS_1=""
36991     fi
36992
36993     COND_USE_SOVERLINUX_1="#"
36994     if test "x$USE_SOVERLINUX" = "x1" ; then
36995         COND_USE_SOVERLINUX_1=""
36996     fi
36997
36998     COND_USE_SOVERSION_0="#"
36999     if test "x$USE_SOVERSION" = "x0" ; then
37000         COND_USE_SOVERSION_0=""
37001     fi
37002
37003     COND_USE_SOVERSOLARIS_1="#"
37004     if test "x$USE_SOVERSOLARIS" = "x1" ; then
37005         COND_USE_SOVERSOLARIS_1=""
37006     fi
37007
37008     COND_WITH_PLUGIN_SDL_1="#"
37009     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
37010         COND_WITH_PLUGIN_SDL_1=""
37011     fi
37012
37013     COND_WITH_SDL_1="#"
37014     if test "x$WITH_SDL" = "x1" ; then
37015         COND_WITH_SDL_1=""
37016     fi
37017
37018     COND_WXUNIV_1="#"
37019     if test "x$WXUNIV" = "x1" ; then
37020         COND_WXUNIV_1=""
37021     fi
37022
37023     COND_WXUSE_EXPAT_BUILTIN="#"
37024     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
37025         COND_WXUSE_EXPAT_BUILTIN=""
37026     fi
37027
37028     COND_WXUSE_LIBJPEG_BUILTIN="#"
37029     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
37030         COND_WXUSE_LIBJPEG_BUILTIN=""
37031     fi
37032
37033     COND_WXUSE_LIBPNG_BUILTIN="#"
37034     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
37035         COND_WXUSE_LIBPNG_BUILTIN=""
37036     fi
37037
37038     COND_WXUSE_LIBTIFF_BUILTIN="#"
37039     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
37040         COND_WXUSE_LIBTIFF_BUILTIN=""
37041     fi
37042
37043     COND_WXUSE_ODBC_BUILTIN="#"
37044     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
37045         COND_WXUSE_ODBC_BUILTIN=""
37046     fi
37047
37048     COND_WXUSE_REGEX_BUILTIN="#"
37049     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
37050         COND_WXUSE_REGEX_BUILTIN=""
37051     fi
37052
37053     COND_WXUSE_ZLIB_BUILTIN="#"
37054     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
37055         COND_WXUSE_ZLIB_BUILTIN=""
37056     fi
37057
37058
37059
37060
37061
37062 if test $GCC_PCH = 1 ; then
37063     CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
37064     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
37065 else
37066     case "${host}" in
37067         powerpc-*-darwin* )
37068                                     CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
37069             CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
37070             ;;
37071     esac
37072 fi
37073
37074
37075 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115
37116
37117
37118
37119
37120
37121
37122
37123
37124
37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
37178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
37179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37180   echo $ECHO_N "(cached) $ECHO_C" >&6
37181 else
37182   cat >conftest.make <<\_ACEOF
37183 all:
37184         @echo 'ac_maketemp="$(MAKE)"'
37185 _ACEOF
37186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37188 if test -n "$ac_maketemp"; then
37189   eval ac_cv_prog_make_${ac_make}_set=yes
37190 else
37191   eval ac_cv_prog_make_${ac_make}_set=no
37192 fi
37193 rm -f conftest.make
37194 fi
37195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37196   echo "$as_me:$LINENO: result: yes" >&5
37197 echo "${ECHO_T}yes" >&6
37198   SET_MAKE=
37199 else
37200   echo "$as_me:$LINENO: result: no" >&5
37201 echo "${ECHO_T}no" >&6
37202   SET_MAKE="MAKE=${MAKE-make}"
37203 fi
37204
37205
37206 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
37207     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
37208 fi
37209
37210           ac_config_headers="$ac_config_headers setup.h"
37211
37212
37213                               ac_config_files="$ac_config_files wx-config version-script Makefile"
37214
37215
37216           ac_config_commands="$ac_config_commands default"
37217
37218
37219
37220 if test "$wxUSE_GUI" = "yes"; then
37221     SUBDIRS="samples demos utils contrib"
37222 else         SUBDIRS="samples utils"
37223 fi
37224
37225 for subdir in `echo $SUBDIRS`; do
37226     if test -d ${srcdir}/${subdir} ; then
37227         if test "$wxUSE_GUI" = "yes"; then
37228             if test ${subdir} = "samples"; then
37229                                                 makefiles="samples/Makefile.in $makefiles"
37230                 for sample in `echo $SAMPLES_SUBDIRS`; do
37231                     if test -d $srcdir/samples/$sample; then
37232                         makefiles="samples/$sample/Makefile.in $makefiles"
37233                     fi
37234                 done
37235             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
37236             fi
37237         else                                     if test ${subdir} = "samples"; then
37238                 makefiles="samples/Makefile.in samples/console/Makefile.in"
37239             else                 makefiles="utils/HelpGen/Makefile.in \
37240                            utils/HelpGen/src/Makefile.in \
37241                            utils/tex2rtf/Makefile.in \
37242                            utils/tex2rtf/src/Makefile.in"
37243             fi
37244         fi
37245
37246         for mkin in $makefiles ; do
37247             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
37248                       ac_config_files="$ac_config_files $mk"
37249
37250         done
37251     fi
37252 done
37253
37254
37255 cat >confcache <<\_ACEOF
37256 # This file is a shell script that caches the results of configure
37257 # tests run on this system so they can be shared between configure
37258 # scripts and configure runs, see configure's option --config-cache.
37259 # It is not useful on other systems.  If it contains results you don't
37260 # want to keep, you may remove or edit it.
37261 #
37262 # config.status only pays attention to the cache file if you give it
37263 # the --recheck option to rerun configure.
37264 #
37265 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37266 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37267 # following values.
37268
37269 _ACEOF
37270
37271 # The following way of writing the cache mishandles newlines in values,
37272 # but we know of no workaround that is simple, portable, and efficient.
37273 # So, don't put newlines in cache variables' values.
37274 # Ultrix sh set writes to stderr and can't be redirected directly,
37275 # and sets the high bit in the cache file unless we assign to the vars.
37276 {
37277   (set) 2>&1 |
37278     case `(ac_space=' '; set | grep ac_space) 2>&1` in
37279     *ac_space=\ *)
37280       # `set' does not quote correctly, so add quotes (double-quote
37281       # substitution turns \\\\ into \\, and sed turns \\ into \).
37282       sed -n \
37283         "s/'/'\\\\''/g;
37284           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37285       ;;
37286     *)
37287       # `set' quotes correctly as required by POSIX, so do not add quotes.
37288       sed -n \
37289         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37290       ;;
37291     esac;
37292 } |
37293   sed '
37294      t clear
37295      : clear
37296      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37297      t end
37298      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37299      : end' >>confcache
37300 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37301   if test -w $cache_file; then
37302     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37303     cat confcache >$cache_file
37304   else
37305     echo "not updating unwritable cache $cache_file"
37306   fi
37307 fi
37308 rm -f confcache
37309
37310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37311 # Let make expand exec_prefix.
37312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37313
37314 # VPATH may cause trouble with some makes, so we remove $(srcdir),
37315 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37316 # trailing colons and then remove the whole line if VPATH becomes empty
37317 # (actually we leave an empty line to preserve line numbers).
37318 if test "x$srcdir" = x.; then
37319   ac_vpsub='/^[         ]*VPATH[        ]*=/{
37320 s/:*\$(srcdir):*/:/;
37321 s/:*\${srcdir}:*/:/;
37322 s/:*@srcdir@:*/:/;
37323 s/^\([^=]*=[    ]*\):*/\1/;
37324 s/:*$//;
37325 s/^[^=]*=[      ]*$//;
37326 }'
37327 fi
37328
37329 DEFS=-DHAVE_CONFIG_H
37330
37331 ac_libobjs=
37332 ac_ltlibobjs=
37333 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37334   # 1. Remove the extension, and $U if already installed.
37335   ac_i=`echo "$ac_i" |
37336          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37337   # 2. Add them.
37338   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37339   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37340 done
37341 LIBOBJS=$ac_libobjs
37342
37343 LTLIBOBJS=$ac_ltlibobjs
37344
37345
37346
37347 : ${CONFIG_STATUS=./config.status}
37348 ac_clean_files_save=$ac_clean_files
37349 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37350 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37351 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37352 cat >$CONFIG_STATUS <<_ACEOF
37353 #! $SHELL
37354 # Generated by $as_me.
37355 # Run this file to recreate the current configuration.
37356 # Compiler output produced by configure, useful for debugging
37357 # configure, is in config.log if it exists.
37358
37359 debug=false
37360 ac_cs_recheck=false
37361 ac_cs_silent=false
37362 SHELL=\${CONFIG_SHELL-$SHELL}
37363 _ACEOF
37364
37365 cat >>$CONFIG_STATUS <<\_ACEOF
37366 ## --------------------- ##
37367 ## M4sh Initialization.  ##
37368 ## --------------------- ##
37369
37370 # Be Bourne compatible
37371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37372   emulate sh
37373   NULLCMD=:
37374   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37375   # is contrary to our usage.  Disable this feature.
37376   alias -g '${1+"$@"}'='"$@"'
37377 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37378   set -o posix
37379 fi
37380
37381 # Support unset when possible.
37382 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37383   as_unset=unset
37384 else
37385   as_unset=false
37386 fi
37387
37388
37389 # Work around bugs in pre-3.0 UWIN ksh.
37390 $as_unset ENV MAIL MAILPATH
37391 PS1='$ '
37392 PS2='> '
37393 PS4='+ '
37394
37395 # NLS nuisances.
37396 for as_var in \
37397   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37398   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37399   LC_TELEPHONE LC_TIME
37400 do
37401   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
37402     eval $as_var=C; export $as_var
37403   else
37404     $as_unset $as_var
37405   fi
37406 done
37407
37408 # Required to use basename.
37409 if expr a : '\(a\)' >/dev/null 2>&1; then
37410   as_expr=expr
37411 else
37412   as_expr=false
37413 fi
37414
37415 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37416   as_basename=basename
37417 else
37418   as_basename=false
37419 fi
37420
37421
37422 # Name of the executable.
37423 as_me=`$as_basename "$0" ||
37424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37425          X"$0" : 'X\(//\)$' \| \
37426          X"$0" : 'X\(/\)$' \| \
37427          .     : '\(.\)' 2>/dev/null ||
37428 echo X/"$0" |
37429     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37430           /^X\/\(\/\/\)$/{ s//\1/; q; }
37431           /^X\/\(\/\).*/{ s//\1/; q; }
37432           s/.*/./; q'`
37433
37434
37435 # PATH needs CR, and LINENO needs CR and PATH.
37436 # Avoid depending upon Character Ranges.
37437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37440 as_cr_digits='0123456789'
37441 as_cr_alnum=$as_cr_Letters$as_cr_digits
37442
37443 # The user is always right.
37444 if test "${PATH_SEPARATOR+set}" != set; then
37445   echo "#! /bin/sh" >conf$$.sh
37446   echo  "exit 0"   >>conf$$.sh
37447   chmod +x conf$$.sh
37448   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37449     PATH_SEPARATOR=';'
37450   else
37451     PATH_SEPARATOR=:
37452   fi
37453   rm -f conf$$.sh
37454 fi
37455
37456
37457   as_lineno_1=$LINENO
37458   as_lineno_2=$LINENO
37459   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37460   test "x$as_lineno_1" != "x$as_lineno_2" &&
37461   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
37462   # Find who we are.  Look in the path if we contain no path at all
37463   # relative or not.
37464   case $0 in
37465     *[\\/]* ) as_myself=$0 ;;
37466     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37467 for as_dir in $PATH
37468 do
37469   IFS=$as_save_IFS
37470   test -z "$as_dir" && as_dir=.
37471   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37472 done
37473
37474        ;;
37475   esac
37476   # We did not find ourselves, most probably we were run as `sh COMMAND'
37477   # in which case we are not to be found in the path.
37478   if test "x$as_myself" = x; then
37479     as_myself=$0
37480   fi
37481   if test ! -f "$as_myself"; then
37482     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37483 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37484    { (exit 1); exit 1; }; }
37485   fi
37486   case $CONFIG_SHELL in
37487   '')
37488     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37489 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37490 do
37491   IFS=$as_save_IFS
37492   test -z "$as_dir" && as_dir=.
37493   for as_base in sh bash ksh sh5; do
37494          case $as_dir in
37495          /*)
37496            if ("$as_dir/$as_base" -c '
37497   as_lineno_1=$LINENO
37498   as_lineno_2=$LINENO
37499   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37500   test "x$as_lineno_1" != "x$as_lineno_2" &&
37501   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
37502              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37503              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37504              CONFIG_SHELL=$as_dir/$as_base
37505              export CONFIG_SHELL
37506              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37507            fi;;
37508          esac
37509        done
37510 done
37511 ;;
37512   esac
37513
37514   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37515   # uniformly replaced by the line number.  The first 'sed' inserts a
37516   # line-number line before each line; the second 'sed' does the real
37517   # work.  The second script uses 'N' to pair each line-number line
37518   # with the numbered line, and appends trailing '-' during
37519   # substitution so that $LINENO is not a special case at line end.
37520   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37521   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
37522   sed '=' <$as_myself |
37523     sed '
37524       N
37525       s,$,-,
37526       : loop
37527       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37528       t loop
37529       s,-$,,
37530       s,^['$as_cr_digits']*\n,,
37531     ' >$as_me.lineno &&
37532   chmod +x $as_me.lineno ||
37533     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37534 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37535    { (exit 1); exit 1; }; }
37536
37537   # Don't try to exec as it changes $[0], causing all sort of problems
37538   # (the dirname of $[0] is not the place where we might find the
37539   # original and so on.  Autoconf is especially sensible to this).
37540   . ./$as_me.lineno
37541   # Exit status is that of the last command.
37542   exit
37543 }
37544
37545
37546 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37547   *c*,-n*) ECHO_N= ECHO_C='
37548 ' ECHO_T='      ' ;;
37549   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37550   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
37551 esac
37552
37553 if expr a : '\(a\)' >/dev/null 2>&1; then
37554   as_expr=expr
37555 else
37556   as_expr=false
37557 fi
37558
37559 rm -f conf$$ conf$$.exe conf$$.file
37560 echo >conf$$.file
37561 if ln -s conf$$.file conf$$ 2>/dev/null; then
37562   # We could just check for DJGPP; but this test a) works b) is more generic
37563   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37564   if test -f conf$$.exe; then
37565     # Don't use ln at all; we don't have any links
37566     as_ln_s='cp -p'
37567   else
37568     as_ln_s='ln -s'
37569   fi
37570 elif ln conf$$.file conf$$ 2>/dev/null; then
37571   as_ln_s=ln
37572 else
37573   as_ln_s='cp -p'
37574 fi
37575 rm -f conf$$ conf$$.exe conf$$.file
37576
37577 if mkdir -p . 2>/dev/null; then
37578   as_mkdir_p=:
37579 else
37580   as_mkdir_p=false
37581 fi
37582
37583 as_executable_p="test -f"
37584
37585 # Sed expression to map a string onto a valid CPP name.
37586 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
37587
37588 # Sed expression to map a string onto a valid variable name.
37589 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
37590
37591
37592 # IFS
37593 # We need space, tab and new line, in precisely that order.
37594 as_nl='
37595 '
37596 IFS="   $as_nl"
37597
37598 # CDPATH.
37599 $as_unset CDPATH
37600
37601 exec 6>&1
37602
37603 # Open the log real soon, to keep \$[0] and so on meaningful, and to
37604 # report actual input values of CONFIG_FILES etc. instead of their
37605 # values after options handling.  Logging --version etc. is OK.
37606 exec 5>>config.log
37607 {
37608   echo
37609   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37610 ## Running $as_me. ##
37611 _ASBOX
37612 } >&5
37613 cat >&5 <<_CSEOF
37614
37615 This file was extended by wxWindows $as_me 2.5.1, which was
37616 generated by GNU Autoconf 2.57.  Invocation command line was
37617
37618   CONFIG_FILES    = $CONFIG_FILES
37619   CONFIG_HEADERS  = $CONFIG_HEADERS
37620   CONFIG_LINKS    = $CONFIG_LINKS
37621   CONFIG_COMMANDS = $CONFIG_COMMANDS
37622   $ $0 $@
37623
37624 _CSEOF
37625 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37626 echo >&5
37627 _ACEOF
37628
37629 # Files that config.status was made for.
37630 if test -n "$ac_config_files"; then
37631   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37632 fi
37633
37634 if test -n "$ac_config_headers"; then
37635   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37636 fi
37637
37638 if test -n "$ac_config_links"; then
37639   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37640 fi
37641
37642 if test -n "$ac_config_commands"; then
37643   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37644 fi
37645
37646 cat >>$CONFIG_STATUS <<\_ACEOF
37647
37648 ac_cs_usage="\
37649 \`$as_me' instantiates files from templates according to the
37650 current configuration.
37651
37652 Usage: $0 [OPTIONS] [FILE]...
37653
37654   -h, --help       print this help, then exit
37655   -V, --version    print version number, then exit
37656   -q, --quiet      do not print progress messages
37657   -d, --debug      don't remove temporary files
37658       --recheck    update $as_me by reconfiguring in the same conditions
37659   --file=FILE[:TEMPLATE]
37660                    instantiate the configuration file FILE
37661   --header=FILE[:TEMPLATE]
37662                    instantiate the configuration header FILE
37663
37664 Configuration files:
37665 $config_files
37666
37667 Configuration headers:
37668 $config_headers
37669
37670 Configuration commands:
37671 $config_commands
37672
37673 Report bugs to <bug-autoconf@gnu.org>."
37674 _ACEOF
37675
37676 cat >>$CONFIG_STATUS <<_ACEOF
37677 ac_cs_version="\\
37678 wxWindows config.status 2.5.1
37679 configured by $0, generated by GNU Autoconf 2.57,
37680   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37681
37682 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37683 Free Software Foundation, Inc.
37684 This config.status script is free software; the Free Software Foundation
37685 gives unlimited permission to copy, distribute and modify it."
37686 srcdir=$srcdir
37687 INSTALL="$INSTALL"
37688 _ACEOF
37689
37690 cat >>$CONFIG_STATUS <<\_ACEOF
37691 # If no file are specified by the user, then we need to provide default
37692 # value.  By we need to know if files were specified by the user.
37693 ac_need_defaults=:
37694 while test $# != 0
37695 do
37696   case $1 in
37697   --*=*)
37698     ac_option=`expr "x$1" : 'x\([^=]*\)='`
37699     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37700     ac_shift=:
37701     ;;
37702   -*)
37703     ac_option=$1
37704     ac_optarg=$2
37705     ac_shift=shift
37706     ;;
37707   *) # This is not an option, so the user has probably given explicit
37708      # arguments.
37709      ac_option=$1
37710      ac_need_defaults=false;;
37711   esac
37712
37713   case $ac_option in
37714   # Handling of the options.
37715 _ACEOF
37716 cat >>$CONFIG_STATUS <<\_ACEOF
37717   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37718     ac_cs_recheck=: ;;
37719   --version | --vers* | -V )
37720     echo "$ac_cs_version"; exit 0 ;;
37721   --he | --h)
37722     # Conflict between --help and --header
37723     { { echo "$as_me:$LINENO: error: ambiguous option: $1
37724 Try \`$0 --help' for more information." >&5
37725 echo "$as_me: error: ambiguous option: $1
37726 Try \`$0 --help' for more information." >&2;}
37727    { (exit 1); exit 1; }; };;
37728   --help | --hel | -h )
37729     echo "$ac_cs_usage"; exit 0 ;;
37730   --debug | --d* | -d )
37731     debug=: ;;
37732   --file | --fil | --fi | --f )
37733     $ac_shift
37734     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37735     ac_need_defaults=false;;
37736   --header | --heade | --head | --hea )
37737     $ac_shift
37738     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37739     ac_need_defaults=false;;
37740   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37741   | -silent | --silent | --silen | --sile | --sil | --si | --s)
37742     ac_cs_silent=: ;;
37743
37744   # This is an error.
37745   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37746 Try \`$0 --help' for more information." >&5
37747 echo "$as_me: error: unrecognized option: $1
37748 Try \`$0 --help' for more information." >&2;}
37749    { (exit 1); exit 1; }; } ;;
37750
37751   *) ac_config_targets="$ac_config_targets $1" ;;
37752
37753   esac
37754   shift
37755 done
37756
37757 ac_configure_extra_args=
37758
37759 if $ac_cs_silent; then
37760   exec 6>/dev/null
37761   ac_configure_extra_args="$ac_configure_extra_args --silent"
37762 fi
37763
37764 _ACEOF
37765 cat >>$CONFIG_STATUS <<_ACEOF
37766 if \$ac_cs_recheck; then
37767   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37768   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37769 fi
37770
37771 _ACEOF
37772
37773 cat >>$CONFIG_STATUS <<_ACEOF
37774 #
37775 # INIT-COMMANDS section.
37776 #
37777
37778
37779             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
37780             LN_S="${LN_S}"
37781
37782
37783
37784 _ACEOF
37785
37786
37787
37788 cat >>$CONFIG_STATUS <<\_ACEOF
37789 for ac_config_target in $ac_config_targets
37790 do
37791   case "$ac_config_target" in
37792   # Handling of arguments.
37793   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
37794   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
37795   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37796   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
37797   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37798   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
37799   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37800 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37801    { (exit 1); exit 1; }; };;
37802   esac
37803 done
37804
37805 # If the user did not use the arguments to specify the items to instantiate,
37806 # then the envvar interface is used.  Set only those that are not.
37807 # We use the long form for the default assignment because of an extremely
37808 # bizarre bug on SunOS 4.1.3.
37809 if $ac_need_defaults; then
37810   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37811   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37812   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37813 fi
37814
37815 # Have a temporary directory for convenience.  Make it in the build tree
37816 # simply because there is no reason to put it here, and in addition,
37817 # creating and moving files from /tmp can sometimes cause problems.
37818 # Create a temporary directory, and hook for its removal unless debugging.
37819 $debug ||
37820 {
37821   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37822   trap '{ (exit 1); exit 1; }' 1 2 13 15
37823 }
37824
37825 # Create a (secure) tmp directory for tmp files.
37826
37827 {
37828   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37829   test -n "$tmp" && test -d "$tmp"
37830 }  ||
37831 {
37832   tmp=./confstat$$-$RANDOM
37833   (umask 077 && mkdir $tmp)
37834 } ||
37835 {
37836    echo "$me: cannot create a temporary directory in ." >&2
37837    { (exit 1); exit 1; }
37838 }
37839
37840 _ACEOF
37841
37842 cat >>$CONFIG_STATUS <<_ACEOF
37843
37844 #
37845 # CONFIG_FILES section.
37846 #
37847
37848 # No need to generate the scripts if there are no CONFIG_FILES.
37849 # This happens for instance when ./config.status config.h
37850 if test -n "\$CONFIG_FILES"; then
37851   # Protect against being on the right side of a sed subst in config.status.
37852   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37853    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37854 s,@SHELL@,$SHELL,;t t
37855 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37856 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37857 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37858 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37859 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37860 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37861 s,@exec_prefix@,$exec_prefix,;t t
37862 s,@prefix@,$prefix,;t t
37863 s,@program_transform_name@,$program_transform_name,;t t
37864 s,@bindir@,$bindir,;t t
37865 s,@sbindir@,$sbindir,;t t
37866 s,@libexecdir@,$libexecdir,;t t
37867 s,@datadir@,$datadir,;t t
37868 s,@sysconfdir@,$sysconfdir,;t t
37869 s,@sharedstatedir@,$sharedstatedir,;t t
37870 s,@localstatedir@,$localstatedir,;t t
37871 s,@libdir@,$libdir,;t t
37872 s,@includedir@,$includedir,;t t
37873 s,@oldincludedir@,$oldincludedir,;t t
37874 s,@infodir@,$infodir,;t t
37875 s,@mandir@,$mandir,;t t
37876 s,@build_alias@,$build_alias,;t t
37877 s,@host_alias@,$host_alias,;t t
37878 s,@target_alias@,$target_alias,;t t
37879 s,@DEFS@,$DEFS,;t t
37880 s,@ECHO_C@,$ECHO_C,;t t
37881 s,@ECHO_N@,$ECHO_N,;t t
37882 s,@ECHO_T@,$ECHO_T,;t t
37883 s,@LIBS@,$LIBS,;t t
37884 s,@build@,$build,;t t
37885 s,@build_cpu@,$build_cpu,;t t
37886 s,@build_vendor@,$build_vendor,;t t
37887 s,@build_os@,$build_os,;t t
37888 s,@host@,$host,;t t
37889 s,@host_cpu@,$host_cpu,;t t
37890 s,@host_vendor@,$host_vendor,;t t
37891 s,@host_os@,$host_os,;t t
37892 s,@target@,$target,;t t
37893 s,@target_cpu@,$target_cpu,;t t
37894 s,@target_vendor@,$target_vendor,;t t
37895 s,@target_os@,$target_os,;t t
37896 s,@CC@,$CC,;t t
37897 s,@CFLAGS@,$CFLAGS,;t t
37898 s,@LDFLAGS@,$LDFLAGS,;t t
37899 s,@CPPFLAGS@,$CPPFLAGS,;t t
37900 s,@ac_ct_CC@,$ac_ct_CC,;t t
37901 s,@EXEEXT@,$EXEEXT,;t t
37902 s,@OBJEXT@,$OBJEXT,;t t
37903 s,@CPP@,$CPP,;t t
37904 s,@EGREP@,$EGREP,;t t
37905 s,@CXX@,$CXX,;t t
37906 s,@CXXFLAGS@,$CXXFLAGS,;t t
37907 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
37908 s,@RANLIB@,$RANLIB,;t t
37909 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37910 s,@AR@,$AR,;t t
37911 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37912 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37913 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37914 s,@STRIP@,$STRIP,;t t
37915 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
37916 s,@LN_S@,$LN_S,;t t
37917 s,@CXXCPP@,$CXXCPP,;t t
37918 s,@subdirs@,$subdirs,;t t
37919 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
37920 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
37921 s,@GTK_LIBS@,$GTK_LIBS,;t t
37922 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
37923 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
37924 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
37925 s,@X_CFLAGS@,$X_CFLAGS,;t t
37926 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
37927 s,@X_LIBS@,$X_LIBS,;t t
37928 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
37929 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
37930 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
37931 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
37932 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
37933 s,@RESCOMP@,$RESCOMP,;t t
37934 s,@DEREZ@,$DEREZ,;t t
37935 s,@SETFILE@,$SETFILE,;t t
37936 s,@LIBICONV@,$LIBICONV,;t t
37937 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
37938 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
37939 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
37940 s,@SDL_LIBS@,$SDL_LIBS,;t t
37941 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
37942 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
37943 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
37944 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
37945 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
37946 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
37947 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
37948 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
37949 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
37950 s,@VENDOR@,$VENDOR,;t t
37951 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
37952 s,@WXUNIV@,$WXUNIV,;t t
37953 s,@MONOLITHIC@,$MONOLITHIC,;t t
37954 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
37955 s,@EXTRALIBS@,$EXTRALIBS,;t t
37956 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
37957 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
37958 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
37959 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
37960 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
37961 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
37962 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
37963 s,@UNICODE@,$UNICODE,;t t
37964 s,@BUILD@,$BUILD,;t t
37965 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
37966 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
37967 s,@SHARED@,$SHARED,;t t
37968 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
37969 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
37970 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
37971 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
37972 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
37973 s,@SET_MAKE@,$SET_MAKE,;t t
37974 s,@MAKE_SET@,$MAKE_SET,;t t
37975 s,@ac_ct_AR@,$ac_ct_AR,;t t
37976 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37977 s,@NM@,$NM,;t t
37978 s,@ac_ct_NM@,$ac_ct_NM,;t t
37979 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
37980 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
37981 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
37982 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
37983 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
37984 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
37985 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
37986 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
37987 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
37988 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
37989 s,@LIBPREFIX@,$LIBPREFIX,;t t
37990 s,@DLLPREFIX@,$DLLPREFIX,;t t
37991 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
37992 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
37993 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
37994 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
37995 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
37996 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
37997 s,@PIC_FLAG@,$PIC_FLAG,;t t
37998 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
37999 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
38000 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
38001 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
38002 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
38003 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
38004 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
38005 s,@GCC_PCH@,$GCC_PCH,;t t
38006 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
38007 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
38008 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
38009 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
38010 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
38011 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
38012 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
38013 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
38014 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
38015 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
38016 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
38017 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
38018 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
38019 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
38020 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
38021 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
38022 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
38023 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
38024 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
38025 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
38026 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
38027 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
38028 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
38029 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
38030 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
38031 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
38032 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
38033 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
38034 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
38035 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
38036 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
38037 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
38038 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
38039 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
38040 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
38041 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
38042 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
38043 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
38044 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
38045 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
38046 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
38047 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
38048 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
38049 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
38050 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
38051 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
38052 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
38053 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
38054 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
38055 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
38056 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
38057 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
38058 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
38059 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
38060 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
38061 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
38062 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
38063 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
38064 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
38065 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
38066 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
38067 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
38068 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
38069 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
38070 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
38071 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
38072 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
38073 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
38074 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
38075 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
38076 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
38077 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
38078 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
38079 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
38080 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
38081 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
38082 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
38083 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
38084 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
38085 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
38086 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
38087 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
38088 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
38089 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
38090 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
38091 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
38092 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
38093 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
38094 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
38095 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
38096 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
38097 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
38098 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
38099 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
38100 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
38101 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
38102 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
38103 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
38104 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
38105 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
38106 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
38107 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
38108 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
38109 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
38110 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
38111 s,@PATH_IFS@,$PATH_IFS,;t t
38112 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
38113 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
38114 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
38115 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
38116 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
38117 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
38118 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
38119 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
38120 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
38121 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
38122 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
38123 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
38124 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
38125 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
38126 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
38127 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
38128 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
38129 s,@WX_ALL@,$WX_ALL,;t t
38130 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
38131 s,@SHARED_LD@,$SHARED_LD,;t t
38132 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
38133 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
38134 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
38135 s,@USE_GUI@,$USE_GUI,;t t
38136 s,@AFMINSTALL@,$AFMINSTALL,;t t
38137 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
38138 s,@TOOLKIT@,$TOOLKIT,;t t
38139 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
38140 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
38141 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
38142 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
38143 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
38144 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
38145 s,@cross_compiling@,$cross_compiling,;t t
38146 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
38147 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
38148 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
38149 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
38150 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
38151 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
38152 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
38153 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
38154 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
38155 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
38156 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
38157 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
38158 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
38159 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
38160 s,@GUIDIST@,$GUIDIST,;t t
38161 s,@PORT_FILES@,$PORT_FILES,;t t
38162 s,@DISTDIR@,$DISTDIR,;t t
38163 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
38164 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
38165 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
38166 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
38167 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
38168 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
38169 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
38170 s,@RESFLAGS@,$RESFLAGS,;t t
38171 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
38172 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
38173 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
38174 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
38175 s,@MACRESCOMP@,$MACRESCOMP,;t t
38176 s,@MACSETFILE@,$MACSETFILE,;t t
38177 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
38178 s,@GCC@,$GCC,;t t
38179 s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
38180 s,@DLLTOOL@,$DLLTOOL,;t t
38181 s,@AS@,$AS,;t t
38182 s,@LD@,$LD,;t t
38183 s,@MAKEINFO@,$MAKEINFO,;t t
38184 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
38185 s,@LIBOBJS@,$LIBOBJS,;t t
38186 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
38187 CEOF
38188
38189 _ACEOF
38190
38191   cat >>$CONFIG_STATUS <<\_ACEOF
38192   # Split the substitutions into bite-sized pieces for seds with
38193   # small command number limits, like on Digital OSF/1 and HP-UX.
38194   ac_max_sed_lines=48
38195   ac_sed_frag=1 # Number of current file.
38196   ac_beg=1 # First line for current file.
38197   ac_end=$ac_max_sed_lines # Line after last line for current file.
38198   ac_more_lines=:
38199   ac_sed_cmds=
38200   while $ac_more_lines; do
38201     if test $ac_beg -gt 1; then
38202       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38203     else
38204       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38205     fi
38206     if test ! -s $tmp/subs.frag; then
38207       ac_more_lines=false
38208     else
38209       # The purpose of the label and of the branching condition is to
38210       # speed up the sed processing (if there are no `@' at all, there
38211       # is no need to browse any of the substitutions).
38212       # These are the two extra sed commands mentioned above.
38213       (echo ':t
38214   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
38215       if test -z "$ac_sed_cmds"; then
38216         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
38217       else
38218         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
38219       fi
38220       ac_sed_frag=`expr $ac_sed_frag + 1`
38221       ac_beg=$ac_end
38222       ac_end=`expr $ac_end + $ac_max_sed_lines`
38223     fi
38224   done
38225   if test -z "$ac_sed_cmds"; then
38226     ac_sed_cmds=cat
38227   fi
38228 fi # test -n "$CONFIG_FILES"
38229
38230 _ACEOF
38231 cat >>$CONFIG_STATUS <<\_ACEOF
38232 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38233   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38234   case $ac_file in
38235   - | *:- | *:-:* ) # input from stdin
38236         cat >$tmp/stdin
38237         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38238         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38239   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38240         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38241   * )   ac_file_in=$ac_file.in ;;
38242   esac
38243
38244   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38245   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38247          X"$ac_file" : 'X\(//\)[^/]' \| \
38248          X"$ac_file" : 'X\(//\)$' \| \
38249          X"$ac_file" : 'X\(/\)' \| \
38250          .     : '\(.\)' 2>/dev/null ||
38251 echo X"$ac_file" |
38252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38253           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38254           /^X\(\/\/\)$/{ s//\1/; q; }
38255           /^X\(\/\).*/{ s//\1/; q; }
38256           s/.*/./; q'`
38257   { if $as_mkdir_p; then
38258     mkdir -p "$ac_dir"
38259   else
38260     as_dir="$ac_dir"
38261     as_dirs=
38262     while test ! -d "$as_dir"; do
38263       as_dirs="$as_dir $as_dirs"
38264       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38266          X"$as_dir" : 'X\(//\)[^/]' \| \
38267          X"$as_dir" : 'X\(//\)$' \| \
38268          X"$as_dir" : 'X\(/\)' \| \
38269          .     : '\(.\)' 2>/dev/null ||
38270 echo X"$as_dir" |
38271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38273           /^X\(\/\/\)$/{ s//\1/; q; }
38274           /^X\(\/\).*/{ s//\1/; q; }
38275           s/.*/./; q'`
38276     done
38277     test ! -n "$as_dirs" || mkdir $as_dirs
38278   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38279 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38280    { (exit 1); exit 1; }; }; }
38281
38282   ac_builddir=.
38283
38284 if test "$ac_dir" != .; then
38285   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38286   # A "../" for each directory in $ac_dir_suffix.
38287   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38288 else
38289   ac_dir_suffix= ac_top_builddir=
38290 fi
38291
38292 case $srcdir in
38293   .)  # No --srcdir option.  We are building in place.
38294     ac_srcdir=.
38295     if test -z "$ac_top_builddir"; then
38296        ac_top_srcdir=.
38297     else
38298        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38299     fi ;;
38300   [\\/]* | ?:[\\/]* )  # Absolute path.
38301     ac_srcdir=$srcdir$ac_dir_suffix;
38302     ac_top_srcdir=$srcdir ;;
38303   *) # Relative path.
38304     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38305     ac_top_srcdir=$ac_top_builddir$srcdir ;;
38306 esac
38307 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38308 # absolute.
38309 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38310 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38311 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38312 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38313
38314
38315   case $INSTALL in
38316   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38317   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38318   esac
38319
38320   if test x"$ac_file" != x-; then
38321     { echo "$as_me:$LINENO: creating $ac_file" >&5
38322 echo "$as_me: creating $ac_file" >&6;}
38323     rm -f "$ac_file"
38324   fi
38325   # Let's still pretend it is `configure' which instantiates (i.e., don't
38326   # use $as_me), people would be surprised to read:
38327   #    /* config.h.  Generated by config.status.  */
38328   if test x"$ac_file" = x-; then
38329     configure_input=
38330   else
38331     configure_input="$ac_file.  "
38332   fi
38333   configure_input=$configure_input"Generated from `echo $ac_file_in |
38334                                      sed 's,.*/,,'` by configure."
38335
38336   # First look for the input files in the build tree, otherwise in the
38337   # src tree.
38338   ac_file_inputs=`IFS=:
38339     for f in $ac_file_in; do
38340       case $f in
38341       -) echo $tmp/stdin ;;
38342       [\\/$]*)
38343          # Absolute (can't be DOS-style, as IFS=:)
38344          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38345 echo "$as_me: error: cannot find input file: $f" >&2;}
38346    { (exit 1); exit 1; }; }
38347          echo $f;;
38348       *) # Relative
38349          if test -f "$f"; then
38350            # Build tree
38351            echo $f
38352          elif test -f "$srcdir/$f"; then
38353            # Source tree
38354            echo $srcdir/$f
38355          else
38356            # /dev/null tree
38357            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38358 echo "$as_me: error: cannot find input file: $f" >&2;}
38359    { (exit 1); exit 1; }; }
38360          fi;;
38361       esac
38362     done` || { (exit 1); exit 1; }
38363 _ACEOF
38364 cat >>$CONFIG_STATUS <<_ACEOF
38365   sed "$ac_vpsub
38366 $extrasub
38367 _ACEOF
38368 cat >>$CONFIG_STATUS <<\_ACEOF
38369 :t
38370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38371 s,@configure_input@,$configure_input,;t t
38372 s,@srcdir@,$ac_srcdir,;t t
38373 s,@abs_srcdir@,$ac_abs_srcdir,;t t
38374 s,@top_srcdir@,$ac_top_srcdir,;t t
38375 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38376 s,@builddir@,$ac_builddir,;t t
38377 s,@abs_builddir@,$ac_abs_builddir,;t t
38378 s,@top_builddir@,$ac_top_builddir,;t t
38379 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38380 s,@INSTALL@,$ac_INSTALL,;t t
38381 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38382   rm -f $tmp/stdin
38383   if test x"$ac_file" != x-; then
38384     mv $tmp/out $ac_file
38385   else
38386     cat $tmp/out
38387     rm -f $tmp/out
38388   fi
38389
38390 done
38391 _ACEOF
38392 cat >>$CONFIG_STATUS <<\_ACEOF
38393
38394 #
38395 # CONFIG_HEADER section.
38396 #
38397
38398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
38400 #
38401 # ac_d sets the value in "#define NAME VALUE" lines.
38402 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
38403 ac_dB='[        ].*$,\1#\2'
38404 ac_dC=' '
38405 ac_dD=',;t'
38406 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38407 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
38408 ac_uB='$,\1#\2define\3'
38409 ac_uC=' '
38410 ac_uD=',;t'
38411
38412 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38413   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38414   case $ac_file in
38415   - | *:- | *:-:* ) # input from stdin
38416         cat >$tmp/stdin
38417         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38418         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38419   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38420         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38421   * )   ac_file_in=$ac_file.in ;;
38422   esac
38423
38424   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38425 echo "$as_me: creating $ac_file" >&6;}
38426
38427   # First look for the input files in the build tree, otherwise in the
38428   # src tree.
38429   ac_file_inputs=`IFS=:
38430     for f in $ac_file_in; do
38431       case $f in
38432       -) echo $tmp/stdin ;;
38433       [\\/$]*)
38434          # Absolute (can't be DOS-style, as IFS=:)
38435          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38436 echo "$as_me: error: cannot find input file: $f" >&2;}
38437    { (exit 1); exit 1; }; }
38438          echo $f;;
38439       *) # Relative
38440          if test -f "$f"; then
38441            # Build tree
38442            echo $f
38443          elif test -f "$srcdir/$f"; then
38444            # Source tree
38445            echo $srcdir/$f
38446          else
38447            # /dev/null tree
38448            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38449 echo "$as_me: error: cannot find input file: $f" >&2;}
38450    { (exit 1); exit 1; }; }
38451          fi;;
38452       esac
38453     done` || { (exit 1); exit 1; }
38454   # Remove the trailing spaces.
38455   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
38456
38457 _ACEOF
38458
38459 # Transform confdefs.h into two sed scripts, `conftest.defines' and
38460 # `conftest.undefs', that substitutes the proper values into
38461 # config.h.in to produce config.h.  The first handles `#define'
38462 # templates, and the second `#undef' templates.
38463 # And first: Protect against being on the right side of a sed subst in
38464 # config.status.  Protect against being in an unquoted here document
38465 # in config.status.
38466 rm -f conftest.defines conftest.undefs
38467 # Using a here document instead of a string reduces the quoting nightmare.
38468 # Putting comments in sed scripts is not portable.
38469 #
38470 # `end' is used to avoid that the second main sed command (meant for
38471 # 0-ary CPP macros) applies to n-ary macro definitions.
38472 # See the Autoconf documentation for `clear'.
38473 cat >confdef2sed.sed <<\_ACEOF
38474 s/[\\&,]/\\&/g
38475 s,[\\$`],\\&,g
38476 t clear
38477 : clear
38478 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38479 t end
38480 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38481 : end
38482 _ACEOF
38483 # If some macros were called several times there might be several times
38484 # the same #defines, which is useless.  Nevertheless, we may not want to
38485 # sort them, since we want the *last* AC-DEFINE to be honored.
38486 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38487 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38488 rm -f confdef2sed.sed
38489
38490 # This sed command replaces #undef with comments.  This is necessary, for
38491 # example, in the case of _POSIX_SOURCE, which is predefined and required
38492 # on some systems where configure will not decide to define it.
38493 cat >>conftest.undefs <<\_ACEOF
38494 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38495 _ACEOF
38496
38497 # Break up conftest.defines because some shells have a limit on the size
38498 # of here documents, and old seds have small limits too (100 cmds).
38499 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38500 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38501 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38502 echo '  :' >>$CONFIG_STATUS
38503 rm -f conftest.tail
38504 while grep . conftest.defines >/dev/null
38505 do
38506   # Write a limited-size here document to $tmp/defines.sed.
38507   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38508   # Speed up: don't consider the non `#define' lines.
38509   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
38510   # Work around the forget-to-reset-the-flag bug.
38511   echo 't clr' >>$CONFIG_STATUS
38512   echo ': clr' >>$CONFIG_STATUS
38513   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38514   echo 'CEOF
38515   sed -f $tmp/defines.sed $tmp/in >$tmp/out
38516   rm -f $tmp/in
38517   mv $tmp/out $tmp/in
38518 ' >>$CONFIG_STATUS
38519   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38520   rm -f conftest.defines
38521   mv conftest.tail conftest.defines
38522 done
38523 rm -f conftest.defines
38524 echo '  fi # grep' >>$CONFIG_STATUS
38525 echo >>$CONFIG_STATUS
38526
38527 # Break up conftest.undefs because some shells have a limit on the size
38528 # of here documents, and old seds have small limits too (100 cmds).
38529 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
38530 rm -f conftest.tail
38531 while grep . conftest.undefs >/dev/null
38532 do
38533   # Write a limited-size here document to $tmp/undefs.sed.
38534   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38535   # Speed up: don't consider the non `#undef'
38536   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
38537   # Work around the forget-to-reset-the-flag bug.
38538   echo 't clr' >>$CONFIG_STATUS
38539   echo ': clr' >>$CONFIG_STATUS
38540   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38541   echo 'CEOF
38542   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38543   rm -f $tmp/in
38544   mv $tmp/out $tmp/in
38545 ' >>$CONFIG_STATUS
38546   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38547   rm -f conftest.undefs
38548   mv conftest.tail conftest.undefs
38549 done
38550 rm -f conftest.undefs
38551
38552 cat >>$CONFIG_STATUS <<\_ACEOF
38553   # Let's still pretend it is `configure' which instantiates (i.e., don't
38554   # use $as_me), people would be surprised to read:
38555   #    /* config.h.  Generated by config.status.  */
38556   if test x"$ac_file" = x-; then
38557     echo "/* Generated by configure.  */" >$tmp/config.h
38558   else
38559     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
38560   fi
38561   cat $tmp/in >>$tmp/config.h
38562   rm -f $tmp/in
38563   if test x"$ac_file" != x-; then
38564     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38565       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38566 echo "$as_me: $ac_file is unchanged" >&6;}
38567     else
38568       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38569 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38570          X"$ac_file" : 'X\(//\)[^/]' \| \
38571          X"$ac_file" : 'X\(//\)$' \| \
38572          X"$ac_file" : 'X\(/\)' \| \
38573          .     : '\(.\)' 2>/dev/null ||
38574 echo X"$ac_file" |
38575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38576           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38577           /^X\(\/\/\)$/{ s//\1/; q; }
38578           /^X\(\/\).*/{ s//\1/; q; }
38579           s/.*/./; q'`
38580       { if $as_mkdir_p; then
38581     mkdir -p "$ac_dir"
38582   else
38583     as_dir="$ac_dir"
38584     as_dirs=
38585     while test ! -d "$as_dir"; do
38586       as_dirs="$as_dir $as_dirs"
38587       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38589          X"$as_dir" : 'X\(//\)[^/]' \| \
38590          X"$as_dir" : 'X\(//\)$' \| \
38591          X"$as_dir" : 'X\(/\)' \| \
38592          .     : '\(.\)' 2>/dev/null ||
38593 echo X"$as_dir" |
38594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38595           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38596           /^X\(\/\/\)$/{ s//\1/; q; }
38597           /^X\(\/\).*/{ s//\1/; q; }
38598           s/.*/./; q'`
38599     done
38600     test ! -n "$as_dirs" || mkdir $as_dirs
38601   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38602 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38603    { (exit 1); exit 1; }; }; }
38604
38605       rm -f $ac_file
38606       mv $tmp/config.h $ac_file
38607     fi
38608   else
38609     cat $tmp/config.h
38610     rm -f $tmp/config.h
38611   fi
38612 done
38613 _ACEOF
38614 cat >>$CONFIG_STATUS <<\_ACEOF
38615
38616 #
38617 # CONFIG_COMMANDS section.
38618 #
38619 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38620   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38621   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38622   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38623 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38624          X"$ac_dest" : 'X\(//\)[^/]' \| \
38625          X"$ac_dest" : 'X\(//\)$' \| \
38626          X"$ac_dest" : 'X\(/\)' \| \
38627          .     : '\(.\)' 2>/dev/null ||
38628 echo X"$ac_dest" |
38629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38631           /^X\(\/\/\)$/{ s//\1/; q; }
38632           /^X\(\/\).*/{ s//\1/; q; }
38633           s/.*/./; q'`
38634   ac_builddir=.
38635
38636 if test "$ac_dir" != .; then
38637   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38638   # A "../" for each directory in $ac_dir_suffix.
38639   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38640 else
38641   ac_dir_suffix= ac_top_builddir=
38642 fi
38643
38644 case $srcdir in
38645   .)  # No --srcdir option.  We are building in place.
38646     ac_srcdir=.
38647     if test -z "$ac_top_builddir"; then
38648        ac_top_srcdir=.
38649     else
38650        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38651     fi ;;
38652   [\\/]* | ?:[\\/]* )  # Absolute path.
38653     ac_srcdir=$srcdir$ac_dir_suffix;
38654     ac_top_srcdir=$srcdir ;;
38655   *) # Relative path.
38656     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38657     ac_top_srcdir=$ac_top_builddir$srcdir ;;
38658 esac
38659 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38660 # absolute.
38661 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38662 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38663 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38664 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38665
38666
38667   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38668 echo "$as_me: executing $ac_dest commands" >&6;}
38669   case $ac_dest in
38670     default )
38671                                                                                                 if test ! -h wx-config; then
38672                 chmod +x wx-config
38673                 mv wx-config wx${TOOLCHAIN_NAME}-config
38674                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
38675             fi
38676
38677             if test ! -d lib; then
38678               mkdir lib
38679             fi
38680             if test ! -d lib/wx; then
38681               mkdir lib/wx
38682             fi
38683             if test ! -d lib/wx/include; then
38684               mkdir lib/wx/include
38685             fi
38686             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
38687               mkdir lib/wx/include/${TOOLCHAIN_NAME}
38688             fi
38689             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
38690               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
38691             fi
38692             if test -f setup.h; then
38693               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
38694             fi
38695            ;;
38696   esac
38697 done
38698 _ACEOF
38699
38700 cat >>$CONFIG_STATUS <<\_ACEOF
38701
38702 { (exit 0); exit 0; }
38703 _ACEOF
38704 chmod +x $CONFIG_STATUS
38705 ac_clean_files=$ac_clean_files_save
38706
38707
38708 # configure is writing to config.log, and then calls config.status.
38709 # config.status does its own redirection, appending to config.log.
38710 # Unfortunately, on DOS this fails, as config.log is still kept open
38711 # by configure, so config.status won't be able to write to it; its
38712 # output is simply discarded.  So we exec the FD to /dev/null,
38713 # effectively closing config.log, so it can be properly (re)opened and
38714 # appended to by config.status.  When coming back to configure, we
38715 # need to make the FD available again.
38716 if test "$no_create" != yes; then
38717   ac_cs_success=:
38718   ac_config_status_args=
38719   test "$silent" = yes &&
38720     ac_config_status_args="$ac_config_status_args --quiet"
38721   exec 5>/dev/null
38722   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38723   exec 5>>config.log
38724   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38725   # would make configure fail if this is the last instruction.
38726   $ac_cs_success || { (exit 1); exit 1; }
38727 fi
38728
38729 #
38730 # CONFIG_SUBDIRS section.
38731 #
38732 if test "$no_recursion" != yes; then
38733
38734   # Remove --cache-file and --srcdir arguments so they do not pile up.
38735   ac_sub_configure_args=
38736   ac_prev=
38737   for ac_arg in $ac_configure_args; do
38738     if test -n "$ac_prev"; then
38739       ac_prev=
38740       continue
38741     fi
38742     case $ac_arg in
38743     -cache-file | --cache-file | --cache-fil | --cache-fi \
38744     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38745       ac_prev=cache_file ;;
38746     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38747     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
38748     | --c=*)
38749       ;;
38750     --config-cache | -C)
38751       ;;
38752     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
38753       ac_prev=srcdir ;;
38754     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
38755       ;;
38756     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
38757       ac_prev=prefix ;;
38758     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
38759       ;;
38760     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
38761     esac
38762   done
38763
38764   # Always prepend --prefix to ensure using the same prefix
38765   # in subdir configurations.
38766   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
38767
38768   ac_popdir=`pwd`
38769   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
38770
38771     # Do not complain, so a configure script can configure whichever
38772     # parts of a large source tree are present.
38773     test -d $srcdir/$ac_dir || continue
38774
38775     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
38776 echo "$as_me: configuring in $ac_dir" >&6;}
38777     { if $as_mkdir_p; then
38778     mkdir -p "$ac_dir"
38779   else
38780     as_dir="$ac_dir"
38781     as_dirs=
38782     while test ! -d "$as_dir"; do
38783       as_dirs="$as_dir $as_dirs"
38784       as_dir=`(dirname "$as_dir") 2>/dev/null ||
38785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38786          X"$as_dir" : 'X\(//\)[^/]' \| \
38787          X"$as_dir" : 'X\(//\)$' \| \
38788          X"$as_dir" : 'X\(/\)' \| \
38789          .     : '\(.\)' 2>/dev/null ||
38790 echo X"$as_dir" |
38791     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38792           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38793           /^X\(\/\/\)$/{ s//\1/; q; }
38794           /^X\(\/\).*/{ s//\1/; q; }
38795           s/.*/./; q'`
38796     done
38797     test ! -n "$as_dirs" || mkdir $as_dirs
38798   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38799 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38800    { (exit 1); exit 1; }; }; }
38801
38802     ac_builddir=.
38803
38804 if test "$ac_dir" != .; then
38805   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38806   # A "../" for each directory in $ac_dir_suffix.
38807   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38808 else
38809   ac_dir_suffix= ac_top_builddir=
38810 fi
38811
38812 case $srcdir in
38813   .)  # No --srcdir option.  We are building in place.
38814     ac_srcdir=.
38815     if test -z "$ac_top_builddir"; then
38816        ac_top_srcdir=.
38817     else
38818        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38819     fi ;;
38820   [\\/]* | ?:[\\/]* )  # Absolute path.
38821     ac_srcdir=$srcdir$ac_dir_suffix;
38822     ac_top_srcdir=$srcdir ;;
38823   *) # Relative path.
38824     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38825     ac_top_srcdir=$ac_top_builddir$srcdir ;;
38826 esac
38827 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38828 # absolute.
38829 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38830 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38831 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38832 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38833
38834
38835     cd $ac_dir
38836
38837     # Check for guested configure; otherwise get Cygnus style configure.
38838     if test -f $ac_srcdir/configure.gnu; then
38839       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
38840     elif test -f $ac_srcdir/configure; then
38841       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
38842     elif test -f $ac_srcdir/configure.in; then
38843       ac_sub_configure=$ac_configure
38844     else
38845       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
38846 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
38847       ac_sub_configure=
38848     fi
38849
38850     # The recursion is here.
38851     if test -n "$ac_sub_configure"; then
38852       # Make the cache file name correct relative to the subdirectory.
38853       case $cache_file in
38854       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
38855       *) # Relative path.
38856         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
38857       esac
38858
38859       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
38860 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
38861       # The eval makes quoting arguments work.
38862       eval $ac_sub_configure $ac_sub_configure_args \
38863            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
38864         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
38865 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
38866    { (exit 1); exit 1; }; }
38867     fi
38868
38869     cd $ac_popdir
38870   done
38871 fi
38872
38873
38874 echo
38875 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
38876 echo ""
38877 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT_LOWERCASE:-base only}"
38878 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
38879
38880 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
38881 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
38882 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
38883
38884 echo "  What level of wxWindows compatibility should be enabled?"
38885 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
38886 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
38887
38888 echo "  Which libraries should wxWindows use?"
38889 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
38890 echo "                                       png                ${wxUSE_LIBPNG-none}"
38891 echo "                                       regex              ${wxUSE_REGEX}"
38892 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
38893 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
38894 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
38895 fi
38896 echo "                                       zlib               ${wxUSE_ZLIB}"
38897 echo "                                       odbc               ${wxUSE_ODBC}"
38898 echo "                                       expat              ${wxUSE_EXPAT}"
38899 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
38900 echo "                                       sdl                ${wxUSE_LIBSDL}"
38901
38902 echo ""
38903