moved XML classes to the core
[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.0.
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.0'
273 PACKAGE_STRING='wxWindows 2.5.0'
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 YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_BUILD_DEBUG COND_BUILD_RELEASE COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0_USE_GUI_1_USE_OPENGL_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_GTK_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 COND_WXUSE_EXPAT_BUILTIN LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME 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_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH 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 MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK 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.0 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.0:";;
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   --disable-monolithic    don't build wxWindows as single library
871   --enable-universal      use wxWindows GUI controls instead of native ones
872   --enable-nanox          use NanoX
873   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
874   --enable-shared         create shared library code
875   --enable-optimise       create optimised code
876   --enable-debug          same as debug_flag and debug_info
877   --enable-stl            use STL for containers
878   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
879   --enable-debug_info     create code with debugging information
880   --enable-debug_gdb      create code with extra GDB debugging information
881   --enable-debug_cntxt    use wxDebugContext
882   --enable-mem_tracing    create code with memory tracing
883   --enable-profile        create code with profiling information
884   --enable-no_rtti        create code without RTTI information
885   --enable-no_exceptions  create code without C++ exceptions handling
886   --enable-permissive     compile code disregarding strict ANSI
887   --enable-no_deps        create code without dependency information
888   --enable-compat20       enable wxWindows 2.0 compatibility
889   --enable-compat22       enable wxWindows 2.2 compatibility
890   --disable-compat24      disable wxWindows 2.4 compatibility
891   --enable-rpath=DIR      output the rpath flag from wx-config
892   --enable-intl           use internationalization system
893   --enable-config         use wxConfig (and derived) classes
894   --enable-protocols      use wxProtocol and derived classes
895   --enable-ftp            use wxFTP (requires wxProtocol
896   --enable-http           use wxHTTP (requires wxProtocol
897   --enable-fileproto      use wxFileProto class (requires wxProtocol
898   --enable-sockets        use socket/network classes
899   --enable-ole            use OLE classes
900   --enable-dataobj        use data object classes
901   --enable-ipc            use interprocess communication (wxSocket etc.)
902   --enable-cmdline        use wxCmdLineParser class
903   --enable-datetime       use wxDateTime class
904   --enable-stopwatch      use wxStopWatch class
905   --enable-dialupman      use dialup network classes
906   --enable-apple_ieee     use the Apple IEEE codec
907   --enable-timer          use wxTimer class
908   --enable-wave           use wxWave class
909   --enable-fraction       use wxFraction class
910   --enable-dynlib         use wxLibrary class for DLL loading
911   --enable-dynamicloader  use (new) wxDynamicLibrary class
912   --enable-longlong       use wxLongLong class
913   --enable-geometry       use geometry class
914   --enable-log            use logging system
915   --enable-streams        use wxStream etc classes
916   --enable-file           use wxFile classes
917   --enable-ffile          use wxFFile classes
918   --enable-textbuf        use wxTextBuffer class
919   --enable-textfile       use wxTextFile class
920   --enable-fontmap        use font encodings conversion classes
921   --enable-unicode        compile wxString with Unicode support
922   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)
923   --enable-wxprintfv      use wxWindows implementation of vprintf()
924   --enable-std_iostreams  use standard C++ stream classes
925   --enable-filesystem     use virtual file systems classes
926   --enable-fs_inet        use virtual HTTP/FTP filesystems
927   --enable-fs_zip         use virtual ZIP filesystems
928   --enable-zipstream      use wxZipInputStream
929   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException
930   --enable-snglinst       use wxSingleInstanceChecker class
931   --enable-mimetype       use wxMimeTypesManager
932   --enable-sysoptions     use wxSystemOptions
933   --enable-url            use wxURL class
934   --enable-protocol       use wxProtocol class
935   --enable-protocol-http  HTTP support in wxProtocol
936   --enable-protocol-ftp   FTP support in wxProtocol
937   --enable-protocol-file  FILE support in wxProtocol
938   --enable-threads        use threads
939   --enable-docview        use document view architecture
940   --enable-help           use help subsystem
941   --enable-mshtmlhelp     use MS HTML Help (win32)
942   --enable-html           use wxHTML sub-library
943   --enable-htmlhelp       use wxHTML-based help
944   --enable-constraints    use layout-constraints system
945   --enable-printarch      use printing architecture
946   --enable-mdi            use multiple document interface architecture
947   --enable-loggui         use standard GUI logger
948   --enable-logwin         use wxLogWindow
949   --enable-logdialog      use wxLogDialog
950   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
951   --enable-prologio       not available; see contrib
952   --enable-resources      not available; see contrib
953   --enable-clipboard      use wxClipboard class
954   --enable-dnd            use Drag'n'Drop classes
955   --enable-metafile       use win32 metafiles
956   --enable-controls       use all usual controls
957   --enable-accel          use accelerators
958   --enable-button         use wxButton class
959   --enable-bmpbutton      use wxBitmapButton class
960   --enable-calendar       use wxCalendarCtrl class
961   --enable-caret          use wxCaret class
962   --enable-checkbox       use wxCheckBox class
963   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
964   --enable-choice         use wxChoice class
965   --enable-combobox       use wxComboBox class
966   --enable-display        use wxDisplay class
967   --enable-gauge          use wxGauge class
968   --enable-grid           use wxGrid class
969   --enable-imaglist       use wxImageList class
970   --enable-listbox        use wxListBox class
971   --enable-listctrl       use wxListCtrl class
972   --enable-notebook       use wxNotebook class
973   --enable-radiobox       use wxRadioBox class
974   --enable-radiobtn       use wxRadioButton class
975   --enable-sash           use wxSashWindow class
976   --enable-scrollbar      use wxScrollBar class and scrollable windows
977   --enable-slider         use wxSlider class
978   --enable-spinbtn        use wxSpinButton class
979   --enable-spinctrl       use wxSpinCtrl class
980   --enable-splitter       use wxSplitterWindow class
981   --enable-statbmp        use wxStaticBitmap class
982   --enable-statbox        use wxStaticBox class
983   --enable-statline       use wxStaticLine class
984   --enable-stattext       use wxStaticText class
985   --enable-statusbar      use wxStatusBar class
986   --enable-tabdialog      use wxTabControl class
987   --enable-textctrl       use wxTextCtrl class
988   --enable-togglebtn      use wxToggleButton class
989   --enable-toolbar        use wxToolBar class
990   --enable-tbarnative     use native wxToolBar class
991   --enable-tbarsmpl       use wxToolBarSimple class
992   --enable-treectrl       use wxTreeCtrl class
993   --enable-tipwindow      use wxTipWindow class
994   --enable-popupwin       use wxPopUpWindow class
995   --enable-commondlg      use all common dialogs
996   --enable-choicedlg      use wxChoiceDialog
997   --enable-coldlg         use wxColourDialog
998   --enable-filedlg        use wxFileDialog
999   --enable-finddlg        use wxFindReplaceDialog
1000   --enable-fontdlg        use wxFontDialog
1001   --enable-dirdlg         use wxDirDialog
1002   --enable-msgdlg         use wxMessageDialog
1003   --enable-numberdlg      use wxNumberEntryDialog
1004   --enable-splash         use wxSplashScreen
1005   --enable-textdlg        use wxTextDialog
1006   --enable-tipdlg         use startup tips
1007   --enable-progressdlg    use wxProgressDialog
1008   --enable-wizarddlg      use wxWizard
1009   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1010   --enable-miniframe      use wxMiniFrame class
1011   --enable-tooltips       use wxToolTip class
1012   --enable-splines        use spline drawing code
1013   --enable-validators     use wxValidator and derived classes
1014   --enable-busyinfo       use wxBusyInfo
1015   --enable-joystick       use wxJoystick (Linux only)
1016   --enable-metafiles      use wxMetaFile (Windows only)
1017   --enable-dragimage      use wxDragImage
1018   --enable-accessibility  enable accessibility support
1019   --enable-palette        use wxPalette class
1020   --enable-image          use wxImage class
1021   --enable-gif            use gif images (GIF file format)
1022   --enable-pcx            use pcx images (PCX file format)
1023   --enable-iff            use iff images (IFF file format)
1024   --enable-pnm            use pnm images (PNM file format)
1025   --enable-xpm            use xpm images (XPM file format)
1026   --enable-icocur         use Windows ICO and CUR formats
1027   --disable-largefile     omit support for large files
1028   --disable-gtktest       do not try to compile and run a test GTK+ program
1029   --disable-gtktest       Do not try to compile and run a test GTK program
1030
1031 Optional Packages:
1032   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034   --with-gtk              use GTK+
1035   --with-motif            use Motif/Lesstif
1036   --with-mac              use Mac OS X
1037   --with-cocoa            use Cocoa
1038   --with-wine             use Wine
1039   --with-msw              use MS-Windows
1040   --with-pm               use OS/2 Presentation Manager
1041   --with-mgl              use SciTech MGL
1042   --with-microwin         use MicroWindows
1043   --with-x11              use X11
1044   --with-libpng           use libpng (PNG image format)
1045   --with-libjpeg          use libjpeg (JPEG file format)
1046   --with-libtiff          use libtiff (TIFF file format)
1047   --with-opengl           use OpenGL (or Mesa)
1048   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1049   --with-regex            enable support for wxRegEx class
1050   --with-zlib             use zlib for LZW compression
1051   --with-odbc             use the IODBC and wxODBC classes
1052   --with-expat            enable XML support using expat parser
1053   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1054   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1055   --with-x                use the X Window System
1056   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1057
1058 Some influential environment variables:
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1062               nonstandard directory <lib dir>
1063   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064               headers in a nonstandard directory <include dir>
1065   CPP         C preprocessor
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CXXCPP      C++ preprocessor
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 Report bugs to <wx-dev@lists.wxwindows.org>.
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108 # absolute.
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114     cd $ac_dir
1115     # Check for guested configure; otherwise get Cygnus style configure.
1116     if test -f $ac_srcdir/configure.gnu; then
1117       echo
1118       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1119     elif test -f $ac_srcdir/configure; then
1120       echo
1121       $SHELL $ac_srcdir/configure  --help=recursive
1122     elif test -f $ac_srcdir/configure.ac ||
1123            test -f $ac_srcdir/configure.in; then
1124       echo
1125       $ac_configure --help
1126     else
1127       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128     fi
1129     cd $ac_popdir
1130   done
1131 fi
1132
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135   cat <<\_ACEOF
1136 wxWindows configure 2.5.0
1137 generated by GNU Autoconf 2.57
1138
1139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140 Free Software Foundation, Inc.
1141 This configure script is free software; the Free Software Foundation
1142 gives unlimited permission to copy, distribute and modify it.
1143 _ACEOF
1144   exit 0
1145 fi
1146 exec 5>config.log
1147 cat >&5 <<_ACEOF
1148 This file contains any messages produced by compilers while
1149 running configure, to aid debugging if configure makes a mistake.
1150
1151 It was created by wxWindows $as_me 2.5.0, which was
1152 generated by GNU Autoconf 2.57.  Invocation command line was
1153
1154   $ $0 $@
1155
1156 _ACEOF
1157 {
1158 cat <<_ASUNAME
1159 ## --------- ##
1160 ## Platform. ##
1161 ## --------- ##
1162
1163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1171
1172 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1173 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1176 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1177 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1178 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1179
1180 _ASUNAME
1181
1182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183 for as_dir in $PATH
1184 do
1185   IFS=$as_save_IFS
1186   test -z "$as_dir" && as_dir=.
1187   echo "PATH: $as_dir"
1188 done
1189
1190 } >&5
1191
1192 cat >&5 <<_ACEOF
1193
1194
1195 ## ----------- ##
1196 ## Core tests. ##
1197 ## ----------- ##
1198
1199 _ACEOF
1200
1201
1202 # Keep a trace of the command line.
1203 # Strip out --no-create and --no-recursion so they do not pile up.
1204 # Strip out --silent because we don't want to record it for future runs.
1205 # Also quote any args containing shell meta-characters.
1206 # Make two passes to allow for proper duplicate-argument suppression.
1207 ac_configure_args=
1208 ac_configure_args0=
1209 ac_configure_args1=
1210 ac_sep=
1211 ac_must_keep_next=false
1212 for ac_pass in 1 2
1213 do
1214   for ac_arg
1215   do
1216     case $ac_arg in
1217     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219     | -silent | --silent | --silen | --sile | --sil)
1220       continue ;;
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     esac
1224     case $ac_pass in
1225     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226     2)
1227       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228       if test $ac_must_keep_next = true; then
1229         ac_must_keep_next=false # Got value, back to normal.
1230       else
1231         case $ac_arg in
1232           *=* | --config-cache | -C | -disable-* | --disable-* \
1233           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235           | -with-* | --with-* | -without-* | --without-* | --x)
1236             case "$ac_configure_args0 " in
1237               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238             esac
1239             ;;
1240           -* ) ac_must_keep_next=true ;;
1241         esac
1242       fi
1243       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244       # Get rid of the leading space.
1245       ac_sep=" "
1246       ;;
1247     esac
1248   done
1249 done
1250 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252
1253 # When interrupted or exit'd, cleanup temporary files, and complete
1254 # config.log.  We remove comments because anyway the quotes in there
1255 # would cause problems or look ugly.
1256 # WARNING: Be sure not to use single quotes in there, as some shells,
1257 # such as our DU 5.0 friend, will then `close' the trap.
1258 trap 'exit_status=$?
1259   # Save into config.log some information that might help in debugging.
1260   {
1261     echo
1262
1263     cat <<\_ASBOX
1264 ## ---------------- ##
1265 ## Cache variables. ##
1266 ## ---------------- ##
1267 _ASBOX
1268     echo
1269     # The following way of writing the cache mishandles newlines in values,
1270 {
1271   (set) 2>&1 |
1272     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273     *ac_space=\ *)
1274       sed -n \
1275         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277       ;;
1278     *)
1279       sed -n \
1280         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281       ;;
1282     esac;
1283 }
1284     echo
1285
1286     cat <<\_ASBOX
1287 ## ----------------- ##
1288 ## Output variables. ##
1289 ## ----------------- ##
1290 _ASBOX
1291     echo
1292     for ac_var in $ac_subst_vars
1293     do
1294       eval ac_val=$`echo $ac_var`
1295       echo "$ac_var='"'"'$ac_val'"'"'"
1296     done | sort
1297     echo
1298
1299     if test -n "$ac_subst_files"; then
1300       cat <<\_ASBOX
1301 ## ------------- ##
1302 ## Output files. ##
1303 ## ------------- ##
1304 _ASBOX
1305       echo
1306       for ac_var in $ac_subst_files
1307       do
1308         eval ac_val=$`echo $ac_var`
1309         echo "$ac_var='"'"'$ac_val'"'"'"
1310       done | sort
1311       echo
1312     fi
1313
1314     if test -s confdefs.h; then
1315       cat <<\_ASBOX
1316 ## ----------- ##
1317 ## confdefs.h. ##
1318 ## ----------- ##
1319 _ASBOX
1320       echo
1321       sed "/^$/d" confdefs.h | sort
1322       echo
1323     fi
1324     test "$ac_signal" != 0 &&
1325       echo "$as_me: caught signal $ac_signal"
1326     echo "$as_me: exit $exit_status"
1327   } >&5
1328   rm -f core core.* *.core &&
1329   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330     exit $exit_status
1331      ' 0
1332 for ac_signal in 1 2 13 15; do
1333   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334 done
1335 ac_signal=0
1336
1337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1338 rm -rf conftest* confdefs.h
1339 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 echo >confdefs.h
1341
1342 # Predefined preprocessor variables.
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_NAME "$PACKAGE_NAME"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351 _ACEOF
1352
1353
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1356 _ACEOF
1357
1358
1359 cat >>confdefs.h <<_ACEOF
1360 #define PACKAGE_STRING "$PACKAGE_STRING"
1361 _ACEOF
1362
1363
1364 cat >>confdefs.h <<_ACEOF
1365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366 _ACEOF
1367
1368
1369 # Let the site file select an alternate cache file if it wants to.
1370 # Prefer explicitly selected file to automatically selected ones.
1371 if test -z "$CONFIG_SITE"; then
1372   if test "x$prefix" != xNONE; then
1373     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374   else
1375     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376   fi
1377 fi
1378 for ac_site_file in $CONFIG_SITE; do
1379   if test -r "$ac_site_file"; then
1380     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381 echo "$as_me: loading site script $ac_site_file" >&6;}
1382     sed 's/^/| /' "$ac_site_file" >&5
1383     . "$ac_site_file"
1384   fi
1385 done
1386
1387 if test -r "$cache_file"; then
1388   # Some versions of bash will fail to source /dev/null (special
1389   # files actually), so we avoid doing that.
1390   if test -f "$cache_file"; then
1391     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392 echo "$as_me: loading cache $cache_file" >&6;}
1393     case $cache_file in
1394       [\\/]* | ?:[\\/]* ) . $cache_file;;
1395       *)                      . ./$cache_file;;
1396     esac
1397   fi
1398 else
1399   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400 echo "$as_me: creating cache $cache_file" >&6;}
1401   >$cache_file
1402 fi
1403
1404 # Check that the precious variables saved in the cache have kept the same
1405 # value.
1406 ac_cache_corrupted=false
1407 for ac_var in `(set) 2>&1 |
1408                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410   eval ac_new_set=\$ac_env_${ac_var}_set
1411   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412   eval ac_new_val="\$ac_env_${ac_var}_value"
1413   case $ac_old_set,$ac_new_set in
1414     set,)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,set)
1419       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421       ac_cache_corrupted=: ;;
1422     ,);;
1423     *)
1424       if test "x$ac_old_val" != "x$ac_new_val"; then
1425         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1428 echo "$as_me:   former value:  $ac_old_val" >&2;}
1429         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1430 echo "$as_me:   current value: $ac_new_val" >&2;}
1431         ac_cache_corrupted=:
1432       fi;;
1433   esac
1434   # Pass precious variables to config.status.
1435   if test "$ac_new_set" = set; then
1436     case $ac_new_val in
1437     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439     *) ac_arg=$ac_var=$ac_new_val ;;
1440     esac
1441     case " $ac_configure_args " in
1442       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1443       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444     esac
1445   fi
1446 done
1447 if $ac_cache_corrupted; then
1448   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452    { (exit 1); exit 1; }; }
1453 fi
1454
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490 ac_aux_dir=
1491 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1492   if test -f $ac_dir/install-sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install-sh -c"
1495     break
1496   elif test -f $ac_dir/install.sh; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/install.sh -c"
1499     break
1500   elif test -f $ac_dir/shtool; then
1501     ac_aux_dir=$ac_dir
1502     ac_install_sh="$ac_aux_dir/shtool install -c"
1503     break
1504   fi
1505 done
1506 if test -z "$ac_aux_dir"; then
1507   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1508 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1512 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1513 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1514
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4 >/dev/null 2>&1 ||
1517   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519    { (exit 1); exit 1; }; }
1520
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   ac_cv_build_alias=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528   ac_cv_build_alias=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532    { (exit 1); exit 1; }; }
1533 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536    { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1541 build=$ac_cv_build
1542 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   ac_cv_host_alias=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554   ac_cv_host_alias=$ac_cv_build_alias
1555 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1563 host=$ac_cv_host
1564 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 echo "$as_me:$LINENO: checking target system type" >&5
1570 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1571 if test "${ac_cv_target+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   ac_cv_target_alias=$target_alias
1575 test "x$ac_cv_target_alias" = "x" &&
1576   ac_cv_target_alias=$ac_cv_host_alias
1577 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1578   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1579 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1580    { (exit 1); exit 1; }; }
1581
1582 fi
1583 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1584 echo "${ECHO_T}$ac_cv_target" >&6
1585 target=$ac_cv_target
1586 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591 # The aliases save the names the user supplied, while $host etc.
1592 # will get canonicalized.
1593 test -n "$target_alias" &&
1594   test "$program_prefix$program_suffix$program_transform_name" = \
1595     NONENONEs,x,x, &&
1596   program_prefix=${target_alias}-
1597
1598
1599
1600 WX_MAJOR_VERSION_NUMBER=2
1601 WX_MINOR_VERSION_NUMBER=5
1602 WX_RELEASE_NUMBER=0
1603
1604 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1605 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1606
1607 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1608
1609 WX_CURRENT=0
1610 WX_REVISION=0
1611 WX_AGE=0
1612
1613
1614
1615 USE_UNIX=1
1616 USE_WIN32=0
1617 USE_DOS=0
1618 USE_BEOS=0
1619 USE_MAC=0
1620
1621 USE_AIX=
1622 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1623 USE_GNU=                            USE_HPUX=
1624 USE_LINUX=
1625 USE_NETBSD=
1626 USE_OPENBSD=
1627 USE_OSF=                            USE_SGI=
1628 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1629 USE_ULTRIX=
1630 USE_UNIXWARE=
1631
1632 USE_ALPHA=
1633
1634 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1635
1636 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1637
1638 DEFAULT_wxUSE_COCOA=0
1639 DEFAULT_wxUSE_GTK=0
1640 DEFAULT_wxUSE_MAC=0
1641 DEFAULT_wxUSE_MGL=0
1642 DEFAULT_wxUSE_MICROWIN=0
1643 DEFAULT_wxUSE_MOTIF=0
1644 DEFAULT_wxUSE_MSW=0
1645 DEFAULT_wxUSE_PM=0
1646 DEFAULT_wxUSE_X11=0
1647
1648 DEFAULT_DEFAULT_wxUSE_COCOA=0
1649 DEFAULT_DEFAULT_wxUSE_GTK=0
1650 DEFAULT_DEFAULT_wxUSE_MAC=0
1651 DEFAULT_DEFAULT_wxUSE_MGL=0
1652 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1653 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1654 DEFAULT_DEFAULT_wxUSE_MSW=0
1655 DEFAULT_DEFAULT_wxUSE_PM=0
1656 DEFAULT_DEFAULT_wxUSE_X11=0
1657
1658 PROGRAM_EXT=
1659 SO_SUFFIX=so
1660 SAMPLES_RPATH_FLAG=
1661
1662 case "${host}" in
1663   *-hp-hpux* )
1664     USE_HPUX=1
1665     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1666     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1667     SO_SUFFIX=sl
1668     cat >>confdefs.h <<\_ACEOF
1669 #define __HPUX__ 1
1670 _ACEOF
1671
1672   ;;
1673   *-*-linux* )
1674     USE_LINUX=1
1675     cat >>confdefs.h <<\_ACEOF
1676 #define __LINUX__ 1
1677 _ACEOF
1678
1679     TMP=`uname -m`
1680     if test "x$TMP" = "xalpha"; then
1681       USE_ALPHA=1
1682       cat >>confdefs.h <<\_ACEOF
1683 #define __ALPHA__ 1
1684 _ACEOF
1685
1686     fi
1687     DEFAULT_DEFAULT_wxUSE_GTK=1
1688   ;;
1689   *-*-gnu* )
1690     USE_GNU=1
1691     cat >>confdefs.h <<\_ACEOF
1692 #define __GNU__ 1
1693 _ACEOF
1694
1695     TMP=`uname -m`
1696     if test "x$TMP" = "xalpha"; then
1697       USE_ALPHA=1
1698       cat >>confdefs.h <<\_ACEOF
1699 #define __ALPHA__ 1
1700 _ACEOF
1701
1702     fi
1703     DEFAULT_DEFAULT_wxUSE_GTK=1
1704   ;;
1705   *-*-irix5* | *-*-irix6* )
1706     USE_SGI=1
1707     USE_SVR4=1
1708     cat >>confdefs.h <<\_ACEOF
1709 #define __SGI__ 1
1710 _ACEOF
1711
1712     cat >>confdefs.h <<\_ACEOF
1713 #define __SVR4__ 1
1714 _ACEOF
1715
1716     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1717   ;;
1718   *-*-solaris2* )
1719     USE_SUN=1
1720     USE_SOLARIS=1
1721     USE_SVR4=1
1722     cat >>confdefs.h <<\_ACEOF
1723 #define __SUN__ 1
1724 _ACEOF
1725
1726     cat >>confdefs.h <<\_ACEOF
1727 #define __SOLARIS__ 1
1728 _ACEOF
1729
1730     cat >>confdefs.h <<\_ACEOF
1731 #define __SVR4__ 1
1732 _ACEOF
1733
1734     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736   ;;
1737   *-*-sunos4* )
1738     USE_SUN=1
1739     USE_SUNOS=1
1740     USE_BSD=1
1741     cat >>confdefs.h <<\_ACEOF
1742 #define __SUN__ 1
1743 _ACEOF
1744
1745     cat >>confdefs.h <<\_ACEOF
1746 #define __SUNOS__ 1
1747 _ACEOF
1748
1749     cat >>confdefs.h <<\_ACEOF
1750 #define __BSD__ 1
1751 _ACEOF
1752
1753     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1754   ;;
1755   *-*-freebsd*)
1756     USE_BSD=1
1757     USE_FREEBSD=1
1758     cat >>confdefs.h <<\_ACEOF
1759 #define __FREEBSD__ 1
1760 _ACEOF
1761
1762     cat >>confdefs.h <<\_ACEOF
1763 #define __BSD__ 1
1764 _ACEOF
1765
1766     DEFAULT_DEFAULT_wxUSE_GTK=1
1767   ;;
1768   *-*-openbsd*)
1769     USE_BSD=1
1770     USE_OPENBSD=1
1771     cat >>confdefs.h <<\_ACEOF
1772 #define __OPENBSD__ 1
1773 _ACEOF
1774
1775     cat >>confdefs.h <<\_ACEOF
1776 #define __BSD__ 1
1777 _ACEOF
1778
1779     DEFAULT_DEFAULT_wxUSE_GTK=1
1780   ;;
1781   *-*-netbsd*)
1782     USE_BSD=1
1783     USE_NETBSD=1
1784     cat >>confdefs.h <<\_ACEOF
1785 #define __NETBSD__ 1
1786 _ACEOF
1787
1788     cat >>confdefs.h <<\_ACEOF
1789 #define __BSD__ 1
1790 _ACEOF
1791
1792     DEFAULT_DEFAULT_wxUSE_GTK=1
1793   ;;
1794   *-*-osf* )
1795     USE_ALPHA=1
1796     USE_OSF=1
1797     cat >>confdefs.h <<\_ACEOF
1798 #define __ALPHA__ 1
1799 _ACEOF
1800
1801     cat >>confdefs.h <<\_ACEOF
1802 #define __OSF__ 1
1803 _ACEOF
1804
1805     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1806     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1807   ;;
1808   *-*-dgux5* )
1809     USE_ALPHA=1
1810     USE_SVR4=1
1811     cat >>confdefs.h <<\_ACEOF
1812 #define __ALPHA__ 1
1813 _ACEOF
1814
1815     cat >>confdefs.h <<\_ACEOF
1816 #define __SVR4__ 1
1817 _ACEOF
1818
1819     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820   ;;
1821   *-*-sysv5* )
1822     USE_SYSV=1
1823     USE_SVR4=1
1824     cat >>confdefs.h <<\_ACEOF
1825 #define __SYSV__ 1
1826 _ACEOF
1827
1828     cat >>confdefs.h <<\_ACEOF
1829 #define __SVR4__ 1
1830 _ACEOF
1831
1832     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833   ;;
1834   *-*-aix* )
1835     USE_AIX=1
1836     USE_SYSV=1
1837     USE_SVR4=1
1838                         SO_SUFFIX=a
1839     cat >>confdefs.h <<\_ACEOF
1840 #define __AIX__ 1
1841 _ACEOF
1842
1843     cat >>confdefs.h <<\_ACEOF
1844 #define __SYSV__ 1
1845 _ACEOF
1846
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __SVR4__ 1
1849 _ACEOF
1850
1851     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852   ;;
1853
1854   *-*-*UnixWare*)
1855     USE_SYSV=1
1856     USE_SVR4=1
1857     USE_UNIXWARE=1
1858     cat >>confdefs.h <<\_ACEOF
1859 #define __UNIXWARE__ 1
1860 _ACEOF
1861
1862   ;;
1863
1864   *-*-cygwin* | *-*-mingw32* )
1865                 SO_SUFFIX=dll
1866     PROGRAM_EXT=".exe"
1867     RESCOMP=windres
1868     DEFAULT_DEFAULT_wxUSE_MSW=1
1869   ;;
1870
1871   *-pc-msdosdjgpp )
1872     USE_UNIX=0
1873     USE_DOS=1
1874     cat >>confdefs.h <<\_ACEOF
1875 #define __DOS__ 1
1876 _ACEOF
1877
1878     PROGRAM_EXT=".exe"
1879     DEFAULT_DEFAULT_wxUSE_MGL=1
1880         LIBS="$LIBS -lstdc++"
1881   ;;
1882
1883   *-pc-os2_emx | *-pc-os2-emx )
1884     cat >>confdefs.h <<\_ACEOF
1885 #define __EMX__ 1
1886 _ACEOF
1887
1888     PROGRAM_EXT=".exe"
1889     DEFAULT_DEFAULT_wxUSE_PM=1
1890   ;;
1891
1892   powerpc-*-darwin* )
1893         USE_BSD=1
1894     USE_DARWIN=1
1895     SO_SUFFIX=dylib
1896     cat >>confdefs.h <<\_ACEOF
1897 #define __BSD__ 1
1898 _ACEOF
1899
1900     cat >>confdefs.h <<\_ACEOF
1901 #define __DARWIN__ 1
1902 _ACEOF
1903
1904     cat >>confdefs.h <<\_ACEOF
1905 #define __POWERPC__ 1
1906 _ACEOF
1907
1908     cat >>confdefs.h <<\_ACEOF
1909 #define TARGET_CARBON 1
1910 _ACEOF
1911
1912     DEFAULT_DEFAULT_wxUSE_MAC=1
1913   ;;
1914
1915   *-*-beos* )
1916         USE_BEOS=1
1917     cat >>confdefs.h <<\_ACEOF
1918 #define __BEOS__ 1
1919 _ACEOF
1920
1921   ;;
1922
1923   *)
1924     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1925 echo "$as_me: error: unknown system type ${host}." >&2;}
1926    { (exit 1); exit 1; }; }
1927 esac
1928
1929
1930
1931
1932           wx_arg_cache_file="configarg.cache"
1933           echo "loading argument cache $wx_arg_cache_file"
1934           rm -f ${wx_arg_cache_file}.tmp
1935           touch ${wx_arg_cache_file}.tmp
1936           touch ${wx_arg_cache_file}
1937
1938
1939 DEBUG_CONFIGURE=0
1940 if test $DEBUG_CONFIGURE = 1; then
1941   DEFAULT_wxUSE_UNIVERSAL=no
1942   DEFAULT_wxUSE_STL=no
1943
1944   DEFAULT_wxUSE_NANOX=no
1945
1946   DEFAULT_wxUSE_THREADS=yes
1947
1948   DEFAULT_wxUSE_SHARED=yes
1949   DEFAULT_wxUSE_OPTIMISE=no
1950   DEFAULT_wxUSE_PROFILE=no
1951   DEFAULT_wxUSE_NO_DEPS=no
1952   DEFAULT_wxUSE_NO_RTTI=no
1953   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1954   DEFAULT_wxUSE_PERMISSIVE=no
1955   DEFAULT_wxUSE_DEBUG_FLAG=yes
1956   DEFAULT_wxUSE_DEBUG_INFO=yes
1957   DEFAULT_wxUSE_DEBUG_GDB=yes
1958   DEFAULT_wxUSE_MEM_TRACING=no
1959   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1960   DEFAULT_wxUSE_DMALLOC=no
1961   DEFAULT_wxUSE_APPLE_IEEE=no
1962
1963   DEFAULT_wxUSE_LOG=yes
1964   DEFAULT_wxUSE_LOGWINDOW=no
1965   DEFAULT_wxUSE_LOGGUI=no
1966   DEFAULT_wxUSE_LOGDIALOG=no
1967
1968   DEFAULT_wxUSE_GUI=yes
1969   DEFAULT_wxUSE_CONTROLS=no
1970
1971   DEFAULT_wxUSE_REGEX=no
1972   DEFAULT_wxUSE_XML=no
1973   DEFAULT_wxUSE_EXPAT=no
1974   DEFAULT_wxUSE_ZLIB=no
1975   DEFAULT_wxUSE_LIBPNG=no
1976   DEFAULT_wxUSE_LIBJPEG=no
1977   DEFAULT_wxUSE_LIBTIFF=no
1978   DEFAULT_wxUSE_ODBC=no
1979   DEFAULT_wxUSE_OPENGL=no
1980
1981   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1982   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1983   DEFAULT_wxUSE_STD_IOSTREAM=no
1984   DEFAULT_wxUSE_CMDLINE_PARSER=no
1985   DEFAULT_wxUSE_DATETIME=no
1986   DEFAULT_wxUSE_TIMER=no
1987   DEFAULT_wxUSE_STOPWATCH=no
1988   DEFAULT_wxUSE_FILE=no
1989   DEFAULT_wxUSE_FFILE=no
1990   DEFAULT_wxUSE_TEXTBUFFER=no
1991   DEFAULT_wxUSE_TEXTFILE=no
1992   DEFAULT_wxUSE_WAVE=no
1993   DEFAULT_wxUSE_INTL=no
1994   DEFAULT_wxUSE_CONFIG=no
1995   DEFAULT_wxUSE_FONTMAP=no
1996   DEFAULT_wxUSE_STREAMS=no
1997   DEFAULT_wxUSE_SOCKETS=no
1998   DEFAULT_wxUSE_OLE=no
1999   DEFAULT_wxUSE_DATAOBJ=no
2000   DEFAULT_wxUSE_DIALUP_MANAGER=no
2001   DEFAULT_wxUSE_JOYSTICK=no
2002   DEFAULT_wxUSE_DYNLIB_CLASS=no
2003   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2004   DEFAULT_wxUSE_LONGLONG=no
2005   DEFAULT_wxUSE_GEOMETRY=no
2006
2007   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2008   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2009   DEFAULT_wxUSE_POSTSCRIPT=no
2010
2011   DEFAULT_wxUSE_CLIPBOARD=no
2012   DEFAULT_wxUSE_TOOLTIPS=no
2013   DEFAULT_wxUSE_DRAG_AND_DROP=no
2014   DEFAULT_wxUSE_DRAGIMAGE=no
2015   DEFAULT_wxUSE_SPLINES=no
2016
2017   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2018   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2019   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2020
2021   DEFAULT_wxUSE_RESOURCES=no
2022   DEFAULT_wxUSE_CONSTRAINTS=no
2023   DEFAULT_wxUSE_IPC=no
2024   DEFAULT_wxUSE_HELP=no
2025   DEFAULT_wxUSE_MS_HTML_HELP=no
2026   DEFAULT_wxUSE_WXHTML_HELP=no
2027   DEFAULT_wxUSE_TREELAYOUT=no
2028   DEFAULT_wxUSE_METAFILE=no
2029   DEFAULT_wxUSE_MIMETYPE=no
2030   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2031   DEFAULT_wxUSE_PROTOCOL=no
2032   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2033   DEFAULT_wxUSE_PROTOCOL_FTP=no
2034   DEFAULT_wxUSE_PROTOCOL_FILE=no
2035   DEFAULT_wxUSE_URL=no
2036
2037   DEFAULT_wxUSE_COMMONDLGS=no
2038   DEFAULT_wxUSE_CHOICEDLG=no
2039   DEFAULT_wxUSE_COLOURDLG=no
2040   DEFAULT_wxUSE_DIRDLG=no
2041   DEFAULT_wxUSE_FILEDLG=no
2042   DEFAULT_wxUSE_FINDREPLDLG=no
2043   DEFAULT_wxUSE_FONTDLG=no
2044   DEFAULT_wxUSE_MSGDLG=no
2045   DEFAULT_wxUSE_NUMBERDLG=no
2046   DEFAULT_wxUSE_TEXTDLG=no
2047   DEFAULT_wxUSE_SPLASH=no
2048   DEFAULT_wxUSE_STARTUP_TIPS=no
2049   DEFAULT_wxUSE_PROGRESSDLG=no
2050   DEFAULT_wxUSE_WIZARDDLG=no
2051
2052   DEFAULT_wxUSE_MENUS=no
2053   DEFAULT_wxUSE_MINIFRAME=no
2054   DEFAULT_wxUSE_HTML=no
2055   DEFAULT_wxUSE_FILESYSTEM=no
2056   DEFAULT_wxUSE_FS_INET=no
2057   DEFAULT_wxUSE_FS_ZIP=no
2058   DEFAULT_wxUSE_BUSYINFO=no
2059   DEFAULT_wxUSE_ZIPSTREAM=no
2060   DEFAULT_wxUSE_VALIDATORS=no
2061
2062   DEFAULT_wxUSE_ACCEL=no
2063   DEFAULT_wxUSE_BUTTON=no
2064   DEFAULT_wxUSE_BMPBUTTON=no
2065   DEFAULT_wxUSE_CALCTRL=no
2066   DEFAULT_wxUSE_CARET=no
2067   DEFAULT_wxUSE_CHECKBOX=no
2068   DEFAULT_wxUSE_CHECKLST=no
2069   DEFAULT_wxUSE_CHOICE=no
2070   DEFAULT_wxUSE_COMBOBOX=no
2071   DEFAULT_wxUSE_DISPLAY=no
2072   DEFAULT_wxUSE_GAUGE=no
2073   DEFAULT_wxUSE_GRID=no
2074   DEFAULT_wxUSE_IMAGLIST=no
2075   DEFAULT_wxUSE_LISTBOX=no
2076   DEFAULT_wxUSE_LISTCTRL=no
2077   DEFAULT_wxUSE_NOTEBOOK=no
2078   DEFAULT_wxUSE_RADIOBOX=no
2079   DEFAULT_wxUSE_RADIOBTN=no
2080   DEFAULT_wxUSE_SASH=no
2081   DEFAULT_wxUSE_SCROLLBAR=no
2082   DEFAULT_wxUSE_SLIDER=no
2083   DEFAULT_wxUSE_SPINBTN=no
2084   DEFAULT_wxUSE_SPINCTRL=no
2085   DEFAULT_wxUSE_SPLITTER=no
2086   DEFAULT_wxUSE_STATBMP=no
2087   DEFAULT_wxUSE_STATBOX=no
2088   DEFAULT_wxUSE_STATLINE=no
2089   DEFAULT_wxUSE_STATTEXT=no
2090   DEFAULT_wxUSE_STATUSBAR=yes
2091   DEFAULT_wxUSE_TABDIALOG=no
2092   DEFAULT_wxUSE_TEXTCTRL=no
2093   DEFAULT_wxUSE_TOGGLEBTN=no
2094   DEFAULT_wxUSE_TOOLBAR=no
2095   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2096   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2097   DEFAULT_wxUSE_TREECTRL=no
2098   DEFAULT_wxUSE_POPUPWIN=no
2099   DEFAULT_wxUSE_TIPWINDOW=no
2100
2101   DEFAULT_wxUSE_UNICODE=no
2102   DEFAULT_wxUSE_UNICODE_MSLU=no
2103   DEFAULT_wxUSE_WCSRTOMBS=no
2104
2105   DEFAULT_wxUSE_PALETTE=no
2106   DEFAULT_wxUSE_IMAGE=no
2107   DEFAULT_wxUSE_GIF=no
2108   DEFAULT_wxUSE_PCX=no
2109   DEFAULT_wxUSE_PNM=no
2110   DEFAULT_wxUSE_IFF=no
2111   DEFAULT_wxUSE_XPM=no
2112   DEFAULT_wxUSE_ICO_CUR=no
2113   DEFAULT_wxUSE_ACCESSIBILITY=no
2114
2115   DEFAULT_wxUSE_MONOLITHIC=yes
2116 else
2117   DEFAULT_wxUSE_UNIVERSAL=no
2118   DEFAULT_wxUSE_STL=no
2119
2120   DEFAULT_wxUSE_NANOX=no
2121
2122   DEFAULT_wxUSE_THREADS=yes
2123
2124   DEFAULT_wxUSE_SHARED=yes
2125   DEFAULT_wxUSE_OPTIMISE=yes
2126   DEFAULT_wxUSE_PROFILE=no
2127   DEFAULT_wxUSE_NO_DEPS=no
2128   DEFAULT_wxUSE_NO_RTTI=no
2129   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2130   DEFAULT_wxUSE_PERMISSIVE=no
2131   DEFAULT_wxUSE_DEBUG_FLAG=no
2132   DEFAULT_wxUSE_DEBUG_INFO=no
2133   DEFAULT_wxUSE_DEBUG_GDB=no
2134   DEFAULT_wxUSE_MEM_TRACING=no
2135   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2136   DEFAULT_wxUSE_DMALLOC=no
2137   DEFAULT_wxUSE_APPLE_IEEE=yes
2138
2139   DEFAULT_wxUSE_LOG=yes
2140   DEFAULT_wxUSE_LOGWINDOW=yes
2141   DEFAULT_wxUSE_LOGGUI=yes
2142   DEFAULT_wxUSE_LOGDIALOG=yes
2143
2144   DEFAULT_wxUSE_GUI=yes
2145
2146   DEFAULT_wxUSE_REGEX=yes
2147   DEFAULT_wxUSE_XML=yes
2148   DEFAULT_wxUSE_EXPAT=yes
2149   DEFAULT_wxUSE_ZLIB=yes
2150   DEFAULT_wxUSE_LIBPNG=yes
2151   DEFAULT_wxUSE_LIBJPEG=yes
2152   DEFAULT_wxUSE_LIBTIFF=yes
2153   DEFAULT_wxUSE_ODBC=no
2154   DEFAULT_wxUSE_OPENGL=no
2155
2156   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2157   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2158   DEFAULT_wxUSE_STD_IOSTREAM=no
2159   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2160   DEFAULT_wxUSE_DATETIME=yes
2161   DEFAULT_wxUSE_TIMER=yes
2162   DEFAULT_wxUSE_STOPWATCH=yes
2163   DEFAULT_wxUSE_FILE=yes
2164   DEFAULT_wxUSE_FFILE=yes
2165   DEFAULT_wxUSE_TEXTBUFFER=yes
2166   DEFAULT_wxUSE_TEXTFILE=yes
2167   DEFAULT_wxUSE_WAVE=no
2168   DEFAULT_wxUSE_INTL=yes
2169   DEFAULT_wxUSE_CONFIG=yes
2170   DEFAULT_wxUSE_FONTMAP=yes
2171   DEFAULT_wxUSE_STREAMS=yes
2172   DEFAULT_wxUSE_SOCKETS=yes
2173   DEFAULT_wxUSE_OLE=yes
2174   DEFAULT_wxUSE_DATAOBJ=yes
2175   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2176   DEFAULT_wxUSE_JOYSTICK=yes
2177   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2178   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2179   DEFAULT_wxUSE_LONGLONG=yes
2180   DEFAULT_wxUSE_GEOMETRY=yes
2181
2182   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2183   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2184   DEFAULT_wxUSE_POSTSCRIPT=yes
2185
2186   DEFAULT_wxUSE_CLIPBOARD=yes
2187   DEFAULT_wxUSE_TOOLTIPS=yes
2188   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2189   DEFAULT_wxUSE_DRAGIMAGE=yes
2190   DEFAULT_wxUSE_SPLINES=yes
2191
2192   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2193   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2194   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2195
2196   DEFAULT_wxUSE_RESOURCES=no
2197   DEFAULT_wxUSE_CONSTRAINTS=yes
2198   DEFAULT_wxUSE_IPC=yes
2199   DEFAULT_wxUSE_HELP=yes
2200   DEFAULT_wxUSE_MS_HTML_HELP=yes
2201   DEFAULT_wxUSE_WXHTML_HELP=yes
2202   DEFAULT_wxUSE_TREELAYOUT=yes
2203   DEFAULT_wxUSE_METAFILE=yes
2204   DEFAULT_wxUSE_MIMETYPE=yes
2205   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2206   DEFAULT_wxUSE_PROTOCOL=yes
2207   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2208   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2209   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2210   DEFAULT_wxUSE_URL=yes
2211
2212   DEFAULT_wxUSE_COMMONDLGS=yes
2213   DEFAULT_wxUSE_CHOICEDLG=yes
2214   DEFAULT_wxUSE_COLOURDLG=yes
2215   DEFAULT_wxUSE_DIRDLG=yes
2216   DEFAULT_wxUSE_FILEDLG=yes
2217   DEFAULT_wxUSE_FINDREPLDLG=yes
2218   DEFAULT_wxUSE_FONTDLG=yes
2219   DEFAULT_wxUSE_MSGDLG=yes
2220   DEFAULT_wxUSE_NUMBERDLG=yes
2221   DEFAULT_wxUSE_TEXTDLG=yes
2222   DEFAULT_wxUSE_SPLASH=yes
2223   DEFAULT_wxUSE_STARTUP_TIPS=yes
2224   DEFAULT_wxUSE_PROGRESSDLG=yes
2225   DEFAULT_wxUSE_WIZARDDLG=yes
2226
2227   DEFAULT_wxUSE_MENUS=yes
2228   DEFAULT_wxUSE_MINIFRAME=yes
2229   DEFAULT_wxUSE_HTML=yes
2230   DEFAULT_wxUSE_FILESYSTEM=yes
2231   DEFAULT_wxUSE_FS_INET=yes
2232   DEFAULT_wxUSE_FS_ZIP=yes
2233   DEFAULT_wxUSE_BUSYINFO=yes
2234   DEFAULT_wxUSE_ZIPSTREAM=yes
2235   DEFAULT_wxUSE_VALIDATORS=yes
2236
2237   DEFAULT_wxUSE_ACCEL=yes
2238   DEFAULT_wxUSE_BUTTON=yes
2239   DEFAULT_wxUSE_BMPBUTTON=yes
2240   DEFAULT_wxUSE_CALCTRL=yes
2241   DEFAULT_wxUSE_CARET=yes
2242   DEFAULT_wxUSE_CHECKBOX=yes
2243   DEFAULT_wxUSE_CHECKLST=yes
2244   DEFAULT_wxUSE_CHOICE=yes
2245   DEFAULT_wxUSE_COMBOBOX=yes
2246   DEFAULT_wxUSE_DISPLAY=no
2247   DEFAULT_wxUSE_GAUGE=yes
2248   DEFAULT_wxUSE_GRID=yes
2249   DEFAULT_wxUSE_IMAGLIST=yes
2250   DEFAULT_wxUSE_LISTBOX=yes
2251   DEFAULT_wxUSE_LISTCTRL=yes
2252   DEFAULT_wxUSE_NOTEBOOK=yes
2253   DEFAULT_wxUSE_RADIOBOX=yes
2254   DEFAULT_wxUSE_RADIOBTN=yes
2255   DEFAULT_wxUSE_SASH=yes
2256   DEFAULT_wxUSE_SCROLLBAR=yes
2257   DEFAULT_wxUSE_SLIDER=yes
2258   DEFAULT_wxUSE_SPINBTN=yes
2259   DEFAULT_wxUSE_SPINCTRL=yes
2260   DEFAULT_wxUSE_SPLITTER=yes
2261   DEFAULT_wxUSE_STATBMP=yes
2262   DEFAULT_wxUSE_STATBOX=yes
2263   DEFAULT_wxUSE_STATLINE=yes
2264   DEFAULT_wxUSE_STATTEXT=yes
2265   DEFAULT_wxUSE_STATUSBAR=yes
2266   DEFAULT_wxUSE_TABDIALOG=no
2267   DEFAULT_wxUSE_TEXTCTRL=yes
2268   DEFAULT_wxUSE_TOGGLEBTN=yes
2269   DEFAULT_wxUSE_TOOLBAR=yes
2270   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2271   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2272   DEFAULT_wxUSE_TREECTRL=yes
2273   DEFAULT_wxUSE_POPUPWIN=yes
2274   DEFAULT_wxUSE_TIPWINDOW=yes
2275
2276   DEFAULT_wxUSE_UNICODE=no
2277   DEFAULT_wxUSE_UNICODE_MSLU=yes
2278   DEFAULT_wxUSE_WCSRTOMBS=no
2279
2280   DEFAULT_wxUSE_PALETTE=yes
2281   DEFAULT_wxUSE_IMAGE=yes
2282   DEFAULT_wxUSE_GIF=yes
2283   DEFAULT_wxUSE_PCX=yes
2284   DEFAULT_wxUSE_IFF=no
2285   DEFAULT_wxUSE_PNM=yes
2286   DEFAULT_wxUSE_XPM=yes
2287   DEFAULT_wxUSE_ICO_CUR=yes
2288   DEFAULT_wxUSE_ACCESSIBILITY=no
2289
2290   DEFAULT_wxUSE_MONOLITHIC=yes
2291 fi
2292
2293
2294
2295 for toolkit in `echo $ALL_TOOLKITS`; do
2296   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2297   if test "x$LINE" != "x" ; then
2298     has_toolkit_in_cache=1
2299     eval "DEFAULT_$LINE"
2300     eval "CACHE_$toolkit=1"
2301   fi
2302 done
2303
2304
2305
2306           enablestring=
2307           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2308 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2309           no_cache=0
2310           # Check whether --enable-gui or --disable-gui was given.
2311 if test "${enable_gui+set}" = set; then
2312   enableval="$enable_gui"
2313
2314                           if test "$enableval" = yes; then
2315                             ac_cv_use_gui='wxUSE_GUI=yes'
2316                           else
2317                             ac_cv_use_gui='wxUSE_GUI=no'
2318                           fi
2319
2320 else
2321
2322                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2323                           if test "x$LINE" != x ; then
2324                             eval "DEFAULT_$LINE"
2325                           else
2326                             no_cache=1
2327                           fi
2328
2329                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2330
2331 fi;
2332
2333           eval "$ac_cv_use_gui"
2334           if test "$no_cache" != 1; then
2335             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2336           fi
2337
2338           if test "$wxUSE_GUI" = yes; then
2339             echo "$as_me:$LINENO: result: yes" >&5
2340 echo "${ECHO_T}yes" >&6
2341           else
2342             echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2344           fi
2345
2346
2347           enablestring=
2348           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2349 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2350           no_cache=0
2351           # Check whether --enable-monolithic or --disable-monolithic was given.
2352 if test "${enable_monolithic+set}" = set; then
2353   enableval="$enable_monolithic"
2354
2355                           if test "$enableval" = yes; then
2356                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2357                           else
2358                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2359                           fi
2360
2361 else
2362
2363                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2364                           if test "x$LINE" != x ; then
2365                             eval "DEFAULT_$LINE"
2366                           else
2367                             no_cache=1
2368                           fi
2369
2370                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2371
2372 fi;
2373
2374           eval "$ac_cv_use_monolithic"
2375           if test "$no_cache" != 1; then
2376             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2377           fi
2378
2379           if test "$wxUSE_MONOLITHIC" = yes; then
2380             echo "$as_me:$LINENO: result: yes" >&5
2381 echo "${ECHO_T}yes" >&6
2382           else
2383             echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2385           fi
2386
2387
2388 if test "$wxUSE_GUI" = "yes"; then
2389
2390
2391           enablestring=
2392           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2393 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2394           no_cache=0
2395           # Check whether --enable-universal or --disable-universal was given.
2396 if test "${enable_universal+set}" = set; then
2397   enableval="$enable_universal"
2398
2399                           if test "$enableval" = yes; then
2400                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2401                           else
2402                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2403                           fi
2404
2405 else
2406
2407                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2408                           if test "x$LINE" != x ; then
2409                             eval "DEFAULT_$LINE"
2410                           else
2411                             no_cache=1
2412                           fi
2413
2414                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2415
2416 fi;
2417
2418           eval "$ac_cv_use_universal"
2419           if test "$no_cache" != 1; then
2420             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2421           fi
2422
2423           if test "$wxUSE_UNIVERSAL" = yes; then
2424             echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6
2426           else
2427             echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429           fi
2430
2431
2432 # Check whether --with-gtk or --without-gtk was given.
2433 if test "${with_gtk+set}" = set; then
2434   withval="$with_gtk"
2435   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2436 fi;
2437
2438 # Check whether --with-motif or --without-motif was given.
2439 if test "${with_motif+set}" = set; then
2440   withval="$with_motif"
2441   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2442 fi;
2443
2444 # Check whether --with-mac or --without-mac was given.
2445 if test "${with_mac+set}" = set; then
2446   withval="$with_mac"
2447   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2448 fi;
2449
2450 # Check whether --with-cocoa or --without-cocoa was given.
2451 if test "${with_cocoa+set}" = set; then
2452   withval="$with_cocoa"
2453   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2454 fi;
2455
2456 # Check whether --with-wine or --without-wine was given.
2457 if test "${with_wine+set}" = set; then
2458   withval="$with_wine"
2459   wxUSE_WINE="$withval" CACHE_WINE=1
2460 fi;
2461
2462 # Check whether --with-msw or --without-msw was given.
2463 if test "${with_msw+set}" = set; then
2464   withval="$with_msw"
2465   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2466 fi;
2467
2468 # Check whether --with-pm or --without-pm was given.
2469 if test "${with_pm+set}" = set; then
2470   withval="$with_pm"
2471   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2472 fi;
2473
2474 # Check whether --with-mgl or --without-mgl was given.
2475 if test "${with_mgl+set}" = set; then
2476   withval="$with_mgl"
2477   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2478 fi;
2479
2480 # Check whether --with-microwin or --without-microwin was given.
2481 if test "${with_microwin+set}" = set; then
2482   withval="$with_microwin"
2483   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2484 fi;
2485
2486 # Check whether --with-x11 or --without-x11 was given.
2487 if test "${with_x11+set}" = set; then
2488   withval="$with_x11"
2489   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2490 fi;
2491
2492           enablestring=
2493           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2494 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2495           no_cache=0
2496           # Check whether --enable-nanox or --disable-nanox was given.
2497 if test "${enable_nanox+set}" = set; then
2498   enableval="$enable_nanox"
2499
2500                           if test "$enableval" = yes; then
2501                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2502                           else
2503                             ac_cv_use_nanox='wxUSE_NANOX=no'
2504                           fi
2505
2506 else
2507
2508                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2509                           if test "x$LINE" != x ; then
2510                             eval "DEFAULT_$LINE"
2511                           else
2512                             no_cache=1
2513                           fi
2514
2515                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2516
2517 fi;
2518
2519           eval "$ac_cv_use_nanox"
2520           if test "$no_cache" != 1; then
2521             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2522           fi
2523
2524           if test "$wxUSE_NANOX" = yes; then
2525             echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6
2527           else
2528             echo "$as_me:$LINENO: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2530           fi
2531
2532
2533
2534           enablestring=
2535           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2536 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2537           no_cache=0
2538           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2539 if test "${enable_gtk2+set}" = set; then
2540   enableval="$enable_gtk2"
2541
2542                           if test "$enableval" = yes; then
2543                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2544                           else
2545                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2546                           fi
2547
2548 else
2549
2550                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2551                           if test "x$LINE" != x ; then
2552                             eval "DEFAULT_$LINE"
2553                           else
2554                             no_cache=1
2555                           fi
2556
2557                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2558
2559 fi;
2560
2561           eval "$ac_cv_use_gtk2"
2562           if test "$no_cache" != 1; then
2563             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2564           fi
2565
2566           if test "$wxUSE_GTK2" = yes; then
2567             echo "$as_me:$LINENO: result: yes" >&5
2568 echo "${ECHO_T}yes" >&6
2569           else
2570             echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572           fi
2573
2574
2575
2576           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2577 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2578           no_cache=0
2579
2580 # Check whether --with-libpng or --without-libpng was given.
2581 if test "${with_libpng+set}" = set; then
2582   withval="$with_libpng"
2583
2584                         if test "$withval" = yes; then
2585                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2586                         elif test "$withval" = no; then
2587                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2588                         elif test "$withval" = sys; then
2589                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2590                         elif test "$withval" = builtin; then
2591                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2592                         else
2593                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2594 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2595    { (exit 1); exit 1; }; }
2596                         fi
2597
2598 else
2599
2600                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2601                         if test "x$LINE" != x ; then
2602                           eval "DEFAULT_$LINE"
2603                         else
2604                           no_cache=1
2605                         fi
2606
2607                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2608
2609 fi;
2610
2611           eval "$ac_cv_use_libpng"
2612           if test "$no_cache" != 1; then
2613             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2614           fi
2615
2616           if test "$wxUSE_LIBPNG" = yes; then
2617             echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619           elif test "$wxUSE_LIBPNG" = no; then
2620             echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2622           elif test "$wxUSE_LIBPNG" = sys; then
2623             echo "$as_me:$LINENO: result: system version" >&5
2624 echo "${ECHO_T}system version" >&6
2625           elif test "$wxUSE_LIBPNG" = builtin; then
2626             echo "$as_me:$LINENO: result: builtin version" >&5
2627 echo "${ECHO_T}builtin version" >&6
2628           else
2629             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2630 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2631    { (exit 1); exit 1; }; }
2632           fi
2633
2634
2635           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2636 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2637           no_cache=0
2638
2639 # Check whether --with-libjpeg or --without-libjpeg was given.
2640 if test "${with_libjpeg+set}" = set; then
2641   withval="$with_libjpeg"
2642
2643                         if test "$withval" = yes; then
2644                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2645                         elif test "$withval" = no; then
2646                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2647                         elif test "$withval" = sys; then
2648                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2649                         elif test "$withval" = builtin; then
2650                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2651                         else
2652                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2653 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2654    { (exit 1); exit 1; }; }
2655                         fi
2656
2657 else
2658
2659                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2660                         if test "x$LINE" != x ; then
2661                           eval "DEFAULT_$LINE"
2662                         else
2663                           no_cache=1
2664                         fi
2665
2666                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2667
2668 fi;
2669
2670           eval "$ac_cv_use_libjpeg"
2671           if test "$no_cache" != 1; then
2672             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2673           fi
2674
2675           if test "$wxUSE_LIBJPEG" = yes; then
2676             echo "$as_me:$LINENO: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6
2678           elif test "$wxUSE_LIBJPEG" = no; then
2679             echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6
2681           elif test "$wxUSE_LIBJPEG" = sys; then
2682             echo "$as_me:$LINENO: result: system version" >&5
2683 echo "${ECHO_T}system version" >&6
2684           elif test "$wxUSE_LIBJPEG" = builtin; then
2685             echo "$as_me:$LINENO: result: builtin version" >&5
2686 echo "${ECHO_T}builtin version" >&6
2687           else
2688             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2689 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2690    { (exit 1); exit 1; }; }
2691           fi
2692
2693
2694           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2695 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2696           no_cache=0
2697
2698 # Check whether --with-libtiff or --without-libtiff was given.
2699 if test "${with_libtiff+set}" = set; then
2700   withval="$with_libtiff"
2701
2702                         if test "$withval" = yes; then
2703                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2704                         elif test "$withval" = no; then
2705                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2706                         elif test "$withval" = sys; then
2707                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2708                         elif test "$withval" = builtin; then
2709                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2710                         else
2711                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2712 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2713    { (exit 1); exit 1; }; }
2714                         fi
2715
2716 else
2717
2718                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2719                         if test "x$LINE" != x ; then
2720                           eval "DEFAULT_$LINE"
2721                         else
2722                           no_cache=1
2723                         fi
2724
2725                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2726
2727 fi;
2728
2729           eval "$ac_cv_use_libtiff"
2730           if test "$no_cache" != 1; then
2731             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2732           fi
2733
2734           if test "$wxUSE_LIBTIFF" = yes; then
2735             echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737           elif test "$wxUSE_LIBTIFF" = no; then
2738             echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740           elif test "$wxUSE_LIBTIFF" = sys; then
2741             echo "$as_me:$LINENO: result: system version" >&5
2742 echo "${ECHO_T}system version" >&6
2743           elif test "$wxUSE_LIBTIFF" = builtin; then
2744             echo "$as_me:$LINENO: result: builtin version" >&5
2745 echo "${ECHO_T}builtin version" >&6
2746           else
2747             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2748 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2749    { (exit 1); exit 1; }; }
2750           fi
2751
2752
2753           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2754 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2755           no_cache=0
2756
2757 # Check whether --with-opengl or --without-opengl was given.
2758 if test "${with_opengl+set}" = set; then
2759   withval="$with_opengl"
2760
2761                         if test "$withval" = yes; then
2762                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2763                         else
2764                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2765                         fi
2766
2767 else
2768
2769                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2770                         if test "x$LINE" != x ; then
2771                           eval "DEFAULT_$LINE"
2772                         else
2773                           no_cache=1
2774                         fi
2775
2776                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2777
2778 fi;
2779
2780           eval "$ac_cv_use_opengl"
2781           if test "$no_cache" != 1; then
2782             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2783           fi
2784
2785           if test "$wxUSE_OPENGL" = yes; then
2786             echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2788           else
2789             echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2791           fi
2792
2793
2794 fi
2795
2796
2797           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2798 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2799           no_cache=0
2800
2801 # Check whether --with-dmalloc or --without-dmalloc was given.
2802 if test "${with_dmalloc+set}" = set; then
2803   withval="$with_dmalloc"
2804
2805                         if test "$withval" = yes; then
2806                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2807                         else
2808                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2809                         fi
2810
2811 else
2812
2813                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2814                         if test "x$LINE" != x ; then
2815                           eval "DEFAULT_$LINE"
2816                         else
2817                           no_cache=1
2818                         fi
2819
2820                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2821
2822 fi;
2823
2824           eval "$ac_cv_use_dmalloc"
2825           if test "$no_cache" != 1; then
2826             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2827           fi
2828
2829           if test "$wxUSE_DMALLOC" = yes; then
2830             echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2832           else
2833             echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2835           fi
2836
2837
2838           echo "$as_me:$LINENO: checking for --with-regex" >&5
2839 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
2840           no_cache=0
2841
2842 # Check whether --with-regex or --without-regex was given.
2843 if test "${with_regex+set}" = set; then
2844   withval="$with_regex"
2845
2846                         if test "$withval" = yes; then
2847                           ac_cv_use_regex='wxUSE_REGEX=yes'
2848                         elif test "$withval" = no; then
2849                           ac_cv_use_regex='wxUSE_REGEX=no'
2850                         elif test "$withval" = sys; then
2851                           ac_cv_use_regex='wxUSE_REGEX=sys'
2852                         elif test "$withval" = builtin; then
2853                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2854                         else
2855                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2856 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2857    { (exit 1); exit 1; }; }
2858                         fi
2859
2860 else
2861
2862                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2863                         if test "x$LINE" != x ; then
2864                           eval "DEFAULT_$LINE"
2865                         else
2866                           no_cache=1
2867                         fi
2868
2869                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2870
2871 fi;
2872
2873           eval "$ac_cv_use_regex"
2874           if test "$no_cache" != 1; then
2875             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2876           fi
2877
2878           if test "$wxUSE_REGEX" = yes; then
2879             echo "$as_me:$LINENO: result: yes" >&5
2880 echo "${ECHO_T}yes" >&6
2881           elif test "$wxUSE_REGEX" = no; then
2882             echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2884           elif test "$wxUSE_REGEX" = sys; then
2885             echo "$as_me:$LINENO: result: system version" >&5
2886 echo "${ECHO_T}system version" >&6
2887           elif test "$wxUSE_REGEX" = builtin; then
2888             echo "$as_me:$LINENO: result: builtin version" >&5
2889 echo "${ECHO_T}builtin version" >&6
2890           else
2891             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2892 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2893    { (exit 1); exit 1; }; }
2894           fi
2895
2896
2897           echo "$as_me:$LINENO: checking for --with-zlib" >&5
2898 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
2899           no_cache=0
2900
2901 # Check whether --with-zlib or --without-zlib was given.
2902 if test "${with_zlib+set}" = set; then
2903   withval="$with_zlib"
2904
2905                         if test "$withval" = yes; then
2906                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2907                         elif test "$withval" = no; then
2908                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2909                         elif test "$withval" = sys; then
2910                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2911                         elif test "$withval" = builtin; then
2912                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2913                         else
2914                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2915 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2916    { (exit 1); exit 1; }; }
2917                         fi
2918
2919 else
2920
2921                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2922                         if test "x$LINE" != x ; then
2923                           eval "DEFAULT_$LINE"
2924                         else
2925                           no_cache=1
2926                         fi
2927
2928                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2929
2930 fi;
2931
2932           eval "$ac_cv_use_zlib"
2933           if test "$no_cache" != 1; then
2934             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2935           fi
2936
2937           if test "$wxUSE_ZLIB" = yes; then
2938             echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6
2940           elif test "$wxUSE_ZLIB" = no; then
2941             echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6
2943           elif test "$wxUSE_ZLIB" = sys; then
2944             echo "$as_me:$LINENO: result: system version" >&5
2945 echo "${ECHO_T}system version" >&6
2946           elif test "$wxUSE_ZLIB" = builtin; then
2947             echo "$as_me:$LINENO: result: builtin version" >&5
2948 echo "${ECHO_T}builtin version" >&6
2949           else
2950             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2951 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2952    { (exit 1); exit 1; }; }
2953           fi
2954
2955
2956           echo "$as_me:$LINENO: checking for --with-odbc" >&5
2957 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
2958           no_cache=0
2959
2960 # Check whether --with-odbc or --without-odbc was given.
2961 if test "${with_odbc+set}" = set; then
2962   withval="$with_odbc"
2963
2964                         if test "$withval" = yes; then
2965                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2966                         elif test "$withval" = no; then
2967                           ac_cv_use_odbc='wxUSE_ODBC=no'
2968                         elif test "$withval" = sys; then
2969                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2970                         elif test "$withval" = builtin; then
2971                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2972                         else
2973                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2974 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2975    { (exit 1); exit 1; }; }
2976                         fi
2977
2978 else
2979
2980                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2981                         if test "x$LINE" != x ; then
2982                           eval "DEFAULT_$LINE"
2983                         else
2984                           no_cache=1
2985                         fi
2986
2987                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2988
2989 fi;
2990
2991           eval "$ac_cv_use_odbc"
2992           if test "$no_cache" != 1; then
2993             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2994           fi
2995
2996           if test "$wxUSE_ODBC" = yes; then
2997             echo "$as_me:$LINENO: result: yes" >&5
2998 echo "${ECHO_T}yes" >&6
2999           elif test "$wxUSE_ODBC" = no; then
3000             echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6
3002           elif test "$wxUSE_ODBC" = sys; then
3003             echo "$as_me:$LINENO: result: system version" >&5
3004 echo "${ECHO_T}system version" >&6
3005           elif test "$wxUSE_ODBC" = builtin; then
3006             echo "$as_me:$LINENO: result: builtin version" >&5
3007 echo "${ECHO_T}builtin version" >&6
3008           else
3009             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3010 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3011    { (exit 1); exit 1; }; }
3012           fi
3013
3014
3015           echo "$as_me:$LINENO: checking for --with-expat" >&5
3016 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3017           no_cache=0
3018
3019 # Check whether --with-expat or --without-expat was given.
3020 if test "${with_expat+set}" = set; then
3021   withval="$with_expat"
3022
3023                         if test "$withval" = yes; then
3024                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3025                         elif test "$withval" = no; then
3026                           ac_cv_use_expat='wxUSE_EXPAT=no'
3027                         elif test "$withval" = sys; then
3028                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3029                         elif test "$withval" = builtin; then
3030                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3031                         else
3032                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3033 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3034    { (exit 1); exit 1; }; }
3035                         fi
3036
3037 else
3038
3039                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3040                         if test "x$LINE" != x ; then
3041                           eval "DEFAULT_$LINE"
3042                         else
3043                           no_cache=1
3044                         fi
3045
3046                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3047
3048 fi;
3049
3050           eval "$ac_cv_use_expat"
3051           if test "$no_cache" != 1; then
3052             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3053           fi
3054
3055           if test "$wxUSE_EXPAT" = yes; then
3056             echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3058           elif test "$wxUSE_EXPAT" = no; then
3059             echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3061           elif test "$wxUSE_EXPAT" = sys; then
3062             echo "$as_me:$LINENO: result: system version" >&5
3063 echo "${ECHO_T}system version" >&6
3064           elif test "$wxUSE_EXPAT" = builtin; then
3065             echo "$as_me:$LINENO: result: builtin version" >&5
3066 echo "${ECHO_T}builtin version" >&6
3067           else
3068             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3069 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3070    { (exit 1); exit 1; }; }
3071           fi
3072
3073
3074
3075
3076           enablestring=
3077           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3078 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3079           no_cache=0
3080           # Check whether --enable-shared or --disable-shared was given.
3081 if test "${enable_shared+set}" = set; then
3082   enableval="$enable_shared"
3083
3084                           if test "$enableval" = yes; then
3085                             ac_cv_use_shared='wxUSE_SHARED=yes'
3086                           else
3087                             ac_cv_use_shared='wxUSE_SHARED=no'
3088                           fi
3089
3090 else
3091
3092                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3093                           if test "x$LINE" != x ; then
3094                             eval "DEFAULT_$LINE"
3095                           else
3096                             no_cache=1
3097                           fi
3098
3099                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3100
3101 fi;
3102
3103           eval "$ac_cv_use_shared"
3104           if test "$no_cache" != 1; then
3105             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3106           fi
3107
3108           if test "$wxUSE_SHARED" = yes; then
3109             echo "$as_me:$LINENO: result: yes" >&5
3110 echo "${ECHO_T}yes" >&6
3111           else
3112             echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3114           fi
3115
3116
3117           enablestring=
3118           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3119 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3120           no_cache=0
3121           # Check whether --enable-optimise or --disable-optimise was given.
3122 if test "${enable_optimise+set}" = set; then
3123   enableval="$enable_optimise"
3124
3125                           if test "$enableval" = yes; then
3126                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3127                           else
3128                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3129                           fi
3130
3131 else
3132
3133                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3134                           if test "x$LINE" != x ; then
3135                             eval "DEFAULT_$LINE"
3136                           else
3137                             no_cache=1
3138                           fi
3139
3140                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3141
3142 fi;
3143
3144           eval "$ac_cv_use_optimise"
3145           if test "$no_cache" != 1; then
3146             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3147           fi
3148
3149           if test "$wxUSE_OPTIMISE" = yes; then
3150             echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152           else
3153             echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3155           fi
3156
3157
3158           enablestring=
3159           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3160 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3161           no_cache=0
3162           # Check whether --enable-debug or --disable-debug was given.
3163 if test "${enable_debug+set}" = set; then
3164   enableval="$enable_debug"
3165
3166                           if test "$enableval" = yes; then
3167                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3168                           else
3169                             ac_cv_use_debug='wxUSE_DEBUG=no'
3170                           fi
3171
3172 else
3173
3174                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3175                           if test "x$LINE" != x ; then
3176                             eval "DEFAULT_$LINE"
3177                           else
3178                             no_cache=1
3179                           fi
3180
3181                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3182
3183 fi;
3184
3185           eval "$ac_cv_use_debug"
3186           if test "$no_cache" != 1; then
3187             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3188           fi
3189
3190           if test "$wxUSE_DEBUG" = yes; then
3191             echo "$as_me:$LINENO: result: yes" >&5
3192 echo "${ECHO_T}yes" >&6
3193           else
3194             echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6
3196           fi
3197
3198
3199           enablestring=
3200           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3201 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3202           no_cache=0
3203           # Check whether --enable-stl or --disable-stl was given.
3204 if test "${enable_stl+set}" = set; then
3205   enableval="$enable_stl"
3206
3207                           if test "$enableval" = yes; then
3208                             ac_cv_use_stl='wxUSE_STL=yes'
3209                           else
3210                             ac_cv_use_stl='wxUSE_STL=no'
3211                           fi
3212
3213 else
3214
3215                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3216                           if test "x$LINE" != x ; then
3217                             eval "DEFAULT_$LINE"
3218                           else
3219                             no_cache=1
3220                           fi
3221
3222                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3223
3224 fi;
3225
3226           eval "$ac_cv_use_stl"
3227           if test "$no_cache" != 1; then
3228             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3229           fi
3230
3231           if test "$wxUSE_STL" = yes; then
3232             echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3234           else
3235             echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3237           fi
3238
3239
3240 if test "$wxUSE_DEBUG" = "yes"; then
3241   DEFAULT_wxUSE_DEBUG_FLAG=yes
3242   DEFAULT_wxUSE_DEBUG_INFO=yes
3243 elif test "$wxUSE_DEBUG" = "no"; then
3244   DEFAULT_wxUSE_DEBUG_FLAG=no
3245   DEFAULT_wxUSE_DEBUG_INFO=no
3246 fi
3247
3248
3249           enablestring=
3250           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3251 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3252           no_cache=0
3253           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3254 if test "${enable_debug_flag+set}" = set; then
3255   enableval="$enable_debug_flag"
3256
3257                           if test "$enableval" = yes; then
3258                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3259                           else
3260                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3261                           fi
3262
3263 else
3264
3265                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3266                           if test "x$LINE" != x ; then
3267                             eval "DEFAULT_$LINE"
3268                           else
3269                             no_cache=1
3270                           fi
3271
3272                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3273
3274 fi;
3275
3276           eval "$ac_cv_use_debug_flag"
3277           if test "$no_cache" != 1; then
3278             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3279           fi
3280
3281           if test "$wxUSE_DEBUG_FLAG" = yes; then
3282             echo "$as_me:$LINENO: result: yes" >&5
3283 echo "${ECHO_T}yes" >&6
3284           else
3285             echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6
3287           fi
3288
3289
3290           enablestring=
3291           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3292 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3293           no_cache=0
3294           # Check whether --enable-debug_info or --disable-debug_info was given.
3295 if test "${enable_debug_info+set}" = set; then
3296   enableval="$enable_debug_info"
3297
3298                           if test "$enableval" = yes; then
3299                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3300                           else
3301                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3302                           fi
3303
3304 else
3305
3306                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3307                           if test "x$LINE" != x ; then
3308                             eval "DEFAULT_$LINE"
3309                           else
3310                             no_cache=1
3311                           fi
3312
3313                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3314
3315 fi;
3316
3317           eval "$ac_cv_use_debug_info"
3318           if test "$no_cache" != 1; then
3319             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3320           fi
3321
3322           if test "$wxUSE_DEBUG_INFO" = yes; then
3323             echo "$as_me:$LINENO: result: yes" >&5
3324 echo "${ECHO_T}yes" >&6
3325           else
3326             echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3328           fi
3329
3330
3331           enablestring=
3332           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3333 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3334           no_cache=0
3335           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3336 if test "${enable_debug_gdb+set}" = set; then
3337   enableval="$enable_debug_gdb"
3338
3339                           if test "$enableval" = yes; then
3340                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3341                           else
3342                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3343                           fi
3344
3345 else
3346
3347                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3348                           if test "x$LINE" != x ; then
3349                             eval "DEFAULT_$LINE"
3350                           else
3351                             no_cache=1
3352                           fi
3353
3354                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3355
3356 fi;
3357
3358           eval "$ac_cv_use_debug_gdb"
3359           if test "$no_cache" != 1; then
3360             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3361           fi
3362
3363           if test "$wxUSE_DEBUG_GDB" = yes; then
3364             echo "$as_me:$LINENO: result: yes" >&5
3365 echo "${ECHO_T}yes" >&6
3366           else
3367             echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369           fi
3370
3371
3372           enablestring=
3373           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3374 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3375           no_cache=0
3376           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3377 if test "${enable_debug_cntxt+set}" = set; then
3378   enableval="$enable_debug_cntxt"
3379
3380                           if test "$enableval" = yes; then
3381                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3382                           else
3383                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3384                           fi
3385
3386 else
3387
3388                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3389                           if test "x$LINE" != x ; then
3390                             eval "DEFAULT_$LINE"
3391                           else
3392                             no_cache=1
3393                           fi
3394
3395                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3396
3397 fi;
3398
3399           eval "$ac_cv_use_debug_cntxt"
3400           if test "$no_cache" != 1; then
3401             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3402           fi
3403
3404           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3405             echo "$as_me:$LINENO: result: yes" >&5
3406 echo "${ECHO_T}yes" >&6
3407           else
3408             echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3410           fi
3411
3412
3413           enablestring=
3414           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3415 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3416           no_cache=0
3417           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3418 if test "${enable_mem_tracing+set}" = set; then
3419   enableval="$enable_mem_tracing"
3420
3421                           if test "$enableval" = yes; then
3422                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3423                           else
3424                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3425                           fi
3426
3427 else
3428
3429                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3430                           if test "x$LINE" != x ; then
3431                             eval "DEFAULT_$LINE"
3432                           else
3433                             no_cache=1
3434                           fi
3435
3436                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3437
3438 fi;
3439
3440           eval "$ac_cv_use_mem_tracing"
3441           if test "$no_cache" != 1; then
3442             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3443           fi
3444
3445           if test "$wxUSE_MEM_TRACING" = yes; then
3446             echo "$as_me:$LINENO: result: yes" >&5
3447 echo "${ECHO_T}yes" >&6
3448           else
3449             echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3451           fi
3452
3453
3454           enablestring=
3455           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3456 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3457           no_cache=0
3458           # Check whether --enable-profile or --disable-profile was given.
3459 if test "${enable_profile+set}" = set; then
3460   enableval="$enable_profile"
3461
3462                           if test "$enableval" = yes; then
3463                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3464                           else
3465                             ac_cv_use_profile='wxUSE_PROFILE=no'
3466                           fi
3467
3468 else
3469
3470                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3471                           if test "x$LINE" != x ; then
3472                             eval "DEFAULT_$LINE"
3473                           else
3474                             no_cache=1
3475                           fi
3476
3477                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3478
3479 fi;
3480
3481           eval "$ac_cv_use_profile"
3482           if test "$no_cache" != 1; then
3483             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3484           fi
3485
3486           if test "$wxUSE_PROFILE" = yes; then
3487             echo "$as_me:$LINENO: result: yes" >&5
3488 echo "${ECHO_T}yes" >&6
3489           else
3490             echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492           fi
3493
3494
3495           enablestring=
3496           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3497 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3498           no_cache=0
3499           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3500 if test "${enable_no_rtti+set}" = set; then
3501   enableval="$enable_no_rtti"
3502
3503                           if test "$enableval" = yes; then
3504                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3505                           else
3506                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3507                           fi
3508
3509 else
3510
3511                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3512                           if test "x$LINE" != x ; then
3513                             eval "DEFAULT_$LINE"
3514                           else
3515                             no_cache=1
3516                           fi
3517
3518                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3519
3520 fi;
3521
3522           eval "$ac_cv_use_no_rtti"
3523           if test "$no_cache" != 1; then
3524             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3525           fi
3526
3527           if test "$wxUSE_NO_RTTI" = yes; then
3528             echo "$as_me:$LINENO: result: yes" >&5
3529 echo "${ECHO_T}yes" >&6
3530           else
3531             echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533           fi
3534
3535
3536           enablestring=
3537           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3538 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3539           no_cache=0
3540           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3541 if test "${enable_no_exceptions+set}" = set; then
3542   enableval="$enable_no_exceptions"
3543
3544                           if test "$enableval" = yes; then
3545                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3546                           else
3547                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3548                           fi
3549
3550 else
3551
3552                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3553                           if test "x$LINE" != x ; then
3554                             eval "DEFAULT_$LINE"
3555                           else
3556                             no_cache=1
3557                           fi
3558
3559                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3560
3561 fi;
3562
3563           eval "$ac_cv_use_no_exceptions"
3564           if test "$no_cache" != 1; then
3565             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3566           fi
3567
3568           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3569             echo "$as_me:$LINENO: result: yes" >&5
3570 echo "${ECHO_T}yes" >&6
3571           else
3572             echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574           fi
3575
3576
3577           enablestring=
3578           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3579 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3580           no_cache=0
3581           # Check whether --enable-permissive or --disable-permissive was given.
3582 if test "${enable_permissive+set}" = set; then
3583   enableval="$enable_permissive"
3584
3585                           if test "$enableval" = yes; then
3586                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3587                           else
3588                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3589                           fi
3590
3591 else
3592
3593                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3594                           if test "x$LINE" != x ; then
3595                             eval "DEFAULT_$LINE"
3596                           else
3597                             no_cache=1
3598                           fi
3599
3600                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3601
3602 fi;
3603
3604           eval "$ac_cv_use_permissive"
3605           if test "$no_cache" != 1; then
3606             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3607           fi
3608
3609           if test "$wxUSE_PERMISSIVE" = yes; then
3610             echo "$as_me:$LINENO: result: yes" >&5
3611 echo "${ECHO_T}yes" >&6
3612           else
3613             echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6
3615           fi
3616
3617
3618           enablestring=
3619           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3620 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3621           no_cache=0
3622           # Check whether --enable-no_deps or --disable-no_deps was given.
3623 if test "${enable_no_deps+set}" = set; then
3624   enableval="$enable_no_deps"
3625
3626                           if test "$enableval" = yes; then
3627                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3628                           else
3629                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3630                           fi
3631
3632 else
3633
3634                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3635                           if test "x$LINE" != x ; then
3636                             eval "DEFAULT_$LINE"
3637                           else
3638                             no_cache=1
3639                           fi
3640
3641                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3642
3643 fi;
3644
3645           eval "$ac_cv_use_no_deps"
3646           if test "$no_cache" != 1; then
3647             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3648           fi
3649
3650           if test "$wxUSE_NO_DEPS" = yes; then
3651             echo "$as_me:$LINENO: result: yes" >&5
3652 echo "${ECHO_T}yes" >&6
3653           else
3654             echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656           fi
3657
3658
3659
3660           enablestring=
3661           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3662 echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
3663           no_cache=0
3664           # Check whether --enable-compat20 or --disable-compat20 was given.
3665 if test "${enable_compat20+set}" = set; then
3666   enableval="$enable_compat20"
3667
3668                           if test "$enableval" = yes; then
3669                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3670                           else
3671                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3672                           fi
3673
3674 else
3675
3676                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3677                           if test "x$LINE" != x ; then
3678                             eval "DEFAULT_$LINE"
3679                           else
3680                             no_cache=1
3681                           fi
3682
3683                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3684
3685 fi;
3686
3687           eval "$ac_cv_use_compat20"
3688           if test "$no_cache" != 1; then
3689             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3690           fi
3691
3692           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3693             echo "$as_me:$LINENO: result: yes" >&5
3694 echo "${ECHO_T}yes" >&6
3695           else
3696             echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3698           fi
3699
3700
3701           enablestring=
3702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3703 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3704           no_cache=0
3705           # Check whether --enable-compat22 or --disable-compat22 was given.
3706 if test "${enable_compat22+set}" = set; then
3707   enableval="$enable_compat22"
3708
3709                           if test "$enableval" = yes; then
3710                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3711                           else
3712                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3713                           fi
3714
3715 else
3716
3717                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3718                           if test "x$LINE" != x ; then
3719                             eval "DEFAULT_$LINE"
3720                           else
3721                             no_cache=1
3722                           fi
3723
3724                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3725
3726 fi;
3727
3728           eval "$ac_cv_use_compat22"
3729           if test "$no_cache" != 1; then
3730             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3731           fi
3732
3733           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3734             echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6
3736           else
3737             echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3739           fi
3740
3741
3742           enablestring=disable
3743           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3744 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3745           no_cache=0
3746           # Check whether --enable-compat24 or --disable-compat24 was given.
3747 if test "${enable_compat24+set}" = set; then
3748   enableval="$enable_compat24"
3749
3750                           if test "$enableval" = yes; then
3751                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3752                           else
3753                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3754                           fi
3755
3756 else
3757
3758                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3759                           if test "x$LINE" != x ; then
3760                             eval "DEFAULT_$LINE"
3761                           else
3762                             no_cache=1
3763                           fi
3764
3765                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3766
3767 fi;
3768
3769           eval "$ac_cv_use_compat24"
3770           if test "$no_cache" != 1; then
3771             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3772           fi
3773
3774           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3775             echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6
3777           else
3778             echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3780           fi
3781
3782
3783 # Check whether --enable-rpath or --disable-rpath was given.
3784 if test "${enable_rpath+set}" = set; then
3785   enableval="$enable_rpath"
3786   wxRPATH_DIR="$enableval"
3787 fi;
3788
3789 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3790    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3791 fi
3792
3793
3794
3795
3796           enablestring=
3797           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3798 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3799           no_cache=0
3800           # Check whether --enable-intl or --disable-intl was given.
3801 if test "${enable_intl+set}" = set; then
3802   enableval="$enable_intl"
3803
3804                           if test "$enableval" = yes; then
3805                             ac_cv_use_intl='wxUSE_INTL=yes'
3806                           else
3807                             ac_cv_use_intl='wxUSE_INTL=no'
3808                           fi
3809
3810 else
3811
3812                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3813                           if test "x$LINE" != x ; then
3814                             eval "DEFAULT_$LINE"
3815                           else
3816                             no_cache=1
3817                           fi
3818
3819                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3820
3821 fi;
3822
3823           eval "$ac_cv_use_intl"
3824           if test "$no_cache" != 1; then
3825             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3826           fi
3827
3828           if test "$wxUSE_INTL" = yes; then
3829             echo "$as_me:$LINENO: result: yes" >&5
3830 echo "${ECHO_T}yes" >&6
3831           else
3832             echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3834           fi
3835
3836
3837           enablestring=
3838           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3839 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3840           no_cache=0
3841           # Check whether --enable-config or --disable-config was given.
3842 if test "${enable_config+set}" = set; then
3843   enableval="$enable_config"
3844
3845                           if test "$enableval" = yes; then
3846                             ac_cv_use_config='wxUSE_CONFIG=yes'
3847                           else
3848                             ac_cv_use_config='wxUSE_CONFIG=no'
3849                           fi
3850
3851 else
3852
3853                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3854                           if test "x$LINE" != x ; then
3855                             eval "DEFAULT_$LINE"
3856                           else
3857                             no_cache=1
3858                           fi
3859
3860                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3861
3862 fi;
3863
3864           eval "$ac_cv_use_config"
3865           if test "$no_cache" != 1; then
3866             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3867           fi
3868
3869           if test "$wxUSE_CONFIG" = yes; then
3870             echo "$as_me:$LINENO: result: yes" >&5
3871 echo "${ECHO_T}yes" >&6
3872           else
3873             echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3875           fi
3876
3877
3878
3879           enablestring=
3880           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3881 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
3882           no_cache=0
3883           # Check whether --enable-protocols or --disable-protocols was given.
3884 if test "${enable_protocols+set}" = set; then
3885   enableval="$enable_protocols"
3886
3887                           if test "$enableval" = yes; then
3888                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3889                           else
3890                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3891                           fi
3892
3893 else
3894
3895                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3896                           if test "x$LINE" != x ; then
3897                             eval "DEFAULT_$LINE"
3898                           else
3899                             no_cache=1
3900                           fi
3901
3902                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3903
3904 fi;
3905
3906           eval "$ac_cv_use_protocols"
3907           if test "$no_cache" != 1; then
3908             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3909           fi
3910
3911           if test "$wxUSE_PROTOCOL" = yes; then
3912             echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6
3914           else
3915             echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3917           fi
3918
3919
3920           enablestring=
3921           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3922 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
3923           no_cache=0
3924           # Check whether --enable-ftp or --disable-ftp was given.
3925 if test "${enable_ftp+set}" = set; then
3926   enableval="$enable_ftp"
3927
3928                           if test "$enableval" = yes; then
3929                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3930                           else
3931                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3932                           fi
3933
3934 else
3935
3936                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3937                           if test "x$LINE" != x ; then
3938                             eval "DEFAULT_$LINE"
3939                           else
3940                             no_cache=1
3941                           fi
3942
3943                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3944
3945 fi;
3946
3947           eval "$ac_cv_use_ftp"
3948           if test "$no_cache" != 1; then
3949             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3950           fi
3951
3952           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3953             echo "$as_me:$LINENO: result: yes" >&5
3954 echo "${ECHO_T}yes" >&6
3955           else
3956             echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3958           fi
3959
3960
3961           enablestring=
3962           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3963 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
3964           no_cache=0
3965           # Check whether --enable-http or --disable-http was given.
3966 if test "${enable_http+set}" = set; then
3967   enableval="$enable_http"
3968
3969                           if test "$enableval" = yes; then
3970                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3971                           else
3972                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3973                           fi
3974
3975 else
3976
3977                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3978                           if test "x$LINE" != x ; then
3979                             eval "DEFAULT_$LINE"
3980                           else
3981                             no_cache=1
3982                           fi
3983
3984                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3985
3986 fi;
3987
3988           eval "$ac_cv_use_http"
3989           if test "$no_cache" != 1; then
3990             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3991           fi
3992
3993           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3994             echo "$as_me:$LINENO: result: yes" >&5
3995 echo "${ECHO_T}yes" >&6
3996           else
3997             echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999           fi
4000
4001
4002           enablestring=
4003           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4004 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4005           no_cache=0
4006           # Check whether --enable-fileproto or --disable-fileproto was given.
4007 if test "${enable_fileproto+set}" = set; then
4008   enableval="$enable_fileproto"
4009
4010                           if test "$enableval" = yes; then
4011                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4012                           else
4013                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4014                           fi
4015
4016 else
4017
4018                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4019                           if test "x$LINE" != x ; then
4020                             eval "DEFAULT_$LINE"
4021                           else
4022                             no_cache=1
4023                           fi
4024
4025                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4026
4027 fi;
4028
4029           eval "$ac_cv_use_fileproto"
4030           if test "$no_cache" != 1; then
4031             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4032           fi
4033
4034           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4035             echo "$as_me:$LINENO: result: yes" >&5
4036 echo "${ECHO_T}yes" >&6
4037           else
4038             echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040           fi
4041
4042
4043           enablestring=
4044           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4045 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4046           no_cache=0
4047           # Check whether --enable-sockets or --disable-sockets was given.
4048 if test "${enable_sockets+set}" = set; then
4049   enableval="$enable_sockets"
4050
4051                           if test "$enableval" = yes; then
4052                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4053                           else
4054                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4055                           fi
4056
4057 else
4058
4059                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4060                           if test "x$LINE" != x ; then
4061                             eval "DEFAULT_$LINE"
4062                           else
4063                             no_cache=1
4064                           fi
4065
4066                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4067
4068 fi;
4069
4070           eval "$ac_cv_use_sockets"
4071           if test "$no_cache" != 1; then
4072             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4073           fi
4074
4075           if test "$wxUSE_SOCKETS" = yes; then
4076             echo "$as_me:$LINENO: result: yes" >&5
4077 echo "${ECHO_T}yes" >&6
4078           else
4079             echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081           fi
4082
4083
4084           enablestring=
4085           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4086 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4087           no_cache=0
4088           # Check whether --enable-ole or --disable-ole was given.
4089 if test "${enable_ole+set}" = set; then
4090   enableval="$enable_ole"
4091
4092                           if test "$enableval" = yes; then
4093                             ac_cv_use_ole='wxUSE_OLE=yes'
4094                           else
4095                             ac_cv_use_ole='wxUSE_OLE=no'
4096                           fi
4097
4098 else
4099
4100                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4101                           if test "x$LINE" != x ; then
4102                             eval "DEFAULT_$LINE"
4103                           else
4104                             no_cache=1
4105                           fi
4106
4107                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4108
4109 fi;
4110
4111           eval "$ac_cv_use_ole"
4112           if test "$no_cache" != 1; then
4113             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4114           fi
4115
4116           if test "$wxUSE_OLE" = yes; then
4117             echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119           else
4120             echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4122           fi
4123
4124
4125           enablestring=
4126           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4127 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4128           no_cache=0
4129           # Check whether --enable-dataobj or --disable-dataobj was given.
4130 if test "${enable_dataobj+set}" = set; then
4131   enableval="$enable_dataobj"
4132
4133                           if test "$enableval" = yes; then
4134                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4135                           else
4136                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4137                           fi
4138
4139 else
4140
4141                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4142                           if test "x$LINE" != x ; then
4143                             eval "DEFAULT_$LINE"
4144                           else
4145                             no_cache=1
4146                           fi
4147
4148                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4149
4150 fi;
4151
4152           eval "$ac_cv_use_dataobj"
4153           if test "$no_cache" != 1; then
4154             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4155           fi
4156
4157           if test "$wxUSE_DATAOBJ" = yes; then
4158             echo "$as_me:$LINENO: result: yes" >&5
4159 echo "${ECHO_T}yes" >&6
4160           else
4161             echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4163           fi
4164
4165
4166
4167           enablestring=
4168           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4169 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4170           no_cache=0
4171           # Check whether --enable-ipc or --disable-ipc was given.
4172 if test "${enable_ipc+set}" = set; then
4173   enableval="$enable_ipc"
4174
4175                           if test "$enableval" = yes; then
4176                             ac_cv_use_ipc='wxUSE_IPC=yes'
4177                           else
4178                             ac_cv_use_ipc='wxUSE_IPC=no'
4179                           fi
4180
4181 else
4182
4183                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4184                           if test "x$LINE" != x ; then
4185                             eval "DEFAULT_$LINE"
4186                           else
4187                             no_cache=1
4188                           fi
4189
4190                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4191
4192 fi;
4193
4194           eval "$ac_cv_use_ipc"
4195           if test "$no_cache" != 1; then
4196             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4197           fi
4198
4199           if test "$wxUSE_IPC" = yes; then
4200             echo "$as_me:$LINENO: result: yes" >&5
4201 echo "${ECHO_T}yes" >&6
4202           else
4203             echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4205           fi
4206
4207
4208
4209           enablestring=
4210           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4211 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4212           no_cache=0
4213           # Check whether --enable-cmdline or --disable-cmdline was given.
4214 if test "${enable_cmdline+set}" = set; then
4215   enableval="$enable_cmdline"
4216
4217                           if test "$enableval" = yes; then
4218                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4219                           else
4220                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4221                           fi
4222
4223 else
4224
4225                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4226                           if test "x$LINE" != x ; then
4227                             eval "DEFAULT_$LINE"
4228                           else
4229                             no_cache=1
4230                           fi
4231
4232                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4233
4234 fi;
4235
4236           eval "$ac_cv_use_cmdline"
4237           if test "$no_cache" != 1; then
4238             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4239           fi
4240
4241           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4242             echo "$as_me:$LINENO: result: yes" >&5
4243 echo "${ECHO_T}yes" >&6
4244           else
4245             echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247           fi
4248
4249
4250           enablestring=
4251           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4252 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4253           no_cache=0
4254           # Check whether --enable-datetime or --disable-datetime was given.
4255 if test "${enable_datetime+set}" = set; then
4256   enableval="$enable_datetime"
4257
4258                           if test "$enableval" = yes; then
4259                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4260                           else
4261                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4262                           fi
4263
4264 else
4265
4266                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4267                           if test "x$LINE" != x ; then
4268                             eval "DEFAULT_$LINE"
4269                           else
4270                             no_cache=1
4271                           fi
4272
4273                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4274
4275 fi;
4276
4277           eval "$ac_cv_use_datetime"
4278           if test "$no_cache" != 1; then
4279             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4280           fi
4281
4282           if test "$wxUSE_DATETIME" = yes; then
4283             echo "$as_me:$LINENO: result: yes" >&5
4284 echo "${ECHO_T}yes" >&6
4285           else
4286             echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4288           fi
4289
4290
4291           enablestring=
4292           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4293 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
4294           no_cache=0
4295           # Check whether --enable-stopwatch or --disable-stopwatch was given.
4296 if test "${enable_stopwatch+set}" = set; then
4297   enableval="$enable_stopwatch"
4298
4299                           if test "$enableval" = yes; then
4300                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4301                           else
4302                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4303                           fi
4304
4305 else
4306
4307                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4308                           if test "x$LINE" != x ; then
4309                             eval "DEFAULT_$LINE"
4310                           else
4311                             no_cache=1
4312                           fi
4313
4314                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
4315
4316 fi;
4317
4318           eval "$ac_cv_use_stopwatch"
4319           if test "$no_cache" != 1; then
4320             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4321           fi
4322
4323           if test "$wxUSE_STOPWATCH" = yes; then
4324             echo "$as_me:$LINENO: result: yes" >&5
4325 echo "${ECHO_T}yes" >&6
4326           else
4327             echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329           fi
4330
4331
4332           enablestring=
4333           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4334 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4335           no_cache=0
4336           # Check whether --enable-dialupman or --disable-dialupman was given.
4337 if test "${enable_dialupman+set}" = set; then
4338   enableval="$enable_dialupman"
4339
4340                           if test "$enableval" = yes; then
4341                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4342                           else
4343                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4344                           fi
4345
4346 else
4347
4348                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4349                           if test "x$LINE" != x ; then
4350                             eval "DEFAULT_$LINE"
4351                           else
4352                             no_cache=1
4353                           fi
4354
4355                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4356
4357 fi;
4358
4359           eval "$ac_cv_use_dialupman"
4360           if test "$no_cache" != 1; then
4361             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4362           fi
4363
4364           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4365             echo "$as_me:$LINENO: result: yes" >&5
4366 echo "${ECHO_T}yes" >&6
4367           else
4368             echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4370           fi
4371
4372
4373           enablestring=
4374           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4375 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4376           no_cache=0
4377           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4378 if test "${enable_apple_ieee+set}" = set; then
4379   enableval="$enable_apple_ieee"
4380
4381                           if test "$enableval" = yes; then
4382                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4383                           else
4384                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4385                           fi
4386
4387 else
4388
4389                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4390                           if test "x$LINE" != x ; then
4391                             eval "DEFAULT_$LINE"
4392                           else
4393                             no_cache=1
4394                           fi
4395
4396                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4397
4398 fi;
4399
4400           eval "$ac_cv_use_apple_ieee"
4401           if test "$no_cache" != 1; then
4402             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4403           fi
4404
4405           if test "$wxUSE_APPLE_IEEE" = yes; then
4406             echo "$as_me:$LINENO: result: yes" >&5
4407 echo "${ECHO_T}yes" >&6
4408           else
4409             echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4411           fi
4412
4413
4414           enablestring=
4415           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4416 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
4417           no_cache=0
4418           # Check whether --enable-timer or --disable-timer was given.
4419 if test "${enable_timer+set}" = set; then
4420   enableval="$enable_timer"
4421
4422                           if test "$enableval" = yes; then
4423                             ac_cv_use_timer='wxUSE_TIMER=yes'
4424                           else
4425                             ac_cv_use_timer='wxUSE_TIMER=no'
4426                           fi
4427
4428 else
4429
4430                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
4431                           if test "x$LINE" != x ; then
4432                             eval "DEFAULT_$LINE"
4433                           else
4434                             no_cache=1
4435                           fi
4436
4437                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
4438
4439 fi;
4440
4441           eval "$ac_cv_use_timer"
4442           if test "$no_cache" != 1; then
4443             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
4444           fi
4445
4446           if test "$wxUSE_TIMER" = yes; then
4447             echo "$as_me:$LINENO: result: yes" >&5
4448 echo "${ECHO_T}yes" >&6
4449           else
4450             echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4452           fi
4453
4454
4455           enablestring=
4456           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4457 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
4458           no_cache=0
4459           # Check whether --enable-wave or --disable-wave was given.
4460 if test "${enable_wave+set}" = set; then
4461   enableval="$enable_wave"
4462
4463                           if test "$enableval" = yes; then
4464                             ac_cv_use_wave='wxUSE_WAVE=yes'
4465                           else
4466                             ac_cv_use_wave='wxUSE_WAVE=no'
4467                           fi
4468
4469 else
4470
4471                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4472                           if test "x$LINE" != x ; then
4473                             eval "DEFAULT_$LINE"
4474                           else
4475                             no_cache=1
4476                           fi
4477
4478                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
4479
4480 fi;
4481
4482           eval "$ac_cv_use_wave"
4483           if test "$no_cache" != 1; then
4484             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4485           fi
4486
4487           if test "$wxUSE_WAVE" = yes; then
4488             echo "$as_me:$LINENO: result: yes" >&5
4489 echo "${ECHO_T}yes" >&6
4490           else
4491             echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493           fi
4494
4495
4496           enablestring=
4497           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4498 echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
4499           no_cache=0
4500           # Check whether --enable-fraction or --disable-fraction was given.
4501 if test "${enable_fraction+set}" = set; then
4502   enableval="$enable_fraction"
4503
4504                           if test "$enableval" = yes; then
4505                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
4506                           else
4507                             ac_cv_use_fraction='wxUSE_FRACTION=no'
4508                           fi
4509
4510 else
4511
4512                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4513                           if test "x$LINE" != x ; then
4514                             eval "DEFAULT_$LINE"
4515                           else
4516                             no_cache=1
4517                           fi
4518
4519                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
4520
4521 fi;
4522
4523           eval "$ac_cv_use_fraction"
4524           if test "$no_cache" != 1; then
4525             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4526           fi
4527
4528           if test "$wxUSE_FRACTION" = yes; then
4529             echo "$as_me:$LINENO: result: yes" >&5
4530 echo "${ECHO_T}yes" >&6
4531           else
4532             echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4534           fi
4535
4536
4537           enablestring=
4538           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4539 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4540           no_cache=0
4541           # Check whether --enable-dynlib or --disable-dynlib was given.
4542 if test "${enable_dynlib+set}" = set; then
4543   enableval="$enable_dynlib"
4544
4545                           if test "$enableval" = yes; then
4546                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4547                           else
4548                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4549                           fi
4550
4551 else
4552
4553                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4554                           if test "x$LINE" != x ; then
4555                             eval "DEFAULT_$LINE"
4556                           else
4557                             no_cache=1
4558                           fi
4559
4560                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4561
4562 fi;
4563
4564           eval "$ac_cv_use_dynlib"
4565           if test "$no_cache" != 1; then
4566             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4567           fi
4568
4569           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4570             echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4572           else
4573             echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4575           fi
4576
4577
4578           enablestring=
4579           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4580 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4581           no_cache=0
4582           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4583 if test "${enable_dynamicloader+set}" = set; then
4584   enableval="$enable_dynamicloader"
4585
4586                           if test "$enableval" = yes; then
4587                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4588                           else
4589                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4590                           fi
4591
4592 else
4593
4594                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4595                           if test "x$LINE" != x ; then
4596                             eval "DEFAULT_$LINE"
4597                           else
4598                             no_cache=1
4599                           fi
4600
4601                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4602
4603 fi;
4604
4605           eval "$ac_cv_use_dynamicloader"
4606           if test "$no_cache" != 1; then
4607             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4608           fi
4609
4610           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4611             echo "$as_me:$LINENO: result: yes" >&5
4612 echo "${ECHO_T}yes" >&6
4613           else
4614             echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4616           fi
4617
4618
4619           enablestring=
4620           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4621 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
4622           no_cache=0
4623           # Check whether --enable-longlong or --disable-longlong was given.
4624 if test "${enable_longlong+set}" = set; then
4625   enableval="$enable_longlong"
4626
4627                           if test "$enableval" = yes; then
4628                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4629                           else
4630                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
4631                           fi
4632
4633 else
4634
4635                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4636                           if test "x$LINE" != x ; then
4637                             eval "DEFAULT_$LINE"
4638                           else
4639                             no_cache=1
4640                           fi
4641
4642                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4643
4644 fi;
4645
4646           eval "$ac_cv_use_longlong"
4647           if test "$no_cache" != 1; then
4648             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4649           fi
4650
4651           if test "$wxUSE_LONGLONG" = yes; then
4652             echo "$as_me:$LINENO: result: yes" >&5
4653 echo "${ECHO_T}yes" >&6
4654           else
4655             echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6
4657           fi
4658
4659
4660           enablestring=
4661           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4662 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4663           no_cache=0
4664           # Check whether --enable-geometry or --disable-geometry was given.
4665 if test "${enable_geometry+set}" = set; then
4666   enableval="$enable_geometry"
4667
4668                           if test "$enableval" = yes; then
4669                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4670                           else
4671                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4672                           fi
4673
4674 else
4675
4676                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4677                           if test "x$LINE" != x ; then
4678                             eval "DEFAULT_$LINE"
4679                           else
4680                             no_cache=1
4681                           fi
4682
4683                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4684
4685 fi;
4686
4687           eval "$ac_cv_use_geometry"
4688           if test "$no_cache" != 1; then
4689             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4690           fi
4691
4692           if test "$wxUSE_GEOMETRY" = yes; then
4693             echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6
4695           else
4696             echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6
4698           fi
4699
4700
4701           enablestring=
4702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4703 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4704           no_cache=0
4705           # Check whether --enable-log or --disable-log was given.
4706 if test "${enable_log+set}" = set; then
4707   enableval="$enable_log"
4708
4709                           if test "$enableval" = yes; then
4710                             ac_cv_use_log='wxUSE_LOG=yes'
4711                           else
4712                             ac_cv_use_log='wxUSE_LOG=no'
4713                           fi
4714
4715 else
4716
4717                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4718                           if test "x$LINE" != x ; then
4719                             eval "DEFAULT_$LINE"
4720                           else
4721                             no_cache=1
4722                           fi
4723
4724                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4725
4726 fi;
4727
4728           eval "$ac_cv_use_log"
4729           if test "$no_cache" != 1; then
4730             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4731           fi
4732
4733           if test "$wxUSE_LOG" = yes; then
4734             echo "$as_me:$LINENO: result: yes" >&5
4735 echo "${ECHO_T}yes" >&6
4736           else
4737             echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4739           fi
4740
4741
4742           enablestring=
4743           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4744 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
4745           no_cache=0
4746           # Check whether --enable-streams or --disable-streams was given.
4747 if test "${enable_streams+set}" = set; then
4748   enableval="$enable_streams"
4749
4750                           if test "$enableval" = yes; then
4751                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4752                           else
4753                             ac_cv_use_streams='wxUSE_STREAMS=no'
4754                           fi
4755
4756 else
4757
4758                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4759                           if test "x$LINE" != x ; then
4760                             eval "DEFAULT_$LINE"
4761                           else
4762                             no_cache=1
4763                           fi
4764
4765                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4766
4767 fi;
4768
4769           eval "$ac_cv_use_streams"
4770           if test "$no_cache" != 1; then
4771             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4772           fi
4773
4774           if test "$wxUSE_STREAMS" = yes; then
4775             echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6
4777           else
4778             echo "$as_me:$LINENO: result: no" >&5
4779 echo "${ECHO_T}no" >&6
4780           fi
4781
4782
4783           enablestring=
4784           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4785 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4786           no_cache=0
4787           # Check whether --enable-file or --disable-file was given.
4788 if test "${enable_file+set}" = set; then
4789   enableval="$enable_file"
4790
4791                           if test "$enableval" = yes; then
4792                             ac_cv_use_file='wxUSE_FILE=yes'
4793                           else
4794                             ac_cv_use_file='wxUSE_FILE=no'
4795                           fi
4796
4797 else
4798
4799                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4800                           if test "x$LINE" != x ; then
4801                             eval "DEFAULT_$LINE"
4802                           else
4803                             no_cache=1
4804                           fi
4805
4806                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4807
4808 fi;
4809
4810           eval "$ac_cv_use_file"
4811           if test "$no_cache" != 1; then
4812             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4813           fi
4814
4815           if test "$wxUSE_FILE" = yes; then
4816             echo "$as_me:$LINENO: result: yes" >&5
4817 echo "${ECHO_T}yes" >&6
4818           else
4819             echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6
4821           fi
4822
4823
4824           enablestring=
4825           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4826 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4827           no_cache=0
4828           # Check whether --enable-ffile or --disable-ffile was given.
4829 if test "${enable_ffile+set}" = set; then
4830   enableval="$enable_ffile"
4831
4832                           if test "$enableval" = yes; then
4833                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4834                           else
4835                             ac_cv_use_ffile='wxUSE_FFILE=no'
4836                           fi
4837
4838 else
4839
4840                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4841                           if test "x$LINE" != x ; then
4842                             eval "DEFAULT_$LINE"
4843                           else
4844                             no_cache=1
4845                           fi
4846
4847                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4848
4849 fi;
4850
4851           eval "$ac_cv_use_ffile"
4852           if test "$no_cache" != 1; then
4853             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4854           fi
4855
4856           if test "$wxUSE_FFILE" = yes; then
4857             echo "$as_me:$LINENO: result: yes" >&5
4858 echo "${ECHO_T}yes" >&6
4859           else
4860             echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4862           fi
4863
4864
4865           enablestring=
4866           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4867 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
4868           no_cache=0
4869           # Check whether --enable-textbuf or --disable-textbuf was given.
4870 if test "${enable_textbuf+set}" = set; then
4871   enableval="$enable_textbuf"
4872
4873                           if test "$enableval" = yes; then
4874                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4875                           else
4876                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4877                           fi
4878
4879 else
4880
4881                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4882                           if test "x$LINE" != x ; then
4883                             eval "DEFAULT_$LINE"
4884                           else
4885                             no_cache=1
4886                           fi
4887
4888                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4889
4890 fi;
4891
4892           eval "$ac_cv_use_textbuf"
4893           if test "$no_cache" != 1; then
4894             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4895           fi
4896
4897           if test "$wxUSE_TEXTBUFFER" = yes; then
4898             echo "$as_me:$LINENO: result: yes" >&5
4899 echo "${ECHO_T}yes" >&6
4900           else
4901             echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6
4903           fi
4904
4905
4906           enablestring=
4907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4908 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
4909           no_cache=0
4910           # Check whether --enable-textfile or --disable-textfile was given.
4911 if test "${enable_textfile+set}" = set; then
4912   enableval="$enable_textfile"
4913
4914                           if test "$enableval" = yes; then
4915                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4916                           else
4917                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4918                           fi
4919
4920 else
4921
4922                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4923                           if test "x$LINE" != x ; then
4924                             eval "DEFAULT_$LINE"
4925                           else
4926                             no_cache=1
4927                           fi
4928
4929                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4930
4931 fi;
4932
4933           eval "$ac_cv_use_textfile"
4934           if test "$no_cache" != 1; then
4935             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4936           fi
4937
4938           if test "$wxUSE_TEXTFILE" = yes; then
4939             echo "$as_me:$LINENO: result: yes" >&5
4940 echo "${ECHO_T}yes" >&6
4941           else
4942             echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4944           fi
4945
4946
4947           enablestring=
4948           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4949 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4950           no_cache=0
4951           # Check whether --enable-fontmap or --disable-fontmap was given.
4952 if test "${enable_fontmap+set}" = set; then
4953   enableval="$enable_fontmap"
4954
4955                           if test "$enableval" = yes; then
4956                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4957                           else
4958                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4959                           fi
4960
4961 else
4962
4963                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4964                           if test "x$LINE" != x ; then
4965                             eval "DEFAULT_$LINE"
4966                           else
4967                             no_cache=1
4968                           fi
4969
4970                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4971
4972 fi;
4973
4974           eval "$ac_cv_use_fontmap"
4975           if test "$no_cache" != 1; then
4976             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4977           fi
4978
4979           if test "$wxUSE_FONTMAP" = yes; then
4980             echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6
4982           else
4983             echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6
4985           fi
4986
4987
4988           enablestring=
4989           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4990 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4991           no_cache=0
4992           # Check whether --enable-unicode or --disable-unicode was given.
4993 if test "${enable_unicode+set}" = set; then
4994   enableval="$enable_unicode"
4995
4996                           if test "$enableval" = yes; then
4997                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4998                           else
4999                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5000                           fi
5001
5002 else
5003
5004                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5005                           if test "x$LINE" != x ; then
5006                             eval "DEFAULT_$LINE"
5007                           else
5008                             no_cache=1
5009                           fi
5010
5011                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5012
5013 fi;
5014
5015           eval "$ac_cv_use_unicode"
5016           if test "$no_cache" != 1; then
5017             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5018           fi
5019
5020           if test "$wxUSE_UNICODE" = yes; then
5021             echo "$as_me:$LINENO: result: yes" >&5
5022 echo "${ECHO_T}yes" >&6
5023           else
5024             echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6
5026           fi
5027
5028
5029           enablestring=
5030           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5031 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5032           no_cache=0
5033           # Check whether --enable-mslu or --disable-mslu was given.
5034 if test "${enable_mslu+set}" = set; then
5035   enableval="$enable_mslu"
5036
5037                           if test "$enableval" = yes; then
5038                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5039                           else
5040                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5041                           fi
5042
5043 else
5044
5045                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5046                           if test "x$LINE" != x ; then
5047                             eval "DEFAULT_$LINE"
5048                           else
5049                             no_cache=1
5050                           fi
5051
5052                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5053
5054 fi;
5055
5056           eval "$ac_cv_use_mslu"
5057           if test "$no_cache" != 1; then
5058             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5059           fi
5060
5061           if test "$wxUSE_UNICODE_MSLU" = yes; then
5062             echo "$as_me:$LINENO: result: yes" >&5
5063 echo "${ECHO_T}yes" >&6
5064           else
5065             echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5067           fi
5068
5069
5070           enablestring=
5071           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5072 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5073           no_cache=0
5074           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5075 if test "${enable_wxprintfv+set}" = set; then
5076   enableval="$enable_wxprintfv"
5077
5078                           if test "$enableval" = yes; then
5079                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5080                           else
5081                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5082                           fi
5083
5084 else
5085
5086                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5087                           if test "x$LINE" != x ; then
5088                             eval "DEFAULT_$LINE"
5089                           else
5090                             no_cache=1
5091                           fi
5092
5093                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5094
5095 fi;
5096
5097           eval "$ac_cv_use_wxprintfv"
5098           if test "$no_cache" != 1; then
5099             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5100           fi
5101
5102           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5103             echo "$as_me:$LINENO: result: yes" >&5
5104 echo "${ECHO_T}yes" >&6
5105           else
5106             echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6
5108           fi
5109
5110
5111           enablestring=
5112           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5113 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5114           no_cache=0
5115           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5116 if test "${enable_std_iostreams+set}" = set; then
5117   enableval="$enable_std_iostreams"
5118
5119                           if test "$enableval" = yes; then
5120                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5121                           else
5122                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5123                           fi
5124
5125 else
5126
5127                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5128                           if test "x$LINE" != x ; then
5129                             eval "DEFAULT_$LINE"
5130                           else
5131                             no_cache=1
5132                           fi
5133
5134                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5135
5136 fi;
5137
5138           eval "$ac_cv_use_std_iostreams"
5139           if test "$no_cache" != 1; then
5140             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5141           fi
5142
5143           if test "$wxUSE_STD_IOSTREAM" = yes; then
5144             echo "$as_me:$LINENO: result: yes" >&5
5145 echo "${ECHO_T}yes" >&6
5146           else
5147             echo "$as_me:$LINENO: result: no" >&5
5148 echo "${ECHO_T}no" >&6
5149           fi
5150
5151
5152           enablestring=
5153           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5154 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5155           no_cache=0
5156           # Check whether --enable-filesystem or --disable-filesystem was given.
5157 if test "${enable_filesystem+set}" = set; then
5158   enableval="$enable_filesystem"
5159
5160                           if test "$enableval" = yes; then
5161                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5162                           else
5163                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5164                           fi
5165
5166 else
5167
5168                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5169                           if test "x$LINE" != x ; then
5170                             eval "DEFAULT_$LINE"
5171                           else
5172                             no_cache=1
5173                           fi
5174
5175                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5176
5177 fi;
5178
5179           eval "$ac_cv_use_filesystem"
5180           if test "$no_cache" != 1; then
5181             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5182           fi
5183
5184           if test "$wxUSE_FILESYSTEM" = yes; then
5185             echo "$as_me:$LINENO: result: yes" >&5
5186 echo "${ECHO_T}yes" >&6
5187           else
5188             echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6
5190           fi
5191
5192
5193           enablestring=
5194           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5195 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5196           no_cache=0
5197           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5198 if test "${enable_fs_inet+set}" = set; then
5199   enableval="$enable_fs_inet"
5200
5201                           if test "$enableval" = yes; then
5202                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5203                           else
5204                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5205                           fi
5206
5207 else
5208
5209                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5210                           if test "x$LINE" != x ; then
5211                             eval "DEFAULT_$LINE"
5212                           else
5213                             no_cache=1
5214                           fi
5215
5216                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5217
5218 fi;
5219
5220           eval "$ac_cv_use_fs_inet"
5221           if test "$no_cache" != 1; then
5222             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5223           fi
5224
5225           if test "$wxUSE_FS_INET" = yes; then
5226             echo "$as_me:$LINENO: result: yes" >&5
5227 echo "${ECHO_T}yes" >&6
5228           else
5229             echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5231           fi
5232
5233
5234           enablestring=
5235           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5236 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5237           no_cache=0
5238           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5239 if test "${enable_fs_zip+set}" = set; then
5240   enableval="$enable_fs_zip"
5241
5242                           if test "$enableval" = yes; then
5243                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5244                           else
5245                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5246                           fi
5247
5248 else
5249
5250                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5251                           if test "x$LINE" != x ; then
5252                             eval "DEFAULT_$LINE"
5253                           else
5254                             no_cache=1
5255                           fi
5256
5257                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5258
5259 fi;
5260
5261           eval "$ac_cv_use_fs_zip"
5262           if test "$no_cache" != 1; then
5263             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5264           fi
5265
5266           if test "$wxUSE_FS_ZIP" = yes; then
5267             echo "$as_me:$LINENO: result: yes" >&5
5268 echo "${ECHO_T}yes" >&6
5269           else
5270             echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6
5272           fi
5273
5274
5275           enablestring=
5276           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5277 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5278           no_cache=0
5279           # Check whether --enable-zipstream or --disable-zipstream was given.
5280 if test "${enable_zipstream+set}" = set; then
5281   enableval="$enable_zipstream"
5282
5283                           if test "$enableval" = yes; then
5284                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5285                           else
5286                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5287                           fi
5288
5289 else
5290
5291                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5292                           if test "x$LINE" != x ; then
5293                             eval "DEFAULT_$LINE"
5294                           else
5295                             no_cache=1
5296                           fi
5297
5298                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5299
5300 fi;
5301
5302           eval "$ac_cv_use_zipstream"
5303           if test "$no_cache" != 1; then
5304             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5305           fi
5306
5307           if test "$wxUSE_ZIPSTREAM" = yes; then
5308             echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6
5310           else
5311             echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6
5313           fi
5314
5315
5316
5317           enablestring=
5318           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5319 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5320           no_cache=0
5321           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5322 if test "${enable_catch_segvs+set}" = set; then
5323   enableval="$enable_catch_segvs"
5324
5325                           if test "$enableval" = yes; then
5326                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5327                           else
5328                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5329                           fi
5330
5331 else
5332
5333                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5334                           if test "x$LINE" != x ; then
5335                             eval "DEFAULT_$LINE"
5336                           else
5337                             no_cache=1
5338                           fi
5339
5340                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5341
5342 fi;
5343
5344           eval "$ac_cv_use_catch_segvs"
5345           if test "$no_cache" != 1; then
5346             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5347           fi
5348
5349           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5350             echo "$as_me:$LINENO: result: yes" >&5
5351 echo "${ECHO_T}yes" >&6
5352           else
5353             echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355           fi
5356
5357
5358           enablestring=
5359           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5360 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5361           no_cache=0
5362           # Check whether --enable-snglinst or --disable-snglinst was given.
5363 if test "${enable_snglinst+set}" = set; then
5364   enableval="$enable_snglinst"
5365
5366                           if test "$enableval" = yes; then
5367                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5368                           else
5369                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5370                           fi
5371
5372 else
5373
5374                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5375                           if test "x$LINE" != x ; then
5376                             eval "DEFAULT_$LINE"
5377                           else
5378                             no_cache=1
5379                           fi
5380
5381                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5382
5383 fi;
5384
5385           eval "$ac_cv_use_snglinst"
5386           if test "$no_cache" != 1; then
5387             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5388           fi
5389
5390           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5391             echo "$as_me:$LINENO: result: yes" >&5
5392 echo "${ECHO_T}yes" >&6
5393           else
5394             echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5396           fi
5397
5398
5399
5400           enablestring=
5401           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5402 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5403           no_cache=0
5404           # Check whether --enable-mimetype or --disable-mimetype was given.
5405 if test "${enable_mimetype+set}" = set; then
5406   enableval="$enable_mimetype"
5407
5408                           if test "$enableval" = yes; then
5409                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5410                           else
5411                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5412                           fi
5413
5414 else
5415
5416                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5417                           if test "x$LINE" != x ; then
5418                             eval "DEFAULT_$LINE"
5419                           else
5420                             no_cache=1
5421                           fi
5422
5423                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5424
5425 fi;
5426
5427           eval "$ac_cv_use_mimetype"
5428           if test "$no_cache" != 1; then
5429             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5430           fi
5431
5432           if test "$wxUSE_MIMETYPE" = yes; then
5433             echo "$as_me:$LINENO: result: yes" >&5
5434 echo "${ECHO_T}yes" >&6
5435           else
5436             echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6
5438           fi
5439
5440
5441           enablestring=
5442           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5443 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5444           no_cache=0
5445           # Check whether --enable-system_options or --disable-system_options was given.
5446 if test "${enable_system_options+set}" = set; then
5447   enableval="$enable_system_options"
5448
5449                           if test "$enableval" = yes; then
5450                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5451                           else
5452                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5453                           fi
5454
5455 else
5456
5457                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5458                           if test "x$LINE" != x ; then
5459                             eval "DEFAULT_$LINE"
5460                           else
5461                             no_cache=1
5462                           fi
5463
5464                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5465
5466 fi;
5467
5468           eval "$ac_cv_use_system_options"
5469           if test "$no_cache" != 1; then
5470             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5471           fi
5472
5473           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5474             echo "$as_me:$LINENO: result: yes" >&5
5475 echo "${ECHO_T}yes" >&6
5476           else
5477             echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5479           fi
5480
5481
5482
5483           enablestring=
5484           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5485 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5486           no_cache=0
5487           # Check whether --enable-url or --disable-url was given.
5488 if test "${enable_url+set}" = set; then
5489   enableval="$enable_url"
5490
5491                           if test "$enableval" = yes; then
5492                             ac_cv_use_url='wxUSE_URL=yes'
5493                           else
5494                             ac_cv_use_url='wxUSE_URL=no'
5495                           fi
5496
5497 else
5498
5499                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5500                           if test "x$LINE" != x ; then
5501                             eval "DEFAULT_$LINE"
5502                           else
5503                             no_cache=1
5504                           fi
5505
5506                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5507
5508 fi;
5509
5510           eval "$ac_cv_use_url"
5511           if test "$no_cache" != 1; then
5512             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5513           fi
5514
5515           if test "$wxUSE_URL" = yes; then
5516             echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6
5518           else
5519             echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5521           fi
5522
5523
5524           enablestring=
5525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5526 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5527           no_cache=0
5528           # Check whether --enable-protocol or --disable-protocol was given.
5529 if test "${enable_protocol+set}" = set; then
5530   enableval="$enable_protocol"
5531
5532                           if test "$enableval" = yes; then
5533                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5534                           else
5535                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5536                           fi
5537
5538 else
5539
5540                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5541                           if test "x$LINE" != x ; then
5542                             eval "DEFAULT_$LINE"
5543                           else
5544                             no_cache=1
5545                           fi
5546
5547                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5548
5549 fi;
5550
5551           eval "$ac_cv_use_protocol"
5552           if test "$no_cache" != 1; then
5553             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5554           fi
5555
5556           if test "$wxUSE_PROTOCOL" = yes; then
5557             echo "$as_me:$LINENO: result: yes" >&5
5558 echo "${ECHO_T}yes" >&6
5559           else
5560             echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5562           fi
5563
5564
5565           enablestring=
5566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5567 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5568           no_cache=0
5569           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5570 if test "${enable_protocol_http+set}" = set; then
5571   enableval="$enable_protocol_http"
5572
5573                           if test "$enableval" = yes; then
5574                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5575                           else
5576                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5577                           fi
5578
5579 else
5580
5581                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5582                           if test "x$LINE" != x ; then
5583                             eval "DEFAULT_$LINE"
5584                           else
5585                             no_cache=1
5586                           fi
5587
5588                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5589
5590 fi;
5591
5592           eval "$ac_cv_use_protocol_http"
5593           if test "$no_cache" != 1; then
5594             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5595           fi
5596
5597           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5598             echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6
5600           else
5601             echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5603           fi
5604
5605
5606           enablestring=
5607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5608 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5609           no_cache=0
5610           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5611 if test "${enable_protocol_ftp+set}" = set; then
5612   enableval="$enable_protocol_ftp"
5613
5614                           if test "$enableval" = yes; then
5615                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5616                           else
5617                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5618                           fi
5619
5620 else
5621
5622                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5623                           if test "x$LINE" != x ; then
5624                             eval "DEFAULT_$LINE"
5625                           else
5626                             no_cache=1
5627                           fi
5628
5629                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5630
5631 fi;
5632
5633           eval "$ac_cv_use_protocol_ftp"
5634           if test "$no_cache" != 1; then
5635             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5636           fi
5637
5638           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5639             echo "$as_me:$LINENO: result: yes" >&5
5640 echo "${ECHO_T}yes" >&6
5641           else
5642             echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644           fi
5645
5646
5647           enablestring=
5648           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5649 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5650           no_cache=0
5651           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5652 if test "${enable_protocol_file+set}" = set; then
5653   enableval="$enable_protocol_file"
5654
5655                           if test "$enableval" = yes; then
5656                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5657                           else
5658                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5659                           fi
5660
5661 else
5662
5663                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5664                           if test "x$LINE" != x ; then
5665                             eval "DEFAULT_$LINE"
5666                           else
5667                             no_cache=1
5668                           fi
5669
5670                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5671
5672 fi;
5673
5674           eval "$ac_cv_use_protocol_file"
5675           if test "$no_cache" != 1; then
5676             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5677           fi
5678
5679           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5680             echo "$as_me:$LINENO: result: yes" >&5
5681 echo "${ECHO_T}yes" >&6
5682           else
5683             echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5685           fi
5686
5687
5688
5689
5690
5691           enablestring=
5692           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5693 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5694           no_cache=0
5695           # Check whether --enable-threads or --disable-threads was given.
5696 if test "${enable_threads+set}" = set; then
5697   enableval="$enable_threads"
5698
5699                           if test "$enableval" = yes; then
5700                             ac_cv_use_threads='wxUSE_THREADS=yes'
5701                           else
5702                             ac_cv_use_threads='wxUSE_THREADS=no'
5703                           fi
5704
5705 else
5706
5707                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5708                           if test "x$LINE" != x ; then
5709                             eval "DEFAULT_$LINE"
5710                           else
5711                             no_cache=1
5712                           fi
5713
5714                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5715
5716 fi;
5717
5718           eval "$ac_cv_use_threads"
5719           if test "$no_cache" != 1; then
5720             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5721           fi
5722
5723           if test "$wxUSE_THREADS" = yes; then
5724             echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6
5726           else
5727             echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729           fi
5730
5731
5732 if test "$wxUSE_GUI" = "yes"; then
5733
5734
5735
5736           enablestring=
5737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5738 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5739           no_cache=0
5740           # Check whether --enable-docview or --disable-docview was given.
5741 if test "${enable_docview+set}" = set; then
5742   enableval="$enable_docview"
5743
5744                           if test "$enableval" = yes; then
5745                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5746                           else
5747                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5748                           fi
5749
5750 else
5751
5752                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5753                           if test "x$LINE" != x ; then
5754                             eval "DEFAULT_$LINE"
5755                           else
5756                             no_cache=1
5757                           fi
5758
5759                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5760
5761 fi;
5762
5763           eval "$ac_cv_use_docview"
5764           if test "$no_cache" != 1; then
5765             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5766           fi
5767
5768           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5769             echo "$as_me:$LINENO: result: yes" >&5
5770 echo "${ECHO_T}yes" >&6
5771           else
5772             echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774           fi
5775
5776
5777           enablestring=
5778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5779 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5780           no_cache=0
5781           # Check whether --enable-help or --disable-help was given.
5782 if test "${enable_help+set}" = set; then
5783   enableval="$enable_help"
5784
5785                           if test "$enableval" = yes; then
5786                             ac_cv_use_help='wxUSE_HELP=yes'
5787                           else
5788                             ac_cv_use_help='wxUSE_HELP=no'
5789                           fi
5790
5791 else
5792
5793                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5794                           if test "x$LINE" != x ; then
5795                             eval "DEFAULT_$LINE"
5796                           else
5797                             no_cache=1
5798                           fi
5799
5800                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5801
5802 fi;
5803
5804           eval "$ac_cv_use_help"
5805           if test "$no_cache" != 1; then
5806             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5807           fi
5808
5809           if test "$wxUSE_HELP" = yes; then
5810             echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6
5812           else
5813             echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5815           fi
5816
5817
5818           enablestring=
5819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5820 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5821           no_cache=0
5822           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5823 if test "${enable_mshtmlhelp+set}" = set; then
5824   enableval="$enable_mshtmlhelp"
5825
5826                           if test "$enableval" = yes; then
5827                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5828                           else
5829                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5830                           fi
5831
5832 else
5833
5834                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5835                           if test "x$LINE" != x ; then
5836                             eval "DEFAULT_$LINE"
5837                           else
5838                             no_cache=1
5839                           fi
5840
5841                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5842
5843 fi;
5844
5845           eval "$ac_cv_use_mshtmlhelp"
5846           if test "$no_cache" != 1; then
5847             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5848           fi
5849
5850           if test "$wxUSE_MS_HTML_HELP" = yes; then
5851             echo "$as_me:$LINENO: result: yes" >&5
5852 echo "${ECHO_T}yes" >&6
5853           else
5854             echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5856           fi
5857
5858
5859           enablestring=
5860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5861 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
5862           no_cache=0
5863           # Check whether --enable-html or --disable-html was given.
5864 if test "${enable_html+set}" = set; then
5865   enableval="$enable_html"
5866
5867                           if test "$enableval" = yes; then
5868                             ac_cv_use_html='wxUSE_HTML=yes'
5869                           else
5870                             ac_cv_use_html='wxUSE_HTML=no'
5871                           fi
5872
5873 else
5874
5875                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5876                           if test "x$LINE" != x ; then
5877                             eval "DEFAULT_$LINE"
5878                           else
5879                             no_cache=1
5880                           fi
5881
5882                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5883
5884 fi;
5885
5886           eval "$ac_cv_use_html"
5887           if test "$no_cache" != 1; then
5888             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5889           fi
5890
5891           if test "$wxUSE_HTML" = yes; then
5892             echo "$as_me:$LINENO: result: yes" >&5
5893 echo "${ECHO_T}yes" >&6
5894           else
5895             echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6
5897           fi
5898
5899
5900           enablestring=
5901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5902 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
5903           no_cache=0
5904           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5905 if test "${enable_htmlhelp+set}" = set; then
5906   enableval="$enable_htmlhelp"
5907
5908                           if test "$enableval" = yes; then
5909                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5910                           else
5911                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5912                           fi
5913
5914 else
5915
5916                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5917                           if test "x$LINE" != x ; then
5918                             eval "DEFAULT_$LINE"
5919                           else
5920                             no_cache=1
5921                           fi
5922
5923                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5924
5925 fi;
5926
5927           eval "$ac_cv_use_htmlhelp"
5928           if test "$no_cache" != 1; then
5929             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5930           fi
5931
5932           if test "$wxUSE_WXHTML_HELP" = yes; then
5933             echo "$as_me:$LINENO: result: yes" >&5
5934 echo "${ECHO_T}yes" >&6
5935           else
5936             echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5938           fi
5939
5940
5941           enablestring=
5942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5943 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
5944           no_cache=0
5945           # Check whether --enable-constraints or --disable-constraints was given.
5946 if test "${enable_constraints+set}" = set; then
5947   enableval="$enable_constraints"
5948
5949                           if test "$enableval" = yes; then
5950                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5951                           else
5952                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5953                           fi
5954
5955 else
5956
5957                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5958                           if test "x$LINE" != x ; then
5959                             eval "DEFAULT_$LINE"
5960                           else
5961                             no_cache=1
5962                           fi
5963
5964                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5965
5966 fi;
5967
5968           eval "$ac_cv_use_constraints"
5969           if test "$no_cache" != 1; then
5970             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5971           fi
5972
5973           if test "$wxUSE_CONSTRAINTS" = yes; then
5974             echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6
5976           else
5977             echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6
5979           fi
5980
5981
5982           enablestring=
5983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5984 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
5985           no_cache=0
5986           # Check whether --enable-printarch or --disable-printarch was given.
5987 if test "${enable_printarch+set}" = set; then
5988   enableval="$enable_printarch"
5989
5990                           if test "$enableval" = yes; then
5991                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5992                           else
5993                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5994                           fi
5995
5996 else
5997
5998                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5999                           if test "x$LINE" != x ; then
6000                             eval "DEFAULT_$LINE"
6001                           else
6002                             no_cache=1
6003                           fi
6004
6005                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6006
6007 fi;
6008
6009           eval "$ac_cv_use_printarch"
6010           if test "$no_cache" != 1; then
6011             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6012           fi
6013
6014           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6015             echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6
6017           else
6018             echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6
6020           fi
6021
6022
6023           enablestring=
6024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6025 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6026           no_cache=0
6027           # Check whether --enable-mdi or --disable-mdi was given.
6028 if test "${enable_mdi+set}" = set; then
6029   enableval="$enable_mdi"
6030
6031                           if test "$enableval" = yes; then
6032                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6033                           else
6034                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6035                           fi
6036
6037 else
6038
6039                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6040                           if test "x$LINE" != x ; then
6041                             eval "DEFAULT_$LINE"
6042                           else
6043                             no_cache=1
6044                           fi
6045
6046                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6047
6048 fi;
6049
6050           eval "$ac_cv_use_mdi"
6051           if test "$no_cache" != 1; then
6052             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6053           fi
6054
6055           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6056             echo "$as_me:$LINENO: result: yes" >&5
6057 echo "${ECHO_T}yes" >&6
6058           else
6059             echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6061           fi
6062
6063
6064           enablestring=
6065           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6066 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6067           no_cache=0
6068           # Check whether --enable-loggui or --disable-loggui was given.
6069 if test "${enable_loggui+set}" = set; then
6070   enableval="$enable_loggui"
6071
6072                           if test "$enableval" = yes; then
6073                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6074                           else
6075                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6076                           fi
6077
6078 else
6079
6080                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6081                           if test "x$LINE" != x ; then
6082                             eval "DEFAULT_$LINE"
6083                           else
6084                             no_cache=1
6085                           fi
6086
6087                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6088
6089 fi;
6090
6091           eval "$ac_cv_use_loggui"
6092           if test "$no_cache" != 1; then
6093             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6094           fi
6095
6096           if test "$wxUSE_LOGGUI" = yes; then
6097             echo "$as_me:$LINENO: result: yes" >&5
6098 echo "${ECHO_T}yes" >&6
6099           else
6100             echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6102           fi
6103
6104
6105           enablestring=
6106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6107 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6108           no_cache=0
6109           # Check whether --enable-logwin or --disable-logwin was given.
6110 if test "${enable_logwin+set}" = set; then
6111   enableval="$enable_logwin"
6112
6113                           if test "$enableval" = yes; then
6114                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6115                           else
6116                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6117                           fi
6118
6119 else
6120
6121                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6122                           if test "x$LINE" != x ; then
6123                             eval "DEFAULT_$LINE"
6124                           else
6125                             no_cache=1
6126                           fi
6127
6128                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6129
6130 fi;
6131
6132           eval "$ac_cv_use_logwin"
6133           if test "$no_cache" != 1; then
6134             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6135           fi
6136
6137           if test "$wxUSE_LOGWINDOW" = yes; then
6138             echo "$as_me:$LINENO: result: yes" >&5
6139 echo "${ECHO_T}yes" >&6
6140           else
6141             echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6
6143           fi
6144
6145
6146           enablestring=
6147           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6148 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6149           no_cache=0
6150           # Check whether --enable-logdialog or --disable-logdialog was given.
6151 if test "${enable_logdialog+set}" = set; then
6152   enableval="$enable_logdialog"
6153
6154                           if test "$enableval" = yes; then
6155                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6156                           else
6157                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6158                           fi
6159
6160 else
6161
6162                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6163                           if test "x$LINE" != x ; then
6164                             eval "DEFAULT_$LINE"
6165                           else
6166                             no_cache=1
6167                           fi
6168
6169                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6170
6171 fi;
6172
6173           eval "$ac_cv_use_logdialog"
6174           if test "$no_cache" != 1; then
6175             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6176           fi
6177
6178           if test "$wxUSE_LOGDIALOG" = yes; then
6179             echo "$as_me:$LINENO: result: yes" >&5
6180 echo "${ECHO_T}yes" >&6
6181           else
6182             echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6184           fi
6185
6186
6187
6188           enablestring=
6189           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6190 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6191           no_cache=0
6192           # Check whether --enable-postscript or --disable-postscript was given.
6193 if test "${enable_postscript+set}" = set; then
6194   enableval="$enable_postscript"
6195
6196                           if test "$enableval" = yes; then
6197                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6198                           else
6199                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6200                           fi
6201
6202 else
6203
6204                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6205                           if test "x$LINE" != x ; then
6206                             eval "DEFAULT_$LINE"
6207                           else
6208                             no_cache=1
6209                           fi
6210
6211                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6212
6213 fi;
6214
6215           eval "$ac_cv_use_postscript"
6216           if test "$no_cache" != 1; then
6217             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6218           fi
6219
6220           if test "$wxUSE_POSTSCRIPT" = yes; then
6221             echo "$as_me:$LINENO: result: yes" >&5
6222 echo "${ECHO_T}yes" >&6
6223           else
6224             echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6226           fi
6227
6228
6229
6230
6231
6232           enablestring=
6233           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6234 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6235           no_cache=0
6236           # Check whether --enable-prologio or --disable-prologio was given.
6237 if test "${enable_prologio+set}" = set; then
6238   enableval="$enable_prologio"
6239
6240                           if test "$enableval" = yes; then
6241                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6242                           else
6243                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6244                           fi
6245
6246 else
6247
6248                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6249                           if test "x$LINE" != x ; then
6250                             eval "DEFAULT_$LINE"
6251                           else
6252                             no_cache=1
6253                           fi
6254
6255                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6256
6257 fi;
6258
6259           eval "$ac_cv_use_prologio"
6260           if test "$no_cache" != 1; then
6261             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6262           fi
6263
6264           if test "$wxUSE_PROLOGIO" = yes; then
6265             echo "$as_me:$LINENO: result: yes" >&5
6266 echo "${ECHO_T}yes" >&6
6267           else
6268             echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6
6270           fi
6271
6272
6273           enablestring=
6274           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6275 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6276           no_cache=0
6277           # Check whether --enable-resources or --disable-resources was given.
6278 if test "${enable_resources+set}" = set; then
6279   enableval="$enable_resources"
6280
6281                           if test "$enableval" = yes; then
6282                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6283                           else
6284                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6285                           fi
6286
6287 else
6288
6289                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6290                           if test "x$LINE" != x ; then
6291                             eval "DEFAULT_$LINE"
6292                           else
6293                             no_cache=1
6294                           fi
6295
6296                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6297
6298 fi;
6299
6300           eval "$ac_cv_use_resources"
6301           if test "$no_cache" != 1; then
6302             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6303           fi
6304
6305           if test "$wxUSE_RESOURCES" = yes; then
6306             echo "$as_me:$LINENO: result: yes" >&5
6307 echo "${ECHO_T}yes" >&6
6308           else
6309             echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6
6311           fi
6312
6313
6314
6315
6316           enablestring=
6317           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6318 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6319           no_cache=0
6320           # Check whether --enable-clipboard or --disable-clipboard was given.
6321 if test "${enable_clipboard+set}" = set; then
6322   enableval="$enable_clipboard"
6323
6324                           if test "$enableval" = yes; then
6325                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6326                           else
6327                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6328                           fi
6329
6330 else
6331
6332                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6333                           if test "x$LINE" != x ; then
6334                             eval "DEFAULT_$LINE"
6335                           else
6336                             no_cache=1
6337                           fi
6338
6339                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6340
6341 fi;
6342
6343           eval "$ac_cv_use_clipboard"
6344           if test "$no_cache" != 1; then
6345             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6346           fi
6347
6348           if test "$wxUSE_CLIPBOARD" = yes; then
6349             echo "$as_me:$LINENO: result: yes" >&5
6350 echo "${ECHO_T}yes" >&6
6351           else
6352             echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6354           fi
6355
6356
6357           enablestring=
6358           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6359 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6360           no_cache=0
6361           # Check whether --enable-dnd or --disable-dnd was given.
6362 if test "${enable_dnd+set}" = set; then
6363   enableval="$enable_dnd"
6364
6365                           if test "$enableval" = yes; then
6366                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6367                           else
6368                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6369                           fi
6370
6371 else
6372
6373                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6374                           if test "x$LINE" != x ; then
6375                             eval "DEFAULT_$LINE"
6376                           else
6377                             no_cache=1
6378                           fi
6379
6380                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6381
6382 fi;
6383
6384           eval "$ac_cv_use_dnd"
6385           if test "$no_cache" != 1; then
6386             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6387           fi
6388
6389           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6390             echo "$as_me:$LINENO: result: yes" >&5
6391 echo "${ECHO_T}yes" >&6
6392           else
6393             echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6
6395           fi
6396
6397
6398           enablestring=
6399           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6400 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6401           no_cache=0
6402           # Check whether --enable-metafile or --disable-metafile was given.
6403 if test "${enable_metafile+set}" = set; then
6404   enableval="$enable_metafile"
6405
6406                           if test "$enableval" = yes; then
6407                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6408                           else
6409                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6410                           fi
6411
6412 else
6413
6414                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6415                           if test "x$LINE" != x ; then
6416                             eval "DEFAULT_$LINE"
6417                           else
6418                             no_cache=1
6419                           fi
6420
6421                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6422
6423 fi;
6424
6425           eval "$ac_cv_use_metafile"
6426           if test "$no_cache" != 1; then
6427             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6428           fi
6429
6430           if test "$wxUSE_METAFILE" = yes; then
6431             echo "$as_me:$LINENO: result: yes" >&5
6432 echo "${ECHO_T}yes" >&6
6433           else
6434             echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6
6436           fi
6437
6438
6439
6440
6441
6442           enablestring=
6443           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6444 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6445           no_cache=0
6446           # Check whether --enable-controls or --disable-controls was given.
6447 if test "${enable_controls+set}" = set; then
6448   enableval="$enable_controls"
6449
6450                           if test "$enableval" = yes; then
6451                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6452                           else
6453                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6454                           fi
6455
6456 else
6457
6458                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6459                           if test "x$LINE" != x ; then
6460                             eval "DEFAULT_$LINE"
6461                           else
6462                             no_cache=1
6463                           fi
6464
6465                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6466
6467 fi;
6468
6469           eval "$ac_cv_use_controls"
6470           if test "$no_cache" != 1; then
6471             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6472           fi
6473
6474           if test "$wxUSE_CONTROLS" = yes; then
6475             echo "$as_me:$LINENO: result: yes" >&5
6476 echo "${ECHO_T}yes" >&6
6477           else
6478             echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6
6480           fi
6481
6482
6483 if test "$wxUSE_CONTROLS" = "yes"; then
6484   DEFAULT_wxUSE_ACCEL=yes
6485   DEFAULT_wxUSE_BMPBUTTON=yes
6486   DEFAULT_wxUSE_BUTTON=yes
6487   DEFAULT_wxUSE_CALCTRL=no
6488   DEFAULT_wxUSE_CARET=yes
6489   DEFAULT_wxUSE_COMBOBOX=yes
6490   DEFAULT_wxUSE_CHECKBOX=yes
6491   DEFAULT_wxUSE_CHECKLISTBOX=yes
6492   DEFAULT_wxUSE_CHOICE=yes
6493   DEFAULT_wxUSE_GAUGE=yes
6494   DEFAULT_wxUSE_GRID=yes
6495   DEFAULT_wxUSE_IMAGLIST=yes
6496   DEFAULT_wxUSE_LISTBOX=yes
6497   DEFAULT_wxUSE_LISTCTRL=yes
6498   DEFAULT_wxUSE_NOTEBOOK=yes
6499   DEFAULT_wxUSE_RADIOBOX=yes
6500   DEFAULT_wxUSE_RADIOBTN=yes
6501   DEFAULT_wxUSE_SASH=yes
6502   DEFAULT_wxUSE_SCROLLBAR=yes
6503   DEFAULT_wxUSE_SLIDER=yes
6504   DEFAULT_wxUSE_SPINBTN=yes
6505   DEFAULT_wxUSE_SPINCTRL=yes
6506   DEFAULT_wxUSE_SPLITTER=yes
6507   DEFAULT_wxUSE_STATBMP=yes
6508   DEFAULT_wxUSE_STATBOX=yes
6509   DEFAULT_wxUSE_STATLINE=yes
6510   DEFAULT_wxUSE_STATUSBAR=yes
6511   DEFAULT_wxUSE_TAB_DIALOG=yes
6512   DEFAULT_wxUSE_TOGGLEBTN=yes
6513   DEFAULT_wxUSE_TOOLBAR=yes
6514   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6515   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6516   DEFAULT_wxUSE_TOOLTIPS=yes
6517   DEFAULT_wxUSE_TREECTRL=yes
6518   DEFAULT_wxUSE_POPUPWIN=yes
6519   DEFAULT_wxUSE_TIPWINDOW=yes
6520 elif test "$wxUSE_CONTROLS" = "no"; then
6521   DEFAULT_wxUSE_ACCEL=no
6522   DEFAULT_wxUSE_BMPBUTTON=no
6523   DEFAULT_wxUSE_BUTTON=no
6524   DEFAULT_wxUSE_CALCTRL=no
6525   DEFAULT_wxUSE_CARET=no
6526   DEFAULT_wxUSE_COMBOBOX=no
6527   DEFAULT_wxUSE_CHECKBOX=no
6528   DEFAULT_wxUSE_CHECKLISTBOX=no
6529   DEFAULT_wxUSE_CHOICE=no
6530   DEFAULT_wxUSE_GAUGE=no
6531   DEFAULT_wxUSE_GRID=no
6532   DEFAULT_wxUSE_IMAGLIST=no
6533   DEFAULT_wxUSE_LISTBOX=no
6534   DEFAULT_wxUSE_LISTCTRL=no
6535   DEFAULT_wxUSE_NOTEBOOK=no
6536   DEFAULT_wxUSE_RADIOBOX=no
6537   DEFAULT_wxUSE_RADIOBTN=no
6538   DEFAULT_wxUSE_SASH=no
6539   DEFAULT_wxUSE_SCROLLBAR=no
6540   DEFAULT_wxUSE_SLIDER=no
6541   DEFAULT_wxUSE_SPINBTN=no
6542   DEFAULT_wxUSE_SPINCTRL=no
6543   DEFAULT_wxUSE_SPLITTER=no
6544   DEFAULT_wxUSE_STATBMP=no
6545   DEFAULT_wxUSE_STATBOX=no
6546   DEFAULT_wxUSE_STATLINE=no
6547   DEFAULT_wxUSE_STATUSBAR=no
6548   DEFAULT_wxUSE_TAB_DIALOG=no
6549   DEFAULT_wxUSE_TOGGLEBTN=no
6550   DEFAULT_wxUSE_TOOLBAR=no
6551   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6552   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6553   DEFAULT_wxUSE_TOOLTIPS=no
6554   DEFAULT_wxUSE_TREECTRL=no
6555   DEFAULT_wxUSE_POPUPWIN=no
6556   DEFAULT_wxUSE_TIPWINDOW=no
6557 fi
6558
6559 ## FIXME: This is a blatant hack
6560 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6561   wxUSE_PRINTING_ARCHITECTURE=no
6562   wxUSE_CLIPBOARD=no
6563   wxUSE_DRAG_AND_DROP=no
6564   wxUSE_DATAOBJ=no
6565   # Generic notebook requires tab dialog
6566   DEFAULT_wxUSE_TABDIALOG=yes
6567   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6568   DEFAULT_wxUSE_SCROLLBAR=no
6569   DEFAULT_wxUSE_TOOLTIPS=no
6570   DEFAULT_wxUSE_DRAGIMAGE=no
6571 fi
6572
6573
6574           enablestring=
6575           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6576 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6577           no_cache=0
6578           # Check whether --enable-accel or --disable-accel was given.
6579 if test "${enable_accel+set}" = set; then
6580   enableval="$enable_accel"
6581
6582                           if test "$enableval" = yes; then
6583                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6584                           else
6585                             ac_cv_use_accel='wxUSE_ACCEL=no'
6586                           fi
6587
6588 else
6589
6590                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6591                           if test "x$LINE" != x ; then
6592                             eval "DEFAULT_$LINE"
6593                           else
6594                             no_cache=1
6595                           fi
6596
6597                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6598
6599 fi;
6600
6601           eval "$ac_cv_use_accel"
6602           if test "$no_cache" != 1; then
6603             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6604           fi
6605
6606           if test "$wxUSE_ACCEL" = yes; then
6607             echo "$as_me:$LINENO: result: yes" >&5
6608 echo "${ECHO_T}yes" >&6
6609           else
6610             echo "$as_me:$LINENO: result: no" >&5
6611 echo "${ECHO_T}no" >&6
6612           fi
6613
6614
6615           enablestring=
6616           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6617 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6618           no_cache=0
6619           # Check whether --enable-button or --disable-button was given.
6620 if test "${enable_button+set}" = set; then
6621   enableval="$enable_button"
6622
6623                           if test "$enableval" = yes; then
6624                             ac_cv_use_button='wxUSE_BUTTON=yes'
6625                           else
6626                             ac_cv_use_button='wxUSE_BUTTON=no'
6627                           fi
6628
6629 else
6630
6631                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6632                           if test "x$LINE" != x ; then
6633                             eval "DEFAULT_$LINE"
6634                           else
6635                             no_cache=1
6636                           fi
6637
6638                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6639
6640 fi;
6641
6642           eval "$ac_cv_use_button"
6643           if test "$no_cache" != 1; then
6644             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6645           fi
6646
6647           if test "$wxUSE_BUTTON" = yes; then
6648             echo "$as_me:$LINENO: result: yes" >&5
6649 echo "${ECHO_T}yes" >&6
6650           else
6651             echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6653           fi
6654
6655
6656           enablestring=
6657           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6658 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6659           no_cache=0
6660           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6661 if test "${enable_bmpbutton+set}" = set; then
6662   enableval="$enable_bmpbutton"
6663
6664                           if test "$enableval" = yes; then
6665                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6666                           else
6667                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6668                           fi
6669
6670 else
6671
6672                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6673                           if test "x$LINE" != x ; then
6674                             eval "DEFAULT_$LINE"
6675                           else
6676                             no_cache=1
6677                           fi
6678
6679                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6680
6681 fi;
6682
6683           eval "$ac_cv_use_bmpbutton"
6684           if test "$no_cache" != 1; then
6685             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6686           fi
6687
6688           if test "$wxUSE_BMPBUTTON" = yes; then
6689             echo "$as_me:$LINENO: result: yes" >&5
6690 echo "${ECHO_T}yes" >&6
6691           else
6692             echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6
6694           fi
6695
6696
6697           enablestring=
6698           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6699 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6700           no_cache=0
6701           # Check whether --enable-calendar or --disable-calendar was given.
6702 if test "${enable_calendar+set}" = set; then
6703   enableval="$enable_calendar"
6704
6705                           if test "$enableval" = yes; then
6706                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6707                           else
6708                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6709                           fi
6710
6711 else
6712
6713                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6714                           if test "x$LINE" != x ; then
6715                             eval "DEFAULT_$LINE"
6716                           else
6717                             no_cache=1
6718                           fi
6719
6720                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6721
6722 fi;
6723
6724           eval "$ac_cv_use_calendar"
6725           if test "$no_cache" != 1; then
6726             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6727           fi
6728
6729           if test "$wxUSE_CALCTRL" = yes; then
6730             echo "$as_me:$LINENO: result: yes" >&5
6731 echo "${ECHO_T}yes" >&6
6732           else
6733             echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6
6735           fi
6736
6737
6738           enablestring=
6739           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6740 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6741           no_cache=0
6742           # Check whether --enable-caret or --disable-caret was given.
6743 if test "${enable_caret+set}" = set; then
6744   enableval="$enable_caret"
6745
6746                           if test "$enableval" = yes; then
6747                             ac_cv_use_caret='wxUSE_CARET=yes'
6748                           else
6749                             ac_cv_use_caret='wxUSE_CARET=no'
6750                           fi
6751
6752 else
6753
6754                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6755                           if test "x$LINE" != x ; then
6756                             eval "DEFAULT_$LINE"
6757                           else
6758                             no_cache=1
6759                           fi
6760
6761                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6762
6763 fi;
6764
6765           eval "$ac_cv_use_caret"
6766           if test "$no_cache" != 1; then
6767             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6768           fi
6769
6770           if test "$wxUSE_CARET" = yes; then
6771             echo "$as_me:$LINENO: result: yes" >&5
6772 echo "${ECHO_T}yes" >&6
6773           else
6774             echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6
6776           fi
6777
6778
6779           enablestring=
6780           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6781 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6782           no_cache=0
6783           # Check whether --enable-checkbox or --disable-checkbox was given.
6784 if test "${enable_checkbox+set}" = set; then
6785   enableval="$enable_checkbox"
6786
6787                           if test "$enableval" = yes; then
6788                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6789                           else
6790                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6791                           fi
6792
6793 else
6794
6795                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6796                           if test "x$LINE" != x ; then
6797                             eval "DEFAULT_$LINE"
6798                           else
6799                             no_cache=1
6800                           fi
6801
6802                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6803
6804 fi;
6805
6806           eval "$ac_cv_use_checkbox"
6807           if test "$no_cache" != 1; then
6808             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6809           fi
6810
6811           if test "$wxUSE_CHECKBOX" = yes; then
6812             echo "$as_me:$LINENO: result: yes" >&5
6813 echo "${ECHO_T}yes" >&6
6814           else
6815             echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6
6817           fi
6818
6819
6820           enablestring=
6821           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6822 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6823           no_cache=0
6824           # Check whether --enable-checklst or --disable-checklst was given.
6825 if test "${enable_checklst+set}" = set; then
6826   enableval="$enable_checklst"
6827
6828                           if test "$enableval" = yes; then
6829                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6830                           else
6831                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6832                           fi
6833
6834 else
6835
6836                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6837                           if test "x$LINE" != x ; then
6838                             eval "DEFAULT_$LINE"
6839                           else
6840                             no_cache=1
6841                           fi
6842
6843                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6844
6845 fi;
6846
6847           eval "$ac_cv_use_checklst"
6848           if test "$no_cache" != 1; then
6849             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6850           fi
6851
6852           if test "$wxUSE_CHECKLST" = yes; then
6853             echo "$as_me:$LINENO: result: yes" >&5
6854 echo "${ECHO_T}yes" >&6
6855           else
6856             echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6
6858           fi
6859
6860
6861           enablestring=
6862           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6863 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
6864           no_cache=0
6865           # Check whether --enable-choice or --disable-choice was given.
6866 if test "${enable_choice+set}" = set; then
6867   enableval="$enable_choice"
6868
6869                           if test "$enableval" = yes; then
6870                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6871                           else
6872                             ac_cv_use_choice='wxUSE_CHOICE=no'
6873                           fi
6874
6875 else
6876
6877                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6878                           if test "x$LINE" != x ; then
6879                             eval "DEFAULT_$LINE"
6880                           else
6881                             no_cache=1
6882                           fi
6883
6884                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6885
6886 fi;
6887
6888           eval "$ac_cv_use_choice"
6889           if test "$no_cache" != 1; then
6890             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6891           fi
6892
6893           if test "$wxUSE_CHOICE" = yes; then
6894             echo "$as_me:$LINENO: result: yes" >&5
6895 echo "${ECHO_T}yes" >&6
6896           else
6897             echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899           fi
6900
6901
6902           enablestring=
6903           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6904 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
6905           no_cache=0
6906           # Check whether --enable-combobox or --disable-combobox was given.
6907 if test "${enable_combobox+set}" = set; then
6908   enableval="$enable_combobox"
6909
6910                           if test "$enableval" = yes; then
6911                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6912                           else
6913                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6914                           fi
6915
6916 else
6917
6918                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6919                           if test "x$LINE" != x ; then
6920                             eval "DEFAULT_$LINE"
6921                           else
6922                             no_cache=1
6923                           fi
6924
6925                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6926
6927 fi;
6928
6929           eval "$ac_cv_use_combobox"
6930           if test "$no_cache" != 1; then
6931             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6932           fi
6933
6934           if test "$wxUSE_COMBOBOX" = yes; then
6935             echo "$as_me:$LINENO: result: yes" >&5
6936 echo "${ECHO_T}yes" >&6
6937           else
6938             echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6
6940           fi
6941
6942
6943           enablestring=
6944           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6945 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
6946           no_cache=0
6947           # Check whether --enable-display or --disable-display was given.
6948 if test "${enable_display+set}" = set; then
6949   enableval="$enable_display"
6950
6951                           if test "$enableval" = yes; then
6952                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6953                           else
6954                             ac_cv_use_display='wxUSE_DISPLAY=no'
6955                           fi
6956
6957 else
6958
6959                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6960                           if test "x$LINE" != x ; then
6961                             eval "DEFAULT_$LINE"
6962                           else
6963                             no_cache=1
6964                           fi
6965
6966                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6967
6968 fi;
6969
6970           eval "$ac_cv_use_display"
6971           if test "$no_cache" != 1; then
6972             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6973           fi
6974
6975           if test "$wxUSE_DISPLAY" = yes; then
6976             echo "$as_me:$LINENO: result: yes" >&5
6977 echo "${ECHO_T}yes" >&6
6978           else
6979             echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981           fi
6982
6983
6984           enablestring=
6985           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6986 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
6987           no_cache=0
6988           # Check whether --enable-gauge or --disable-gauge was given.
6989 if test "${enable_gauge+set}" = set; then
6990   enableval="$enable_gauge"
6991
6992                           if test "$enableval" = yes; then
6993                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6994                           else
6995                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6996                           fi
6997
6998 else
6999
7000                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7001                           if test "x$LINE" != x ; then
7002                             eval "DEFAULT_$LINE"
7003                           else
7004                             no_cache=1
7005                           fi
7006
7007                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7008
7009 fi;
7010
7011           eval "$ac_cv_use_gauge"
7012           if test "$no_cache" != 1; then
7013             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7014           fi
7015
7016           if test "$wxUSE_GAUGE" = yes; then
7017             echo "$as_me:$LINENO: result: yes" >&5
7018 echo "${ECHO_T}yes" >&6
7019           else
7020             echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6
7022           fi
7023
7024
7025           enablestring=
7026           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7027 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7028           no_cache=0
7029           # Check whether --enable-grid or --disable-grid was given.
7030 if test "${enable_grid+set}" = set; then
7031   enableval="$enable_grid"
7032
7033                           if test "$enableval" = yes; then
7034                             ac_cv_use_grid='wxUSE_GRID=yes'
7035                           else
7036                             ac_cv_use_grid='wxUSE_GRID=no'
7037                           fi
7038
7039 else
7040
7041                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7042                           if test "x$LINE" != x ; then
7043                             eval "DEFAULT_$LINE"
7044                           else
7045                             no_cache=1
7046                           fi
7047
7048                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7049
7050 fi;
7051
7052           eval "$ac_cv_use_grid"
7053           if test "$no_cache" != 1; then
7054             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7055           fi
7056
7057           if test "$wxUSE_GRID" = yes; then
7058             echo "$as_me:$LINENO: result: yes" >&5
7059 echo "${ECHO_T}yes" >&6
7060           else
7061             echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6
7063           fi
7064
7065
7066           enablestring=
7067           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7068 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7069           no_cache=0
7070           # Check whether --enable-imaglist or --disable-imaglist was given.
7071 if test "${enable_imaglist+set}" = set; then
7072   enableval="$enable_imaglist"
7073
7074                           if test "$enableval" = yes; then
7075                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7076                           else
7077                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7078                           fi
7079
7080 else
7081
7082                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7083                           if test "x$LINE" != x ; then
7084                             eval "DEFAULT_$LINE"
7085                           else
7086                             no_cache=1
7087                           fi
7088
7089                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7090
7091 fi;
7092
7093           eval "$ac_cv_use_imaglist"
7094           if test "$no_cache" != 1; then
7095             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7096           fi
7097
7098           if test "$wxUSE_IMAGLIST" = yes; then
7099             echo "$as_me:$LINENO: result: yes" >&5
7100 echo "${ECHO_T}yes" >&6
7101           else
7102             echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6
7104           fi
7105
7106
7107           enablestring=
7108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7109 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7110           no_cache=0
7111           # Check whether --enable-listbox or --disable-listbox was given.
7112 if test "${enable_listbox+set}" = set; then
7113   enableval="$enable_listbox"
7114
7115                           if test "$enableval" = yes; then
7116                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7117                           else
7118                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7119                           fi
7120
7121 else
7122
7123                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7124                           if test "x$LINE" != x ; then
7125                             eval "DEFAULT_$LINE"
7126                           else
7127                             no_cache=1
7128                           fi
7129
7130                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7131
7132 fi;
7133
7134           eval "$ac_cv_use_listbox"
7135           if test "$no_cache" != 1; then
7136             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7137           fi
7138
7139           if test "$wxUSE_LISTBOX" = yes; then
7140             echo "$as_me:$LINENO: result: yes" >&5
7141 echo "${ECHO_T}yes" >&6
7142           else
7143             echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6
7145           fi
7146
7147
7148           enablestring=
7149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7150 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7151           no_cache=0
7152           # Check whether --enable-listctrl or --disable-listctrl was given.
7153 if test "${enable_listctrl+set}" = set; then
7154   enableval="$enable_listctrl"
7155
7156                           if test "$enableval" = yes; then
7157                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7158                           else
7159                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7160                           fi
7161
7162 else
7163
7164                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7165                           if test "x$LINE" != x ; then
7166                             eval "DEFAULT_$LINE"
7167                           else
7168                             no_cache=1
7169                           fi
7170
7171                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7172
7173 fi;
7174
7175           eval "$ac_cv_use_listctrl"
7176           if test "$no_cache" != 1; then
7177             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7178           fi
7179
7180           if test "$wxUSE_LISTCTRL" = yes; then
7181             echo "$as_me:$LINENO: result: yes" >&5
7182 echo "${ECHO_T}yes" >&6
7183           else
7184             echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186           fi
7187
7188
7189           enablestring=
7190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7191 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7192           no_cache=0
7193           # Check whether --enable-notebook or --disable-notebook was given.
7194 if test "${enable_notebook+set}" = set; then
7195   enableval="$enable_notebook"
7196
7197                           if test "$enableval" = yes; then
7198                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7199                           else
7200                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7201                           fi
7202
7203 else
7204
7205                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7206                           if test "x$LINE" != x ; then
7207                             eval "DEFAULT_$LINE"
7208                           else
7209                             no_cache=1
7210                           fi
7211
7212                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7213
7214 fi;
7215
7216           eval "$ac_cv_use_notebook"
7217           if test "$no_cache" != 1; then
7218             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7219           fi
7220
7221           if test "$wxUSE_NOTEBOOK" = yes; then
7222             echo "$as_me:$LINENO: result: yes" >&5
7223 echo "${ECHO_T}yes" >&6
7224           else
7225             echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6
7227           fi
7228
7229
7230           enablestring=
7231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7232 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7233           no_cache=0
7234           # Check whether --enable-radiobox or --disable-radiobox was given.
7235 if test "${enable_radiobox+set}" = set; then
7236   enableval="$enable_radiobox"
7237
7238                           if test "$enableval" = yes; then
7239                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7240                           else
7241                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7242                           fi
7243
7244 else
7245
7246                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7247                           if test "x$LINE" != x ; then
7248                             eval "DEFAULT_$LINE"
7249                           else
7250                             no_cache=1
7251                           fi
7252
7253                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7254
7255 fi;
7256
7257           eval "$ac_cv_use_radiobox"
7258           if test "$no_cache" != 1; then
7259             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7260           fi
7261
7262           if test "$wxUSE_RADIOBOX" = yes; then
7263             echo "$as_me:$LINENO: result: yes" >&5
7264 echo "${ECHO_T}yes" >&6
7265           else
7266             echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6
7268           fi
7269
7270
7271           enablestring=
7272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7273 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7274           no_cache=0
7275           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7276 if test "${enable_radiobtn+set}" = set; then
7277   enableval="$enable_radiobtn"
7278
7279                           if test "$enableval" = yes; then
7280                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7281                           else
7282                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7283                           fi
7284
7285 else
7286
7287                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7288                           if test "x$LINE" != x ; then
7289                             eval "DEFAULT_$LINE"
7290                           else
7291                             no_cache=1
7292                           fi
7293
7294                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7295
7296 fi;
7297
7298           eval "$ac_cv_use_radiobtn"
7299           if test "$no_cache" != 1; then
7300             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7301           fi
7302
7303           if test "$wxUSE_RADIOBTN" = yes; then
7304             echo "$as_me:$LINENO: result: yes" >&5
7305 echo "${ECHO_T}yes" >&6
7306           else
7307             echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6
7309           fi
7310
7311
7312           enablestring=
7313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7314 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7315           no_cache=0
7316           # Check whether --enable-sash or --disable-sash was given.
7317 if test "${enable_sash+set}" = set; then
7318   enableval="$enable_sash"
7319
7320                           if test "$enableval" = yes; then
7321                             ac_cv_use_sash='wxUSE_SASH=yes'
7322                           else
7323                             ac_cv_use_sash='wxUSE_SASH=no'
7324                           fi
7325
7326 else
7327
7328                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7329                           if test "x$LINE" != x ; then
7330                             eval "DEFAULT_$LINE"
7331                           else
7332                             no_cache=1
7333                           fi
7334
7335                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7336
7337 fi;
7338
7339           eval "$ac_cv_use_sash"
7340           if test "$no_cache" != 1; then
7341             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7342           fi
7343
7344           if test "$wxUSE_SASH" = yes; then
7345             echo "$as_me:$LINENO: result: yes" >&5
7346 echo "${ECHO_T}yes" >&6
7347           else
7348             echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350           fi
7351
7352
7353           enablestring=
7354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7355 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7356           no_cache=0
7357           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7358 if test "${enable_scrollbar+set}" = set; then
7359   enableval="$enable_scrollbar"
7360
7361                           if test "$enableval" = yes; then
7362                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7363                           else
7364                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7365                           fi
7366
7367 else
7368
7369                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7370                           if test "x$LINE" != x ; then
7371                             eval "DEFAULT_$LINE"
7372                           else
7373                             no_cache=1
7374                           fi
7375
7376                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7377
7378 fi;
7379
7380           eval "$ac_cv_use_scrollbar"
7381           if test "$no_cache" != 1; then
7382             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7383           fi
7384
7385           if test "$wxUSE_SCROLLBAR" = yes; then
7386             echo "$as_me:$LINENO: result: yes" >&5
7387 echo "${ECHO_T}yes" >&6
7388           else
7389             echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6
7391           fi
7392
7393
7394           enablestring=
7395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7396 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7397           no_cache=0
7398           # Check whether --enable-slider or --disable-slider was given.
7399 if test "${enable_slider+set}" = set; then
7400   enableval="$enable_slider"
7401
7402                           if test "$enableval" = yes; then
7403                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7404                           else
7405                             ac_cv_use_slider='wxUSE_SLIDER=no'
7406                           fi
7407
7408 else
7409
7410                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7411                           if test "x$LINE" != x ; then
7412                             eval "DEFAULT_$LINE"
7413                           else
7414                             no_cache=1
7415                           fi
7416
7417                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7418
7419 fi;
7420
7421           eval "$ac_cv_use_slider"
7422           if test "$no_cache" != 1; then
7423             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7424           fi
7425
7426           if test "$wxUSE_SLIDER" = yes; then
7427             echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7429           else
7430             echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7432           fi
7433
7434
7435           enablestring=
7436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7437 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7438           no_cache=0
7439           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7440 if test "${enable_spinbtn+set}" = set; then
7441   enableval="$enable_spinbtn"
7442
7443                           if test "$enableval" = yes; then
7444                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7445                           else
7446                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7447                           fi
7448
7449 else
7450
7451                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7452                           if test "x$LINE" != x ; then
7453                             eval "DEFAULT_$LINE"
7454                           else
7455                             no_cache=1
7456                           fi
7457
7458                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7459
7460 fi;
7461
7462           eval "$ac_cv_use_spinbtn"
7463           if test "$no_cache" != 1; then
7464             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7465           fi
7466
7467           if test "$wxUSE_SPINBTN" = yes; then
7468             echo "$as_me:$LINENO: result: yes" >&5
7469 echo "${ECHO_T}yes" >&6
7470           else
7471             echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6
7473           fi
7474
7475
7476           enablestring=
7477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7478 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7479           no_cache=0
7480           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7481 if test "${enable_spinctrl+set}" = set; then
7482   enableval="$enable_spinctrl"
7483
7484                           if test "$enableval" = yes; then
7485                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7486                           else
7487                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7488                           fi
7489
7490 else
7491
7492                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7493                           if test "x$LINE" != x ; then
7494                             eval "DEFAULT_$LINE"
7495                           else
7496                             no_cache=1
7497                           fi
7498
7499                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7500
7501 fi;
7502
7503           eval "$ac_cv_use_spinctrl"
7504           if test "$no_cache" != 1; then
7505             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7506           fi
7507
7508           if test "$wxUSE_SPINCTRL" = yes; then
7509             echo "$as_me:$LINENO: result: yes" >&5
7510 echo "${ECHO_T}yes" >&6
7511           else
7512             echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7514           fi
7515
7516
7517           enablestring=
7518           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7519 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7520           no_cache=0
7521           # Check whether --enable-splitter or --disable-splitter was given.
7522 if test "${enable_splitter+set}" = set; then
7523   enableval="$enable_splitter"
7524
7525                           if test "$enableval" = yes; then
7526                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7527                           else
7528                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7529                           fi
7530
7531 else
7532
7533                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7534                           if test "x$LINE" != x ; then
7535                             eval "DEFAULT_$LINE"
7536                           else
7537                             no_cache=1
7538                           fi
7539
7540                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7541
7542 fi;
7543
7544           eval "$ac_cv_use_splitter"
7545           if test "$no_cache" != 1; then
7546             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7547           fi
7548
7549           if test "$wxUSE_SPLITTER" = yes; then
7550             echo "$as_me:$LINENO: result: yes" >&5
7551 echo "${ECHO_T}yes" >&6
7552           else
7553             echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6
7555           fi
7556
7557
7558           enablestring=
7559           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7560 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7561           no_cache=0
7562           # Check whether --enable-statbmp or --disable-statbmp was given.
7563 if test "${enable_statbmp+set}" = set; then
7564   enableval="$enable_statbmp"
7565
7566                           if test "$enableval" = yes; then
7567                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7568                           else
7569                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7570                           fi
7571
7572 else
7573
7574                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7575                           if test "x$LINE" != x ; then
7576                             eval "DEFAULT_$LINE"
7577                           else
7578                             no_cache=1
7579                           fi
7580
7581                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7582
7583 fi;
7584
7585           eval "$ac_cv_use_statbmp"
7586           if test "$no_cache" != 1; then
7587             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7588           fi
7589
7590           if test "$wxUSE_STATBMP" = yes; then
7591             echo "$as_me:$LINENO: result: yes" >&5
7592 echo "${ECHO_T}yes" >&6
7593           else
7594             echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7596           fi
7597
7598
7599           enablestring=
7600           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7601 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7602           no_cache=0
7603           # Check whether --enable-statbox or --disable-statbox was given.
7604 if test "${enable_statbox+set}" = set; then
7605   enableval="$enable_statbox"
7606
7607                           if test "$enableval" = yes; then
7608                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7609                           else
7610                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7611                           fi
7612
7613 else
7614
7615                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7616                           if test "x$LINE" != x ; then
7617                             eval "DEFAULT_$LINE"
7618                           else
7619                             no_cache=1
7620                           fi
7621
7622                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7623
7624 fi;
7625
7626           eval "$ac_cv_use_statbox"
7627           if test "$no_cache" != 1; then
7628             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7629           fi
7630
7631           if test "$wxUSE_STATBOX" = yes; then
7632             echo "$as_me:$LINENO: result: yes" >&5
7633 echo "${ECHO_T}yes" >&6
7634           else
7635             echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6
7637           fi
7638
7639
7640           enablestring=
7641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7642 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7643           no_cache=0
7644           # Check whether --enable-statline or --disable-statline was given.
7645 if test "${enable_statline+set}" = set; then
7646   enableval="$enable_statline"
7647
7648                           if test "$enableval" = yes; then
7649                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7650                           else
7651                             ac_cv_use_statline='wxUSE_STATLINE=no'
7652                           fi
7653
7654 else
7655
7656                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7657                           if test "x$LINE" != x ; then
7658                             eval "DEFAULT_$LINE"
7659                           else
7660                             no_cache=1
7661                           fi
7662
7663                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7664
7665 fi;
7666
7667           eval "$ac_cv_use_statline"
7668           if test "$no_cache" != 1; then
7669             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7670           fi
7671
7672           if test "$wxUSE_STATLINE" = yes; then
7673             echo "$as_me:$LINENO: result: yes" >&5
7674 echo "${ECHO_T}yes" >&6
7675           else
7676             echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6
7678           fi
7679
7680
7681           enablestring=
7682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7683 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7684           no_cache=0
7685           # Check whether --enable-stattext or --disable-stattext was given.
7686 if test "${enable_stattext+set}" = set; then
7687   enableval="$enable_stattext"
7688
7689                           if test "$enableval" = yes; then
7690                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7691                           else
7692                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7693                           fi
7694
7695 else
7696
7697                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7698                           if test "x$LINE" != x ; then
7699                             eval "DEFAULT_$LINE"
7700                           else
7701                             no_cache=1
7702                           fi
7703
7704                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7705
7706 fi;
7707
7708           eval "$ac_cv_use_stattext"
7709           if test "$no_cache" != 1; then
7710             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7711           fi
7712
7713           if test "$wxUSE_STATTEXT" = yes; then
7714             echo "$as_me:$LINENO: result: yes" >&5
7715 echo "${ECHO_T}yes" >&6
7716           else
7717             echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7719           fi
7720
7721
7722           enablestring=
7723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7724 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7725           no_cache=0
7726           # Check whether --enable-statusbar or --disable-statusbar was given.
7727 if test "${enable_statusbar+set}" = set; then
7728   enableval="$enable_statusbar"
7729
7730                           if test "$enableval" = yes; then
7731                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7732                           else
7733                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7734                           fi
7735
7736 else
7737
7738                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7739                           if test "x$LINE" != x ; then
7740                             eval "DEFAULT_$LINE"
7741                           else
7742                             no_cache=1
7743                           fi
7744
7745                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7746
7747 fi;
7748
7749           eval "$ac_cv_use_statusbar"
7750           if test "$no_cache" != 1; then
7751             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7752           fi
7753
7754           if test "$wxUSE_STATUSBAR" = yes; then
7755             echo "$as_me:$LINENO: result: yes" >&5
7756 echo "${ECHO_T}yes" >&6
7757           else
7758             echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7760           fi
7761
7762
7763           enablestring=
7764           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7765 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7766           no_cache=0
7767           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7768 if test "${enable_tabdialog+set}" = set; then
7769   enableval="$enable_tabdialog"
7770
7771                           if test "$enableval" = yes; then
7772                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7773                           else
7774                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7775                           fi
7776
7777 else
7778
7779                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7780                           if test "x$LINE" != x ; then
7781                             eval "DEFAULT_$LINE"
7782                           else
7783                             no_cache=1
7784                           fi
7785
7786                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7787
7788 fi;
7789
7790           eval "$ac_cv_use_tabdialog"
7791           if test "$no_cache" != 1; then
7792             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7793           fi
7794
7795           if test "$wxUSE_TABDIALOG" = yes; then
7796             echo "$as_me:$LINENO: result: yes" >&5
7797 echo "${ECHO_T}yes" >&6
7798           else
7799             echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6
7801           fi
7802
7803
7804           enablestring=
7805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7806 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
7807           no_cache=0
7808           # Check whether --enable-textctrl or --disable-textctrl was given.
7809 if test "${enable_textctrl+set}" = set; then
7810   enableval="$enable_textctrl"
7811
7812                           if test "$enableval" = yes; then
7813                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7814                           else
7815                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7816                           fi
7817
7818 else
7819
7820                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7821                           if test "x$LINE" != x ; then
7822                             eval "DEFAULT_$LINE"
7823                           else
7824                             no_cache=1
7825                           fi
7826
7827                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7828
7829 fi;
7830
7831           eval "$ac_cv_use_textctrl"
7832           if test "$no_cache" != 1; then
7833             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7834           fi
7835
7836           if test "$wxUSE_TEXTCTRL" = yes; then
7837             echo "$as_me:$LINENO: result: yes" >&5
7838 echo "${ECHO_T}yes" >&6
7839           else
7840             echo "$as_me:$LINENO: result: no" >&5
7841 echo "${ECHO_T}no" >&6
7842           fi
7843
7844
7845           enablestring=
7846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7847 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
7848           no_cache=0
7849           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7850 if test "${enable_togglebtn+set}" = set; then
7851   enableval="$enable_togglebtn"
7852
7853                           if test "$enableval" = yes; then
7854                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7855                           else
7856                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7857                           fi
7858
7859 else
7860
7861                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7862                           if test "x$LINE" != x ; then
7863                             eval "DEFAULT_$LINE"
7864                           else
7865                             no_cache=1
7866                           fi
7867
7868                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7869
7870 fi;
7871
7872           eval "$ac_cv_use_togglebtn"
7873           if test "$no_cache" != 1; then
7874             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7875           fi
7876
7877           if test "$wxUSE_TOGGLEBTN" = yes; then
7878             echo "$as_me:$LINENO: result: yes" >&5
7879 echo "${ECHO_T}yes" >&6
7880           else
7881             echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6
7883           fi
7884
7885
7886           enablestring=
7887           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7888 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
7889           no_cache=0
7890           # Check whether --enable-toolbar or --disable-toolbar was given.
7891 if test "${enable_toolbar+set}" = set; then
7892   enableval="$enable_toolbar"
7893
7894                           if test "$enableval" = yes; then
7895                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7896                           else
7897                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7898                           fi
7899
7900 else
7901
7902                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7903                           if test "x$LINE" != x ; then
7904                             eval "DEFAULT_$LINE"
7905                           else
7906                             no_cache=1
7907                           fi
7908
7909                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7910
7911 fi;
7912
7913           eval "$ac_cv_use_toolbar"
7914           if test "$no_cache" != 1; then
7915             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7916           fi
7917
7918           if test "$wxUSE_TOOLBAR" = yes; then
7919             echo "$as_me:$LINENO: result: yes" >&5
7920 echo "${ECHO_T}yes" >&6
7921           else
7922             echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6
7924           fi
7925
7926
7927           enablestring=
7928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7929 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
7930           no_cache=0
7931           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7932 if test "${enable_tbarnative+set}" = set; then
7933   enableval="$enable_tbarnative"
7934
7935                           if test "$enableval" = yes; then
7936                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7937                           else
7938                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7939                           fi
7940
7941 else
7942
7943                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7944                           if test "x$LINE" != x ; then
7945                             eval "DEFAULT_$LINE"
7946                           else
7947                             no_cache=1
7948                           fi
7949
7950                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7951
7952 fi;
7953
7954           eval "$ac_cv_use_tbarnative"
7955           if test "$no_cache" != 1; then
7956             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7957           fi
7958
7959           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7960             echo "$as_me:$LINENO: result: yes" >&5
7961 echo "${ECHO_T}yes" >&6
7962           else
7963             echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6
7965           fi
7966
7967
7968           enablestring=
7969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7970 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
7971           no_cache=0
7972           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7973 if test "${enable_tbarsmpl+set}" = set; then
7974   enableval="$enable_tbarsmpl"
7975
7976                           if test "$enableval" = yes; then
7977                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7978                           else
7979                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7980                           fi
7981
7982 else
7983
7984                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7985                           if test "x$LINE" != x ; then
7986                             eval "DEFAULT_$LINE"
7987                           else
7988                             no_cache=1
7989                           fi
7990
7991                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7992
7993 fi;
7994
7995           eval "$ac_cv_use_tbarsmpl"
7996           if test "$no_cache" != 1; then
7997             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7998           fi
7999
8000           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8001             echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6
8003           else
8004             echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8006           fi
8007
8008
8009           enablestring=
8010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8011 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8012           no_cache=0
8013           # Check whether --enable-treectrl or --disable-treectrl was given.
8014 if test "${enable_treectrl+set}" = set; then
8015   enableval="$enable_treectrl"
8016
8017                           if test "$enableval" = yes; then
8018                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8019                           else
8020                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8021                           fi
8022
8023 else
8024
8025                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8026                           if test "x$LINE" != x ; then
8027                             eval "DEFAULT_$LINE"
8028                           else
8029                             no_cache=1
8030                           fi
8031
8032                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8033
8034 fi;
8035
8036           eval "$ac_cv_use_treectrl"
8037           if test "$no_cache" != 1; then
8038             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8039           fi
8040
8041           if test "$wxUSE_TREECTRL" = yes; then
8042             echo "$as_me:$LINENO: result: yes" >&5
8043 echo "${ECHO_T}yes" >&6
8044           else
8045             echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6
8047           fi
8048
8049
8050           enablestring=
8051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8052 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8053           no_cache=0
8054           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8055 if test "${enable_tipwindow+set}" = set; then
8056   enableval="$enable_tipwindow"
8057
8058                           if test "$enableval" = yes; then
8059                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8060                           else
8061                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8062                           fi
8063
8064 else
8065
8066                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8067                           if test "x$LINE" != x ; then
8068                             eval "DEFAULT_$LINE"
8069                           else
8070                             no_cache=1
8071                           fi
8072
8073                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8074
8075 fi;
8076
8077           eval "$ac_cv_use_tipwindow"
8078           if test "$no_cache" != 1; then
8079             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8080           fi
8081
8082           if test "$wxUSE_TIPWINDOW" = yes; then
8083             echo "$as_me:$LINENO: result: yes" >&5
8084 echo "${ECHO_T}yes" >&6
8085           else
8086             echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088           fi
8089
8090
8091           enablestring=
8092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8093 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8094           no_cache=0
8095           # Check whether --enable-popupwin or --disable-popupwin was given.
8096 if test "${enable_popupwin+set}" = set; then
8097   enableval="$enable_popupwin"
8098
8099                           if test "$enableval" = yes; then
8100                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8101                           else
8102                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8103                           fi
8104
8105 else
8106
8107                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8108                           if test "x$LINE" != x ; then
8109                             eval "DEFAULT_$LINE"
8110                           else
8111                             no_cache=1
8112                           fi
8113
8114                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8115
8116 fi;
8117
8118           eval "$ac_cv_use_popupwin"
8119           if test "$no_cache" != 1; then
8120             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8121           fi
8122
8123           if test "$wxUSE_POPUPWIN" = yes; then
8124             echo "$as_me:$LINENO: result: yes" >&5
8125 echo "${ECHO_T}yes" >&6
8126           else
8127             echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8129           fi
8130
8131
8132
8133
8134           enablestring=
8135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8136 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8137           no_cache=0
8138           # Check whether --enable-commondlg or --disable-commondlg was given.
8139 if test "${enable_commondlg+set}" = set; then
8140   enableval="$enable_commondlg"
8141
8142                           if test "$enableval" = yes; then
8143                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8144                           else
8145                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8146                           fi
8147
8148 else
8149
8150                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8151                           if test "x$LINE" != x ; then
8152                             eval "DEFAULT_$LINE"
8153                           else
8154                             no_cache=1
8155                           fi
8156
8157                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8158
8159 fi;
8160
8161           eval "$ac_cv_use_commondlg"
8162           if test "$no_cache" != 1; then
8163             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8164           fi
8165
8166           if test "$wxUSE_COMMONDLGS" = yes; then
8167             echo "$as_me:$LINENO: result: yes" >&5
8168 echo "${ECHO_T}yes" >&6
8169           else
8170             echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6
8172           fi
8173
8174
8175           enablestring=
8176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8177 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8178           no_cache=0
8179           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8180 if test "${enable_choicedlg+set}" = set; then
8181   enableval="$enable_choicedlg"
8182
8183                           if test "$enableval" = yes; then
8184                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8185                           else
8186                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8187                           fi
8188
8189 else
8190
8191                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8192                           if test "x$LINE" != x ; then
8193                             eval "DEFAULT_$LINE"
8194                           else
8195                             no_cache=1
8196                           fi
8197
8198                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8199
8200 fi;
8201
8202           eval "$ac_cv_use_choicedlg"
8203           if test "$no_cache" != 1; then
8204             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8205           fi
8206
8207           if test "$wxUSE_CHOICEDLG" = yes; then
8208             echo "$as_me:$LINENO: result: yes" >&5
8209 echo "${ECHO_T}yes" >&6
8210           else
8211             echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8213           fi
8214
8215
8216           enablestring=
8217           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8218 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8219           no_cache=0
8220           # Check whether --enable-coldlg or --disable-coldlg was given.
8221 if test "${enable_coldlg+set}" = set; then
8222   enableval="$enable_coldlg"
8223
8224                           if test "$enableval" = yes; then
8225                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8226                           else
8227                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8228                           fi
8229
8230 else
8231
8232                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8233                           if test "x$LINE" != x ; then
8234                             eval "DEFAULT_$LINE"
8235                           else
8236                             no_cache=1
8237                           fi
8238
8239                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8240
8241 fi;
8242
8243           eval "$ac_cv_use_coldlg"
8244           if test "$no_cache" != 1; then
8245             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8246           fi
8247
8248           if test "$wxUSE_COLOURDLG" = yes; then
8249             echo "$as_me:$LINENO: result: yes" >&5
8250 echo "${ECHO_T}yes" >&6
8251           else
8252             echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6
8254           fi
8255
8256
8257           enablestring=
8258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8259 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8260           no_cache=0
8261           # Check whether --enable-filedlg or --disable-filedlg was given.
8262 if test "${enable_filedlg+set}" = set; then
8263   enableval="$enable_filedlg"
8264
8265                           if test "$enableval" = yes; then
8266                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8267                           else
8268                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8269                           fi
8270
8271 else
8272
8273                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8274                           if test "x$LINE" != x ; then
8275                             eval "DEFAULT_$LINE"
8276                           else
8277                             no_cache=1
8278                           fi
8279
8280                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8281
8282 fi;
8283
8284           eval "$ac_cv_use_filedlg"
8285           if test "$no_cache" != 1; then
8286             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8287           fi
8288
8289           if test "$wxUSE_FILEDLG" = yes; then
8290             echo "$as_me:$LINENO: result: yes" >&5
8291 echo "${ECHO_T}yes" >&6
8292           else
8293             echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6
8295           fi
8296
8297
8298           enablestring=
8299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8300 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8301           no_cache=0
8302           # Check whether --enable-finddlg or --disable-finddlg was given.
8303 if test "${enable_finddlg+set}" = set; then
8304   enableval="$enable_finddlg"
8305
8306                           if test "$enableval" = yes; then
8307                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8308                           else
8309                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8310                           fi
8311
8312 else
8313
8314                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8315                           if test "x$LINE" != x ; then
8316                             eval "DEFAULT_$LINE"
8317                           else
8318                             no_cache=1
8319                           fi
8320
8321                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8322
8323 fi;
8324
8325           eval "$ac_cv_use_finddlg"
8326           if test "$no_cache" != 1; then
8327             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8328           fi
8329
8330           if test "$wxUSE_FINDREPLDLG" = yes; then
8331             echo "$as_me:$LINENO: result: yes" >&5
8332 echo "${ECHO_T}yes" >&6
8333           else
8334             echo "$as_me:$LINENO: result: no" >&5
8335 echo "${ECHO_T}no" >&6
8336           fi
8337
8338
8339           enablestring=
8340           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8341 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8342           no_cache=0
8343           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8344 if test "${enable_fontdlg+set}" = set; then
8345   enableval="$enable_fontdlg"
8346
8347                           if test "$enableval" = yes; then
8348                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8349                           else
8350                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8351                           fi
8352
8353 else
8354
8355                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8356                           if test "x$LINE" != x ; then
8357                             eval "DEFAULT_$LINE"
8358                           else
8359                             no_cache=1
8360                           fi
8361
8362                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8363
8364 fi;
8365
8366           eval "$ac_cv_use_fontdlg"
8367           if test "$no_cache" != 1; then
8368             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8369           fi
8370
8371           if test "$wxUSE_FONTDLG" = yes; then
8372             echo "$as_me:$LINENO: result: yes" >&5
8373 echo "${ECHO_T}yes" >&6
8374           else
8375             echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8377           fi
8378
8379
8380           enablestring=
8381           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8382 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8383           no_cache=0
8384           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8385 if test "${enable_dirdlg+set}" = set; then
8386   enableval="$enable_dirdlg"
8387
8388                           if test "$enableval" = yes; then
8389                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8390                           else
8391                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8392                           fi
8393
8394 else
8395
8396                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8397                           if test "x$LINE" != x ; then
8398                             eval "DEFAULT_$LINE"
8399                           else
8400                             no_cache=1
8401                           fi
8402
8403                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8404
8405 fi;
8406
8407           eval "$ac_cv_use_dirdlg"
8408           if test "$no_cache" != 1; then
8409             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8410           fi
8411
8412           if test "$wxUSE_DIRDLG" = yes; then
8413             echo "$as_me:$LINENO: result: yes" >&5
8414 echo "${ECHO_T}yes" >&6
8415           else
8416             echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6
8418           fi
8419
8420
8421           enablestring=
8422           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8423 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8424           no_cache=0
8425           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8426 if test "${enable_msgdlg+set}" = set; then
8427   enableval="$enable_msgdlg"
8428
8429                           if test "$enableval" = yes; then
8430                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8431                           else
8432                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8433                           fi
8434
8435 else
8436
8437                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8438                           if test "x$LINE" != x ; then
8439                             eval "DEFAULT_$LINE"
8440                           else
8441                             no_cache=1
8442                           fi
8443
8444                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8445
8446 fi;
8447
8448           eval "$ac_cv_use_msgdlg"
8449           if test "$no_cache" != 1; then
8450             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8451           fi
8452
8453           if test "$wxUSE_MSGDLG" = yes; then
8454             echo "$as_me:$LINENO: result: yes" >&5
8455 echo "${ECHO_T}yes" >&6
8456           else
8457             echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8459           fi
8460
8461
8462           enablestring=
8463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8464 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8465           no_cache=0
8466           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8467 if test "${enable_numberdlg+set}" = set; then
8468   enableval="$enable_numberdlg"
8469
8470                           if test "$enableval" = yes; then
8471                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8472                           else
8473                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8474                           fi
8475
8476 else
8477
8478                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8479                           if test "x$LINE" != x ; then
8480                             eval "DEFAULT_$LINE"
8481                           else
8482                             no_cache=1
8483                           fi
8484
8485                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8486
8487 fi;
8488
8489           eval "$ac_cv_use_numberdlg"
8490           if test "$no_cache" != 1; then
8491             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8492           fi
8493
8494           if test "$wxUSE_NUMBERDLG" = yes; then
8495             echo "$as_me:$LINENO: result: yes" >&5
8496 echo "${ECHO_T}yes" >&6
8497           else
8498             echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8500           fi
8501
8502
8503           enablestring=
8504           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8505 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8506           no_cache=0
8507           # Check whether --enable-splash or --disable-splash was given.
8508 if test "${enable_splash+set}" = set; then
8509   enableval="$enable_splash"
8510
8511                           if test "$enableval" = yes; then
8512                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8513                           else
8514                             ac_cv_use_splash='wxUSE_SPLASH=no'
8515                           fi
8516
8517 else
8518
8519                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8520                           if test "x$LINE" != x ; then
8521                             eval "DEFAULT_$LINE"
8522                           else
8523                             no_cache=1
8524                           fi
8525
8526                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8527
8528 fi;
8529
8530           eval "$ac_cv_use_splash"
8531           if test "$no_cache" != 1; then
8532             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8533           fi
8534
8535           if test "$wxUSE_SPLASH" = yes; then
8536             echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6
8538           else
8539             echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541           fi
8542
8543
8544           enablestring=
8545           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8546 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8547           no_cache=0
8548           # Check whether --enable-textdlg or --disable-textdlg was given.
8549 if test "${enable_textdlg+set}" = set; then
8550   enableval="$enable_textdlg"
8551
8552                           if test "$enableval" = yes; then
8553                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8554                           else
8555                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8556                           fi
8557
8558 else
8559
8560                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8561                           if test "x$LINE" != x ; then
8562                             eval "DEFAULT_$LINE"
8563                           else
8564                             no_cache=1
8565                           fi
8566
8567                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8568
8569 fi;
8570
8571           eval "$ac_cv_use_textdlg"
8572           if test "$no_cache" != 1; then
8573             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8574           fi
8575
8576           if test "$wxUSE_TEXTDLG" = yes; then
8577             echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6
8579           else
8580             echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6
8582           fi
8583
8584
8585           enablestring=
8586           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8587 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8588           no_cache=0
8589           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8590 if test "${enable_tipdlg+set}" = set; then
8591   enableval="$enable_tipdlg"
8592
8593                           if test "$enableval" = yes; then
8594                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8595                           else
8596                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8597                           fi
8598
8599 else
8600
8601                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8602                           if test "x$LINE" != x ; then
8603                             eval "DEFAULT_$LINE"
8604                           else
8605                             no_cache=1
8606                           fi
8607
8608                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8609
8610 fi;
8611
8612           eval "$ac_cv_use_tipdlg"
8613           if test "$no_cache" != 1; then
8614             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8615           fi
8616
8617           if test "$wxUSE_STARTUP_TIPS" = yes; then
8618             echo "$as_me:$LINENO: result: yes" >&5
8619 echo "${ECHO_T}yes" >&6
8620           else
8621             echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8623           fi
8624
8625
8626           enablestring=
8627           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8628 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8629           no_cache=0
8630           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8631 if test "${enable_progressdlg+set}" = set; then
8632   enableval="$enable_progressdlg"
8633
8634                           if test "$enableval" = yes; then
8635                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8636                           else
8637                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8638                           fi
8639
8640 else
8641
8642                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8643                           if test "x$LINE" != x ; then
8644                             eval "DEFAULT_$LINE"
8645                           else
8646                             no_cache=1
8647                           fi
8648
8649                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8650
8651 fi;
8652
8653           eval "$ac_cv_use_progressdlg"
8654           if test "$no_cache" != 1; then
8655             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8656           fi
8657
8658           if test "$wxUSE_PROGRESSDLG" = yes; then
8659             echo "$as_me:$LINENO: result: yes" >&5
8660 echo "${ECHO_T}yes" >&6
8661           else
8662             echo "$as_me:$LINENO: result: no" >&5
8663 echo "${ECHO_T}no" >&6
8664           fi
8665
8666
8667           enablestring=
8668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8669 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8670           no_cache=0
8671           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8672 if test "${enable_wizarddlg+set}" = set; then
8673   enableval="$enable_wizarddlg"
8674
8675                           if test "$enableval" = yes; then
8676                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8677                           else
8678                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8679                           fi
8680
8681 else
8682
8683                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8684                           if test "x$LINE" != x ; then
8685                             eval "DEFAULT_$LINE"
8686                           else
8687                             no_cache=1
8688                           fi
8689
8690                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8691
8692 fi;
8693
8694           eval "$ac_cv_use_wizarddlg"
8695           if test "$no_cache" != 1; then
8696             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8697           fi
8698
8699           if test "$wxUSE_WIZARDDLG" = yes; then
8700             echo "$as_me:$LINENO: result: yes" >&5
8701 echo "${ECHO_T}yes" >&6
8702           else
8703             echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8705           fi
8706
8707
8708
8709
8710           enablestring=
8711           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8712 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8713           no_cache=0
8714           # Check whether --enable-menus or --disable-menus was given.
8715 if test "${enable_menus+set}" = set; then
8716   enableval="$enable_menus"
8717
8718                           if test "$enableval" = yes; then
8719                             ac_cv_use_menus='wxUSE_MENUS=yes'
8720                           else
8721                             ac_cv_use_menus='wxUSE_MENUS=no'
8722                           fi
8723
8724 else
8725
8726                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8727                           if test "x$LINE" != x ; then
8728                             eval "DEFAULT_$LINE"
8729                           else
8730                             no_cache=1
8731                           fi
8732
8733                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8734
8735 fi;
8736
8737           eval "$ac_cv_use_menus"
8738           if test "$no_cache" != 1; then
8739             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8740           fi
8741
8742           if test "$wxUSE_MENUS" = yes; then
8743             echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6
8745           else
8746             echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8748           fi
8749
8750
8751           enablestring=
8752           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8753 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8754           no_cache=0
8755           # Check whether --enable-miniframe or --disable-miniframe was given.
8756 if test "${enable_miniframe+set}" = set; then
8757   enableval="$enable_miniframe"
8758
8759                           if test "$enableval" = yes; then
8760                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8761                           else
8762                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8763                           fi
8764
8765 else
8766
8767                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8768                           if test "x$LINE" != x ; then
8769                             eval "DEFAULT_$LINE"
8770                           else
8771                             no_cache=1
8772                           fi
8773
8774                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8775
8776 fi;
8777
8778           eval "$ac_cv_use_miniframe"
8779           if test "$no_cache" != 1; then
8780             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8781           fi
8782
8783           if test "$wxUSE_MINIFRAME" = yes; then
8784             echo "$as_me:$LINENO: result: yes" >&5
8785 echo "${ECHO_T}yes" >&6
8786           else
8787             echo "$as_me:$LINENO: result: no" >&5
8788 echo "${ECHO_T}no" >&6
8789           fi
8790
8791
8792           enablestring=
8793           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8794 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
8795           no_cache=0
8796           # Check whether --enable-tooltips or --disable-tooltips was given.
8797 if test "${enable_tooltips+set}" = set; then
8798   enableval="$enable_tooltips"
8799
8800                           if test "$enableval" = yes; then
8801                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8802                           else
8803                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8804                           fi
8805
8806 else
8807
8808                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8809                           if test "x$LINE" != x ; then
8810                             eval "DEFAULT_$LINE"
8811                           else
8812                             no_cache=1
8813                           fi
8814
8815                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8816
8817 fi;
8818
8819           eval "$ac_cv_use_tooltips"
8820           if test "$no_cache" != 1; then
8821             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8822           fi
8823
8824           if test "$wxUSE_TOOLTIPS" = yes; then
8825             echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6
8827           else
8828             echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6
8830           fi
8831
8832
8833           enablestring=
8834           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8835 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
8836           no_cache=0
8837           # Check whether --enable-splines or --disable-splines was given.
8838 if test "${enable_splines+set}" = set; then
8839   enableval="$enable_splines"
8840
8841                           if test "$enableval" = yes; then
8842                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8843                           else
8844                             ac_cv_use_splines='wxUSE_SPLINES=no'
8845                           fi
8846
8847 else
8848
8849                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8850                           if test "x$LINE" != x ; then
8851                             eval "DEFAULT_$LINE"
8852                           else
8853                             no_cache=1
8854                           fi
8855
8856                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8857
8858 fi;
8859
8860           eval "$ac_cv_use_splines"
8861           if test "$no_cache" != 1; then
8862             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8863           fi
8864
8865           if test "$wxUSE_SPLINES" = yes; then
8866             echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868           else
8869             echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8871           fi
8872
8873
8874           enablestring=
8875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8876 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
8877           no_cache=0
8878           # Check whether --enable-validators or --disable-validators was given.
8879 if test "${enable_validators+set}" = set; then
8880   enableval="$enable_validators"
8881
8882                           if test "$enableval" = yes; then
8883                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8884                           else
8885                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8886                           fi
8887
8888 else
8889
8890                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8891                           if test "x$LINE" != x ; then
8892                             eval "DEFAULT_$LINE"
8893                           else
8894                             no_cache=1
8895                           fi
8896
8897                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8898
8899 fi;
8900
8901           eval "$ac_cv_use_validators"
8902           if test "$no_cache" != 1; then
8903             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8904           fi
8905
8906           if test "$wxUSE_VALIDATORS" = yes; then
8907             echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6
8909           else
8910             echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8912           fi
8913
8914
8915           enablestring=
8916           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8917 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
8918           no_cache=0
8919           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8920 if test "${enable_busyinfo+set}" = set; then
8921   enableval="$enable_busyinfo"
8922
8923                           if test "$enableval" = yes; then
8924                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8925                           else
8926                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8927                           fi
8928
8929 else
8930
8931                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8932                           if test "x$LINE" != x ; then
8933                             eval "DEFAULT_$LINE"
8934                           else
8935                             no_cache=1
8936                           fi
8937
8938                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8939
8940 fi;
8941
8942           eval "$ac_cv_use_busyinfo"
8943           if test "$no_cache" != 1; then
8944             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8945           fi
8946
8947           if test "$wxUSE_BUSYINFO" = yes; then
8948             echo "$as_me:$LINENO: result: yes" >&5
8949 echo "${ECHO_T}yes" >&6
8950           else
8951             echo "$as_me:$LINENO: result: no" >&5
8952 echo "${ECHO_T}no" >&6
8953           fi
8954
8955
8956           enablestring=
8957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8958 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
8959           no_cache=0
8960           # Check whether --enable-joystick or --disable-joystick was given.
8961 if test "${enable_joystick+set}" = set; then
8962   enableval="$enable_joystick"
8963
8964                           if test "$enableval" = yes; then
8965                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8966                           else
8967                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8968                           fi
8969
8970 else
8971
8972                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8973                           if test "x$LINE" != x ; then
8974                             eval "DEFAULT_$LINE"
8975                           else
8976                             no_cache=1
8977                           fi
8978
8979                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8980
8981 fi;
8982
8983           eval "$ac_cv_use_joystick"
8984           if test "$no_cache" != 1; then
8985             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8986           fi
8987
8988           if test "$wxUSE_JOYSTICK" = yes; then
8989             echo "$as_me:$LINENO: result: yes" >&5
8990 echo "${ECHO_T}yes" >&6
8991           else
8992             echo "$as_me:$LINENO: result: no" >&5
8993 echo "${ECHO_T}no" >&6
8994           fi
8995
8996
8997           enablestring=
8998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8999 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9000           no_cache=0
9001           # Check whether --enable-metafile or --disable-metafile was given.
9002 if test "${enable_metafile+set}" = set; then
9003   enableval="$enable_metafile"
9004
9005                           if test "$enableval" = yes; then
9006                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9007                           else
9008                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9009                           fi
9010
9011 else
9012
9013                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9014                           if test "x$LINE" != x ; then
9015                             eval "DEFAULT_$LINE"
9016                           else
9017                             no_cache=1
9018                           fi
9019
9020                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9021
9022 fi;
9023
9024           eval "$ac_cv_use_metafile"
9025           if test "$no_cache" != 1; then
9026             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9027           fi
9028
9029           if test "$wxUSE_METAFILE" = yes; then
9030             echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6
9032           else
9033             echo "$as_me:$LINENO: result: no" >&5
9034 echo "${ECHO_T}no" >&6
9035           fi
9036
9037
9038           enablestring=
9039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9040 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9041           no_cache=0
9042           # Check whether --enable-dragimage or --disable-dragimage was given.
9043 if test "${enable_dragimage+set}" = set; then
9044   enableval="$enable_dragimage"
9045
9046                           if test "$enableval" = yes; then
9047                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9048                           else
9049                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9050                           fi
9051
9052 else
9053
9054                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9055                           if test "x$LINE" != x ; then
9056                             eval "DEFAULT_$LINE"
9057                           else
9058                             no_cache=1
9059                           fi
9060
9061                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9062
9063 fi;
9064
9065           eval "$ac_cv_use_dragimage"
9066           if test "$no_cache" != 1; then
9067             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9068           fi
9069
9070           if test "$wxUSE_DRAGIMAGE" = yes; then
9071             echo "$as_me:$LINENO: result: yes" >&5
9072 echo "${ECHO_T}yes" >&6
9073           else
9074             echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076           fi
9077
9078
9079           enablestring=
9080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9081 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9082           no_cache=0
9083           # Check whether --enable-accessibility or --disable-accessibility was given.
9084 if test "${enable_accessibility+set}" = set; then
9085   enableval="$enable_accessibility"
9086
9087                           if test "$enableval" = yes; then
9088                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9089                           else
9090                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9091                           fi
9092
9093 else
9094
9095                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9096                           if test "x$LINE" != x ; then
9097                             eval "DEFAULT_$LINE"
9098                           else
9099                             no_cache=1
9100                           fi
9101
9102                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9103
9104 fi;
9105
9106           eval "$ac_cv_use_accessibility"
9107           if test "$no_cache" != 1; then
9108             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9109           fi
9110
9111           if test "$wxUSE_ACCESSIBILITY" = yes; then
9112             echo "$as_me:$LINENO: result: yes" >&5
9113 echo "${ECHO_T}yes" >&6
9114           else
9115             echo "$as_me:$LINENO: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9117           fi
9118
9119
9120
9121
9122           enablestring=
9123           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9124 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9125           no_cache=0
9126           # Check whether --enable-palette or --disable-palette was given.
9127 if test "${enable_palette+set}" = set; then
9128   enableval="$enable_palette"
9129
9130                           if test "$enableval" = yes; then
9131                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9132                           else
9133                             ac_cv_use_palette='wxUSE_PALETTE=no'
9134                           fi
9135
9136 else
9137
9138                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9139                           if test "x$LINE" != x ; then
9140                             eval "DEFAULT_$LINE"
9141                           else
9142                             no_cache=1
9143                           fi
9144
9145                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9146
9147 fi;
9148
9149           eval "$ac_cv_use_palette"
9150           if test "$no_cache" != 1; then
9151             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9152           fi
9153
9154           if test "$wxUSE_PALETTE" = yes; then
9155             echo "$as_me:$LINENO: result: yes" >&5
9156 echo "${ECHO_T}yes" >&6
9157           else
9158             echo "$as_me:$LINENO: result: no" >&5
9159 echo "${ECHO_T}no" >&6
9160           fi
9161
9162
9163           enablestring=
9164           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9165 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9166           no_cache=0
9167           # Check whether --enable-image or --disable-image was given.
9168 if test "${enable_image+set}" = set; then
9169   enableval="$enable_image"
9170
9171                           if test "$enableval" = yes; then
9172                             ac_cv_use_image='wxUSE_IMAGE=yes'
9173                           else
9174                             ac_cv_use_image='wxUSE_IMAGE=no'
9175                           fi
9176
9177 else
9178
9179                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9180                           if test "x$LINE" != x ; then
9181                             eval "DEFAULT_$LINE"
9182                           else
9183                             no_cache=1
9184                           fi
9185
9186                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9187
9188 fi;
9189
9190           eval "$ac_cv_use_image"
9191           if test "$no_cache" != 1; then
9192             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9193           fi
9194
9195           if test "$wxUSE_IMAGE" = yes; then
9196             echo "$as_me:$LINENO: result: yes" >&5
9197 echo "${ECHO_T}yes" >&6
9198           else
9199             echo "$as_me:$LINENO: result: no" >&5
9200 echo "${ECHO_T}no" >&6
9201           fi
9202
9203
9204           enablestring=
9205           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9206 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9207           no_cache=0
9208           # Check whether --enable-gif or --disable-gif was given.
9209 if test "${enable_gif+set}" = set; then
9210   enableval="$enable_gif"
9211
9212                           if test "$enableval" = yes; then
9213                             ac_cv_use_gif='wxUSE_GIF=yes'
9214                           else
9215                             ac_cv_use_gif='wxUSE_GIF=no'
9216                           fi
9217
9218 else
9219
9220                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9221                           if test "x$LINE" != x ; then
9222                             eval "DEFAULT_$LINE"
9223                           else
9224                             no_cache=1
9225                           fi
9226
9227                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9228
9229 fi;
9230
9231           eval "$ac_cv_use_gif"
9232           if test "$no_cache" != 1; then
9233             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9234           fi
9235
9236           if test "$wxUSE_GIF" = yes; then
9237             echo "$as_me:$LINENO: result: yes" >&5
9238 echo "${ECHO_T}yes" >&6
9239           else
9240             echo "$as_me:$LINENO: result: no" >&5
9241 echo "${ECHO_T}no" >&6
9242           fi
9243
9244
9245           enablestring=
9246           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9247 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9248           no_cache=0
9249           # Check whether --enable-pcx or --disable-pcx was given.
9250 if test "${enable_pcx+set}" = set; then
9251   enableval="$enable_pcx"
9252
9253                           if test "$enableval" = yes; then
9254                             ac_cv_use_pcx='wxUSE_PCX=yes'
9255                           else
9256                             ac_cv_use_pcx='wxUSE_PCX=no'
9257                           fi
9258
9259 else
9260
9261                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9262                           if test "x$LINE" != x ; then
9263                             eval "DEFAULT_$LINE"
9264                           else
9265                             no_cache=1
9266                           fi
9267
9268                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9269
9270 fi;
9271
9272           eval "$ac_cv_use_pcx"
9273           if test "$no_cache" != 1; then
9274             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9275           fi
9276
9277           if test "$wxUSE_PCX" = yes; then
9278             echo "$as_me:$LINENO: result: yes" >&5
9279 echo "${ECHO_T}yes" >&6
9280           else
9281             echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6
9283           fi
9284
9285
9286           enablestring=
9287           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9288 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9289           no_cache=0
9290           # Check whether --enable-iff or --disable-iff was given.
9291 if test "${enable_iff+set}" = set; then
9292   enableval="$enable_iff"
9293
9294                           if test "$enableval" = yes; then
9295                             ac_cv_use_iff='wxUSE_IFF=yes'
9296                           else
9297                             ac_cv_use_iff='wxUSE_IFF=no'
9298                           fi
9299
9300 else
9301
9302                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9303                           if test "x$LINE" != x ; then
9304                             eval "DEFAULT_$LINE"
9305                           else
9306                             no_cache=1
9307                           fi
9308
9309                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9310
9311 fi;
9312
9313           eval "$ac_cv_use_iff"
9314           if test "$no_cache" != 1; then
9315             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9316           fi
9317
9318           if test "$wxUSE_IFF" = yes; then
9319             echo "$as_me:$LINENO: result: yes" >&5
9320 echo "${ECHO_T}yes" >&6
9321           else
9322             echo "$as_me:$LINENO: result: no" >&5
9323 echo "${ECHO_T}no" >&6
9324           fi
9325
9326
9327           enablestring=
9328           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9329 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9330           no_cache=0
9331           # Check whether --enable-pnm or --disable-pnm was given.
9332 if test "${enable_pnm+set}" = set; then
9333   enableval="$enable_pnm"
9334
9335                           if test "$enableval" = yes; then
9336                             ac_cv_use_pnm='wxUSE_PNM=yes'
9337                           else
9338                             ac_cv_use_pnm='wxUSE_PNM=no'
9339                           fi
9340
9341 else
9342
9343                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9344                           if test "x$LINE" != x ; then
9345                             eval "DEFAULT_$LINE"
9346                           else
9347                             no_cache=1
9348                           fi
9349
9350                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9351
9352 fi;
9353
9354           eval "$ac_cv_use_pnm"
9355           if test "$no_cache" != 1; then
9356             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9357           fi
9358
9359           if test "$wxUSE_PNM" = yes; then
9360             echo "$as_me:$LINENO: result: yes" >&5
9361 echo "${ECHO_T}yes" >&6
9362           else
9363             echo "$as_me:$LINENO: result: no" >&5
9364 echo "${ECHO_T}no" >&6
9365           fi
9366
9367
9368           enablestring=
9369           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9370 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9371           no_cache=0
9372           # Check whether --enable-xpm or --disable-xpm was given.
9373 if test "${enable_xpm+set}" = set; then
9374   enableval="$enable_xpm"
9375
9376                           if test "$enableval" = yes; then
9377                             ac_cv_use_xpm='wxUSE_XPM=yes'
9378                           else
9379                             ac_cv_use_xpm='wxUSE_XPM=no'
9380                           fi
9381
9382 else
9383
9384                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9385                           if test "x$LINE" != x ; then
9386                             eval "DEFAULT_$LINE"
9387                           else
9388                             no_cache=1
9389                           fi
9390
9391                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9392
9393 fi;
9394
9395           eval "$ac_cv_use_xpm"
9396           if test "$no_cache" != 1; then
9397             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9398           fi
9399
9400           if test "$wxUSE_XPM" = yes; then
9401             echo "$as_me:$LINENO: result: yes" >&5
9402 echo "${ECHO_T}yes" >&6
9403           else
9404             echo "$as_me:$LINENO: result: no" >&5
9405 echo "${ECHO_T}no" >&6
9406           fi
9407
9408
9409           enablestring=
9410           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9411 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9412           no_cache=0
9413           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9414 if test "${enable_ico_cur+set}" = set; then
9415   enableval="$enable_ico_cur"
9416
9417                           if test "$enableval" = yes; then
9418                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9419                           else
9420                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9421                           fi
9422
9423 else
9424
9425                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9426                           if test "x$LINE" != x ; then
9427                             eval "DEFAULT_$LINE"
9428                           else
9429                             no_cache=1
9430                           fi
9431
9432                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9433
9434 fi;
9435
9436           eval "$ac_cv_use_ico_cur"
9437           if test "$no_cache" != 1; then
9438             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9439           fi
9440
9441           if test "$wxUSE_ICO_CUR" = yes; then
9442             echo "$as_me:$LINENO: result: yes" >&5
9443 echo "${ECHO_T}yes" >&6
9444           else
9445             echo "$as_me:$LINENO: result: no" >&5
9446 echo "${ECHO_T}no" >&6
9447           fi
9448
9449
9450 fi
9451
9452 case "${host}" in
9453   *-pc-os2_emx | *-pc-os2-emx )
9454     PATH_IFS=';'
9455     LEX_STEM="lexyy"
9456   ;;
9457   *)
9458     PATH_IFS=':'
9459     LEX_STEM="lex.yy"
9460   ;;
9461 esac
9462
9463
9464
9465           echo "saving argument cache $wx_arg_cache_file"
9466           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9467
9468
9469
9470 echo "$as_me:$LINENO: checking for toolkit" >&5
9471 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9472
9473 # In Wine, we need to default to MSW, not GTK or MOTIF
9474 if test "$wxUSE_WINE" = "yes"; then
9475     DEFAULT_DEFAULT_wxUSE_GTK=0
9476     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9477     DEFAULT_DEFAULT_wxUSE_MSW=1
9478 fi
9479
9480 if test "$wxUSE_GUI" = "yes"; then
9481
9482     if test "$USE_BEOS" = 1; then
9483         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9484 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9485    { (exit 1); exit 1; }; }
9486     fi
9487
9488     if test "$TOOLKIT_GIVEN" = 1; then
9489             for toolkit in `echo $ALL_TOOLKITS`; do
9490         var=wxUSE_$toolkit
9491         eval "value=\$${var}"
9492         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9493       done
9494     else
9495             for toolkit in `echo $ALL_TOOLKITS`; do
9496         if test "$has_toolkit_in_cache" != 1; then
9497           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9498         else
9499           var=DEFAULT_wxUSE_$toolkit
9500         fi
9501         eval "wxUSE_$toolkit=\$${var}"
9502       done
9503     fi
9504
9505             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9506                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9507                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9508
9509         case "${host}" in
9510       *-pc-os2_emx | *-pc-os2-emx )
9511         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9512     esac
9513
9514     case "$NUM_TOOLKITS" in
9515       1)
9516       ;;
9517       0)
9518         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9519 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9520    { (exit 1); exit 1; }; }
9521       ;;
9522       *)
9523         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9524 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9525    { (exit 1); exit 1; }; }
9526     esac
9527
9528         for toolkit in `echo $ALL_TOOLKITS`; do
9529       var=wxUSE_$toolkit
9530       eval "value=\$${var}"
9531       if test "x$value" != x; then
9532         cache_var=CACHE_$toolkit
9533         eval "cache=\$${cache_var}"
9534         if test "$cache" = 1; then
9535           echo "$var=$value" >> ${wx_arg_cache_file}
9536         fi
9537         if test "$value" = 1; then
9538           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
9539           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9540 echo "${ECHO_T}$toolkit_echo" >&6
9541         fi
9542       fi
9543     done
9544 else
9545     if test "x$host_alias" != "x"; then
9546         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9547 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9548     else
9549         echo "$as_me:$LINENO: result: base only" >&5
9550 echo "${ECHO_T}base only" >&6
9551     fi
9552 fi
9553
9554 wants_win32=0
9555 doesnt_want_win32=0
9556 case "${host}" in
9557   *-*-cygwin*)
9558       if test "$wxUSE_MSW" = 1 ; then
9559         wants_win32=1
9560       else
9561         doesnt_want_win32=1
9562       fi
9563   ;;
9564   *-*-mingw*)
9565       wants_win32=1
9566   ;;
9567 esac
9568
9569 if test "$wxUSE_WINE" = "yes"; then
9570     wants_win32=1
9571         CC=winegcc
9572     CXX=wineg++
9573     RESCOMP=wrc
9574 fi
9575
9576 if test "$wants_win32" = 1 ; then
9577     USE_UNIX=0
9578     USE_WIN32=1
9579     cat >>confdefs.h <<\_ACEOF
9580 #define __WIN32__ 1
9581 _ACEOF
9582
9583     cat >>confdefs.h <<\_ACEOF
9584 #define __WIN95__ 1
9585 _ACEOF
9586
9587     cat >>confdefs.h <<\_ACEOF
9588 #define __WINDOWS__ 1
9589 _ACEOF
9590
9591     cat >>confdefs.h <<\_ACEOF
9592 #define __GNUWIN32__ 1
9593 _ACEOF
9594
9595     cat >>confdefs.h <<\_ACEOF
9596 #define STRICT 1
9597 _ACEOF
9598
9599     cat >>confdefs.h <<\_ACEOF
9600 #define WINVER 0x0400
9601 _ACEOF
9602
9603 fi
9604 if test "$doesnt_want_win32" = 1 ; then
9605     USE_UNIX=1
9606     USE_WIN32=0
9607 fi
9608
9609 if test "$USE_UNIX" = 1 ; then
9610     wxUSE_UNIX=yes
9611     cat >>confdefs.h <<\_ACEOF
9612 #define __UNIX__ 1
9613 _ACEOF
9614
9615 fi
9616
9617
9618 cat >confcache <<\_ACEOF
9619 # This file is a shell script that caches the results of configure
9620 # tests run on this system so they can be shared between configure
9621 # scripts and configure runs, see configure's option --config-cache.
9622 # It is not useful on other systems.  If it contains results you don't
9623 # want to keep, you may remove or edit it.
9624 #
9625 # config.status only pays attention to the cache file if you give it
9626 # the --recheck option to rerun configure.
9627 #
9628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9630 # following values.
9631
9632 _ACEOF
9633
9634 # The following way of writing the cache mishandles newlines in values,
9635 # but we know of no workaround that is simple, portable, and efficient.
9636 # So, don't put newlines in cache variables' values.
9637 # Ultrix sh set writes to stderr and can't be redirected directly,
9638 # and sets the high bit in the cache file unless we assign to the vars.
9639 {
9640   (set) 2>&1 |
9641     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9642     *ac_space=\ *)
9643       # `set' does not quote correctly, so add quotes (double-quote
9644       # substitution turns \\\\ into \\, and sed turns \\ into \).
9645       sed -n \
9646         "s/'/'\\\\''/g;
9647           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9648       ;;
9649     *)
9650       # `set' quotes correctly as required by POSIX, so do not add quotes.
9651       sed -n \
9652         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9653       ;;
9654     esac;
9655 } |
9656   sed '
9657      t clear
9658      : clear
9659      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9660      t end
9661      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9662      : end' >>confcache
9663 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9664   if test -w $cache_file; then
9665     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9666     cat confcache >$cache_file
9667   else
9668     echo "not updating unwritable cache $cache_file"
9669   fi
9670 fi
9671 rm -f confcache
9672
9673 if test "$build" != "$host" ; then
9674     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9675         CC=$host_alias-gcc
9676         CXX=$host_alias-c++
9677         AR=$host_alias-ar
9678         RANLIB=$host_alias-ranlib
9679         DLLTOOL=$host_alias-dlltool
9680         RESCOMP=$host_alias-windres
9681         LD=$host_alias-ld
9682         NM=$host_alias-nm
9683         STRIP=$host_alias-strip
9684     else
9685         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9686 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9687    { (exit 1); exit 1; }; }
9688     fi
9689 fi
9690
9691 CFLAGS=${CFLAGS:=}
9692 ac_ext=c
9693 ac_cpp='$CPP $CPPFLAGS'
9694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9697 if test -n "$ac_tool_prefix"; then
9698   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9699 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9700 echo "$as_me:$LINENO: checking for $ac_word" >&5
9701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9702 if test "${ac_cv_prog_CC+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   if test -n "$CC"; then
9706   ac_cv_prog_CC="$CC" # Let the user override the test.
9707 else
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in $PATH
9710 do
9711   IFS=$as_save_IFS
9712   test -z "$as_dir" && as_dir=.
9713   for ac_exec_ext in '' $ac_executable_extensions; do
9714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9715     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717     break 2
9718   fi
9719 done
9720 done
9721
9722 fi
9723 fi
9724 CC=$ac_cv_prog_CC
9725 if test -n "$CC"; then
9726   echo "$as_me:$LINENO: result: $CC" >&5
9727 echo "${ECHO_T}$CC" >&6
9728 else
9729   echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6
9731 fi
9732
9733 fi
9734 if test -z "$ac_cv_prog_CC"; then
9735   ac_ct_CC=$CC
9736   # Extract the first word of "gcc", so it can be a program name with args.
9737 set dummy gcc; ac_word=$2
9738 echo "$as_me:$LINENO: checking for $ac_word" >&5
9739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   if test -n "$ac_ct_CC"; then
9744   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9745 else
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $PATH
9748 do
9749   IFS=$as_save_IFS
9750   test -z "$as_dir" && as_dir=.
9751   for ac_exec_ext in '' $ac_executable_extensions; do
9752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9753     ac_cv_prog_ac_ct_CC="gcc"
9754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9755     break 2
9756   fi
9757 done
9758 done
9759
9760 fi
9761 fi
9762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9763 if test -n "$ac_ct_CC"; then
9764   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9765 echo "${ECHO_T}$ac_ct_CC" >&6
9766 else
9767   echo "$as_me:$LINENO: result: no" >&5
9768 echo "${ECHO_T}no" >&6
9769 fi
9770
9771   CC=$ac_ct_CC
9772 else
9773   CC="$ac_cv_prog_CC"
9774 fi
9775
9776 if test -z "$CC"; then
9777   if test -n "$ac_tool_prefix"; then
9778   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9779 set dummy ${ac_tool_prefix}cc; ac_word=$2
9780 echo "$as_me:$LINENO: checking for $ac_word" >&5
9781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9782 if test "${ac_cv_prog_CC+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   if test -n "$CC"; then
9786   ac_cv_prog_CC="$CC" # Let the user override the test.
9787 else
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793   for ac_exec_ext in '' $ac_executable_extensions; do
9794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795     ac_cv_prog_CC="${ac_tool_prefix}cc"
9796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797     break 2
9798   fi
9799 done
9800 done
9801
9802 fi
9803 fi
9804 CC=$ac_cv_prog_CC
9805 if test -n "$CC"; then
9806   echo "$as_me:$LINENO: result: $CC" >&5
9807 echo "${ECHO_T}$CC" >&6
9808 else
9809   echo "$as_me:$LINENO: result: no" >&5
9810 echo "${ECHO_T}no" >&6
9811 fi
9812
9813 fi
9814 if test -z "$ac_cv_prog_CC"; then
9815   ac_ct_CC=$CC
9816   # Extract the first word of "cc", so it can be a program name with args.
9817 set dummy cc; ac_word=$2
9818 echo "$as_me:$LINENO: checking for $ac_word" >&5
9819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   if test -n "$ac_ct_CC"; then
9824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829   IFS=$as_save_IFS
9830   test -z "$as_dir" && as_dir=.
9831   for ac_exec_ext in '' $ac_executable_extensions; do
9832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833     ac_cv_prog_ac_ct_CC="cc"
9834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835     break 2
9836   fi
9837 done
9838 done
9839
9840 fi
9841 fi
9842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9843 if test -n "$ac_ct_CC"; then
9844   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9845 echo "${ECHO_T}$ac_ct_CC" >&6
9846 else
9847   echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6
9849 fi
9850
9851   CC=$ac_ct_CC
9852 else
9853   CC="$ac_cv_prog_CC"
9854 fi
9855
9856 fi
9857 if test -z "$CC"; then
9858   # Extract the first word of "cc", so it can be a program name with args.
9859 set dummy cc; ac_word=$2
9860 echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9862 if test "${ac_cv_prog_CC+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   if test -n "$CC"; then
9866   ac_cv_prog_CC="$CC" # Let the user override the test.
9867 else
9868   ac_prog_rejected=no
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872   IFS=$as_save_IFS
9873   test -z "$as_dir" && as_dir=.
9874   for ac_exec_ext in '' $ac_executable_extensions; do
9875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9877        ac_prog_rejected=yes
9878        continue
9879      fi
9880     ac_cv_prog_CC="cc"
9881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9882     break 2
9883   fi
9884 done
9885 done
9886
9887 if test $ac_prog_rejected = yes; then
9888   # We found a bogon in the path, so make sure we never use it.
9889   set dummy $ac_cv_prog_CC
9890   shift
9891   if test $# != 0; then
9892     # We chose a different compiler from the bogus one.
9893     # However, it has the same basename, so the bogon will be chosen
9894     # first if we set CC to just the basename; use the full file name.
9895     shift
9896     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9897   fi
9898 fi
9899 fi
9900 fi
9901 CC=$ac_cv_prog_CC
9902 if test -n "$CC"; then
9903   echo "$as_me:$LINENO: result: $CC" >&5
9904 echo "${ECHO_T}$CC" >&6
9905 else
9906   echo "$as_me:$LINENO: result: no" >&5
9907 echo "${ECHO_T}no" >&6
9908 fi
9909
9910 fi
9911 if test -z "$CC"; then
9912   if test -n "$ac_tool_prefix"; then
9913   for ac_prog in cl
9914   do
9915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9917 echo "$as_me:$LINENO: checking for $ac_word" >&5
9918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9919 if test "${ac_cv_prog_CC+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   if test -n "$CC"; then
9923   ac_cv_prog_CC="$CC" # Let the user override the test.
9924 else
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9927 do
9928   IFS=$as_save_IFS
9929   test -z "$as_dir" && as_dir=.
9930   for ac_exec_ext in '' $ac_executable_extensions; do
9931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9932     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9934     break 2
9935   fi
9936 done
9937 done
9938
9939 fi
9940 fi
9941 CC=$ac_cv_prog_CC
9942 if test -n "$CC"; then
9943   echo "$as_me:$LINENO: result: $CC" >&5
9944 echo "${ECHO_T}$CC" >&6
9945 else
9946   echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6
9948 fi
9949
9950     test -n "$CC" && break
9951   done
9952 fi
9953 if test -z "$CC"; then
9954   ac_ct_CC=$CC
9955   for ac_prog in cl
9956 do
9957   # Extract the first word of "$ac_prog", so it can be a program name with args.
9958 set dummy $ac_prog; ac_word=$2
9959 echo "$as_me:$LINENO: checking for $ac_word" >&5
9960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   if test -n "$ac_ct_CC"; then
9965   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970   IFS=$as_save_IFS
9971   test -z "$as_dir" && as_dir=.
9972   for ac_exec_ext in '' $ac_executable_extensions; do
9973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974     ac_cv_prog_ac_ct_CC="$ac_prog"
9975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9976     break 2
9977   fi
9978 done
9979 done
9980
9981 fi
9982 fi
9983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9984 if test -n "$ac_ct_CC"; then
9985   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9986 echo "${ECHO_T}$ac_ct_CC" >&6
9987 else
9988   echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6
9990 fi
9991
9992   test -n "$ac_ct_CC" && break
9993 done
9994
9995   CC=$ac_ct_CC
9996 fi
9997
9998 fi
9999
10000
10001 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10002 See \`config.log' for more details." >&5
10003 echo "$as_me: error: no acceptable C compiler found in \$PATH
10004 See \`config.log' for more details." >&2;}
10005    { (exit 1); exit 1; }; }
10006
10007 # Provide some information about the compiler.
10008 echo "$as_me:$LINENO:" \
10009      "checking for C compiler version" >&5
10010 ac_compiler=`set X $ac_compile; echo $2`
10011 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10012   (eval $ac_compiler --version </dev/null >&5) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }
10016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10017   (eval $ac_compiler -v </dev/null >&5) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }
10021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10022   (eval $ac_compiler -V </dev/null >&5) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }
10026
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 ac_clean_files_save=$ac_clean_files
10044 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10045 # Try to create an executable without -o first, disregard a.out.
10046 # It will help us diagnose broken compilers, and finding out an intuition
10047 # of exeext.
10048 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10049 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10050 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10052   (eval $ac_link_default) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; then
10056   # Find the output, starting from the most likely.  This scheme is
10057 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10058 # resort.
10059
10060 # Be careful to initialize this variable, since it used to be cached.
10061 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10062 ac_cv_exeext=
10063 # b.out is created by i960 compilers.
10064 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10065 do
10066   test -f "$ac_file" || continue
10067   case $ac_file in
10068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10069         ;;
10070     conftest.$ac_ext )
10071         # This is the source file.
10072         ;;
10073     [ab].out )
10074         # We found the default executable, but exeext='' is most
10075         # certainly right.
10076         break;;
10077     *.* )
10078         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10079         # FIXME: I believe we export ac_cv_exeext for Libtool,
10080         # but it would be cool to find out if it's true.  Does anybody
10081         # maintain Libtool? --akim.
10082         export ac_cv_exeext
10083         break;;
10084     * )
10085         break;;
10086   esac
10087 done
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10093 See \`config.log' for more details." >&5
10094 echo "$as_me: error: C compiler cannot create executables
10095 See \`config.log' for more details." >&2;}
10096    { (exit 77); exit 77; }; }
10097 fi
10098
10099 ac_exeext=$ac_cv_exeext
10100 echo "$as_me:$LINENO: result: $ac_file" >&5
10101 echo "${ECHO_T}$ac_file" >&6
10102
10103 # Check the compiler produces executables we can run.  If not, either
10104 # the compiler is broken, or we cross compile.
10105 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10106 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10107 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10108 # If not cross compiling, check that we can run a simple program.
10109 if test "$cross_compiling" != yes; then
10110   if { ac_try='./$ac_file'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116     cross_compiling=no
10117   else
10118     if test "$cross_compiling" = maybe; then
10119         cross_compiling=yes
10120     else
10121         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10122 If you meant to cross compile, use \`--host'.
10123 See \`config.log' for more details." >&5
10124 echo "$as_me: error: cannot run C compiled programs.
10125 If you meant to cross compile, use \`--host'.
10126 See \`config.log' for more details." >&2;}
10127    { (exit 1); exit 1; }; }
10128     fi
10129   fi
10130 fi
10131 echo "$as_me:$LINENO: result: yes" >&5
10132 echo "${ECHO_T}yes" >&6
10133
10134 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10135 ac_clean_files=$ac_clean_files_save
10136 # Check the compiler produces executables we can run.  If not, either
10137 # the compiler is broken, or we cross compile.
10138 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10139 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10140 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10141 echo "${ECHO_T}$cross_compiling" >&6
10142
10143 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10144 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146   (eval $ac_link) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; then
10150   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10151 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10152 # work properly (i.e., refer to `conftest.exe'), while it won't with
10153 # `rm'.
10154 for ac_file in conftest.exe conftest conftest.*; do
10155   test -f "$ac_file" || continue
10156   case $ac_file in
10157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10158     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10159           export ac_cv_exeext
10160           break;;
10161     * ) break;;
10162   esac
10163 done
10164 else
10165   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10166 See \`config.log' for more details." >&5
10167 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10168 See \`config.log' for more details." >&2;}
10169    { (exit 1); exit 1; }; }
10170 fi
10171
10172 rm -f conftest$ac_cv_exeext
10173 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10174 echo "${ECHO_T}$ac_cv_exeext" >&6
10175
10176 rm -f conftest.$ac_ext
10177 EXEEXT=$ac_cv_exeext
10178 ac_exeext=$EXEEXT
10179 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10180 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10181 if test "${ac_cv_objext+set}" = set; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 #line $LINENO "configure"
10186 /* confdefs.h.  */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h.  */
10191
10192 int
10193 main ()
10194 {
10195
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.o conftest.obj
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202   (eval $ac_compile) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; then
10206   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10207   case $ac_file in
10208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10209     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10210        break;;
10211   esac
10212 done
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10218 See \`config.log' for more details." >&5
10219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10220 See \`config.log' for more details." >&2;}
10221    { (exit 1); exit 1; }; }
10222 fi
10223
10224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10225 fi
10226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10227 echo "${ECHO_T}$ac_cv_objext" >&6
10228 OBJEXT=$ac_cv_objext
10229 ac_objext=$OBJEXT
10230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242
10243 int
10244 main ()
10245 {
10246 #ifndef __GNUC__
10247        choke me
10248 #endif
10249
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10256   (eval $ac_compile) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); } &&
10260          { ac_try='test -s conftest.$ac_objext'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; }; then
10266   ac_compiler_gnu=yes
10267 else
10268   echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ac_compiler_gnu=no
10272 fi
10273 rm -f conftest.$ac_objext conftest.$ac_ext
10274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10275
10276 fi
10277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10279 GCC=`test $ac_compiler_gnu = yes && echo yes`
10280 ac_test_CFLAGS=${CFLAGS+set}
10281 ac_save_CFLAGS=$CFLAGS
10282 CFLAGS="-g"
10283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10285 if test "${ac_cv_prog_cc_g+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   cat >conftest.$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295
10296 int
10297 main ()
10298 {
10299
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306   (eval $ac_compile) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } &&
10310          { ac_try='test -s conftest.$ac_objext'
10311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312   (eval $ac_try) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; }; then
10316   ac_cv_prog_cc_g=yes
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 ac_cv_prog_cc_g=no
10322 fi
10323 rm -f conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10326 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10327 if test "$ac_test_CFLAGS" = set; then
10328   CFLAGS=$ac_save_CFLAGS
10329 elif test $ac_cv_prog_cc_g = yes; then
10330   if test "$GCC" = yes; then
10331     CFLAGS="-g -O2"
10332   else
10333     CFLAGS="-g"
10334   fi
10335 else
10336   if test "$GCC" = yes; then
10337     CFLAGS="-O2"
10338   else
10339     CFLAGS=
10340   fi
10341 fi
10342 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10343 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10344 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   ac_cv_prog_cc_stdc=no
10348 ac_save_CC=$CC
10349 cat >conftest.$ac_ext <<_ACEOF
10350 #line $LINENO "configure"
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 #include <stdarg.h>
10357 #include <stdio.h>
10358 #include <sys/types.h>
10359 #include <sys/stat.h>
10360 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10361 struct buf { int x; };
10362 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10363 static char *e (p, i)
10364      char **p;
10365      int i;
10366 {
10367   return p[i];
10368 }
10369 static char *f (char * (*g) (char **, int), char **p, ...)
10370 {
10371   char *s;
10372   va_list v;
10373   va_start (v,p);
10374   s = g (p, va_arg (v,int));
10375   va_end (v);
10376   return s;
10377 }
10378 int test (int i, double x);
10379 struct s1 {int (*f) (int a);};
10380 struct s2 {int (*f) (double a);};
10381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10382 int argc;
10383 char **argv;
10384 int
10385 main ()
10386 {
10387 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 # Don't try gcc -ansi; that turns off useful extensions and
10393 # breaks some systems' header files.
10394 # AIX                   -qlanglvl=ansi
10395 # Ultrix and OSF/1      -std1
10396 # HP-UX 10.20 and later -Ae
10397 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10398 # SVR4                  -Xc -D__EXTENSIONS__
10399 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10400 do
10401   CC="$ac_save_CC $ac_arg"
10402   rm -f conftest.$ac_objext
10403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10404   (eval $ac_compile) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); } &&
10408          { ac_try='test -s conftest.$ac_objext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_cv_prog_cc_stdc=$ac_arg
10415 break
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 fi
10421 rm -f conftest.$ac_objext
10422 done
10423 rm -f conftest.$ac_ext conftest.$ac_objext
10424 CC=$ac_save_CC
10425
10426 fi
10427
10428 case "x$ac_cv_prog_cc_stdc" in
10429   x|xno)
10430     echo "$as_me:$LINENO: result: none needed" >&5
10431 echo "${ECHO_T}none needed" >&6 ;;
10432   *)
10433     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10434 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10435     CC="$CC $ac_cv_prog_cc_stdc" ;;
10436 esac
10437
10438 # Some people use a C++ compiler to compile C.  Since we use `exit',
10439 # in C++ we need to declare it.  In case someone uses the same compiler
10440 # for both compiling C and C++ we need to have the C++ compiler decide
10441 # the declaration of exit, since it's the most demanding environment.
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #ifndef __cplusplus
10444   choke me
10445 #endif
10446 _ACEOF
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } &&
10453          { ac_try='test -s conftest.$ac_objext'
10454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455   (eval $ac_try) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; }; then
10459   for ac_declaration in \
10460    ''\
10461    '#include <stdlib.h>' \
10462    'extern "C" void std::exit (int) throw (); using std::exit;' \
10463    'extern "C" void std::exit (int); using std::exit;' \
10464    'extern "C" void exit (int) throw ();' \
10465    'extern "C" void exit (int);' \
10466    'void exit (int);'
10467 do
10468   cat >conftest.$ac_ext <<_ACEOF
10469 #line $LINENO "configure"
10470 /* confdefs.h.  */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h.  */
10475 #include <stdlib.h>
10476 $ac_declaration
10477 int
10478 main ()
10479 {
10480 exit (42);
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487   (eval $ac_compile) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -s conftest.$ac_objext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   :
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 continue
10503 fi
10504 rm -f conftest.$ac_objext conftest.$ac_ext
10505   cat >conftest.$ac_ext <<_ACEOF
10506 #line $LINENO "configure"
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 $ac_declaration
10513 int
10514 main ()
10515 {
10516 exit (42);
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10523   (eval $ac_compile) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } &&
10527          { ac_try='test -s conftest.$ac_objext'
10528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529   (eval $ac_try) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; }; then
10533   break
10534 else
10535   echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10537
10538 fi
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10540 done
10541 rm -f conftest*
10542 if test -n "$ac_declaration"; then
10543   echo '#ifdef __cplusplus' >>confdefs.h
10544   echo $ac_declaration      >>confdefs.h
10545   echo '#endif'             >>confdefs.h
10546 fi
10547
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 fi
10553 rm -f conftest.$ac_objext conftest.$ac_ext
10554 ac_ext=c
10555 ac_cpp='$CPP $CPPFLAGS'
10556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559
10560
10561
10562 ac_ext=c
10563 ac_cpp='$CPP $CPPFLAGS'
10564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10568 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10569 # On Suns, sometimes $CPP names a directory.
10570 if test -n "$CPP" && test -d "$CPP"; then
10571   CPP=
10572 fi
10573 if test -z "$CPP"; then
10574   if test "${ac_cv_prog_CPP+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577       # Double quotes because CPP needs to be expanded
10578     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10579     do
10580       ac_preproc_ok=false
10581 for ac_c_preproc_warn_flag in '' yes
10582 do
10583   # Use a header file that comes with gcc, so configuring glibc
10584   # with a fresh cross-compiler works.
10585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10586   # <limits.h> exists even on freestanding compilers.
10587   # On the NeXT, cc -E runs the code through the compiler's parser,
10588   # not just through cpp. "Syntax error" is here to catch this case.
10589   cat >conftest.$ac_ext <<_ACEOF
10590 #line $LINENO "configure"
10591 /* confdefs.h.  */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h.  */
10596 #ifdef __STDC__
10597 # include <limits.h>
10598 #else
10599 # include <assert.h>
10600 #endif
10601                      Syntax error
10602 _ACEOF
10603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10605   ac_status=$?
10606   grep -v '^ *+' conftest.er1 >conftest.err
10607   rm -f conftest.er1
10608   cat conftest.err >&5
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } >/dev/null; then
10611   if test -s conftest.err; then
10612     ac_cpp_err=$ac_c_preproc_warn_flag
10613   else
10614     ac_cpp_err=
10615   fi
10616 else
10617   ac_cpp_err=yes
10618 fi
10619 if test -z "$ac_cpp_err"; then
10620   :
10621 else
10622   echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625   # Broken: fails on valid input.
10626 continue
10627 fi
10628 rm -f conftest.err conftest.$ac_ext
10629
10630   # OK, works on sane cases.  Now check whether non-existent headers
10631   # can be detected and how.
10632   cat >conftest.$ac_ext <<_ACEOF
10633 #line $LINENO "configure"
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639 #include <ac_nonexistent.h>
10640 _ACEOF
10641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } >/dev/null; then
10649   if test -s conftest.err; then
10650     ac_cpp_err=$ac_c_preproc_warn_flag
10651   else
10652     ac_cpp_err=
10653   fi
10654 else
10655   ac_cpp_err=yes
10656 fi
10657 if test -z "$ac_cpp_err"; then
10658   # Broken: success on invalid input.
10659 continue
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664   # Passes both tests.
10665 ac_preproc_ok=:
10666 break
10667 fi
10668 rm -f conftest.err conftest.$ac_ext
10669
10670 done
10671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10672 rm -f conftest.err conftest.$ac_ext
10673 if $ac_preproc_ok; then
10674   break
10675 fi
10676
10677     done
10678     ac_cv_prog_CPP=$CPP
10679
10680 fi
10681   CPP=$ac_cv_prog_CPP
10682 else
10683   ac_cv_prog_CPP=$CPP
10684 fi
10685 echo "$as_me:$LINENO: result: $CPP" >&5
10686 echo "${ECHO_T}$CPP" >&6
10687 ac_preproc_ok=false
10688 for ac_c_preproc_warn_flag in '' yes
10689 do
10690   # Use a header file that comes with gcc, so configuring glibc
10691   # with a fresh cross-compiler works.
10692   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10693   # <limits.h> exists even on freestanding compilers.
10694   # On the NeXT, cc -E runs the code through the compiler's parser,
10695   # not just through cpp. "Syntax error" is here to catch this case.
10696   cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 #ifdef __STDC__
10704 # include <limits.h>
10705 #else
10706 # include <assert.h>
10707 #endif
10708                      Syntax error
10709 _ACEOF
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } >/dev/null; then
10718   if test -s conftest.err; then
10719     ac_cpp_err=$ac_c_preproc_warn_flag
10720   else
10721     ac_cpp_err=
10722   fi
10723 else
10724   ac_cpp_err=yes
10725 fi
10726 if test -z "$ac_cpp_err"; then
10727   :
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732   # Broken: fails on valid input.
10733 continue
10734 fi
10735 rm -f conftest.err conftest.$ac_ext
10736
10737   # OK, works on sane cases.  Now check whether non-existent headers
10738   # can be detected and how.
10739   cat >conftest.$ac_ext <<_ACEOF
10740 #line $LINENO "configure"
10741 /* confdefs.h.  */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h.  */
10746 #include <ac_nonexistent.h>
10747 _ACEOF
10748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10750   ac_status=$?
10751   grep -v '^ *+' conftest.er1 >conftest.err
10752   rm -f conftest.er1
10753   cat conftest.err >&5
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } >/dev/null; then
10756   if test -s conftest.err; then
10757     ac_cpp_err=$ac_c_preproc_warn_flag
10758   else
10759     ac_cpp_err=
10760   fi
10761 else
10762   ac_cpp_err=yes
10763 fi
10764 if test -z "$ac_cpp_err"; then
10765   # Broken: success on invalid input.
10766 continue
10767 else
10768   echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10770
10771   # Passes both tests.
10772 ac_preproc_ok=:
10773 break
10774 fi
10775 rm -f conftest.err conftest.$ac_ext
10776
10777 done
10778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10779 rm -f conftest.err conftest.$ac_ext
10780 if $ac_preproc_ok; then
10781   :
10782 else
10783   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10784 See \`config.log' for more details." >&5
10785 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10786 See \`config.log' for more details." >&2;}
10787    { (exit 1); exit 1; }; }
10788 fi
10789
10790 ac_ext=c
10791 ac_cpp='$CPP $CPPFLAGS'
10792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10795
10796
10797 echo "$as_me:$LINENO: checking for egrep" >&5
10798 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10799 if test "${ac_cv_prog_egrep+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10803     then ac_cv_prog_egrep='grep -E'
10804     else ac_cv_prog_egrep='egrep'
10805     fi
10806 fi
10807 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10808 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10809  EGREP=$ac_cv_prog_egrep
10810
10811
10812 if test $ac_cv_c_compiler_gnu = yes; then
10813     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10814 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10815 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10816   echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818     ac_pattern="Autoconf.*'x'"
10819   cat >conftest.$ac_ext <<_ACEOF
10820 #line $LINENO "configure"
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826 #include <sgtty.h>
10827 Autoconf TIOCGETP
10828 _ACEOF
10829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10830   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10831   ac_cv_prog_gcc_traditional=yes
10832 else
10833   ac_cv_prog_gcc_traditional=no
10834 fi
10835 rm -f conftest*
10836
10837
10838   if test $ac_cv_prog_gcc_traditional = no; then
10839     cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 #include <termio.h>
10847 Autoconf TCGETA
10848 _ACEOF
10849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10850   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10851   ac_cv_prog_gcc_traditional=yes
10852 fi
10853 rm -f conftest*
10854
10855   fi
10856 fi
10857 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10858 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10859   if test $ac_cv_prog_gcc_traditional = yes; then
10860     CC="$CC -traditional"
10861   fi
10862 fi
10863
10864
10865
10866
10867 ac_ext=cc
10868 ac_cpp='$CXXCPP $CPPFLAGS'
10869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10872
10873
10874 CXXFLAGS=${CXXFLAGS:=}
10875 ac_ext=cc
10876 ac_cpp='$CXXCPP $CPPFLAGS'
10877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10880 if test -n "$ac_tool_prefix"; then
10881   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10882   do
10883     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10885 echo "$as_me:$LINENO: checking for $ac_word" >&5
10886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10887 if test "${ac_cv_prog_CXX+set}" = set; then
10888   echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890   if test -n "$CXX"; then
10891   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10892 else
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10895 do
10896   IFS=$as_save_IFS
10897   test -z "$as_dir" && as_dir=.
10898   for ac_exec_ext in '' $ac_executable_extensions; do
10899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902     break 2
10903   fi
10904 done
10905 done
10906
10907 fi
10908 fi
10909 CXX=$ac_cv_prog_CXX
10910 if test -n "$CXX"; then
10911   echo "$as_me:$LINENO: result: $CXX" >&5
10912 echo "${ECHO_T}$CXX" >&6
10913 else
10914   echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6
10916 fi
10917
10918     test -n "$CXX" && break
10919   done
10920 fi
10921 if test -z "$CXX"; then
10922   ac_ct_CXX=$CXX
10923   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10924 do
10925   # Extract the first word of "$ac_prog", so it can be a program name with args.
10926 set dummy $ac_prog; ac_word=$2
10927 echo "$as_me:$LINENO: checking for $ac_word" >&5
10928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10929 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10930   echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932   if test -n "$ac_ct_CXX"; then
10933   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10934 else
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938   IFS=$as_save_IFS
10939   test -z "$as_dir" && as_dir=.
10940   for ac_exec_ext in '' $ac_executable_extensions; do
10941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942     ac_cv_prog_ac_ct_CXX="$ac_prog"
10943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944     break 2
10945   fi
10946 done
10947 done
10948
10949 fi
10950 fi
10951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10952 if test -n "$ac_ct_CXX"; then
10953   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10954 echo "${ECHO_T}$ac_ct_CXX" >&6
10955 else
10956   echo "$as_me:$LINENO: result: no" >&5
10957 echo "${ECHO_T}no" >&6
10958 fi
10959
10960   test -n "$ac_ct_CXX" && break
10961 done
10962 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10963
10964   CXX=$ac_ct_CXX
10965 fi
10966
10967
10968 # Provide some information about the compiler.
10969 echo "$as_me:$LINENO:" \
10970      "checking for C++ compiler version" >&5
10971 ac_compiler=`set X $ac_compile; echo $2`
10972 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10973   (eval $ac_compiler --version </dev/null >&5) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }
10977 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10978   (eval $ac_compiler -v </dev/null >&5) 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }
10982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10983   (eval $ac_compiler -V </dev/null >&5) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }
10987
10988 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10989 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10990 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   cat >conftest.$ac_ext <<_ACEOF
10994 #line $LINENO "configure"
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000
11001 int
11002 main ()
11003 {
11004 #ifndef __GNUC__
11005        choke me
11006 #endif
11007
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014   (eval $ac_compile) 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } &&
11018          { ac_try='test -s conftest.$ac_objext'
11019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020   (eval $ac_try) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; }; then
11024   ac_compiler_gnu=yes
11025 else
11026   echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029 ac_compiler_gnu=no
11030 fi
11031 rm -f conftest.$ac_objext conftest.$ac_ext
11032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11033
11034 fi
11035 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11036 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11037 GXX=`test $ac_compiler_gnu = yes && echo yes`
11038 ac_test_CXXFLAGS=${CXXFLAGS+set}
11039 ac_save_CXXFLAGS=$CXXFLAGS
11040 CXXFLAGS="-g"
11041 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11042 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11043 if test "${ac_cv_prog_cxx_g+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   cat >conftest.$ac_ext <<_ACEOF
11047 #line $LINENO "configure"
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053
11054 int
11055 main ()
11056 {
11057
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064   (eval $ac_compile) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } &&
11068          { ac_try='test -s conftest.$ac_objext'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; }; then
11074   ac_cv_prog_cxx_g=yes
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 ac_cv_prog_cxx_g=no
11080 fi
11081 rm -f conftest.$ac_objext conftest.$ac_ext
11082 fi
11083 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11084 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11085 if test "$ac_test_CXXFLAGS" = set; then
11086   CXXFLAGS=$ac_save_CXXFLAGS
11087 elif test $ac_cv_prog_cxx_g = yes; then
11088   if test "$GXX" = yes; then
11089     CXXFLAGS="-g -O2"
11090   else
11091     CXXFLAGS="-g"
11092   fi
11093 else
11094   if test "$GXX" = yes; then
11095     CXXFLAGS="-O2"
11096   else
11097     CXXFLAGS=
11098   fi
11099 fi
11100 for ac_declaration in \
11101    ''\
11102    '#include <stdlib.h>' \
11103    'extern "C" void std::exit (int) throw (); using std::exit;' \
11104    'extern "C" void std::exit (int); using std::exit;' \
11105    'extern "C" void exit (int) throw ();' \
11106    'extern "C" void exit (int);' \
11107    'void exit (int);'
11108 do
11109   cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <stdlib.h>
11117 $ac_declaration
11118 int
11119 main ()
11120 {
11121 exit (42);
11122   ;
11123   return 0;
11124 }
11125 _ACEOF
11126 rm -f conftest.$ac_objext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128   (eval $ac_compile) 2>&5
11129   ac_status=$?
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -s conftest.$ac_objext'
11133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134   (eval $ac_try) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }; then
11138   :
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 continue
11144 fi
11145 rm -f conftest.$ac_objext conftest.$ac_ext
11146   cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 $ac_declaration
11154 int
11155 main ()
11156 {
11157 exit (42);
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164   (eval $ac_compile) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); } &&
11168          { ac_try='test -s conftest.$ac_objext'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   break
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 fi
11180 rm -f conftest.$ac_objext conftest.$ac_ext
11181 done
11182 rm -f conftest*
11183 if test -n "$ac_declaration"; then
11184   echo '#ifdef __cplusplus' >>confdefs.h
11185   echo $ac_declaration      >>confdefs.h
11186   echo '#endif'             >>confdefs.h
11187 fi
11188
11189 ac_ext=cc
11190 ac_cpp='$CXXCPP $CPPFLAGS'
11191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11194
11195
11196 ac_ext=c
11197 ac_cpp='$CPP $CPPFLAGS'
11198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11201
11202
11203 if test -n "$ac_tool_prefix"; then
11204   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11206 echo "$as_me:$LINENO: checking for $ac_word" >&5
11207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208 if test "${ac_cv_prog_RANLIB+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   if test -n "$RANLIB"; then
11212   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11216 do
11217   IFS=$as_save_IFS
11218   test -z "$as_dir" && as_dir=.
11219   for ac_exec_ext in '' $ac_executable_extensions; do
11220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223     break 2
11224   fi
11225 done
11226 done
11227
11228 fi
11229 fi
11230 RANLIB=$ac_cv_prog_RANLIB
11231 if test -n "$RANLIB"; then
11232   echo "$as_me:$LINENO: result: $RANLIB" >&5
11233 echo "${ECHO_T}$RANLIB" >&6
11234 else
11235   echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6
11237 fi
11238
11239 fi
11240 if test -z "$ac_cv_prog_RANLIB"; then
11241   ac_ct_RANLIB=$RANLIB
11242   # Extract the first word of "ranlib", so it can be a program name with args.
11243 set dummy ranlib; ac_word=$2
11244 echo "$as_me:$LINENO: checking for $ac_word" >&5
11245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   if test -n "$ac_ct_RANLIB"; then
11250   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11251 else
11252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253 for as_dir in $PATH
11254 do
11255   IFS=$as_save_IFS
11256   test -z "$as_dir" && as_dir=.
11257   for ac_exec_ext in '' $ac_executable_extensions; do
11258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11259     ac_cv_prog_ac_ct_RANLIB="ranlib"
11260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11261     break 2
11262   fi
11263 done
11264 done
11265
11266   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11267 fi
11268 fi
11269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11270 if test -n "$ac_ct_RANLIB"; then
11271   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11272 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11273 else
11274   echo "$as_me:$LINENO: result: no" >&5
11275 echo "${ECHO_T}no" >&6
11276 fi
11277
11278   RANLIB=$ac_ct_RANLIB
11279 else
11280   RANLIB="$ac_cv_prog_RANLIB"
11281 fi
11282
11283
11284 # Extract the first word of "ar", so it can be a program name with args.
11285 set dummy ar; ac_word=$2
11286 echo "$as_me:$LINENO: checking for $ac_word" >&5
11287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11288 if test "${ac_cv_prog_AR+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   if test -n "$AR"; then
11292   ac_cv_prog_AR="$AR" # Let the user override the test.
11293 else
11294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11296 do
11297   IFS=$as_save_IFS
11298   test -z "$as_dir" && as_dir=.
11299   for ac_exec_ext in '' $ac_executable_extensions; do
11300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301     ac_cv_prog_AR="ar"
11302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303     break 2
11304   fi
11305 done
11306 done
11307
11308   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11309 fi
11310 fi
11311 AR=$ac_cv_prog_AR
11312 if test -n "$AR"; then
11313   echo "$as_me:$LINENO: result: $AR" >&5
11314 echo "${ECHO_T}$AR" >&6
11315 else
11316   echo "$as_me:$LINENO: result: no" >&5
11317 echo "${ECHO_T}no" >&6
11318 fi
11319
11320
11321 # Find a good install program.  We prefer a C program (faster),
11322 # so one script is as good as another.  But avoid the broken or
11323 # incompatible versions:
11324 # SysV /etc/install, /usr/sbin/install
11325 # SunOS /usr/etc/install
11326 # IRIX /sbin/install
11327 # AIX /bin/install
11328 # AmigaOS /C/install, which installs bootblocks on floppy discs
11329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11332 # ./install, which can be erroneously created by make from ./install.sh.
11333 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11334 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11335 if test -z "$INSTALL"; then
11336 if test "${ac_cv_path_install+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342   IFS=$as_save_IFS
11343   test -z "$as_dir" && as_dir=.
11344   # Account for people who put trailing slashes in PATH elements.
11345 case $as_dir/ in
11346   ./ | .// | /cC/* | \
11347   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11348   /usr/ucb/* ) ;;
11349   *)
11350     # OSF1 and SCO ODT 3.0 have their own names for install.
11351     # Don't use installbsd from OSF since it installs stuff as root
11352     # by default.
11353     for ac_prog in ginstall scoinst install; do
11354       for ac_exec_ext in '' $ac_executable_extensions; do
11355         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11356           if test $ac_prog = install &&
11357             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11358             # AIX install.  It has an incompatible calling convention.
11359             :
11360           elif test $ac_prog = install &&
11361             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11362             # program-specific install script used by HP pwplus--don't use.
11363             :
11364           else
11365             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11366             break 3
11367           fi
11368         fi
11369       done
11370     done
11371     ;;
11372 esac
11373 done
11374
11375
11376 fi
11377   if test "${ac_cv_path_install+set}" = set; then
11378     INSTALL=$ac_cv_path_install
11379   else
11380     # As a last resort, use the slow shell script.  We don't cache a
11381     # path for INSTALL within a source directory, because that will
11382     # break other packages using the cache if that directory is
11383     # removed, or if the path is relative.
11384     INSTALL=$ac_install_sh
11385   fi
11386 fi
11387 echo "$as_me:$LINENO: result: $INSTALL" >&5
11388 echo "${ECHO_T}$INSTALL" >&6
11389
11390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11391 # It thinks the first close brace ends the variable substitution.
11392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11393
11394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11395
11396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11397
11398
11399 case ${INSTALL} in
11400   /* ) # Absolute
11401      ;;
11402   ?:* ) # Drive letter, considered as absolute.
11403      ;;
11404   *)
11405      INSTALL=`pwd`/${INSTALL} ;;
11406 esac
11407
11408 case ${host} in
11409     *-hp-hpux* )
11410         INSTALL_DIR="mkdir"
11411         ;;
11412
11413     *)  INSTALL_DIR="$INSTALL -d"
11414         ;;
11415 esac
11416
11417
11418 case "${host}" in
11419
11420                 powerpc-*-darwin* )
11421         INSTALL_PROGRAM="cp -fp"
11422         INSTALL_DATA="cp -fp"
11423         ;;
11424     *)
11425         ;;
11426 esac
11427
11428 # Extract the first word of "strip", so it can be a program name with args.
11429 set dummy strip; ac_word=$2
11430 echo "$as_me:$LINENO: checking for $ac_word" >&5
11431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11432 if test "${ac_cv_prog_STRIP+set}" = set; then
11433   echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435   if test -n "$STRIP"; then
11436   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11437 else
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $PATH
11440 do
11441   IFS=$as_save_IFS
11442   test -z "$as_dir" && as_dir=.
11443   for ac_exec_ext in '' $ac_executable_extensions; do
11444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445     ac_cv_prog_STRIP="strip"
11446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11447     break 2
11448   fi
11449 done
11450 done
11451
11452   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11453 fi
11454 fi
11455 STRIP=$ac_cv_prog_STRIP
11456 if test -n "$STRIP"; then
11457   echo "$as_me:$LINENO: result: $STRIP" >&5
11458 echo "${ECHO_T}$STRIP" >&6
11459 else
11460   echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11462 fi
11463
11464
11465 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11466 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11467 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470
11471     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11472             egrep -s GNU > /dev/null); then
11473         wx_cv_prog_makeisgnu="yes"
11474     else
11475         wx_cv_prog_makeisgnu="no"
11476     fi
11477
11478 fi
11479 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11480 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11481
11482 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11483     IF_GNU_MAKE=""
11484 else
11485     IF_GNU_MAKE="#"
11486 fi
11487
11488
11489
11490 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11491 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11492 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11493 if test "${wx_cv_prog_makevpath+set}" = set; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496
11497 cat - << EOF > confMake
11498 check : file
11499         cp \$? \$@
11500         cp \$? final_file
11501 EOF
11502
11503 if test ! -d sub ; then
11504   mkdir sub
11505 fi
11506 echo dummy > sub/file
11507 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11508 RESULT=$?
11509 rm -f sub/file check final_file confMake
11510 rmdir sub
11511 if test "$RESULT" = 0; then
11512   wx_cv_prog_makevpath="yes"
11513 else
11514   wx_cv_prog_makevpath="no"
11515 fi
11516
11517 fi
11518 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11519 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11520
11521 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11522 { { echo "$as_me:$LINENO: error:
11523 You need a make-utility that is able to use the variable
11524 VPATH correctly.
11525 If your version of make does not support VPATH correctly,
11526 please install GNU-make (possibly as gmake), and start
11527 configure with the following command:
11528 export MAKE=gmake; ./configure  for sh-type shells
11529 setenv MAKE gmake; ./configure  for csh-type shells
11530 Also please do remember to use gmake in this case every time
11531 you are trying to compile.
11532 " >&5
11533 echo "$as_me: error:
11534 You need a make-utility that is able to use the variable
11535 VPATH correctly.
11536 If your version of make does not support VPATH correctly,
11537 please install GNU-make (possibly as gmake), and start
11538 configure with the following command:
11539 export MAKE=gmake; ./configure  for sh-type shells
11540 setenv MAKE gmake; ./configure  for csh-type shells
11541 Also please do remember to use gmake in this case every time
11542 you are trying to compile.
11543 " >&2;}
11544    { (exit 1); exit 1; }; }
11545 fi fi
11546 for ac_prog in 'bison -y' byacc
11547 do
11548   # Extract the first word of "$ac_prog", so it can be a program name with args.
11549 set dummy $ac_prog; ac_word=$2
11550 echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552 if test "${ac_cv_prog_YACC+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   if test -n "$YACC"; then
11556   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563   for ac_exec_ext in '' $ac_executable_extensions; do
11564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565     ac_cv_prog_YACC="$ac_prog"
11566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567     break 2
11568   fi
11569 done
11570 done
11571
11572 fi
11573 fi
11574 YACC=$ac_cv_prog_YACC
11575 if test -n "$YACC"; then
11576   echo "$as_me:$LINENO: result: $YACC" >&5
11577 echo "${ECHO_T}$YACC" >&6
11578 else
11579   echo "$as_me:$LINENO: result: no" >&5
11580 echo "${ECHO_T}no" >&6
11581 fi
11582
11583   test -n "$YACC" && break
11584 done
11585 test -n "$YACC" || YACC="yacc"
11586
11587
11588 for ac_prog in flex lex
11589 do
11590   # Extract the first word of "$ac_prog", so it can be a program name with args.
11591 set dummy $ac_prog; ac_word=$2
11592 echo "$as_me:$LINENO: checking for $ac_word" >&5
11593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11594 if test "${ac_cv_prog_LEX+set}" = set; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   if test -n "$LEX"; then
11598   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11599 else
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11602 do
11603   IFS=$as_save_IFS
11604   test -z "$as_dir" && as_dir=.
11605   for ac_exec_ext in '' $ac_executable_extensions; do
11606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607     ac_cv_prog_LEX="$ac_prog"
11608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11609     break 2
11610   fi
11611 done
11612 done
11613
11614 fi
11615 fi
11616 LEX=$ac_cv_prog_LEX
11617 if test -n "$LEX"; then
11618   echo "$as_me:$LINENO: result: $LEX" >&5
11619 echo "${ECHO_T}$LEX" >&6
11620 else
11621   echo "$as_me:$LINENO: result: no" >&5
11622 echo "${ECHO_T}no" >&6
11623 fi
11624
11625   test -n "$LEX" && break
11626 done
11627 test -n "$LEX" || LEX=":"
11628
11629 if test -z "$LEXLIB"
11630 then
11631   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11632 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11633 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-lfl  $LIBS"
11638 cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645
11646 /* Override any gcc2 internal prototype to avoid an error.  */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 /* We use char because int might match the return type of a gcc2
11651    builtin and then its argument prototype would still apply.  */
11652 char yywrap ();
11653 int
11654 main ()
11655 {
11656 yywrap ();
11657   ;
11658   return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663   (eval $ac_link) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -s conftest$ac_exeext'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   ac_cv_lib_fl_yywrap=yes
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_cv_lib_fl_yywrap=no
11679 fi
11680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11682 fi
11683 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11684 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11685 if test $ac_cv_lib_fl_yywrap = yes; then
11686   LEXLIB="-lfl"
11687 else
11688   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11689 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11690 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693   ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-ll  $LIBS"
11695 cat >conftest.$ac_ext <<_ACEOF
11696 #line $LINENO "configure"
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702
11703 /* Override any gcc2 internal prototype to avoid an error.  */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 /* We use char because int might match the return type of a gcc2
11708    builtin and then its argument prototype would still apply.  */
11709 char yywrap ();
11710 int
11711 main ()
11712 {
11713 yywrap ();
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720   (eval $ac_link) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -s conftest$ac_exeext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   ac_cv_lib_l_yywrap=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_cv_lib_l_yywrap=no
11736 fi
11737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11741 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11742 if test $ac_cv_lib_l_yywrap = yes; then
11743   LEXLIB="-ll"
11744 fi
11745
11746 fi
11747
11748 fi
11749
11750 if test "x$LEX" != "x:"; then
11751   echo "$as_me:$LINENO: checking lex output file root" >&5
11752 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11753 if test "${ac_cv_prog_lex_root+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   # The minimal lex program is just a single line: %%.  But some broken lexes
11757 # (Solaris, I think it was) want two %% lines, so accommodate them.
11758 cat >conftest.l <<_ACEOF
11759 %%
11760 %%
11761 _ACEOF
11762 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11763   (eval $LEX conftest.l) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }
11767 if test -f lex.yy.c; then
11768   ac_cv_prog_lex_root=lex.yy
11769 elif test -f lexyy.c; then
11770   ac_cv_prog_lex_root=lexyy
11771 else
11772   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11773 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11774    { (exit 1); exit 1; }; }
11775 fi
11776 fi
11777 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11778 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11779 rm -f conftest.l
11780 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11781
11782 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11783 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11784 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11785   echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787   # POSIX says lex can declare yytext either as a pointer or an array; the
11788 # default is implementation-dependent. Figure out which it is, since
11789 # not all implementations provide the %pointer and %array declarations.
11790 ac_cv_prog_lex_yytext_pointer=no
11791 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11792 ac_save_LIBS=$LIBS
11793 LIBS="$LIBS $LEXLIB"
11794 cat >conftest.$ac_ext <<_ACEOF
11795 `cat $LEX_OUTPUT_ROOT.c`
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799   (eval $ac_link) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); } &&
11803          { ac_try='test -s conftest$ac_exeext'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   ac_cv_prog_lex_yytext_pointer=yes
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 fi
11815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_save_LIBS
11817 rm -f "${LEX_OUTPUT_ROOT}.c"
11818
11819 fi
11820 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11821 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11822 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11823
11824 cat >>confdefs.h <<\_ACEOF
11825 #define YYTEXT_POINTER 1
11826 _ACEOF
11827
11828 fi
11829
11830 fi
11831
11832 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11833 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11834 LN_S=$as_ln_s
11835 if test "$LN_S" = "ln -s"; then
11836   echo "$as_me:$LINENO: result: yes" >&5
11837 echo "${ECHO_T}yes" >&6
11838 else
11839   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11840 echo "${ECHO_T}no, using $LN_S" >&6
11841 fi
11842
11843
11844 case "${host}" in
11845   *-pc-os2_emx | *-pc-os2-emx )
11846             LIBS="$LIBS -lstdcpp"
11847       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11848                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11849 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11850 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   ac_check_lib_save_LIBS=$LIBS
11854 LIBS="-lcExt  $LIBS"
11855 cat >conftest.$ac_ext <<_ACEOF
11856 #line $LINENO "configure"
11857 /* confdefs.h.  */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h.  */
11862
11863 /* Override any gcc2 internal prototype to avoid an error.  */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868    builtin and then its argument prototype would still apply.  */
11869 char drand48 ();
11870 int
11871 main ()
11872 {
11873 drand48 ();
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880   (eval $ac_link) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); } &&
11884          { ac_try='test -s conftest$ac_exeext'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; }; then
11890   ac_cv_lib_cExt_drand48=yes
11891 else
11892   echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_cv_lib_cExt_drand48=no
11896 fi
11897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11899 fi
11900 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11901 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11902 if test $ac_cv_lib_cExt_drand48 = yes; then
11903   LIBS="$LIBS -lcExt"
11904 fi
11905
11906       else
11907                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11908       fi
11909   ;;
11910 esac
11911
11912
11913 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11914     echo "$as_me:$LINENO: checking for strings.h" >&5
11915 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11916 if test "${ac_cv_header_strings_h+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   ac_cv_header_strings_h=no
11920 fi
11921 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11922 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11923     if test "$ac_cv_header_strings_h" = "no"; then
11924         echo "$as_me:$LINENO: result: forced no into cache" >&5
11925 echo "${ECHO_T}forced no into cache" >&6
11926     else
11927         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11928 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11929     fi
11930 fi
11931 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11932 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11933 if test "${ac_cv_header_stdc+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   cat >conftest.$ac_ext <<_ACEOF
11937 #line $LINENO "configure"
11938 /* confdefs.h.  */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h.  */
11943 #include <stdlib.h>
11944 #include <stdarg.h>
11945 #include <string.h>
11946 #include <float.h>
11947
11948 int
11949 main ()
11950 {
11951
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958   (eval $ac_compile) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } &&
11962          { ac_try='test -s conftest.$ac_objext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   ac_cv_header_stdc=yes
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_cv_header_stdc=no
11974 fi
11975 rm -f conftest.$ac_objext conftest.$ac_ext
11976
11977 if test $ac_cv_header_stdc = yes; then
11978   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11979   cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 #include <string.h>
11987
11988 _ACEOF
11989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11990   $EGREP "memchr" >/dev/null 2>&1; then
11991   :
11992 else
11993   ac_cv_header_stdc=no
11994 fi
11995 rm -f conftest*
11996
11997 fi
11998
11999 if test $ac_cv_header_stdc = yes; then
12000   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12001   cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 #include <stdlib.h>
12009
12010 _ACEOF
12011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012   $EGREP "free" >/dev/null 2>&1; then
12013   :
12014 else
12015   ac_cv_header_stdc=no
12016 fi
12017 rm -f conftest*
12018
12019 fi
12020
12021 if test $ac_cv_header_stdc = yes; then
12022   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12023   if test "$cross_compiling" = yes; then
12024   :
12025 else
12026   cat >conftest.$ac_ext <<_ACEOF
12027 #line $LINENO "configure"
12028 /* confdefs.h.  */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h.  */
12033 #include <ctype.h>
12034 #if ((' ' & 0x0FF) == 0x020)
12035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12037 #else
12038 # define ISLOWER(c) \
12039                    (('a' <= (c) && (c) <= 'i') \
12040                      || ('j' <= (c) && (c) <= 'r') \
12041                      || ('s' <= (c) && (c) <= 'z'))
12042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12043 #endif
12044
12045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12046 int
12047 main ()
12048 {
12049   int i;
12050   for (i = 0; i < 256; i++)
12051     if (XOR (islower (i), ISLOWER (i))
12052         || toupper (i) != TOUPPER (i))
12053       exit(2);
12054   exit (0);
12055 }
12056 _ACEOF
12057 rm -f conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059   (eval $ac_link) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064   (eval $ac_try) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; }; then
12068   :
12069 else
12070   echo "$as_me: program exited with status $ac_status" >&5
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ( exit $ac_status )
12075 ac_cv_header_stdc=no
12076 fi
12077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 fi
12079 fi
12080 fi
12081 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12082 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12083 if test $ac_cv_header_stdc = yes; then
12084
12085 cat >>confdefs.h <<\_ACEOF
12086 #define STDC_HEADERS 1
12087 _ACEOF
12088
12089 fi
12090
12091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12102                   inttypes.h stdint.h unistd.h
12103 do
12104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12105 echo "$as_me:$LINENO: checking for $ac_header" >&5
12106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108   echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110   cat >conftest.$ac_ext <<_ACEOF
12111 #line $LINENO "configure"
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117 $ac_includes_default
12118
12119 #include <$ac_header>
12120 _ACEOF
12121 rm -f conftest.$ac_objext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123   (eval $ac_compile) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -s conftest.$ac_objext'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133   eval "$as_ac_Header=yes"
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 eval "$as_ac_Header=no"
12139 fi
12140 rm -f conftest.$ac_objext conftest.$ac_ext
12141 fi
12142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12145   cat >>confdefs.h <<_ACEOF
12146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147 _ACEOF
12148
12149 fi
12150
12151 done
12152
12153
12154
12155 for ac_header in strings.h
12156 do
12157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12159   echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 fi
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12166 else
12167   # Is the header compilable?
12168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12170 cat >conftest.$ac_ext <<_ACEOF
12171 #line $LINENO "configure"
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177 $ac_includes_default
12178 #include <$ac_header>
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182   (eval $ac_compile) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } &&
12186          { ac_try='test -s conftest.$ac_objext'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   ac_header_compiler=yes
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 ac_header_compiler=no
12198 fi
12199 rm -f conftest.$ac_objext conftest.$ac_ext
12200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12201 echo "${ECHO_T}$ac_header_compiler" >&6
12202
12203 # Is the header present?
12204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12207 #line $LINENO "configure"
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213 #include <$ac_header>
12214 _ACEOF
12215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } >/dev/null; then
12223   if test -s conftest.err; then
12224     ac_cpp_err=$ac_c_preproc_warn_flag
12225   else
12226     ac_cpp_err=
12227   fi
12228 else
12229   ac_cpp_err=yes
12230 fi
12231 if test -z "$ac_cpp_err"; then
12232   ac_header_preproc=yes
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237   ac_header_preproc=no
12238 fi
12239 rm -f conftest.err conftest.$ac_ext
12240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241 echo "${ECHO_T}$ac_header_preproc" >&6
12242
12243 # So?  What about this header?
12244 case $ac_header_compiler:$ac_header_preproc in
12245   yes:no )
12246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12250     (
12251       cat <<\_ASBOX
12252 ## ------------------------------------ ##
12253 ## Report this to bug-autoconf@gnu.org. ##
12254 ## ------------------------------------ ##
12255 _ASBOX
12256     ) |
12257       sed "s/^/$as_me: WARNING:     /" >&2
12258     ;;
12259   no:yes )
12260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12266     (
12267       cat <<\_ASBOX
12268 ## ------------------------------------ ##
12269 ## Report this to bug-autoconf@gnu.org. ##
12270 ## ------------------------------------ ##
12271 _ASBOX
12272     ) |
12273       sed "s/^/$as_me: WARNING:     /" >&2
12274     ;;
12275 esac
12276 echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12279   echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281   eval "$as_ac_Header=$ac_header_preproc"
12282 fi
12283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12285
12286 fi
12287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12288   cat >>confdefs.h <<_ACEOF
12289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12290 _ACEOF
12291
12292 fi
12293
12294 done
12295
12296
12297
12298 for ac_header in stdlib.h
12299 do
12300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12302   echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12305   echo $ECHO_N "(cached) $ECHO_C" >&6
12306 fi
12307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12309 else
12310   # Is the header compilable?
12311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12314 #line $LINENO "configure"
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320 $ac_includes_default
12321 #include <$ac_header>
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325   (eval $ac_compile) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } &&
12329          { ac_try='test -s conftest.$ac_objext'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; }; then
12335   ac_header_compiler=yes
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 ac_header_compiler=no
12341 fi
12342 rm -f conftest.$ac_objext conftest.$ac_ext
12343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12344 echo "${ECHO_T}$ac_header_compiler" >&6
12345
12346 # Is the header present?
12347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12350 #line $LINENO "configure"
12351 /* confdefs.h.  */
12352 _ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h.  */
12356 #include <$ac_header>
12357 _ACEOF
12358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } >/dev/null; then
12366   if test -s conftest.err; then
12367     ac_cpp_err=$ac_c_preproc_warn_flag
12368   else
12369     ac_cpp_err=
12370   fi
12371 else
12372   ac_cpp_err=yes
12373 fi
12374 if test -z "$ac_cpp_err"; then
12375   ac_header_preproc=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380   ac_header_preproc=no
12381 fi
12382 rm -f conftest.err conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12384 echo "${ECHO_T}$ac_header_preproc" >&6
12385
12386 # So?  What about this header?
12387 case $ac_header_compiler:$ac_header_preproc in
12388   yes:no )
12389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12393     (
12394       cat <<\_ASBOX
12395 ## ------------------------------------ ##
12396 ## Report this to bug-autoconf@gnu.org. ##
12397 ## ------------------------------------ ##
12398 _ASBOX
12399     ) |
12400       sed "s/^/$as_me: WARNING:     /" >&2
12401     ;;
12402   no:yes )
12403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12405     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409     (
12410       cat <<\_ASBOX
12411 ## ------------------------------------ ##
12412 ## Report this to bug-autoconf@gnu.org. ##
12413 ## ------------------------------------ ##
12414 _ASBOX
12415     ) |
12416       sed "s/^/$as_me: WARNING:     /" >&2
12417     ;;
12418 esac
12419 echo "$as_me:$LINENO: checking for $ac_header" >&5
12420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   eval "$as_ac_Header=$ac_header_preproc"
12425 fi
12426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12428
12429 fi
12430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12431   cat >>confdefs.h <<_ACEOF
12432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12433 _ACEOF
12434
12435 fi
12436
12437 done
12438
12439
12440 for ac_header in malloc.h
12441 do
12442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12444   echo "$as_me:$LINENO: checking for $ac_header" >&5
12445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 fi
12449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12451 else
12452   # Is the header compilable?
12453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12455 cat >conftest.$ac_ext <<_ACEOF
12456 #line $LINENO "configure"
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462 $ac_includes_default
12463 #include <$ac_header>
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467   (eval $ac_compile) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } &&
12471          { ac_try='test -s conftest.$ac_objext'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   ac_header_compiler=yes
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 ac_header_compiler=no
12483 fi
12484 rm -f conftest.$ac_objext conftest.$ac_ext
12485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12486 echo "${ECHO_T}$ac_header_compiler" >&6
12487
12488 # Is the header present?
12489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12491 cat >conftest.$ac_ext <<_ACEOF
12492 #line $LINENO "configure"
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <$ac_header>
12499 _ACEOF
12500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } >/dev/null; then
12508   if test -s conftest.err; then
12509     ac_cpp_err=$ac_c_preproc_warn_flag
12510   else
12511     ac_cpp_err=
12512   fi
12513 else
12514   ac_cpp_err=yes
12515 fi
12516 if test -z "$ac_cpp_err"; then
12517   ac_header_preproc=yes
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522   ac_header_preproc=no
12523 fi
12524 rm -f conftest.err conftest.$ac_ext
12525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12526 echo "${ECHO_T}$ac_header_preproc" >&6
12527
12528 # So?  What about this header?
12529 case $ac_header_compiler:$ac_header_preproc in
12530   yes:no )
12531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535     (
12536       cat <<\_ASBOX
12537 ## ------------------------------------ ##
12538 ## Report this to bug-autoconf@gnu.org. ##
12539 ## ------------------------------------ ##
12540 _ASBOX
12541     ) |
12542       sed "s/^/$as_me: WARNING:     /" >&2
12543     ;;
12544   no:yes )
12545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12547     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12551     (
12552       cat <<\_ASBOX
12553 ## ------------------------------------ ##
12554 ## Report this to bug-autoconf@gnu.org. ##
12555 ## ------------------------------------ ##
12556 _ASBOX
12557     ) |
12558       sed "s/^/$as_me: WARNING:     /" >&2
12559     ;;
12560 esac
12561 echo "$as_me:$LINENO: checking for $ac_header" >&5
12562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   eval "$as_ac_Header=$ac_header_preproc"
12567 fi
12568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12570
12571 fi
12572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12573   cat >>confdefs.h <<_ACEOF
12574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12575 _ACEOF
12576
12577 fi
12578
12579 done
12580
12581
12582 for ac_header in unistd.h
12583 do
12584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12586   echo "$as_me:$LINENO: checking for $ac_header" >&5
12587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 fi
12591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12593 else
12594   # Is the header compilable?
12595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604 $ac_includes_default
12605 #include <$ac_header>
12606 _ACEOF
12607 rm -f conftest.$ac_objext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12609   (eval $ac_compile) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -s conftest.$ac_objext'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   ac_header_compiler=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624 ac_header_compiler=no
12625 fi
12626 rm -f conftest.$ac_objext conftest.$ac_ext
12627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12628 echo "${ECHO_T}$ac_header_compiler" >&6
12629
12630 # Is the header present?
12631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #include <$ac_header>
12641 _ACEOF
12642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12643   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } >/dev/null; then
12650   if test -s conftest.err; then
12651     ac_cpp_err=$ac_c_preproc_warn_flag
12652   else
12653     ac_cpp_err=
12654   fi
12655 else
12656   ac_cpp_err=yes
12657 fi
12658 if test -z "$ac_cpp_err"; then
12659   ac_header_preproc=yes
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664   ac_header_preproc=no
12665 fi
12666 rm -f conftest.err conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12668 echo "${ECHO_T}$ac_header_preproc" >&6
12669
12670 # So?  What about this header?
12671 case $ac_header_compiler:$ac_header_preproc in
12672   yes:no )
12673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12677     (
12678       cat <<\_ASBOX
12679 ## ------------------------------------ ##
12680 ## Report this to bug-autoconf@gnu.org. ##
12681 ## ------------------------------------ ##
12682 _ASBOX
12683     ) |
12684       sed "s/^/$as_me: WARNING:     /" >&2
12685     ;;
12686   no:yes )
12687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12689     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12693     (
12694       cat <<\_ASBOX
12695 ## ------------------------------------ ##
12696 ## Report this to bug-autoconf@gnu.org. ##
12697 ## ------------------------------------ ##
12698 _ASBOX
12699     ) |
12700       sed "s/^/$as_me: WARNING:     /" >&2
12701     ;;
12702 esac
12703 echo "$as_me:$LINENO: checking for $ac_header" >&5
12704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12706   echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708   eval "$as_ac_Header=$ac_header_preproc"
12709 fi
12710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12712
12713 fi
12714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12715   cat >>confdefs.h <<_ACEOF
12716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12717 _ACEOF
12718
12719 fi
12720
12721 done
12722
12723
12724 for ac_header in wchar.h
12725 do
12726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12728   echo "$as_me:$LINENO: checking for $ac_header" >&5
12729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12731   echo $ECHO_N "(cached) $ECHO_C" >&6
12732 fi
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12735 else
12736   # Is the header compilable?
12737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12739 cat >conftest.$ac_ext <<_ACEOF
12740 #line $LINENO "configure"
12741 /* confdefs.h.  */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h.  */
12746 $ac_includes_default
12747 #include <$ac_header>
12748 _ACEOF
12749 rm -f conftest.$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751   (eval $ac_compile) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -s conftest.$ac_objext'
12756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757   (eval $ac_try) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; }; then
12761   ac_header_compiler=yes
12762 else
12763   echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766 ac_header_compiler=no
12767 fi
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12770 echo "${ECHO_T}$ac_header_compiler" >&6
12771
12772 # Is the header present?
12773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12775 cat >conftest.$ac_ext <<_ACEOF
12776 #line $LINENO "configure"
12777 /* confdefs.h.  */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h.  */
12782 #include <$ac_header>
12783 _ACEOF
12784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } >/dev/null; then
12792   if test -s conftest.err; then
12793     ac_cpp_err=$ac_c_preproc_warn_flag
12794   else
12795     ac_cpp_err=
12796   fi
12797 else
12798   ac_cpp_err=yes
12799 fi
12800 if test -z "$ac_cpp_err"; then
12801   ac_header_preproc=yes
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806   ac_header_preproc=no
12807 fi
12808 rm -f conftest.err conftest.$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12810 echo "${ECHO_T}$ac_header_preproc" >&6
12811
12812 # So?  What about this header?
12813 case $ac_header_compiler:$ac_header_preproc in
12814   yes:no )
12815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12819     (
12820       cat <<\_ASBOX
12821 ## ------------------------------------ ##
12822 ## Report this to bug-autoconf@gnu.org. ##
12823 ## ------------------------------------ ##
12824 _ASBOX
12825     ) |
12826       sed "s/^/$as_me: WARNING:     /" >&2
12827     ;;
12828   no:yes )
12829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12831     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12835     (
12836       cat <<\_ASBOX
12837 ## ------------------------------------ ##
12838 ## Report this to bug-autoconf@gnu.org. ##
12839 ## ------------------------------------ ##
12840 _ASBOX
12841     ) |
12842       sed "s/^/$as_me: WARNING:     /" >&2
12843     ;;
12844 esac
12845 echo "$as_me:$LINENO: checking for $ac_header" >&5
12846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   eval "$as_ac_Header=$ac_header_preproc"
12851 fi
12852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12854
12855 fi
12856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12857   cat >>confdefs.h <<_ACEOF
12858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12859 _ACEOF
12860
12861 fi
12862
12863 done
12864
12865
12866 if test "$ac_cv_header_wchar_h" != "yes"; then
12867
12868 for ac_header in wcstr.h
12869 do
12870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872   echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 fi
12877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12879 else
12880   # Is the header compilable?
12881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 $ac_includes_default
12891 #include <$ac_header>
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895   (eval $ac_compile) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } &&
12899          { ac_try='test -s conftest.$ac_objext'
12900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901   (eval $ac_try) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   ac_header_compiler=yes
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_header_compiler=no
12911 fi
12912 rm -f conftest.$ac_objext conftest.$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 echo "${ECHO_T}$ac_header_compiler" >&6
12915
12916 # Is the header present?
12917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12921 /* confdefs.h.  */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h.  */
12926 #include <$ac_header>
12927 _ACEOF
12928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12930   ac_status=$?
12931   grep -v '^ *+' conftest.er1 >conftest.err
12932   rm -f conftest.er1
12933   cat conftest.err >&5
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } >/dev/null; then
12936   if test -s conftest.err; then
12937     ac_cpp_err=$ac_c_preproc_warn_flag
12938   else
12939     ac_cpp_err=
12940   fi
12941 else
12942   ac_cpp_err=yes
12943 fi
12944 if test -z "$ac_cpp_err"; then
12945   ac_header_preproc=yes
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950   ac_header_preproc=no
12951 fi
12952 rm -f conftest.err conftest.$ac_ext
12953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 echo "${ECHO_T}$ac_header_preproc" >&6
12955
12956 # So?  What about this header?
12957 case $ac_header_compiler:$ac_header_preproc in
12958   yes:no )
12959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12963     (
12964       cat <<\_ASBOX
12965 ## ------------------------------------ ##
12966 ## Report this to bug-autoconf@gnu.org. ##
12967 ## ------------------------------------ ##
12968 _ASBOX
12969     ) |
12970       sed "s/^/$as_me: WARNING:     /" >&2
12971     ;;
12972   no:yes )
12973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12975     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12979     (
12980       cat <<\_ASBOX
12981 ## ------------------------------------ ##
12982 ## Report this to bug-autoconf@gnu.org. ##
12983 ## ------------------------------------ ##
12984 _ASBOX
12985     ) |
12986       sed "s/^/$as_me: WARNING:     /" >&2
12987     ;;
12988 esac
12989 echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   eval "$as_ac_Header=$ac_header_preproc"
12995 fi
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12998
12999 fi
13000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13001   cat >>confdefs.h <<_ACEOF
13002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13003 _ACEOF
13004
13005 fi
13006
13007 done
13008
13009 fi
13010
13011
13012 for ac_header in fnmatch.h
13013 do
13014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13016   echo "$as_me:$LINENO: checking for $ac_header" >&5
13017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13019   echo $ECHO_N "(cached) $ECHO_C" >&6
13020 fi
13021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13023 else
13024   # Is the header compilable?
13025 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13027 cat >conftest.$ac_ext <<_ACEOF
13028 #line $LINENO "configure"
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034 $ac_includes_default
13035 #include <$ac_header>
13036 _ACEOF
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039   (eval $ac_compile) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } &&
13043          { ac_try='test -s conftest.$ac_objext'
13044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045   (eval $ac_try) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; }; then
13049   ac_header_compiler=yes
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 ac_header_compiler=no
13055 fi
13056 rm -f conftest.$ac_objext conftest.$ac_ext
13057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13058 echo "${ECHO_T}$ac_header_compiler" >&6
13059
13060 # Is the header present?
13061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13063 cat >conftest.$ac_ext <<_ACEOF
13064 #line $LINENO "configure"
13065 /* confdefs.h.  */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h.  */
13070 #include <$ac_header>
13071 _ACEOF
13072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13074   ac_status=$?
13075   grep -v '^ *+' conftest.er1 >conftest.err
13076   rm -f conftest.er1
13077   cat conftest.err >&5
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); } >/dev/null; then
13080   if test -s conftest.err; then
13081     ac_cpp_err=$ac_c_preproc_warn_flag
13082   else
13083     ac_cpp_err=
13084   fi
13085 else
13086   ac_cpp_err=yes
13087 fi
13088 if test -z "$ac_cpp_err"; then
13089   ac_header_preproc=yes
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094   ac_header_preproc=no
13095 fi
13096 rm -f conftest.err conftest.$ac_ext
13097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13098 echo "${ECHO_T}$ac_header_preproc" >&6
13099
13100 # So?  What about this header?
13101 case $ac_header_compiler:$ac_header_preproc in
13102   yes:no )
13103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13107     (
13108       cat <<\_ASBOX
13109 ## ------------------------------------ ##
13110 ## Report this to bug-autoconf@gnu.org. ##
13111 ## ------------------------------------ ##
13112 _ASBOX
13113     ) |
13114       sed "s/^/$as_me: WARNING:     /" >&2
13115     ;;
13116   no:yes )
13117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13119     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13123     (
13124       cat <<\_ASBOX
13125 ## ------------------------------------ ##
13126 ## Report this to bug-autoconf@gnu.org. ##
13127 ## ------------------------------------ ##
13128 _ASBOX
13129     ) |
13130       sed "s/^/$as_me: WARNING:     /" >&2
13131     ;;
13132 esac
13133 echo "$as_me:$LINENO: checking for $ac_header" >&5
13134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13136   echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138   eval "$as_ac_Header=$ac_header_preproc"
13139 fi
13140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13142
13143 fi
13144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13145   cat >>confdefs.h <<_ACEOF
13146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13147 _ACEOF
13148
13149 fi
13150
13151 done
13152
13153
13154 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13155
13156 for ac_func in fnmatch
13157 do
13158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159 echo "$as_me:$LINENO: checking for $ac_func" >&5
13160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13161 if eval "test \"\${$as_ac_var+set}\" = set"; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   cat >conftest.$ac_ext <<_ACEOF
13165 #line $LINENO "configure"
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171 /* System header to define __stub macros and hopefully few prototypes,
13172     which can conflict with char $ac_func (); below.
13173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13174     <limits.h> exists even on freestanding compilers.  */
13175 #ifdef __STDC__
13176 # include <limits.h>
13177 #else
13178 # include <assert.h>
13179 #endif
13180 /* Override any gcc2 internal prototype to avoid an error.  */
13181 #ifdef __cplusplus
13182 extern "C"
13183 {
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186    builtin and then its argument prototype would still apply.  */
13187 char $ac_func ();
13188 /* The GNU C library defines this for functions which it implements
13189     to always fail with ENOSYS.  Some functions are actually named
13190     something starting with __ and the normal name is an alias.  */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192 choke me
13193 #else
13194 char (*f) () = $ac_func;
13195 #endif
13196 #ifdef __cplusplus
13197 }
13198 #endif
13199
13200 int
13201 main ()
13202 {
13203 return f != $ac_func;
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210   (eval $ac_link) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } &&
13214          { ac_try='test -s conftest$ac_exeext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   eval "$as_ac_var=yes"
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 eval "$as_ac_var=no"
13226 fi
13227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13228 fi
13229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13231 if test `eval echo '${'$as_ac_var'}'` = yes; then
13232   cat >>confdefs.h <<_ACEOF
13233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13234 _ACEOF
13235
13236 fi
13237 done
13238
13239 fi
13240
13241
13242 for ac_header in langinfo.h
13243 do
13244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13246   echo "$as_me:$LINENO: checking for $ac_header" >&5
13247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 fi
13251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13253 else
13254   # Is the header compilable?
13255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13257 cat >conftest.$ac_ext <<_ACEOF
13258 #line $LINENO "configure"
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264 $ac_includes_default
13265 #include <$ac_header>
13266 _ACEOF
13267 rm -f conftest.$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269   (eval $ac_compile) 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -s conftest.$ac_objext'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   ac_header_compiler=yes
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_header_compiler=no
13285 fi
13286 rm -f conftest.$ac_objext conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288 echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290 # Is the header present?
13291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293 cat >conftest.$ac_ext <<_ACEOF
13294 #line $LINENO "configure"
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <$ac_header>
13301 _ACEOF
13302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13304   ac_status=$?
13305   grep -v '^ *+' conftest.er1 >conftest.err
13306   rm -f conftest.er1
13307   cat conftest.err >&5
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } >/dev/null; then
13310   if test -s conftest.err; then
13311     ac_cpp_err=$ac_c_preproc_warn_flag
13312   else
13313     ac_cpp_err=
13314   fi
13315 else
13316   ac_cpp_err=yes
13317 fi
13318 if test -z "$ac_cpp_err"; then
13319   ac_header_preproc=yes
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324   ac_header_preproc=no
13325 fi
13326 rm -f conftest.err conftest.$ac_ext
13327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328 echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330 # So?  What about this header?
13331 case $ac_header_compiler:$ac_header_preproc in
13332   yes:no )
13333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13337     (
13338       cat <<\_ASBOX
13339 ## ------------------------------------ ##
13340 ## Report this to bug-autoconf@gnu.org. ##
13341 ## ------------------------------------ ##
13342 _ASBOX
13343     ) |
13344       sed "s/^/$as_me: WARNING:     /" >&2
13345     ;;
13346   no:yes )
13347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13349     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13353     (
13354       cat <<\_ASBOX
13355 ## ------------------------------------ ##
13356 ## Report this to bug-autoconf@gnu.org. ##
13357 ## ------------------------------------ ##
13358 _ASBOX
13359     ) |
13360       sed "s/^/$as_me: WARNING:     /" >&2
13361     ;;
13362 esac
13363 echo "$as_me:$LINENO: checking for $ac_header" >&5
13364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   eval "$as_ac_Header=$ac_header_preproc"
13369 fi
13370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372
13373 fi
13374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375   cat >>confdefs.h <<_ACEOF
13376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377 _ACEOF
13378
13379 fi
13380
13381 done
13382
13383
13384 case "${host}" in
13385   *-pc-os2_emx | *-pc-os2-emx )
13386             if test $ac_cv_header_langinfo_h = "yes"; then
13387           LIBS="$LIBS -lintl"
13388       fi
13389   ;;
13390 esac
13391
13392 if test "$wxUSE_GUI" = "yes"; then
13393     if test "$wxUSE_UNIX" = "yes"; then
13394
13395 for ac_header in X11/XKBlib.h
13396 do
13397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13399   echo "$as_me:$LINENO: checking for $ac_header" >&5
13400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 fi
13404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13406 else
13407   # Is the header compilable?
13408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13410 cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 $ac_includes_default
13418 #include <$ac_header>
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422   (eval $ac_compile) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } &&
13426          { ac_try='test -s conftest.$ac_objext'
13427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428   (eval $ac_try) 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; }; then
13432   ac_header_compiler=yes
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_header_compiler=no
13438 fi
13439 rm -f conftest.$ac_objext conftest.$ac_ext
13440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13441 echo "${ECHO_T}$ac_header_compiler" >&6
13442
13443 # Is the header present?
13444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13447 #line $LINENO "configure"
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 #include <$ac_header>
13454 _ACEOF
13455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } >/dev/null; then
13463   if test -s conftest.err; then
13464     ac_cpp_err=$ac_c_preproc_warn_flag
13465   else
13466     ac_cpp_err=
13467   fi
13468 else
13469   ac_cpp_err=yes
13470 fi
13471 if test -z "$ac_cpp_err"; then
13472   ac_header_preproc=yes
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477   ac_header_preproc=no
13478 fi
13479 rm -f conftest.err conftest.$ac_ext
13480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13481 echo "${ECHO_T}$ac_header_preproc" >&6
13482
13483 # So?  What about this header?
13484 case $ac_header_compiler:$ac_header_preproc in
13485   yes:no )
13486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13490     (
13491       cat <<\_ASBOX
13492 ## ------------------------------------ ##
13493 ## Report this to bug-autoconf@gnu.org. ##
13494 ## ------------------------------------ ##
13495 _ASBOX
13496     ) |
13497       sed "s/^/$as_me: WARNING:     /" >&2
13498     ;;
13499   no:yes )
13500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13502     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13506     (
13507       cat <<\_ASBOX
13508 ## ------------------------------------ ##
13509 ## Report this to bug-autoconf@gnu.org. ##
13510 ## ------------------------------------ ##
13511 _ASBOX
13512     ) |
13513       sed "s/^/$as_me: WARNING:     /" >&2
13514     ;;
13515 esac
13516 echo "$as_me:$LINENO: checking for $ac_header" >&5
13517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13519   echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521   eval "$as_ac_Header=$ac_header_preproc"
13522 fi
13523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13525
13526 fi
13527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13528   cat >>confdefs.h <<_ACEOF
13529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13530 _ACEOF
13531
13532 fi
13533
13534 done
13535
13536     fi
13537 fi
13538
13539
13540 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13541 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13542 if test "${ac_cv_c_const+set}" = set; then
13543   echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545   cat >conftest.$ac_ext <<_ACEOF
13546 #line $LINENO "configure"
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552
13553 int
13554 main ()
13555 {
13556 /* FIXME: Include the comments suggested by Paul. */
13557 #ifndef __cplusplus
13558   /* Ultrix mips cc rejects this.  */
13559   typedef int charset[2];
13560   const charset x;
13561   /* SunOS 4.1.1 cc rejects this.  */
13562   char const *const *ccp;
13563   char **p;
13564   /* NEC SVR4.0.2 mips cc rejects this.  */
13565   struct point {int x, y;};
13566   static struct point const zero = {0,0};
13567   /* AIX XL C 1.02.0.0 rejects this.
13568      It does not let you subtract one const X* pointer from another in
13569      an arm of an if-expression whose if-part is not a constant
13570      expression */
13571   const char *g = "string";
13572   ccp = &g + (g ? g-g : 0);
13573   /* HPUX 7.0 cc rejects these. */
13574   ++ccp;
13575   p = (char**) ccp;
13576   ccp = (char const *const *) p;
13577   { /* SCO 3.2v4 cc rejects this.  */
13578     char *t;
13579     char const *s = 0 ? (char *) 0 : (char const *) 0;
13580
13581     *t++ = 0;
13582   }
13583   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13584     int x[] = {25, 17};
13585     const int *foo = &x[0];
13586     ++foo;
13587   }
13588   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13589     typedef const int *iptr;
13590     iptr p = 0;
13591     ++p;
13592   }
13593   { /* AIX XL C 1.02.0.0 rejects this saying
13594        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13595     struct s { int j; const int *ap[3]; };
13596     struct s *b; b->j = 5;
13597   }
13598   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13599     const int foo = 10;
13600   }
13601 #endif
13602
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609   (eval $ac_compile) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -s conftest.$ac_objext'
13614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615   (eval $ac_try) 2>&5
13616   ac_status=$?
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); }; }; then
13619   ac_cv_c_const=yes
13620 else
13621   echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_cv_c_const=no
13625 fi
13626 rm -f conftest.$ac_objext conftest.$ac_ext
13627 fi
13628 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13629 echo "${ECHO_T}$ac_cv_c_const" >&6
13630 if test $ac_cv_c_const = no; then
13631
13632 cat >>confdefs.h <<\_ACEOF
13633 #define const
13634 _ACEOF
13635
13636 fi
13637
13638 echo "$as_me:$LINENO: checking for inline" >&5
13639 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13640 if test "${ac_cv_c_inline+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   ac_cv_c_inline=no
13644 for ac_kw in inline __inline__ __inline; do
13645   cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652 #ifndef __cplusplus
13653 typedef int foo_t;
13654 static $ac_kw foo_t static_foo () {return 0; }
13655 $ac_kw foo_t foo () {return 0; }
13656 #endif
13657
13658 _ACEOF
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661   (eval $ac_compile) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -s conftest.$ac_objext'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_cv_c_inline=$ac_kw; break
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 fi
13677 rm -f conftest.$ac_objext conftest.$ac_ext
13678 done
13679
13680 fi
13681 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13682 echo "${ECHO_T}$ac_cv_c_inline" >&6
13683 case $ac_cv_c_inline in
13684   inline | yes) ;;
13685   no)
13686 cat >>confdefs.h <<\_ACEOF
13687 #define inline
13688 _ACEOF
13689  ;;
13690   *)  cat >>confdefs.h <<_ACEOF
13691 #define inline $ac_cv_c_inline
13692 _ACEOF
13693  ;;
13694 esac
13695
13696
13697 echo "$as_me:$LINENO: checking for char" >&5
13698 echo $ECHO_N "checking for char... $ECHO_C" >&6
13699 if test "${ac_cv_type_char+set}" = set; then
13700   echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702   cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 $ac_includes_default
13710 int
13711 main ()
13712 {
13713 if ((char *) 0)
13714   return 0;
13715 if (sizeof (char))
13716   return 0;
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723   (eval $ac_compile) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -s conftest.$ac_objext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_type_char=yes
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ac_cv_type_char=no
13739 fi
13740 rm -f conftest.$ac_objext conftest.$ac_ext
13741 fi
13742 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13743 echo "${ECHO_T}$ac_cv_type_char" >&6
13744
13745 echo "$as_me:$LINENO: checking size of char" >&5
13746 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13747 if test "${ac_cv_sizeof_char+set}" = set; then
13748   echo $ECHO_N "(cached) $ECHO_C" >&6
13749 else
13750   if test "$ac_cv_type_char" = yes; then
13751   # The cast to unsigned long works around a bug in the HP C Compiler
13752   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13753   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13754   # This bug is HP SR number 8606223364.
13755   if test "$cross_compiling" = yes; then
13756   # Depending upon the size, compute the lo and hi bounds.
13757 cat >conftest.$ac_ext <<_ACEOF
13758 #line $LINENO "configure"
13759 /* confdefs.h.  */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h.  */
13764 $ac_includes_default
13765 int
13766 main ()
13767 {
13768 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13769 test_array [0] = 0
13770
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777   (eval $ac_compile) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); } &&
13781          { ac_try='test -s conftest.$ac_objext'
13782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783   (eval $ac_try) 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; }; then
13787   ac_lo=0 ac_mid=0
13788   while :; do
13789     cat >conftest.$ac_ext <<_ACEOF
13790 #line $LINENO "configure"
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796 $ac_includes_default
13797 int
13798 main ()
13799 {
13800 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13801 test_array [0] = 0
13802
13803   ;
13804   return 0;
13805 }
13806 _ACEOF
13807 rm -f conftest.$ac_objext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809   (eval $ac_compile) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); } &&
13813          { ac_try='test -s conftest.$ac_objext'
13814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815   (eval $ac_try) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; }; then
13819   ac_hi=$ac_mid; break
13820 else
13821   echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_lo=`expr $ac_mid + 1`
13825                     if test $ac_lo -le $ac_mid; then
13826                       ac_lo= ac_hi=
13827                       break
13828                     fi
13829                     ac_mid=`expr 2 '*' $ac_mid + 1`
13830 fi
13831 rm -f conftest.$ac_objext conftest.$ac_ext
13832   done
13833 else
13834   echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13836
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 $ac_includes_default
13845 int
13846 main ()
13847 {
13848 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13849 test_array [0] = 0
13850
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13857   (eval $ac_compile) 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -s conftest.$ac_objext'
13862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863   (eval $ac_try) 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; }; then
13867   ac_hi=-1 ac_mid=-1
13868   while :; do
13869     cat >conftest.$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 /* confdefs.h.  */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h.  */
13876 $ac_includes_default
13877 int
13878 main ()
13879 {
13880 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13881 test_array [0] = 0
13882
13883   ;
13884   return 0;
13885 }
13886 _ACEOF
13887 rm -f conftest.$ac_objext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889   (eval $ac_compile) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } &&
13893          { ac_try='test -s conftest.$ac_objext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   ac_lo=$ac_mid; break
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_hi=`expr '(' $ac_mid ')' - 1`
13905                        if test $ac_mid -le $ac_hi; then
13906                          ac_lo= ac_hi=
13907                          break
13908                        fi
13909                        ac_mid=`expr 2 '*' $ac_mid`
13910 fi
13911 rm -f conftest.$ac_objext conftest.$ac_ext
13912   done
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 ac_lo= ac_hi=
13918 fi
13919 rm -f conftest.$ac_objext conftest.$ac_ext
13920 fi
13921 rm -f conftest.$ac_objext conftest.$ac_ext
13922 # Binary search between lo and hi bounds.
13923 while test "x$ac_lo" != "x$ac_hi"; do
13924   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13925   cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932 $ac_includes_default
13933 int
13934 main ()
13935 {
13936 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13937 test_array [0] = 0
13938
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945   (eval $ac_compile) 2>&5
13946   ac_status=$?
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } &&
13949          { ac_try='test -s conftest.$ac_objext'
13950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951   (eval $ac_try) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); }; }; then
13955   ac_hi=$ac_mid
13956 else
13957   echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 ac_lo=`expr '(' $ac_mid ')' + 1`
13961 fi
13962 rm -f conftest.$ac_objext conftest.$ac_ext
13963 done
13964 case $ac_lo in
13965 ?*) ac_cv_sizeof_char=$ac_lo;;
13966 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13967 See \`config.log' for more details." >&5
13968 echo "$as_me: error: cannot compute sizeof (char), 77
13969 See \`config.log' for more details." >&2;}
13970    { (exit 1); exit 1; }; } ;;
13971 esac
13972 else
13973   if test "$cross_compiling" = yes; then
13974   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13975 See \`config.log' for more details." >&5
13976 echo "$as_me: error: cannot run test program while cross compiling
13977 See \`config.log' for more details." >&2;}
13978    { (exit 1); exit 1; }; }
13979 else
13980   cat >conftest.$ac_ext <<_ACEOF
13981 #line $LINENO "configure"
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987 $ac_includes_default
13988 long longval () { return (long) (sizeof (char)); }
13989 unsigned long ulongval () { return (long) (sizeof (char)); }
13990 #include <stdio.h>
13991 #include <stdlib.h>
13992 int
13993 main ()
13994 {
13995
13996   FILE *f = fopen ("conftest.val", "w");
13997   if (! f)
13998     exit (1);
13999   if (((long) (sizeof (char))) < 0)
14000     {
14001       long i = longval ();
14002       if (i != ((long) (sizeof (char))))
14003         exit (1);
14004       fprintf (f, "%ld\n", i);
14005     }
14006   else
14007     {
14008       unsigned long i = ulongval ();
14009       if (i != ((long) (sizeof (char))))
14010         exit (1);
14011       fprintf (f, "%lu\n", i);
14012     }
14013   exit (ferror (f) || fclose (f) != 0);
14014
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 rm -f conftest$ac_exeext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021   (eval $ac_link) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026   (eval $ac_try) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   ac_cv_sizeof_char=`cat conftest.val`
14031 else
14032   echo "$as_me: program exited with status $ac_status" >&5
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ( exit $ac_status )
14037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14038 See \`config.log' for more details." >&5
14039 echo "$as_me: error: cannot compute sizeof (char), 77
14040 See \`config.log' for more details." >&2;}
14041    { (exit 1); exit 1; }; }
14042 fi
14043 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14044 fi
14045 fi
14046 rm -f conftest.val
14047 else
14048   ac_cv_sizeof_char=0
14049 fi
14050 fi
14051 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14052 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14053 cat >>confdefs.h <<_ACEOF
14054 #define SIZEOF_CHAR $ac_cv_sizeof_char
14055 _ACEOF
14056
14057
14058 echo "$as_me:$LINENO: checking for short" >&5
14059 echo $ECHO_N "checking for short... $ECHO_C" >&6
14060 if test "${ac_cv_type_short+set}" = set; then
14061   echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063   cat >conftest.$ac_ext <<_ACEOF
14064 #line $LINENO "configure"
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 $ac_includes_default
14071 int
14072 main ()
14073 {
14074 if ((short *) 0)
14075   return 0;
14076 if (sizeof (short))
14077   return 0;
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 rm -f conftest.$ac_objext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084   (eval $ac_compile) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); } &&
14088          { ac_try='test -s conftest.$ac_objext'
14089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090   (eval $ac_try) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }; }; then
14094   ac_cv_type_short=yes
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ac_cv_type_short=no
14100 fi
14101 rm -f conftest.$ac_objext conftest.$ac_ext
14102 fi
14103 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14104 echo "${ECHO_T}$ac_cv_type_short" >&6
14105
14106 echo "$as_me:$LINENO: checking size of short" >&5
14107 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14108 if test "${ac_cv_sizeof_short+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   if test "$ac_cv_type_short" = yes; then
14112   # The cast to unsigned long works around a bug in the HP C Compiler
14113   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14114   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14115   # This bug is HP SR number 8606223364.
14116   if test "$cross_compiling" = yes; then
14117   # Depending upon the size, compute the lo and hi bounds.
14118 cat >conftest.$ac_ext <<_ACEOF
14119 #line $LINENO "configure"
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 $ac_includes_default
14126 int
14127 main ()
14128 {
14129 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14130 test_array [0] = 0
14131
14132   ;
14133   return 0;
14134 }
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138   (eval $ac_compile) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } &&
14142          { ac_try='test -s conftest.$ac_objext'
14143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144   (eval $ac_try) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; }; then
14148   ac_lo=0 ac_mid=0
14149   while :; do
14150     cat >conftest.$ac_ext <<_ACEOF
14151 #line $LINENO "configure"
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 $ac_includes_default
14158 int
14159 main ()
14160 {
14161 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14162 test_array [0] = 0
14163
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14170   (eval $ac_compile) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } &&
14174          { ac_try='test -s conftest.$ac_objext'
14175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176   (eval $ac_try) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; }; then
14180   ac_hi=$ac_mid; break
14181 else
14182   echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_lo=`expr $ac_mid + 1`
14186                     if test $ac_lo -le $ac_mid; then
14187                       ac_lo= ac_hi=
14188                       break
14189                     fi
14190                     ac_mid=`expr 2 '*' $ac_mid + 1`
14191 fi
14192 rm -f conftest.$ac_objext conftest.$ac_ext
14193   done
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 cat >conftest.$ac_ext <<_ACEOF
14199 #line $LINENO "configure"
14200 /* confdefs.h.  */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h.  */
14205 $ac_includes_default
14206 int
14207 main ()
14208 {
14209 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14210 test_array [0] = 0
14211
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218   (eval $ac_compile) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } &&
14222          { ac_try='test -s conftest.$ac_objext'
14223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224   (eval $ac_try) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   ac_hi=-1 ac_mid=-1
14229   while :; do
14230     cat >conftest.$ac_ext <<_ACEOF
14231 #line $LINENO "configure"
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 $ac_includes_default
14238 int
14239 main ()
14240 {
14241 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14242 test_array [0] = 0
14243
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14250   (eval $ac_compile) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } &&
14254          { ac_try='test -s conftest.$ac_objext'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; }; then
14260   ac_lo=$ac_mid; break
14261 else
14262   echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 ac_hi=`expr '(' $ac_mid ')' - 1`
14266                        if test $ac_mid -le $ac_hi; then
14267                          ac_lo= ac_hi=
14268                          break
14269                        fi
14270                        ac_mid=`expr 2 '*' $ac_mid`
14271 fi
14272 rm -f conftest.$ac_objext conftest.$ac_ext
14273   done
14274 else
14275   echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278 ac_lo= ac_hi=
14279 fi
14280 rm -f conftest.$ac_objext conftest.$ac_ext
14281 fi
14282 rm -f conftest.$ac_objext conftest.$ac_ext
14283 # Binary search between lo and hi bounds.
14284 while test "x$ac_lo" != "x$ac_hi"; do
14285   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14286   cat >conftest.$ac_ext <<_ACEOF
14287 #line $LINENO "configure"
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 $ac_includes_default
14294 int
14295 main ()
14296 {
14297 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14298 test_array [0] = 0
14299
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306   (eval $ac_compile) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -s conftest.$ac_objext'
14311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312   (eval $ac_try) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   ac_hi=$ac_mid
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321 ac_lo=`expr '(' $ac_mid ')' + 1`
14322 fi
14323 rm -f conftest.$ac_objext conftest.$ac_ext
14324 done
14325 case $ac_lo in
14326 ?*) ac_cv_sizeof_short=$ac_lo;;
14327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14328 See \`config.log' for more details." >&5
14329 echo "$as_me: error: cannot compute sizeof (short), 77
14330 See \`config.log' for more details." >&2;}
14331    { (exit 1); exit 1; }; } ;;
14332 esac
14333 else
14334   if test "$cross_compiling" = yes; then
14335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14336 See \`config.log' for more details." >&5
14337 echo "$as_me: error: cannot run test program while cross compiling
14338 See \`config.log' for more details." >&2;}
14339    { (exit 1); exit 1; }; }
14340 else
14341   cat >conftest.$ac_ext <<_ACEOF
14342 #line $LINENO "configure"
14343 /* confdefs.h.  */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h.  */
14348 $ac_includes_default
14349 long longval () { return (long) (sizeof (short)); }
14350 unsigned long ulongval () { return (long) (sizeof (short)); }
14351 #include <stdio.h>
14352 #include <stdlib.h>
14353 int
14354 main ()
14355 {
14356
14357   FILE *f = fopen ("conftest.val", "w");
14358   if (! f)
14359     exit (1);
14360   if (((long) (sizeof (short))) < 0)
14361     {
14362       long i = longval ();
14363       if (i != ((long) (sizeof (short))))
14364         exit (1);
14365       fprintf (f, "%ld\n", i);
14366     }
14367   else
14368     {
14369       unsigned long i = ulongval ();
14370       if (i != ((long) (sizeof (short))))
14371         exit (1);
14372       fprintf (f, "%lu\n", i);
14373     }
14374   exit (ferror (f) || fclose (f) != 0);
14375
14376   ;
14377   return 0;
14378 }
14379 _ACEOF
14380 rm -f conftest$ac_exeext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14382   (eval $ac_link) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; }; then
14391   ac_cv_sizeof_short=`cat conftest.val`
14392 else
14393   echo "$as_me: program exited with status $ac_status" >&5
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ( exit $ac_status )
14398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14399 See \`config.log' for more details." >&5
14400 echo "$as_me: error: cannot compute sizeof (short), 77
14401 See \`config.log' for more details." >&2;}
14402    { (exit 1); exit 1; }; }
14403 fi
14404 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 fi
14407 rm -f conftest.val
14408 else
14409   ac_cv_sizeof_short=0
14410 fi
14411 fi
14412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14413 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14414 cat >>confdefs.h <<_ACEOF
14415 #define SIZEOF_SHORT $ac_cv_sizeof_short
14416 _ACEOF
14417
14418
14419 echo "$as_me:$LINENO: checking for void *" >&5
14420 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14421 if test "${ac_cv_type_void_p+set}" = set; then
14422   echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424   cat >conftest.$ac_ext <<_ACEOF
14425 #line $LINENO "configure"
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431 $ac_includes_default
14432 int
14433 main ()
14434 {
14435 if ((void * *) 0)
14436   return 0;
14437 if (sizeof (void *))
14438   return 0;
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445   (eval $ac_compile) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } &&
14449          { ac_try='test -s conftest.$ac_objext'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   ac_cv_type_void_p=yes
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ac_cv_type_void_p=no
14461 fi
14462 rm -f conftest.$ac_objext conftest.$ac_ext
14463 fi
14464 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14465 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14466
14467 echo "$as_me:$LINENO: checking size of void *" >&5
14468 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14469 if test "${ac_cv_sizeof_void_p+set}" = set; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   if test "$ac_cv_type_void_p" = yes; then
14473   # The cast to unsigned long works around a bug in the HP C Compiler
14474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14476   # This bug is HP SR number 8606223364.
14477   if test "$cross_compiling" = yes; then
14478   # Depending upon the size, compute the lo and hi bounds.
14479 cat >conftest.$ac_ext <<_ACEOF
14480 #line $LINENO "configure"
14481 /* confdefs.h.  */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h.  */
14486 $ac_includes_default
14487 int
14488 main ()
14489 {
14490 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14491 test_array [0] = 0
14492
14493   ;
14494   return 0;
14495 }
14496 _ACEOF
14497 rm -f conftest.$ac_objext
14498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499   (eval $ac_compile) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -s conftest.$ac_objext'
14504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505   (eval $ac_try) 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); }; }; then
14509   ac_lo=0 ac_mid=0
14510   while :; do
14511     cat >conftest.$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14513 /* confdefs.h.  */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h.  */
14518 $ac_includes_default
14519 int
14520 main ()
14521 {
14522 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14523 test_array [0] = 0
14524
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 rm -f conftest.$ac_objext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531   (eval $ac_compile) 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } &&
14535          { ac_try='test -s conftest.$ac_objext'
14536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537   (eval $ac_try) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; }; then
14541   ac_hi=$ac_mid; break
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 ac_lo=`expr $ac_mid + 1`
14547                     if test $ac_lo -le $ac_mid; then
14548                       ac_lo= ac_hi=
14549                       break
14550                     fi
14551                     ac_mid=`expr 2 '*' $ac_mid + 1`
14552 fi
14553 rm -f conftest.$ac_objext conftest.$ac_ext
14554   done
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line $LINENO "configure"
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 $ac_includes_default
14567 int
14568 main ()
14569 {
14570 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14571 test_array [0] = 0
14572
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579   (eval $ac_compile) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } &&
14583          { ac_try='test -s conftest.$ac_objext'
14584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585   (eval $ac_try) 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   ac_hi=-1 ac_mid=-1
14590   while :; do
14591     cat >conftest.$ac_ext <<_ACEOF
14592 #line $LINENO "configure"
14593 /* confdefs.h.  */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h.  */
14598 $ac_includes_default
14599 int
14600 main ()
14601 {
14602 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14603 test_array [0] = 0
14604
14605   ;
14606   return 0;
14607 }
14608 _ACEOF
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611   (eval $ac_compile) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -s conftest.$ac_objext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621   ac_lo=$ac_mid; break
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ac_hi=`expr '(' $ac_mid ')' - 1`
14627                        if test $ac_mid -le $ac_hi; then
14628                          ac_lo= ac_hi=
14629                          break
14630                        fi
14631                        ac_mid=`expr 2 '*' $ac_mid`
14632 fi
14633 rm -f conftest.$ac_objext conftest.$ac_ext
14634   done
14635 else
14636   echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 ac_lo= ac_hi=
14640 fi
14641 rm -f conftest.$ac_objext conftest.$ac_ext
14642 fi
14643 rm -f conftest.$ac_objext conftest.$ac_ext
14644 # Binary search between lo and hi bounds.
14645 while test "x$ac_lo" != "x$ac_hi"; do
14646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14647   cat >conftest.$ac_ext <<_ACEOF
14648 #line $LINENO "configure"
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 $ac_includes_default
14655 int
14656 main ()
14657 {
14658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14659 test_array [0] = 0
14660
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667   (eval $ac_compile) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } &&
14671          { ac_try='test -s conftest.$ac_objext'
14672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673   (eval $ac_try) 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; }; then
14677   ac_hi=$ac_mid
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_lo=`expr '(' $ac_mid ')' + 1`
14683 fi
14684 rm -f conftest.$ac_objext conftest.$ac_ext
14685 done
14686 case $ac_lo in
14687 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14688 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14689 See \`config.log' for more details." >&5
14690 echo "$as_me: error: cannot compute sizeof (void *), 77
14691 See \`config.log' for more details." >&2;}
14692    { (exit 1); exit 1; }; } ;;
14693 esac
14694 else
14695   if test "$cross_compiling" = yes; then
14696   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14697 See \`config.log' for more details." >&5
14698 echo "$as_me: error: cannot run test program while cross compiling
14699 See \`config.log' for more details." >&2;}
14700    { (exit 1); exit 1; }; }
14701 else
14702   cat >conftest.$ac_ext <<_ACEOF
14703 #line $LINENO "configure"
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 $ac_includes_default
14710 long longval () { return (long) (sizeof (void *)); }
14711 unsigned long ulongval () { return (long) (sizeof (void *)); }
14712 #include <stdio.h>
14713 #include <stdlib.h>
14714 int
14715 main ()
14716 {
14717
14718   FILE *f = fopen ("conftest.val", "w");
14719   if (! f)
14720     exit (1);
14721   if (((long) (sizeof (void *))) < 0)
14722     {
14723       long i = longval ();
14724       if (i != ((long) (sizeof (void *))))
14725         exit (1);
14726       fprintf (f, "%ld\n", i);
14727     }
14728   else
14729     {
14730       unsigned long i = ulongval ();
14731       if (i != ((long) (sizeof (void *))))
14732         exit (1);
14733       fprintf (f, "%lu\n", i);
14734     }
14735   exit (ferror (f) || fclose (f) != 0);
14736
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743   (eval $ac_link) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   ac_cv_sizeof_void_p=`cat conftest.val`
14753 else
14754   echo "$as_me: program exited with status $ac_status" >&5
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ( exit $ac_status )
14759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14760 See \`config.log' for more details." >&5
14761 echo "$as_me: error: cannot compute sizeof (void *), 77
14762 See \`config.log' for more details." >&2;}
14763    { (exit 1); exit 1; }; }
14764 fi
14765 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14766 fi
14767 fi
14768 rm -f conftest.val
14769 else
14770   ac_cv_sizeof_void_p=0
14771 fi
14772 fi
14773 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14774 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14775 cat >>confdefs.h <<_ACEOF
14776 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14777 _ACEOF
14778
14779
14780 echo "$as_me:$LINENO: checking for int" >&5
14781 echo $ECHO_N "checking for int... $ECHO_C" >&6
14782 if test "${ac_cv_type_int+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   cat >conftest.$ac_ext <<_ACEOF
14786 #line $LINENO "configure"
14787 /* confdefs.h.  */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h.  */
14792 $ac_includes_default
14793 int
14794 main ()
14795 {
14796 if ((int *) 0)
14797   return 0;
14798 if (sizeof (int))
14799   return 0;
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 rm -f conftest.$ac_objext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14806   (eval $ac_compile) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } &&
14810          { ac_try='test -s conftest.$ac_objext'
14811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812   (eval $ac_try) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); }; }; then
14816   ac_cv_type_int=yes
14817 else
14818   echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14820
14821 ac_cv_type_int=no
14822 fi
14823 rm -f conftest.$ac_objext conftest.$ac_ext
14824 fi
14825 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14826 echo "${ECHO_T}$ac_cv_type_int" >&6
14827
14828 echo "$as_me:$LINENO: checking size of int" >&5
14829 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14830 if test "${ac_cv_sizeof_int+set}" = set; then
14831   echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833   if test "$ac_cv_type_int" = yes; then
14834   # The cast to unsigned long works around a bug in the HP C Compiler
14835   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14836   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14837   # This bug is HP SR number 8606223364.
14838   if test "$cross_compiling" = yes; then
14839   # Depending upon the size, compute the lo and hi bounds.
14840 cat >conftest.$ac_ext <<_ACEOF
14841 #line $LINENO "configure"
14842 /* confdefs.h.  */
14843 _ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h.  */
14847 $ac_includes_default
14848 int
14849 main ()
14850 {
14851 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14852 test_array [0] = 0
14853
14854   ;
14855   return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860   (eval $ac_compile) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } &&
14864          { ac_try='test -s conftest.$ac_objext'
14865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; }; then
14870   ac_lo=0 ac_mid=0
14871   while :; do
14872     cat >conftest.$ac_ext <<_ACEOF
14873 #line $LINENO "configure"
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879 $ac_includes_default
14880 int
14881 main ()
14882 {
14883 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14884 test_array [0] = 0
14885
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892   (eval $ac_compile) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); } &&
14896          { ac_try='test -s conftest.$ac_objext'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; }; then
14902   ac_hi=$ac_mid; break
14903 else
14904   echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14906
14907 ac_lo=`expr $ac_mid + 1`
14908                     if test $ac_lo -le $ac_mid; then
14909                       ac_lo= ac_hi=
14910                       break
14911                     fi
14912                     ac_mid=`expr 2 '*' $ac_mid + 1`
14913 fi
14914 rm -f conftest.$ac_objext conftest.$ac_ext
14915   done
14916 else
14917   echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14919
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line $LINENO "configure"
14922 /* confdefs.h.  */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h.  */
14927 $ac_includes_default
14928 int
14929 main ()
14930 {
14931 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14932 test_array [0] = 0
14933
14934   ;
14935   return 0;
14936 }
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940   (eval $ac_compile) 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); } &&
14944          { ac_try='test -s conftest.$ac_objext'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; }; then
14950   ac_hi=-1 ac_mid=-1
14951   while :; do
14952     cat >conftest.$ac_ext <<_ACEOF
14953 #line $LINENO "configure"
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 $ac_includes_default
14960 int
14961 main ()
14962 {
14963 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14964 test_array [0] = 0
14965
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972   (eval $ac_compile) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } &&
14976          { ac_try='test -s conftest.$ac_objext'
14977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978   (eval $ac_try) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; }; then
14982   ac_lo=$ac_mid; break
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 ac_hi=`expr '(' $ac_mid ')' - 1`
14988                        if test $ac_mid -le $ac_hi; then
14989                          ac_lo= ac_hi=
14990                          break
14991                        fi
14992                        ac_mid=`expr 2 '*' $ac_mid`
14993 fi
14994 rm -f conftest.$ac_objext conftest.$ac_ext
14995   done
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000 ac_lo= ac_hi=
15001 fi
15002 rm -f conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 rm -f conftest.$ac_objext conftest.$ac_ext
15005 # Binary search between lo and hi bounds.
15006 while test "x$ac_lo" != "x$ac_hi"; do
15007   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15008   cat >conftest.$ac_ext <<_ACEOF
15009 #line $LINENO "configure"
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015 $ac_includes_default
15016 int
15017 main ()
15018 {
15019 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15020 test_array [0] = 0
15021
15022   ;
15023   return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028   (eval $ac_compile) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } &&
15032          { ac_try='test -s conftest.$ac_objext'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; }; then
15038   ac_hi=$ac_mid
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_lo=`expr '(' $ac_mid ')' + 1`
15044 fi
15045 rm -f conftest.$ac_objext conftest.$ac_ext
15046 done
15047 case $ac_lo in
15048 ?*) ac_cv_sizeof_int=$ac_lo;;
15049 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15050 See \`config.log' for more details." >&5
15051 echo "$as_me: error: cannot compute sizeof (int), 77
15052 See \`config.log' for more details." >&2;}
15053    { (exit 1); exit 1; }; } ;;
15054 esac
15055 else
15056   if test "$cross_compiling" = yes; then
15057   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15058 See \`config.log' for more details." >&5
15059 echo "$as_me: error: cannot run test program while cross compiling
15060 See \`config.log' for more details." >&2;}
15061    { (exit 1); exit 1; }; }
15062 else
15063   cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 $ac_includes_default
15071 long longval () { return (long) (sizeof (int)); }
15072 unsigned long ulongval () { return (long) (sizeof (int)); }
15073 #include <stdio.h>
15074 #include <stdlib.h>
15075 int
15076 main ()
15077 {
15078
15079   FILE *f = fopen ("conftest.val", "w");
15080   if (! f)
15081     exit (1);
15082   if (((long) (sizeof (int))) < 0)
15083     {
15084       long i = longval ();
15085       if (i != ((long) (sizeof (int))))
15086         exit (1);
15087       fprintf (f, "%ld\n", i);
15088     }
15089   else
15090     {
15091       unsigned long i = ulongval ();
15092       if (i != ((long) (sizeof (int))))
15093         exit (1);
15094       fprintf (f, "%lu\n", i);
15095     }
15096   exit (ferror (f) || fclose (f) != 0);
15097
15098   ;
15099   return 0;
15100 }
15101 _ACEOF
15102 rm -f conftest$ac_exeext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15104   (eval $ac_link) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109   (eval $ac_try) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; }; then
15113   ac_cv_sizeof_int=`cat conftest.val`
15114 else
15115   echo "$as_me: program exited with status $ac_status" >&5
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15118
15119 ( exit $ac_status )
15120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15121 See \`config.log' for more details." >&5
15122 echo "$as_me: error: cannot compute sizeof (int), 77
15123 See \`config.log' for more details." >&2;}
15124    { (exit 1); exit 1; }; }
15125 fi
15126 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15127 fi
15128 fi
15129 rm -f conftest.val
15130 else
15131   ac_cv_sizeof_int=0
15132 fi
15133 fi
15134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15135 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15136 cat >>confdefs.h <<_ACEOF
15137 #define SIZEOF_INT $ac_cv_sizeof_int
15138 _ACEOF
15139
15140
15141 echo "$as_me:$LINENO: checking for long" >&5
15142 echo $ECHO_N "checking for long... $ECHO_C" >&6
15143 if test "${ac_cv_type_long+set}" = set; then
15144   echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146   cat >conftest.$ac_ext <<_ACEOF
15147 #line $LINENO "configure"
15148 /* confdefs.h.  */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h.  */
15153 $ac_includes_default
15154 int
15155 main ()
15156 {
15157 if ((long *) 0)
15158   return 0;
15159 if (sizeof (long))
15160   return 0;
15161   ;
15162   return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167   (eval $ac_compile) 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } &&
15171          { ac_try='test -s conftest.$ac_objext'
15172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173   (eval $ac_try) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; }; then
15177   ac_cv_type_long=yes
15178 else
15179   echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182 ac_cv_type_long=no
15183 fi
15184 rm -f conftest.$ac_objext conftest.$ac_ext
15185 fi
15186 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15187 echo "${ECHO_T}$ac_cv_type_long" >&6
15188
15189 echo "$as_me:$LINENO: checking size of long" >&5
15190 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15191 if test "${ac_cv_sizeof_long+set}" = set; then
15192   echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194   if test "$ac_cv_type_long" = yes; then
15195   # The cast to unsigned long works around a bug in the HP C Compiler
15196   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15197   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15198   # This bug is HP SR number 8606223364.
15199   if test "$cross_compiling" = yes; then
15200   # Depending upon the size, compute the lo and hi bounds.
15201 cat >conftest.$ac_ext <<_ACEOF
15202 #line $LINENO "configure"
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208 $ac_includes_default
15209 int
15210 main ()
15211 {
15212 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15213 test_array [0] = 0
15214
15215   ;
15216   return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15221   (eval $ac_compile) 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } &&
15225          { ac_try='test -s conftest.$ac_objext'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; }; then
15231   ac_lo=0 ac_mid=0
15232   while :; do
15233     cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240 $ac_includes_default
15241 int
15242 main ()
15243 {
15244 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15245 test_array [0] = 0
15246
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15253   (eval $ac_compile) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } &&
15257          { ac_try='test -s conftest.$ac_objext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_hi=$ac_mid; break
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ac_lo=`expr $ac_mid + 1`
15269                     if test $ac_lo -le $ac_mid; then
15270                       ac_lo= ac_hi=
15271                       break
15272                     fi
15273                     ac_mid=`expr 2 '*' $ac_mid + 1`
15274 fi
15275 rm -f conftest.$ac_objext conftest.$ac_ext
15276   done
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281 cat >conftest.$ac_ext <<_ACEOF
15282 #line $LINENO "configure"
15283 /* confdefs.h.  */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h.  */
15288 $ac_includes_default
15289 int
15290 main ()
15291 {
15292 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15293 test_array [0] = 0
15294
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301   (eval $ac_compile) 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } &&
15305          { ac_try='test -s conftest.$ac_objext'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   ac_hi=-1 ac_mid=-1
15312   while :; do
15313     cat >conftest.$ac_ext <<_ACEOF
15314 #line $LINENO "configure"
15315 /* confdefs.h.  */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h.  */
15320 $ac_includes_default
15321 int
15322 main ()
15323 {
15324 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15325 test_array [0] = 0
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333   (eval $ac_compile) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); } &&
15337          { ac_try='test -s conftest.$ac_objext'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343   ac_lo=$ac_mid; break
15344 else
15345   echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 ac_hi=`expr '(' $ac_mid ')' - 1`
15349                        if test $ac_mid -le $ac_hi; then
15350                          ac_lo= ac_hi=
15351                          break
15352                        fi
15353                        ac_mid=`expr 2 '*' $ac_mid`
15354 fi
15355 rm -f conftest.$ac_objext conftest.$ac_ext
15356   done
15357 else
15358   echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15360
15361 ac_lo= ac_hi=
15362 fi
15363 rm -f conftest.$ac_objext conftest.$ac_ext
15364 fi
15365 rm -f conftest.$ac_objext conftest.$ac_ext
15366 # Binary search between lo and hi bounds.
15367 while test "x$ac_lo" != "x$ac_hi"; do
15368   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15369   cat >conftest.$ac_ext <<_ACEOF
15370 #line $LINENO "configure"
15371 /* confdefs.h.  */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h.  */
15376 $ac_includes_default
15377 int
15378 main ()
15379 {
15380 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15381 test_array [0] = 0
15382
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389   (eval $ac_compile) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } &&
15393          { ac_try='test -s conftest.$ac_objext'
15394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395   (eval $ac_try) 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }; }; then
15399   ac_hi=$ac_mid
15400 else
15401   echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 ac_lo=`expr '(' $ac_mid ')' + 1`
15405 fi
15406 rm -f conftest.$ac_objext conftest.$ac_ext
15407 done
15408 case $ac_lo in
15409 ?*) ac_cv_sizeof_long=$ac_lo;;
15410 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15411 See \`config.log' for more details." >&5
15412 echo "$as_me: error: cannot compute sizeof (long), 77
15413 See \`config.log' for more details." >&2;}
15414    { (exit 1); exit 1; }; } ;;
15415 esac
15416 else
15417   if test "$cross_compiling" = yes; then
15418   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15419 See \`config.log' for more details." >&5
15420 echo "$as_me: error: cannot run test program while cross compiling
15421 See \`config.log' for more details." >&2;}
15422    { (exit 1); exit 1; }; }
15423 else
15424   cat >conftest.$ac_ext <<_ACEOF
15425 #line $LINENO "configure"
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431 $ac_includes_default
15432 long longval () { return (long) (sizeof (long)); }
15433 unsigned long ulongval () { return (long) (sizeof (long)); }
15434 #include <stdio.h>
15435 #include <stdlib.h>
15436 int
15437 main ()
15438 {
15439
15440   FILE *f = fopen ("conftest.val", "w");
15441   if (! f)
15442     exit (1);
15443   if (((long) (sizeof (long))) < 0)
15444     {
15445       long i = longval ();
15446       if (i != ((long) (sizeof (long))))
15447         exit (1);
15448       fprintf (f, "%ld\n", i);
15449     }
15450   else
15451     {
15452       unsigned long i = ulongval ();
15453       if (i != ((long) (sizeof (long))))
15454         exit (1);
15455       fprintf (f, "%lu\n", i);
15456     }
15457   exit (ferror (f) || fclose (f) != 0);
15458
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest$ac_exeext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465   (eval $ac_link) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470   (eval $ac_try) 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; }; then
15474   ac_cv_sizeof_long=`cat conftest.val`
15475 else
15476   echo "$as_me: program exited with status $ac_status" >&5
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480 ( exit $ac_status )
15481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15482 See \`config.log' for more details." >&5
15483 echo "$as_me: error: cannot compute sizeof (long), 77
15484 See \`config.log' for more details." >&2;}
15485    { (exit 1); exit 1; }; }
15486 fi
15487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15488 fi
15489 fi
15490 rm -f conftest.val
15491 else
15492   ac_cv_sizeof_long=0
15493 fi
15494 fi
15495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15496 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15497 cat >>confdefs.h <<_ACEOF
15498 #define SIZEOF_LONG $ac_cv_sizeof_long
15499 _ACEOF
15500
15501
15502
15503 case "${host}" in
15504     arm-*-linux* )
15505         echo "$as_me:$LINENO: checking for long long" >&5
15506 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15507 if test "${ac_cv_type_long_long+set}" = set; then
15508   echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510   cat >conftest.$ac_ext <<_ACEOF
15511 #line $LINENO "configure"
15512 /* confdefs.h.  */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h.  */
15517 $ac_includes_default
15518 int
15519 main ()
15520 {
15521 if ((long long *) 0)
15522   return 0;
15523 if (sizeof (long long))
15524   return 0;
15525   ;
15526   return 0;
15527 }
15528 _ACEOF
15529 rm -f conftest.$ac_objext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15531   (eval $ac_compile) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -s conftest.$ac_objext'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541   ac_cv_type_long_long=yes
15542 else
15543   echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546 ac_cv_type_long_long=no
15547 fi
15548 rm -f conftest.$ac_objext conftest.$ac_ext
15549 fi
15550 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15551 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15552
15553 echo "$as_me:$LINENO: checking size of long long" >&5
15554 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15555 if test "${ac_cv_sizeof_long_long+set}" = set; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558   if test "$ac_cv_type_long_long" = yes; then
15559   # The cast to unsigned long works around a bug in the HP C Compiler
15560   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15561   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15562   # This bug is HP SR number 8606223364.
15563   if test "$cross_compiling" = yes; then
15564   # Depending upon the size, compute the lo and hi bounds.
15565 cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572 $ac_includes_default
15573 int
15574 main ()
15575 {
15576 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15577 test_array [0] = 0
15578
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585   (eval $ac_compile) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } &&
15589          { ac_try='test -s conftest.$ac_objext'
15590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591   (eval $ac_try) 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; }; then
15595   ac_lo=0 ac_mid=0
15596   while :; do
15597     cat >conftest.$ac_ext <<_ACEOF
15598 #line $LINENO "configure"
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 $ac_includes_default
15605 int
15606 main ()
15607 {
15608 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15609 test_array [0] = 0
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15617   (eval $ac_compile) 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } &&
15621          { ac_try='test -s conftest.$ac_objext'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; }; then
15627   ac_hi=$ac_mid; break
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ac_lo=`expr $ac_mid + 1`
15633                     if test $ac_lo -le $ac_mid; then
15634                       ac_lo= ac_hi=
15635                       break
15636                     fi
15637                     ac_mid=`expr 2 '*' $ac_mid + 1`
15638 fi
15639 rm -f conftest.$ac_objext conftest.$ac_ext
15640   done
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 cat >conftest.$ac_ext <<_ACEOF
15646 #line $LINENO "configure"
15647 /* confdefs.h.  */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h.  */
15652 $ac_includes_default
15653 int
15654 main ()
15655 {
15656 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15657 test_array [0] = 0
15658
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665   (eval $ac_compile) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -s conftest.$ac_objext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_hi=-1 ac_mid=-1
15676   while :; do
15677     cat >conftest.$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684 $ac_includes_default
15685 int
15686 main ()
15687 {
15688 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15689 test_array [0] = 0
15690
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697   (eval $ac_compile) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -s conftest.$ac_objext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_lo=$ac_mid; break
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 ac_hi=`expr '(' $ac_mid ')' - 1`
15713                        if test $ac_mid -le $ac_hi; then
15714                          ac_lo= ac_hi=
15715                          break
15716                        fi
15717                        ac_mid=`expr 2 '*' $ac_mid`
15718 fi
15719 rm -f conftest.$ac_objext conftest.$ac_ext
15720   done
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725 ac_lo= ac_hi=
15726 fi
15727 rm -f conftest.$ac_objext conftest.$ac_ext
15728 fi
15729 rm -f conftest.$ac_objext conftest.$ac_ext
15730 # Binary search between lo and hi bounds.
15731 while test "x$ac_lo" != "x$ac_hi"; do
15732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15733   cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 $ac_includes_default
15741 int
15742 main ()
15743 {
15744 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15745 test_array [0] = 0
15746
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753   (eval $ac_compile) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -s conftest.$ac_objext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_hi=$ac_mid
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768 ac_lo=`expr '(' $ac_mid ')' + 1`
15769 fi
15770 rm -f conftest.$ac_objext conftest.$ac_ext
15771 done
15772 case $ac_lo in
15773 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15774 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15775 See \`config.log' for more details." >&5
15776 echo "$as_me: error: cannot compute sizeof (long long), 77
15777 See \`config.log' for more details." >&2;}
15778    { (exit 1); exit 1; }; } ;;
15779 esac
15780 else
15781   if test "$cross_compiling" = yes; then
15782   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15783 See \`config.log' for more details." >&5
15784 echo "$as_me: error: cannot run test program while cross compiling
15785 See \`config.log' for more details." >&2;}
15786    { (exit 1); exit 1; }; }
15787 else
15788   cat >conftest.$ac_ext <<_ACEOF
15789 #line $LINENO "configure"
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795 $ac_includes_default
15796 long longval () { return (long) (sizeof (long long)); }
15797 unsigned long ulongval () { return (long) (sizeof (long long)); }
15798 #include <stdio.h>
15799 #include <stdlib.h>
15800 int
15801 main ()
15802 {
15803
15804   FILE *f = fopen ("conftest.val", "w");
15805   if (! f)
15806     exit (1);
15807   if (((long) (sizeof (long long))) < 0)
15808     {
15809       long i = longval ();
15810       if (i != ((long) (sizeof (long long))))
15811         exit (1);
15812       fprintf (f, "%ld\n", i);
15813     }
15814   else
15815     {
15816       unsigned long i = ulongval ();
15817       if (i != ((long) (sizeof (long long))))
15818         exit (1);
15819       fprintf (f, "%lu\n", i);
15820     }
15821   exit (ferror (f) || fclose (f) != 0);
15822
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829   (eval $ac_link) 2>&5
15830   ac_status=$?
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834   (eval $ac_try) 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; }; then
15838   ac_cv_sizeof_long_long=`cat conftest.val`
15839 else
15840   echo "$as_me: program exited with status $ac_status" >&5
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844 ( exit $ac_status )
15845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15846 See \`config.log' for more details." >&5
15847 echo "$as_me: error: cannot compute sizeof (long long), 77
15848 See \`config.log' for more details." >&2;}
15849    { (exit 1); exit 1; }; }
15850 fi
15851 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15852 fi
15853 fi
15854 rm -f conftest.val
15855 else
15856   ac_cv_sizeof_long_long=0
15857 fi
15858 fi
15859 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15860 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15861 cat >>confdefs.h <<_ACEOF
15862 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15863 _ACEOF
15864
15865
15866     ;;
15867     *-hp-hpux* )
15868         echo "$as_me:$LINENO: checking for long long" >&5
15869 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15870 if test "${ac_cv_type_long_long+set}" = set; then
15871   echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873   cat >conftest.$ac_ext <<_ACEOF
15874 #line $LINENO "configure"
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880 $ac_includes_default
15881 int
15882 main ()
15883 {
15884 if ((long long *) 0)
15885   return 0;
15886 if (sizeof (long long))
15887   return 0;
15888   ;
15889   return 0;
15890 }
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894   (eval $ac_compile) 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -s conftest.$ac_objext'
15899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900   (eval $ac_try) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; }; then
15904   ac_cv_type_long_long=yes
15905 else
15906   echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15908
15909 ac_cv_type_long_long=no
15910 fi
15911 rm -f conftest.$ac_objext conftest.$ac_ext
15912 fi
15913 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15914 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15915
15916 echo "$as_me:$LINENO: checking size of long long" >&5
15917 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15918 if test "${ac_cv_sizeof_long_long+set}" = set; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921   if test "$ac_cv_type_long_long" = yes; then
15922   # The cast to unsigned long works around a bug in the HP C Compiler
15923   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15924   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15925   # This bug is HP SR number 8606223364.
15926   if test "$cross_compiling" = yes; then
15927   # Depending upon the size, compute the lo and hi bounds.
15928 cat >conftest.$ac_ext <<_ACEOF
15929 #line $LINENO "configure"
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 $ac_includes_default
15936 int
15937 main ()
15938 {
15939 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15940 test_array [0] = 0
15941
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948   (eval $ac_compile) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); } &&
15952          { ac_try='test -s conftest.$ac_objext'
15953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954   (eval $ac_try) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; }; then
15958   ac_lo=0 ac_mid=0
15959   while :; do
15960     cat >conftest.$ac_ext <<_ACEOF
15961 #line $LINENO "configure"
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 $ac_includes_default
15968 int
15969 main ()
15970 {
15971 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15972 test_array [0] = 0
15973
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980   (eval $ac_compile) 2>&5
15981   ac_status=$?
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -s conftest.$ac_objext'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; }; then
15990   ac_hi=$ac_mid; break
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995 ac_lo=`expr $ac_mid + 1`
15996                     if test $ac_lo -le $ac_mid; then
15997                       ac_lo= ac_hi=
15998                       break
15999                     fi
16000                     ac_mid=`expr 2 '*' $ac_mid + 1`
16001 fi
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16003   done
16004 else
16005   echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 cat >conftest.$ac_ext <<_ACEOF
16009 #line $LINENO "configure"
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 $ac_includes_default
16016 int
16017 main ()
16018 {
16019 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16020 test_array [0] = 0
16021
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028   (eval $ac_compile) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); } &&
16032          { ac_try='test -s conftest.$ac_objext'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   ac_hi=-1 ac_mid=-1
16039   while :; do
16040     cat >conftest.$ac_ext <<_ACEOF
16041 #line $LINENO "configure"
16042 /* confdefs.h.  */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h.  */
16047 $ac_includes_default
16048 int
16049 main ()
16050 {
16051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16052 test_array [0] = 0
16053
16054   ;
16055   return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060   (eval $ac_compile) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); } &&
16064          { ac_try='test -s conftest.$ac_objext'
16065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066   (eval $ac_try) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; }; then
16070   ac_lo=$ac_mid; break
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_hi=`expr '(' $ac_mid ')' - 1`
16076                        if test $ac_mid -le $ac_hi; then
16077                          ac_lo= ac_hi=
16078                          break
16079                        fi
16080                        ac_mid=`expr 2 '*' $ac_mid`
16081 fi
16082 rm -f conftest.$ac_objext conftest.$ac_ext
16083   done
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_lo= ac_hi=
16089 fi
16090 rm -f conftest.$ac_objext conftest.$ac_ext
16091 fi
16092 rm -f conftest.$ac_objext conftest.$ac_ext
16093 # Binary search between lo and hi bounds.
16094 while test "x$ac_lo" != "x$ac_hi"; do
16095   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16096   cat >conftest.$ac_ext <<_ACEOF
16097 #line $LINENO "configure"
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 int
16105 main ()
16106 {
16107 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16108 test_array [0] = 0
16109
16110   ;
16111   return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116   (eval $ac_compile) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } &&
16120          { ac_try='test -s conftest.$ac_objext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   ac_hi=$ac_mid
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 ac_lo=`expr '(' $ac_mid ')' + 1`
16132 fi
16133 rm -f conftest.$ac_objext conftest.$ac_ext
16134 done
16135 case $ac_lo in
16136 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16137 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16138 See \`config.log' for more details." >&5
16139 echo "$as_me: error: cannot compute sizeof (long long), 77
16140 See \`config.log' for more details." >&2;}
16141    { (exit 1); exit 1; }; } ;;
16142 esac
16143 else
16144   if test "$cross_compiling" = yes; then
16145   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16146 See \`config.log' for more details." >&5
16147 echo "$as_me: error: cannot run test program while cross compiling
16148 See \`config.log' for more details." >&2;}
16149    { (exit 1); exit 1; }; }
16150 else
16151   cat >conftest.$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158 $ac_includes_default
16159 long longval () { return (long) (sizeof (long long)); }
16160 unsigned long ulongval () { return (long) (sizeof (long long)); }
16161 #include <stdio.h>
16162 #include <stdlib.h>
16163 int
16164 main ()
16165 {
16166
16167   FILE *f = fopen ("conftest.val", "w");
16168   if (! f)
16169     exit (1);
16170   if (((long) (sizeof (long long))) < 0)
16171     {
16172       long i = longval ();
16173       if (i != ((long) (sizeof (long long))))
16174         exit (1);
16175       fprintf (f, "%ld\n", i);
16176     }
16177   else
16178     {
16179       unsigned long i = ulongval ();
16180       if (i != ((long) (sizeof (long long))))
16181         exit (1);
16182       fprintf (f, "%lu\n", i);
16183     }
16184   exit (ferror (f) || fclose (f) != 0);
16185
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192   (eval $ac_link) 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197   (eval $ac_try) 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; }; then
16201   ac_cv_sizeof_long_long=`cat conftest.val`
16202 else
16203   echo "$as_me: program exited with status $ac_status" >&5
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207 ( exit $ac_status )
16208 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16209 See \`config.log' for more details." >&5
16210 echo "$as_me: error: cannot compute sizeof (long long), 77
16211 See \`config.log' for more details." >&2;}
16212    { (exit 1); exit 1; }; }
16213 fi
16214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 fi
16217 rm -f conftest.val
16218 else
16219   ac_cv_sizeof_long_long=0
16220 fi
16221 fi
16222 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16223 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16224 cat >>confdefs.h <<_ACEOF
16225 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16226 _ACEOF
16227
16228
16229         if test "$ac_cv_sizeof_long_long" != "0"; then
16230                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16231         fi
16232     ;;
16233     * )
16234         echo "$as_me:$LINENO: checking for long long" >&5
16235 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16236 if test "${ac_cv_type_long_long+set}" = set; then
16237   echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239   cat >conftest.$ac_ext <<_ACEOF
16240 #line $LINENO "configure"
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 $ac_includes_default
16247 int
16248 main ()
16249 {
16250 if ((long long *) 0)
16251   return 0;
16252 if (sizeof (long long))
16253   return 0;
16254   ;
16255   return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260   (eval $ac_compile) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } &&
16264          { ac_try='test -s conftest.$ac_objext'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270   ac_cv_type_long_long=yes
16271 else
16272   echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_cv_type_long_long=no
16276 fi
16277 rm -f conftest.$ac_objext conftest.$ac_ext
16278 fi
16279 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16280 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16281
16282 echo "$as_me:$LINENO: checking size of long long" >&5
16283 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16284 if test "${ac_cv_sizeof_long_long+set}" = set; then
16285   echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287   if test "$ac_cv_type_long_long" = yes; then
16288   # The cast to unsigned long works around a bug in the HP C Compiler
16289   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16290   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16291   # This bug is HP SR number 8606223364.
16292   if test "$cross_compiling" = yes; then
16293   # Depending upon the size, compute the lo and hi bounds.
16294 cat >conftest.$ac_ext <<_ACEOF
16295 #line $LINENO "configure"
16296 /* confdefs.h.  */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h.  */
16301 $ac_includes_default
16302 int
16303 main ()
16304 {
16305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16306 test_array [0] = 0
16307
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314   (eval $ac_compile) 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } &&
16318          { ac_try='test -s conftest.$ac_objext'
16319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320   (eval $ac_try) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; }; then
16324   ac_lo=0 ac_mid=0
16325   while :; do
16326     cat >conftest.$ac_ext <<_ACEOF
16327 #line $LINENO "configure"
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333 $ac_includes_default
16334 int
16335 main ()
16336 {
16337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16338 test_array [0] = 0
16339
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346   (eval $ac_compile) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -s conftest.$ac_objext'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; }; then
16356   ac_hi=$ac_mid; break
16357 else
16358   echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16360
16361 ac_lo=`expr $ac_mid + 1`
16362                     if test $ac_lo -le $ac_mid; then
16363                       ac_lo= ac_hi=
16364                       break
16365                     fi
16366                     ac_mid=`expr 2 '*' $ac_mid + 1`
16367 fi
16368 rm -f conftest.$ac_objext conftest.$ac_ext
16369   done
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 cat >conftest.$ac_ext <<_ACEOF
16375 #line $LINENO "configure"
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 $ac_includes_default
16382 int
16383 main ()
16384 {
16385 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16386 test_array [0] = 0
16387
16388   ;
16389   return 0;
16390 }
16391 _ACEOF
16392 rm -f conftest.$ac_objext
16393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394   (eval $ac_compile) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } &&
16398          { ac_try='test -s conftest.$ac_objext'
16399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400   (eval $ac_try) 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; }; then
16404   ac_hi=-1 ac_mid=-1
16405   while :; do
16406     cat >conftest.$ac_ext <<_ACEOF
16407 #line $LINENO "configure"
16408 /* confdefs.h.  */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h.  */
16413 $ac_includes_default
16414 int
16415 main ()
16416 {
16417 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16418 test_array [0] = 0
16419
16420   ;
16421   return 0;
16422 }
16423 _ACEOF
16424 rm -f conftest.$ac_objext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426   (eval $ac_compile) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); } &&
16430          { ac_try='test -s conftest.$ac_objext'
16431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432   (eval $ac_try) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_lo=$ac_mid; break
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_hi=`expr '(' $ac_mid ')' - 1`
16442                        if test $ac_mid -le $ac_hi; then
16443                          ac_lo= ac_hi=
16444                          break
16445                        fi
16446                        ac_mid=`expr 2 '*' $ac_mid`
16447 fi
16448 rm -f conftest.$ac_objext conftest.$ac_ext
16449   done
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454 ac_lo= ac_hi=
16455 fi
16456 rm -f conftest.$ac_objext conftest.$ac_ext
16457 fi
16458 rm -f conftest.$ac_objext conftest.$ac_ext
16459 # Binary search between lo and hi bounds.
16460 while test "x$ac_lo" != "x$ac_hi"; do
16461   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16462   cat >conftest.$ac_ext <<_ACEOF
16463 #line $LINENO "configure"
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469 $ac_includes_default
16470 int
16471 main ()
16472 {
16473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16474 test_array [0] = 0
16475
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext
16481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16482   (eval $ac_compile) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); } &&
16486          { ac_try='test -s conftest.$ac_objext'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; }; then
16492   ac_hi=$ac_mid
16493 else
16494   echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 ac_lo=`expr '(' $ac_mid ')' + 1`
16498 fi
16499 rm -f conftest.$ac_objext conftest.$ac_ext
16500 done
16501 case $ac_lo in
16502 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16504 See \`config.log' for more details." >&5
16505 echo "$as_me: error: cannot compute sizeof (long long), 77
16506 See \`config.log' for more details." >&2;}
16507    { (exit 1); exit 1; }; } ;;
16508 esac
16509 else
16510   if test "$cross_compiling" = yes; then
16511   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16512 See \`config.log' for more details." >&5
16513 echo "$as_me: error: cannot run test program while cross compiling
16514 See \`config.log' for more details." >&2;}
16515    { (exit 1); exit 1; }; }
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 #line $LINENO "configure"
16519 /* confdefs.h.  */
16520 _ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h.  */
16524 $ac_includes_default
16525 long longval () { return (long) (sizeof (long long)); }
16526 unsigned long ulongval () { return (long) (sizeof (long long)); }
16527 #include <stdio.h>
16528 #include <stdlib.h>
16529 int
16530 main ()
16531 {
16532
16533   FILE *f = fopen ("conftest.val", "w");
16534   if (! f)
16535     exit (1);
16536   if (((long) (sizeof (long long))) < 0)
16537     {
16538       long i = longval ();
16539       if (i != ((long) (sizeof (long long))))
16540         exit (1);
16541       fprintf (f, "%ld\n", i);
16542     }
16543   else
16544     {
16545       unsigned long i = ulongval ();
16546       if (i != ((long) (sizeof (long long))))
16547         exit (1);
16548       fprintf (f, "%lu\n", i);
16549     }
16550   exit (ferror (f) || fclose (f) != 0);
16551
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 rm -f conftest$ac_exeext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16558   (eval $ac_link) 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563   (eval $ac_try) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); }; }; then
16567   ac_cv_sizeof_long_long=`cat conftest.val`
16568 else
16569   echo "$as_me: program exited with status $ac_status" >&5
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16572
16573 ( exit $ac_status )
16574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16575 See \`config.log' for more details." >&5
16576 echo "$as_me: error: cannot compute sizeof (long long), 77
16577 See \`config.log' for more details." >&2;}
16578    { (exit 1); exit 1; }; }
16579 fi
16580 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 fi
16583 rm -f conftest.val
16584 else
16585   ac_cv_sizeof_long_long=0
16586 fi
16587 fi
16588 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16589 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16590 cat >>confdefs.h <<_ACEOF
16591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16592 _ACEOF
16593
16594
16595 esac
16596
16597 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16598 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16599 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602
16603     if test "$cross_compiling" = yes; then
16604
16605             case "${host}" in
16606               *-pc-msdosdjgpp )
16607                 wx_cv_sizeof_wchar_t=0
16608                 ;;
16609               * )
16610                 wx_cv_sizeof_wchar_t=4
16611                 ;;
16612             esac
16613
16614
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623
16624             /* DJGPP only has fake wchar_t: */
16625             #ifdef __DJGPP__
16626             #  error "fake wchar_t"
16627             #endif
16628             #ifdef HAVE_WCHAR_H
16629             #  ifdef __CYGWIN__
16630             #    include <stddef.h>
16631             #  endif
16632             #  include <wchar.h>
16633             #endif
16634             #ifdef HAVE_STDLIB_H
16635             #  include <stdlib.h>
16636             #endif
16637             #include <stdio.h>
16638             int main()
16639             {
16640                 FILE *f=fopen("conftestval", "w");
16641                 if (!f) exit(1);
16642                 fprintf(f, "%i", sizeof(wchar_t));
16643                 exit(0);
16644             }
16645
16646 _ACEOF
16647 rm -f conftest$ac_exeext
16648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16649   (eval $ac_link) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }; then
16658   wx_cv_sizeof_wchar_t=`cat conftestval`
16659 else
16660   echo "$as_me: program exited with status $ac_status" >&5
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664 ( exit $ac_status )
16665 wx_cv_sizeof_wchar_t=0
16666 fi
16667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16668 fi
16669
16670 fi
16671 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16672 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
16673
16674 cat >>confdefs.h <<_ACEOF
16675 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
16676 _ACEOF
16677
16678
16679 # Check whether --enable-largefile or --disable-largefile was given.
16680 if test "${enable_largefile+set}" = set; then
16681   enableval="$enable_largefile"
16682
16683 fi;
16684 if test "$enable_largefile" != no; then
16685             wx_largefile=no
16686
16687     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16688 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16689 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692
16693           cat >conftest.$ac_ext <<_ACEOF
16694 #line $LINENO "configure"
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 #define _FILE_OFFSET_BITS 64
16701                           #include <sys/types.h>
16702 int
16703 main ()
16704 {
16705 typedef struct {
16706     unsigned int field: sizeof(off_t) == 8;
16707 } wxlf;
16708
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715   (eval $ac_compile) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_cv_sys_file_offset_bits=64
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ac_cv_sys_file_offset_bits=no
16731 fi
16732 rm -f conftest.$ac_objext conftest.$ac_ext
16733
16734
16735 fi
16736 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16737 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16738
16739     if test "$ac_cv_sys_file_offset_bits" != no; then
16740         wx_largefile=yes
16741         cat >>confdefs.h <<_ACEOF
16742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16743 _ACEOF
16744
16745     fi
16746
16747     if test "x$wx_largefile" != "xyes"; then
16748
16749     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16750 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16751 if test "${ac_cv_sys_large_files+set}" = set; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754
16755           cat >conftest.$ac_ext <<_ACEOF
16756 #line $LINENO "configure"
16757 /* confdefs.h.  */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h.  */
16762 #define _LARGE_FILES 1
16763                           #include <sys/types.h>
16764 int
16765 main ()
16766 {
16767 typedef struct {
16768     unsigned int field: sizeof(off_t) == 8;
16769 } wxlf;
16770
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777   (eval $ac_compile) 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -s conftest.$ac_objext'
16782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783   (eval $ac_try) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787   ac_cv_sys_large_files=1
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792 ac_cv_sys_large_files=no
16793 fi
16794 rm -f conftest.$ac_objext conftest.$ac_ext
16795
16796
16797 fi
16798 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16799 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16800
16801     if test "$ac_cv_sys_large_files" != no; then
16802         wx_largefile=yes
16803         cat >>confdefs.h <<_ACEOF
16804 #define _LARGE_FILES $ac_cv_sys_large_files
16805 _ACEOF
16806
16807     fi
16808
16809     fi
16810
16811     echo "$as_me:$LINENO: checking if large file support is available" >&5
16812 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
16813     if test "x$wx_largefile" = "xyes"; then
16814         cat >>confdefs.h <<\_ACEOF
16815 #define HAVE_LARGEFILE_SUPPORT 1
16816 _ACEOF
16817
16818     fi
16819     echo "$as_me:$LINENO: result: $wx_largefile" >&5
16820 echo "${ECHO_T}$wx_largefile" >&6
16821 fi
16822
16823
16824 if test "x$wx_largefile" = "xyes"; then
16825     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16826         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
16827     else
16828         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
16829     fi
16830     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
16831 fi
16832
16833 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16834 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16835 if test "${ac_cv_c_bigendian+set}" = set; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838   ac_cv_c_bigendian=unknown
16839 # See if sys/param.h defines the BYTE_ORDER macro.
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847 #include <sys/types.h>
16848 #include <sys/param.h>
16849 int
16850 main ()
16851 {
16852
16853 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16854  bogus endian macros
16855 #endif
16856   ;
16857   return 0;
16858 }
16859 _ACEOF
16860 rm -f conftest.$ac_objext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16862   (eval $ac_compile) 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -s conftest.$ac_objext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   # It does; now see whether it defined to BIG_ENDIAN or not.
16873 cat >conftest.$ac_ext <<_ACEOF
16874 #line $LINENO "configure"
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880 #include <sys/types.h>
16881 #include <sys/param.h>
16882 int
16883 main ()
16884 {
16885
16886 #if BYTE_ORDER != BIG_ENDIAN
16887  not big endian
16888 #endif
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895   (eval $ac_compile) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -s conftest.$ac_objext'
16900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901   (eval $ac_try) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; }; then
16905   ac_cv_c_bigendian=yes
16906 else
16907   echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910 ac_cv_c_bigendian=no
16911 fi
16912 rm -f conftest.$ac_objext conftest.$ac_ext
16913 else
16914   echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 fi
16918 rm -f conftest.$ac_objext conftest.$ac_ext
16919 if test $ac_cv_c_bigendian = unknown; then
16920 if test "$cross_compiling" = yes; then
16921   ac_cv_c_bigendian=unknown
16922 else
16923   cat >conftest.$ac_ext <<_ACEOF
16924 #line $LINENO "configure"
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930 main () {
16931   /* Are we little or big endian?  From Harbison&Steele.  */
16932   union
16933   {
16934     long l;
16935     char c[sizeof (long)];
16936   } u;
16937   u.l = 1;
16938   exit (u.c[sizeof (long) - 1] == 1);
16939 }
16940 _ACEOF
16941 rm -f conftest$ac_exeext
16942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16943   (eval $ac_link) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_cv_c_bigendian=no
16953 else
16954   echo "$as_me: program exited with status $ac_status" >&5
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 ( exit $ac_status )
16959 ac_cv_c_bigendian=yes
16960 fi
16961 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16962 fi
16963 fi
16964 fi
16965 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16966 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16967 if test $ac_cv_c_bigendian = unknown; then
16968   { 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
16969 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;}
16970 fi
16971 if test $ac_cv_c_bigendian = yes; then
16972   cat >>confdefs.h <<\_ACEOF
16973 #define WORDS_BIGENDIAN 1
16974 _ACEOF
16975
16976 fi
16977
16978
16979
16980 ac_ext=cc
16981 ac_cpp='$CXXCPP $CPPFLAGS'
16982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16985 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16987 if test -z "$CXXCPP"; then
16988   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991       # Double quotes because CXXCPP needs to be expanded
16992     for CXXCPP in "$CXX -E" "/lib/cpp"
16993     do
16994       ac_preproc_ok=false
16995 for ac_cxx_preproc_warn_flag in '' yes
16996 do
16997   # Use a header file that comes with gcc, so configuring glibc
16998   # with a fresh cross-compiler works.
16999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17000   # <limits.h> exists even on freestanding compilers.
17001   # On the NeXT, cc -E runs the code through the compiler's parser,
17002   # not just through cpp. "Syntax error" is here to catch this case.
17003   cat >conftest.$ac_ext <<_ACEOF
17004 #line $LINENO "configure"
17005 /* confdefs.h.  */
17006 _ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h.  */
17010 #ifdef __STDC__
17011 # include <limits.h>
17012 #else
17013 # include <assert.h>
17014 #endif
17015                      Syntax error
17016 _ACEOF
17017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17018   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } >/dev/null; then
17025   if test -s conftest.err; then
17026     ac_cpp_err=$ac_cxx_preproc_warn_flag
17027   else
17028     ac_cpp_err=
17029   fi
17030 else
17031   ac_cpp_err=yes
17032 fi
17033 if test -z "$ac_cpp_err"; then
17034   :
17035 else
17036   echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039   # Broken: fails on valid input.
17040 continue
17041 fi
17042 rm -f conftest.err conftest.$ac_ext
17043
17044   # OK, works on sane cases.  Now check whether non-existent headers
17045   # can be detected and how.
17046   cat >conftest.$ac_ext <<_ACEOF
17047 #line $LINENO "configure"
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 #include <ac_nonexistent.h>
17054 _ACEOF
17055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17057   ac_status=$?
17058   grep -v '^ *+' conftest.er1 >conftest.err
17059   rm -f conftest.er1
17060   cat conftest.err >&5
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } >/dev/null; then
17063   if test -s conftest.err; then
17064     ac_cpp_err=$ac_cxx_preproc_warn_flag
17065   else
17066     ac_cpp_err=
17067   fi
17068 else
17069   ac_cpp_err=yes
17070 fi
17071 if test -z "$ac_cpp_err"; then
17072   # Broken: success on invalid input.
17073 continue
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078   # Passes both tests.
17079 ac_preproc_ok=:
17080 break
17081 fi
17082 rm -f conftest.err conftest.$ac_ext
17083
17084 done
17085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17086 rm -f conftest.err conftest.$ac_ext
17087 if $ac_preproc_ok; then
17088   break
17089 fi
17090
17091     done
17092     ac_cv_prog_CXXCPP=$CXXCPP
17093
17094 fi
17095   CXXCPP=$ac_cv_prog_CXXCPP
17096 else
17097   ac_cv_prog_CXXCPP=$CXXCPP
17098 fi
17099 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17100 echo "${ECHO_T}$CXXCPP" >&6
17101 ac_preproc_ok=false
17102 for ac_cxx_preproc_warn_flag in '' yes
17103 do
17104   # Use a header file that comes with gcc, so configuring glibc
17105   # with a fresh cross-compiler works.
17106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17107   # <limits.h> exists even on freestanding compilers.
17108   # On the NeXT, cc -E runs the code through the compiler's parser,
17109   # not just through cpp. "Syntax error" is here to catch this case.
17110   cat >conftest.$ac_ext <<_ACEOF
17111 #line $LINENO "configure"
17112 /* confdefs.h.  */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h.  */
17117 #ifdef __STDC__
17118 # include <limits.h>
17119 #else
17120 # include <assert.h>
17121 #endif
17122                      Syntax error
17123 _ACEOF
17124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17126   ac_status=$?
17127   grep -v '^ *+' conftest.er1 >conftest.err
17128   rm -f conftest.er1
17129   cat conftest.err >&5
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } >/dev/null; then
17132   if test -s conftest.err; then
17133     ac_cpp_err=$ac_cxx_preproc_warn_flag
17134   else
17135     ac_cpp_err=
17136   fi
17137 else
17138   ac_cpp_err=yes
17139 fi
17140 if test -z "$ac_cpp_err"; then
17141   :
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146   # Broken: fails on valid input.
17147 continue
17148 fi
17149 rm -f conftest.err conftest.$ac_ext
17150
17151   # OK, works on sane cases.  Now check whether non-existent headers
17152   # can be detected and how.
17153   cat >conftest.$ac_ext <<_ACEOF
17154 #line $LINENO "configure"
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160 #include <ac_nonexistent.h>
17161 _ACEOF
17162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17164   ac_status=$?
17165   grep -v '^ *+' conftest.er1 >conftest.err
17166   rm -f conftest.er1
17167   cat conftest.err >&5
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); } >/dev/null; then
17170   if test -s conftest.err; then
17171     ac_cpp_err=$ac_cxx_preproc_warn_flag
17172   else
17173     ac_cpp_err=
17174   fi
17175 else
17176   ac_cpp_err=yes
17177 fi
17178 if test -z "$ac_cpp_err"; then
17179   # Broken: success on invalid input.
17180 continue
17181 else
17182   echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17184
17185   # Passes both tests.
17186 ac_preproc_ok=:
17187 break
17188 fi
17189 rm -f conftest.err conftest.$ac_ext
17190
17191 done
17192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17193 rm -f conftest.err conftest.$ac_ext
17194 if $ac_preproc_ok; then
17195   :
17196 else
17197   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17198 See \`config.log' for more details." >&5
17199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17200 See \`config.log' for more details." >&2;}
17201    { (exit 1); exit 1; }; }
17202 fi
17203
17204 ac_ext=cc
17205 ac_cpp='$CXXCPP $CPPFLAGS'
17206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17209
17210
17211
17212   if test "$cross_compiling" = "yes"; then
17213     cat >>confdefs.h <<\_ACEOF
17214 #define wxUSE_IOSTREAMH 1
17215 _ACEOF
17216
17217   else
17218
17219
17220     ac_ext=cc
17221 ac_cpp='$CXXCPP $CPPFLAGS'
17222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17225
17226
17227
17228 for ac_header in iostream
17229 do
17230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17232   echo "$as_me:$LINENO: checking for $ac_header" >&5
17233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17235   echo $ECHO_N "(cached) $ECHO_C" >&6
17236 fi
17237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17239 else
17240   # Is the header compilable?
17241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17243 cat >conftest.$ac_ext <<_ACEOF
17244 #line $LINENO "configure"
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250 $ac_includes_default
17251 #include <$ac_header>
17252 _ACEOF
17253 rm -f conftest.$ac_objext
17254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17255   (eval $ac_compile) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); } &&
17259          { ac_try='test -s conftest.$ac_objext'
17260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261   (eval $ac_try) 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; }; then
17265   ac_header_compiler=yes
17266 else
17267   echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_header_compiler=no
17271 fi
17272 rm -f conftest.$ac_objext conftest.$ac_ext
17273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17274 echo "${ECHO_T}$ac_header_compiler" >&6
17275
17276 # Is the header present?
17277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17279 cat >conftest.$ac_ext <<_ACEOF
17280 #line $LINENO "configure"
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286 #include <$ac_header>
17287 _ACEOF
17288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17290   ac_status=$?
17291   grep -v '^ *+' conftest.er1 >conftest.err
17292   rm -f conftest.er1
17293   cat conftest.err >&5
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } >/dev/null; then
17296   if test -s conftest.err; then
17297     ac_cpp_err=$ac_cxx_preproc_warn_flag
17298   else
17299     ac_cpp_err=
17300   fi
17301 else
17302   ac_cpp_err=yes
17303 fi
17304 if test -z "$ac_cpp_err"; then
17305   ac_header_preproc=yes
17306 else
17307   echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310   ac_header_preproc=no
17311 fi
17312 rm -f conftest.err conftest.$ac_ext
17313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17314 echo "${ECHO_T}$ac_header_preproc" >&6
17315
17316 # So?  What about this header?
17317 case $ac_header_compiler:$ac_header_preproc in
17318   yes:no )
17319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323     (
17324       cat <<\_ASBOX
17325 ## ------------------------------------ ##
17326 ## Report this to bug-autoconf@gnu.org. ##
17327 ## ------------------------------------ ##
17328 _ASBOX
17329     ) |
17330       sed "s/^/$as_me: WARNING:     /" >&2
17331     ;;
17332   no:yes )
17333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17335     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17339     (
17340       cat <<\_ASBOX
17341 ## ------------------------------------ ##
17342 ## Report this to bug-autoconf@gnu.org. ##
17343 ## ------------------------------------ ##
17344 _ASBOX
17345     ) |
17346       sed "s/^/$as_me: WARNING:     /" >&2
17347     ;;
17348 esac
17349 echo "$as_me:$LINENO: checking for $ac_header" >&5
17350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17352   echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354   eval "$as_ac_Header=$ac_header_preproc"
17355 fi
17356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17358
17359 fi
17360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17361   cat >>confdefs.h <<_ACEOF
17362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17363 _ACEOF
17364
17365 fi
17366
17367 done
17368
17369
17370     if test "$ac_cv_header_iostream" = "yes" ; then
17371       :
17372     else
17373       cat >>confdefs.h <<\_ACEOF
17374 #define wxUSE_IOSTREAMH 1
17375 _ACEOF
17376
17377     fi
17378
17379     ac_ext=c
17380 ac_cpp='$CPP $CPPFLAGS'
17381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17384
17385   fi
17386
17387
17388
17389   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17390 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17391 if test "${wx_cv_cpp_bool+set}" = set; then
17392   echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394
17395
17396
17397     ac_ext=cc
17398 ac_cpp='$CXXCPP $CPPFLAGS'
17399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17402
17403
17404     cat >conftest.$ac_ext <<_ACEOF
17405 #line $LINENO "configure"
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411
17412
17413 int
17414 main ()
17415 {
17416
17417         bool b = true;
17418
17419         return 0;
17420
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427   (eval $ac_compile) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -s conftest.$ac_objext'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437
17438         wx_cv_cpp_bool=yes
17439
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444
17445         wx_cv_cpp_bool=no
17446
17447
17448 fi
17449 rm -f conftest.$ac_objext conftest.$ac_ext
17450
17451     ac_ext=c
17452 ac_cpp='$CPP $CPPFLAGS'
17453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17456
17457
17458 fi
17459 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17460 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17461
17462   if test "$wx_cv_cpp_bool" = "yes"; then
17463     cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_BOOL 1
17465 _ACEOF
17466
17467   fi
17468
17469
17470
17471   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17472 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17473 if test "${wx_cv_explicit+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476
17477
17478
17479     ac_ext=cc
17480 ac_cpp='$CXXCPP $CPPFLAGS'
17481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17484
17485
17486             cat >conftest.$ac_ext <<_ACEOF
17487 #line $LINENO "configure"
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493
17494         class Foo { public: explicit Foo(int) {} };
17495
17496 int
17497 main ()
17498 {
17499
17500         return 0;
17501
17502   ;
17503   return 0;
17504 }
17505 _ACEOF
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508   (eval $ac_compile) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } &&
17512          { ac_try='test -s conftest.$ac_objext'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518
17519         cat >conftest.$ac_ext <<_ACEOF
17520 #line $LINENO "configure"
17521 /* confdefs.h.  */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h.  */
17526
17527                 class Foo { public: explicit Foo(int) {} };
17528                 static void TakeFoo(const Foo& foo) { }
17529
17530 int
17531 main ()
17532 {
17533
17534                 TakeFoo(17);
17535                 return 0;
17536
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543   (eval $ac_compile) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); } &&
17547          { ac_try='test -s conftest.$ac_objext'
17548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549   (eval $ac_try) 2>&5
17550   ac_status=$?
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); }; }; then
17553   wx_cv_explicit=no
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 wx_cv_explicit=yes
17559
17560 fi
17561 rm -f conftest.$ac_objext conftest.$ac_ext
17562
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 wx_cv_explicit=no
17568
17569 fi
17570 rm -f conftest.$ac_objext conftest.$ac_ext
17571
17572     ac_ext=c
17573 ac_cpp='$CPP $CPPFLAGS'
17574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17577
17578
17579 fi
17580 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17581 echo "${ECHO_T}$wx_cv_explicit" >&6
17582
17583   if test "$wx_cv_explicit" = "yes"; then
17584     cat >>confdefs.h <<\_ACEOF
17585 #define HAVE_EXPLICIT 1
17586 _ACEOF
17587
17588   fi
17589
17590
17591 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17592 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17593 if test "${ac_cv_cxx_const_cast+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596
17597
17598  ac_ext=cc
17599 ac_cpp='$CXXCPP $CPPFLAGS'
17600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17603
17604  cat >conftest.$ac_ext <<_ACEOF
17605 #line $LINENO "configure"
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611
17612 int
17613 main ()
17614 {
17615 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
17616   ;
17617   return 0;
17618 }
17619 _ACEOF
17620 rm -f conftest.$ac_objext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622   (eval $ac_compile) 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -s conftest.$ac_objext'
17627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628   (eval $ac_try) 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; }; then
17632   ac_cv_cxx_const_cast=yes
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 ac_cv_cxx_const_cast=no
17638 fi
17639 rm -f conftest.$ac_objext conftest.$ac_ext
17640  ac_ext=c
17641 ac_cpp='$CPP $CPPFLAGS'
17642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645
17646
17647 fi
17648 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17649 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
17650 if test "$ac_cv_cxx_const_cast" = yes; then
17651
17652 cat >>confdefs.h <<\_ACEOF
17653 #define HAVE_CONST_CAST
17654 _ACEOF
17655
17656 fi
17657
17658
17659
17660 SEARCH_INCLUDE="\
17661     /usr/local/include        \
17662                               \
17663     /usr/Motif-1.2/include    \
17664     /usr/Motif-2.1/include    \
17665                               \
17666     /usr/include/Motif1.2     \
17667     /opt/xpm/include/X11      \
17668     /opt/GBxpm/include/       \
17669     /opt/GBxpm/X11/include/   \
17670                               \
17671     /usr/Motif1.2/include     \
17672     /usr/dt/include           \
17673     /usr/openwin/include      \
17674                               \
17675     /usr/include/Xm           \
17676                               \
17677     /usr/X11R6/include        \
17678     /usr/X11R6.4/include      \
17679     /usr/X11R5/include        \
17680     /usr/X11R4/include        \
17681                               \
17682     /usr/include/X11R6        \
17683     /usr/include/X11R5        \
17684     /usr/include/X11R4        \
17685                               \
17686     /usr/local/X11R6/include  \
17687     /usr/local/X11R5/include  \
17688     /usr/local/X11R4/include  \
17689                               \
17690     /usr/local/include/X11R6  \
17691     /usr/local/include/X11R5  \
17692     /usr/local/include/X11R4  \
17693                               \
17694     /usr/X11/include          \
17695     /usr/include/X11          \
17696     /usr/local/X11/include    \
17697     /usr/local/include/X11    \
17698                               \
17699     /usr/X386/include         \
17700     /usr/x386/include         \
17701     /usr/XFree86/include/X11  \
17702                               \
17703     X:/XFree86/include        \
17704     X:/XFree86/include/X11    \
17705                               \
17706     /usr/include/gtk          \
17707     /usr/local/include/gtk    \
17708     /usr/include/glib         \
17709     /usr/local/include/glib   \
17710                               \
17711     /usr/include/qt           \
17712     /usr/local/include/qt     \
17713                               \
17714     /usr/include/windows      \
17715     /usr/include/wine         \
17716     /usr/local/include/wine   \
17717                               \
17718     /usr/unsupported/include  \
17719     /usr/athena/include       \
17720     /usr/local/x11r5/include  \
17721     /usr/lpp/Xamples/include  \
17722                               \
17723     /usr/openwin/share/include"
17724
17725 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17726
17727
17728 cat >confcache <<\_ACEOF
17729 # This file is a shell script that caches the results of configure
17730 # tests run on this system so they can be shared between configure
17731 # scripts and configure runs, see configure's option --config-cache.
17732 # It is not useful on other systems.  If it contains results you don't
17733 # want to keep, you may remove or edit it.
17734 #
17735 # config.status only pays attention to the cache file if you give it
17736 # the --recheck option to rerun configure.
17737 #
17738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17740 # following values.
17741
17742 _ACEOF
17743
17744 # The following way of writing the cache mishandles newlines in values,
17745 # but we know of no workaround that is simple, portable, and efficient.
17746 # So, don't put newlines in cache variables' values.
17747 # Ultrix sh set writes to stderr and can't be redirected directly,
17748 # and sets the high bit in the cache file unless we assign to the vars.
17749 {
17750   (set) 2>&1 |
17751     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17752     *ac_space=\ *)
17753       # `set' does not quote correctly, so add quotes (double-quote
17754       # substitution turns \\\\ into \\, and sed turns \\ into \).
17755       sed -n \
17756         "s/'/'\\\\''/g;
17757           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17758       ;;
17759     *)
17760       # `set' quotes correctly as required by POSIX, so do not add quotes.
17761       sed -n \
17762         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17763       ;;
17764     esac;
17765 } |
17766   sed '
17767      t clear
17768      : clear
17769      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17770      t end
17771      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17772      : end' >>confcache
17773 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17774   if test -w $cache_file; then
17775     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17776     cat confcache >$cache_file
17777   else
17778     echo "not updating unwritable cache $cache_file"
17779   fi
17780 fi
17781 rm -f confcache
17782
17783 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
17784     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17785 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17786 if test "${wx_cv_lib_glibc21+set}" = set; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789
17790         cat >conftest.$ac_ext <<_ACEOF
17791 #line $LINENO "configure"
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797 #include <features.h>
17798 int
17799 main ()
17800 {
17801
17802                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17803                     #error not glibc2.1
17804                 #endif
17805
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17812   (eval $ac_compile) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } &&
17816          { ac_try='test -s conftest.$ac_objext'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822
17823                 wx_cv_lib_glibc21=yes
17824
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829
17830                 wx_cv_lib_glibc21=no
17831
17832
17833 fi
17834 rm -f conftest.$ac_objext conftest.$ac_ext
17835
17836 fi
17837 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17838 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
17839     if test "$wx_cv_lib_glibc21" = "yes"; then
17840         cat >>confdefs.h <<\_ACEOF
17841 #define wxHAVE_GLIBC2 1
17842 _ACEOF
17843
17844     fi
17845 fi
17846
17847 if test "x$wx_cv_lib_glibc21" = "xyes"; then
17848     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
17849         cat >>confdefs.h <<\_ACEOF
17850 #define _GNU_SOURCE 1
17851 _ACEOF
17852
17853     fi
17854 fi
17855
17856
17857
17858 REGEX_INCLUDE=
17859 if test "$wxUSE_REGEX" != "no"; then
17860     cat >>confdefs.h <<\_ACEOF
17861 #define wxUSE_REGEX 1
17862 _ACEOF
17863
17864
17865     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
17866                         if test "${ac_cv_header_regex_h+set}" = set; then
17867   echo "$as_me:$LINENO: checking for regex.h" >&5
17868 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17869 if test "${ac_cv_header_regex_h+set}" = set; then
17870   echo $ECHO_N "(cached) $ECHO_C" >&6
17871 fi
17872 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17873 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17874 else
17875   # Is the header compilable?
17876 echo "$as_me:$LINENO: checking regex.h usability" >&5
17877 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
17879 #line $LINENO "configure"
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885 $ac_includes_default
17886 #include <regex.h>
17887 _ACEOF
17888 rm -f conftest.$ac_objext
17889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17890   (eval $ac_compile) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } &&
17894          { ac_try='test -s conftest.$ac_objext'
17895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896   (eval $ac_try) 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; }; then
17900   ac_header_compiler=yes
17901 else
17902   echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17904
17905 ac_header_compiler=no
17906 fi
17907 rm -f conftest.$ac_objext conftest.$ac_ext
17908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17909 echo "${ECHO_T}$ac_header_compiler" >&6
17910
17911 # Is the header present?
17912 echo "$as_me:$LINENO: checking regex.h presence" >&5
17913 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17914 cat >conftest.$ac_ext <<_ACEOF
17915 #line $LINENO "configure"
17916 /* confdefs.h.  */
17917 _ACEOF
17918 cat confdefs.h >>conftest.$ac_ext
17919 cat >>conftest.$ac_ext <<_ACEOF
17920 /* end confdefs.h.  */
17921 #include <regex.h>
17922 _ACEOF
17923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } >/dev/null; then
17931   if test -s conftest.err; then
17932     ac_cpp_err=$ac_c_preproc_warn_flag
17933   else
17934     ac_cpp_err=
17935   fi
17936 else
17937   ac_cpp_err=yes
17938 fi
17939 if test -z "$ac_cpp_err"; then
17940   ac_header_preproc=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945   ac_header_preproc=no
17946 fi
17947 rm -f conftest.err conftest.$ac_ext
17948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17949 echo "${ECHO_T}$ac_header_preproc" >&6
17950
17951 # So?  What about this header?
17952 case $ac_header_compiler:$ac_header_preproc in
17953   yes:no )
17954     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17955 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17956     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17957 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17958     (
17959       cat <<\_ASBOX
17960 ## ------------------------------------ ##
17961 ## Report this to bug-autoconf@gnu.org. ##
17962 ## ------------------------------------ ##
17963 _ASBOX
17964     ) |
17965       sed "s/^/$as_me: WARNING:     /" >&2
17966     ;;
17967   no:yes )
17968     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17969 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17970     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17971 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17972     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17973 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17974     (
17975       cat <<\_ASBOX
17976 ## ------------------------------------ ##
17977 ## Report this to bug-autoconf@gnu.org. ##
17978 ## ------------------------------------ ##
17979 _ASBOX
17980     ) |
17981       sed "s/^/$as_me: WARNING:     /" >&2
17982     ;;
17983 esac
17984 echo "$as_me:$LINENO: checking for regex.h" >&5
17985 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17986 if test "${ac_cv_header_regex_h+set}" = set; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989   ac_cv_header_regex_h=$ac_header_preproc
17990 fi
17991 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17992 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17993
17994 fi
17995 if test $ac_cv_header_regex_h = yes; then
17996
17997 for ac_func in regcomp
17998 do
17999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18000 echo "$as_me:$LINENO: checking for $ac_func" >&5
18001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18002 if eval "test \"\${$as_ac_var+set}\" = set"; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 /* System header to define __stub macros and hopefully few prototypes,
18013     which can conflict with char $ac_func (); below.
18014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18015     <limits.h> exists even on freestanding compilers.  */
18016 #ifdef __STDC__
18017 # include <limits.h>
18018 #else
18019 # include <assert.h>
18020 #endif
18021 /* Override any gcc2 internal prototype to avoid an error.  */
18022 #ifdef __cplusplus
18023 extern "C"
18024 {
18025 #endif
18026 /* We use char because int might match the return type of a gcc2
18027    builtin and then its argument prototype would still apply.  */
18028 char $ac_func ();
18029 /* The GNU C library defines this for functions which it implements
18030     to always fail with ENOSYS.  Some functions are actually named
18031     something starting with __ and the normal name is an alias.  */
18032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18033 choke me
18034 #else
18035 char (*f) () = $ac_func;
18036 #endif
18037 #ifdef __cplusplus
18038 }
18039 #endif
18040
18041 int
18042 main ()
18043 {
18044 return f != $ac_func;
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051   (eval $ac_link) 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); } &&
18055          { ac_try='test -s conftest$ac_exeext'
18056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057   (eval $ac_try) 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; }; then
18061   eval "$as_ac_var=yes"
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 eval "$as_ac_var=no"
18067 fi
18068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18069 fi
18070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18072 if test `eval echo '${'$as_ac_var'}'` = yes; then
18073   cat >>confdefs.h <<_ACEOF
18074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18075 _ACEOF
18076
18077 fi
18078 done
18079
18080 fi
18081
18082
18083
18084         if test "x$ac_cv_func_regcomp" != "xyes"; then
18085             if test "$wxUSE_REGEX" = "sys" ; then
18086                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18087 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18088    { (exit 1); exit 1; }; }
18089             else
18090                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18091 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18092                 wxUSE_REGEX=builtin
18093             fi
18094         else
18095                         wxUSE_REGEX=sys
18096         fi
18097     fi
18098
18099     if test "$wxUSE_REGEX" = "builtin" ; then
18100         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
18101     fi
18102 fi
18103
18104
18105 ZLIB_INCLUDE=
18106 ZLIB_LINK=
18107 if test "$wxUSE_ZLIB" != "no" ; then
18108     cat >>confdefs.h <<\_ACEOF
18109 #define wxUSE_ZLIB 1
18110 _ACEOF
18111
18112
18113     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18114                                                 if test "$USE_DARWIN" = 1; then
18115             system_zlib_h_ok="yes"
18116         else
18117                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18118 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18119 if test "${ac_cv_header_zlib_h+set}" = set; then
18120   echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122   if test "$cross_compiling" = yes; then
18123                       unset ac_cv_header_zlib_h
18124
18125 else
18126   cat >conftest.$ac_ext <<_ACEOF
18127 #line $LINENO "configure"
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133
18134                         #include <zlib.h>
18135                         #include <stdio.h>
18136
18137                         int main()
18138                         {
18139                             FILE *f=fopen("conftestval", "w");
18140                             if (!f) exit(1);
18141                             fprintf(f, "%s",
18142                                     ZLIB_VERSION[0] == '1' &&
18143                                     (ZLIB_VERSION[2] > '1' ||
18144                                     (ZLIB_VERSION[2] == '1' &&
18145                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18146                             exit(0);
18147                         }
18148
18149 _ACEOF
18150 rm -f conftest$ac_exeext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18152   (eval $ac_link) 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; }; then
18161   ac_cv_header_zlib_h=`cat conftestval`
18162 else
18163   echo "$as_me: program exited with status $ac_status" >&5
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 ( exit $ac_status )
18168 ac_cv_header_zlib_h=no
18169 fi
18170 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18171 fi
18172
18173 fi
18174 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18175 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18176                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18177   echo "$as_me:$LINENO: checking for zlib.h" >&5
18178 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18179 if test "${ac_cv_header_zlib_h+set}" = set; then
18180   echo $ECHO_N "(cached) $ECHO_C" >&6
18181 fi
18182 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18183 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18184 else
18185   # Is the header compilable?
18186 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18187 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18188 cat >conftest.$ac_ext <<_ACEOF
18189 #line $LINENO "configure"
18190 /* confdefs.h.  */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h.  */
18195 $ac_includes_default
18196 #include <zlib.h>
18197 _ACEOF
18198 rm -f conftest.$ac_objext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18200   (eval $ac_compile) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } &&
18204          { ac_try='test -s conftest.$ac_objext'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; }; then
18210   ac_header_compiler=yes
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ac_header_compiler=no
18216 fi
18217 rm -f conftest.$ac_objext conftest.$ac_ext
18218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18219 echo "${ECHO_T}$ac_header_compiler" >&6
18220
18221 # Is the header present?
18222 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18223 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18224 cat >conftest.$ac_ext <<_ACEOF
18225 #line $LINENO "configure"
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 #include <zlib.h>
18232 _ACEOF
18233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18235   ac_status=$?
18236   grep -v '^ *+' conftest.er1 >conftest.err
18237   rm -f conftest.er1
18238   cat conftest.err >&5
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); } >/dev/null; then
18241   if test -s conftest.err; then
18242     ac_cpp_err=$ac_c_preproc_warn_flag
18243   else
18244     ac_cpp_err=
18245   fi
18246 else
18247   ac_cpp_err=yes
18248 fi
18249 if test -z "$ac_cpp_err"; then
18250   ac_header_preproc=yes
18251 else
18252   echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255   ac_header_preproc=no
18256 fi
18257 rm -f conftest.err conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18259 echo "${ECHO_T}$ac_header_preproc" >&6
18260
18261 # So?  What about this header?
18262 case $ac_header_compiler:$ac_header_preproc in
18263   yes:no )
18264     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18265 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18266     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18267 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18268     (
18269       cat <<\_ASBOX
18270 ## ------------------------------------ ##
18271 ## Report this to bug-autoconf@gnu.org. ##
18272 ## ------------------------------------ ##
18273 _ASBOX
18274     ) |
18275       sed "s/^/$as_me: WARNING:     /" >&2
18276     ;;
18277   no:yes )
18278     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18279 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18280     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18281 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18282     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18283 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18284     (
18285       cat <<\_ASBOX
18286 ## ------------------------------------ ##
18287 ## Report this to bug-autoconf@gnu.org. ##
18288 ## ------------------------------------ ##
18289 _ASBOX
18290     ) |
18291       sed "s/^/$as_me: WARNING:     /" >&2
18292     ;;
18293 esac
18294 echo "$as_me:$LINENO: checking for zlib.h" >&5
18295 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18296 if test "${ac_cv_header_zlib_h+set}" = set; then
18297   echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299   ac_cv_header_zlib_h=$ac_header_preproc
18300 fi
18301 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18302 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18303
18304 fi
18305
18306
18307
18308             system_zlib_h_ok=$ac_cv_header_zlib_h
18309         fi
18310
18311         if test "$system_zlib_h_ok" = "yes"; then
18312             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18313 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18314 if test "${ac_cv_lib_z_deflate+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-lz  $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18320 #line $LINENO "configure"
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326
18327 /* Override any gcc2 internal prototype to avoid an error.  */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 /* We use char because int might match the return type of a gcc2
18332    builtin and then its argument prototype would still apply.  */
18333 char deflate ();
18334 int
18335 main ()
18336 {
18337 deflate ();
18338   ;
18339   return 0;
18340 }
18341 _ACEOF
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18344   (eval $ac_link) 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } &&
18348          { ac_try='test -s conftest$ac_exeext'
18349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350   (eval $ac_try) 2>&5
18351   ac_status=$?
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); }; }; then
18354   ac_cv_lib_z_deflate=yes
18355 else
18356   echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18358
18359 ac_cv_lib_z_deflate=no
18360 fi
18361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18362 LIBS=$ac_check_lib_save_LIBS
18363 fi
18364 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18365 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18366 if test $ac_cv_lib_z_deflate = yes; then
18367   ZLIB_LINK=" -lz"
18368 fi
18369
18370         fi
18371
18372         if test "x$ZLIB_LINK" = "x" ; then
18373             if test "$wxUSE_ZLIB" = "sys" ; then
18374                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18375 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18376    { (exit 1); exit 1; }; }
18377             else
18378                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18379 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
18380                 wxUSE_ZLIB=builtin
18381             fi
18382         else
18383                         wxUSE_ZLIB=sys
18384         fi
18385     fi
18386
18387     if test "$wxUSE_ZLIB" = "builtin" ; then
18388         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18389     fi
18390 fi
18391
18392
18393 PNG_INCLUDE=
18394 PNG_LINK=
18395 if test "$wxUSE_LIBPNG" != "no" ; then
18396     cat >>confdefs.h <<\_ACEOF
18397 #define wxUSE_LIBPNG 1
18398 _ACEOF
18399
18400
18401     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
18402         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18403 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
18404         wxUSE_LIBPNG=sys
18405     fi
18406
18407                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
18408         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18409 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
18410         wxUSE_LIBPNG=builtin
18411     fi
18412
18413     if test "$wxUSE_MGL" != 1 ; then
18414                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
18415                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18416 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18417 if test "${ac_cv_header_png_h+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   if test "$cross_compiling" = yes; then
18421                       unset ac_cv_header_png_h
18422
18423 else
18424   cat >conftest.$ac_ext <<_ACEOF
18425 #line $LINENO "configure"
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431
18432                         #include <png.h>
18433                         #include <stdio.h>
18434
18435                         int main()
18436                         {
18437                             FILE *f=fopen("conftestval", "w");
18438                             if (!f) exit(1);
18439                             fprintf(f, "%s",
18440                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
18441                             exit(0);
18442                         }
18443
18444 _ACEOF
18445 rm -f conftest$ac_exeext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447   (eval $ac_link) 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452   (eval $ac_try) 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; }; then
18456   ac_cv_header_png_h=`cat conftestval`
18457 else
18458   echo "$as_me: program exited with status $ac_status" >&5
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 ( exit $ac_status )
18463 ac_cv_header_png_h=no
18464 fi
18465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18466 fi
18467
18468 fi
18469 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18470 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18471             if test "${ac_cv_header_png_h+set}" = set; then
18472   echo "$as_me:$LINENO: checking for png.h" >&5
18473 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18474 if test "${ac_cv_header_png_h+set}" = set; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 fi
18477 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18478 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18479 else
18480   # Is the header compilable?
18481 echo "$as_me:$LINENO: checking png.h usability" >&5
18482 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18483 cat >conftest.$ac_ext <<_ACEOF
18484 #line $LINENO "configure"
18485 /* confdefs.h.  */
18486 _ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h.  */
18490 $ac_includes_default
18491 #include <png.h>
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495   (eval $ac_compile) 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -s conftest.$ac_objext'
18500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501   (eval $ac_try) 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; }; then
18505   ac_header_compiler=yes
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 ac_header_compiler=no
18511 fi
18512 rm -f conftest.$ac_objext conftest.$ac_ext
18513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18514 echo "${ECHO_T}$ac_header_compiler" >&6
18515
18516 # Is the header present?
18517 echo "$as_me:$LINENO: checking png.h presence" >&5
18518 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18519 cat >conftest.$ac_ext <<_ACEOF
18520 #line $LINENO "configure"
18521 /* confdefs.h.  */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h.  */
18526 #include <png.h>
18527 _ACEOF
18528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } >/dev/null; then
18536   if test -s conftest.err; then
18537     ac_cpp_err=$ac_c_preproc_warn_flag
18538   else
18539     ac_cpp_err=
18540   fi
18541 else
18542   ac_cpp_err=yes
18543 fi
18544 if test -z "$ac_cpp_err"; then
18545   ac_header_preproc=yes
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550   ac_header_preproc=no
18551 fi
18552 rm -f conftest.err conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18554 echo "${ECHO_T}$ac_header_preproc" >&6
18555
18556 # So?  What about this header?
18557 case $ac_header_compiler:$ac_header_preproc in
18558   yes:no )
18559     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18560 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18561     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18562 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18563     (
18564       cat <<\_ASBOX
18565 ## ------------------------------------ ##
18566 ## Report this to bug-autoconf@gnu.org. ##
18567 ## ------------------------------------ ##
18568 _ASBOX
18569     ) |
18570       sed "s/^/$as_me: WARNING:     /" >&2
18571     ;;
18572   no:yes )
18573     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18574 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18575     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18576 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18577     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18578 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18579     (
18580       cat <<\_ASBOX
18581 ## ------------------------------------ ##
18582 ## Report this to bug-autoconf@gnu.org. ##
18583 ## ------------------------------------ ##
18584 _ASBOX
18585     ) |
18586       sed "s/^/$as_me: WARNING:     /" >&2
18587     ;;
18588 esac
18589 echo "$as_me:$LINENO: checking for png.h" >&5
18590 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18591 if test "${ac_cv_header_png_h+set}" = set; then
18592   echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594   ac_cv_header_png_h=$ac_header_preproc
18595 fi
18596 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18597 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18598
18599 fi
18600
18601
18602
18603             if test "$ac_cv_header_png_h" = "yes"; then
18604                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18605 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18606 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18607   echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609   ac_check_lib_save_LIBS=$LIBS
18610 LIBS="-lpng -lz -lm $LIBS"
18611 cat >conftest.$ac_ext <<_ACEOF
18612 #line $LINENO "configure"
18613 /* confdefs.h.  */
18614 _ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h.  */
18618
18619 /* Override any gcc2 internal prototype to avoid an error.  */
18620 #ifdef __cplusplus
18621 extern "C"
18622 #endif
18623 /* We use char because int might match the return type of a gcc2
18624    builtin and then its argument prototype would still apply.  */
18625 char png_check_sig ();
18626 int
18627 main ()
18628 {
18629 png_check_sig ();
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 rm -f conftest.$ac_objext conftest$ac_exeext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18636   (eval $ac_link) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); } &&
18640          { ac_try='test -s conftest$ac_exeext'
18641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642   (eval $ac_try) 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; }; then
18646   ac_cv_lib_png_png_check_sig=yes
18647 else
18648   echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 ac_cv_lib_png_png_check_sig=no
18652 fi
18653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18654 LIBS=$ac_check_lib_save_LIBS
18655 fi
18656 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18657 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18658 if test $ac_cv_lib_png_png_check_sig = yes; then
18659   PNG_LINK=" -lpng"
18660 fi
18661
18662             fi
18663
18664             if test "x$PNG_LINK" = "x" ; then
18665                 if test "$wxUSE_LIBPNG" = "sys" ; then
18666                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18667 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18668    { (exit 1); exit 1; }; }
18669                 else
18670                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18671 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
18672                     wxUSE_LIBPNG=builtin
18673                 fi
18674             else
18675                                 wxUSE_LIBPNG=sys
18676             fi
18677         fi
18678     fi
18679
18680     if test "$wxUSE_LIBPNG" = "builtin" ; then
18681         PNG_INCLUDE="-I\${top_srcdir}/src/png"
18682     fi
18683
18684     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
18685 fi
18686
18687
18688 JPEG_INCLUDE=
18689 JPEG_LINK=
18690 if test "$wxUSE_LIBJPEG" != "no" ; then
18691     cat >>confdefs.h <<\_ACEOF
18692 #define wxUSE_LIBJPEG 1
18693 _ACEOF
18694
18695
18696     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
18697         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18698 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
18699         wxUSE_LIBJPEG=sys
18700     fi
18701
18702     if test "$wxUSE_MGL" != 1 ; then
18703                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
18704                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18705 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18706             if test "${ac_cv_header_jpeglib_h+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709   cat >conftest.$ac_ext <<_ACEOF
18710 #line $LINENO "configure"
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717                         #undef HAVE_STDLIB_H
18718                         #include <stdio.h>
18719                         #include <jpeglib.h>
18720
18721 int
18722 main ()
18723 {
18724
18725
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732   (eval $ac_compile) 2>&5
18733   ac_status=$?
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); } &&
18736          { ac_try='test -s conftest.$ac_objext'
18737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738   (eval $ac_try) 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; }; then
18742   ac_cv_header_jpeglib_h=yes
18743 else
18744   echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747 ac_cv_header_jpeglib_h=no
18748
18749 fi
18750 rm -f conftest.$ac_objext conftest.$ac_ext
18751
18752 fi
18753
18754             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18755 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18756
18757             if test "$ac_cv_header_jpeglib_h" = "yes"; then
18758                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18759 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18760 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18761   echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763   ac_check_lib_save_LIBS=$LIBS
18764 LIBS="-ljpeg  $LIBS"
18765 cat >conftest.$ac_ext <<_ACEOF
18766 #line $LINENO "configure"
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772
18773 /* Override any gcc2 internal prototype to avoid an error.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 /* We use char because int might match the return type of a gcc2
18778    builtin and then its argument prototype would still apply.  */
18779 char jpeg_read_header ();
18780 int
18781 main ()
18782 {
18783 jpeg_read_header ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790   (eval $ac_link) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); } &&
18794          { ac_try='test -s conftest$ac_exeext'
18795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796   (eval $ac_try) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; }; then
18800   ac_cv_lib_jpeg_jpeg_read_header=yes
18801 else
18802   echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ac_cv_lib_jpeg_jpeg_read_header=no
18806 fi
18807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18808 LIBS=$ac_check_lib_save_LIBS
18809 fi
18810 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18811 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18812 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
18813   JPEG_LINK=" -ljpeg"
18814 fi
18815
18816             fi
18817
18818             if test "x$JPEG_LINK" = "x" ; then
18819                 if test "$wxUSE_LIBJPEG" = "sys" ; then
18820                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18821 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18822    { (exit 1); exit 1; }; }
18823                 else
18824                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18825 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
18826                     wxUSE_LIBJPEG=builtin
18827                 fi
18828             else
18829                                 wxUSE_LIBJPEG=sys
18830             fi
18831         fi
18832     fi
18833
18834     if test "$wxUSE_LIBJPEG" = "builtin" ; then
18835         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18836     fi
18837 fi
18838
18839
18840 TIFF_INCLUDE=
18841 TIFF_LINK=
18842 TIFF_PREREQ_LINKS=-lm
18843 if test "$wxUSE_LIBTIFF" != "no" ; then
18844     cat >>confdefs.h <<\_ACEOF
18845 #define wxUSE_LIBTIFF 1
18846 _ACEOF
18847
18848
18849     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
18850                         if test "$wxUSE_LIBJPEG" = "sys"; then
18851             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18852         fi
18853         if test "$wxUSE_ZLIB" = "sys"; then
18854             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18855         fi
18856         if test "${ac_cv_header_tiffio_h+set}" = set; then
18857   echo "$as_me:$LINENO: checking for tiffio.h" >&5
18858 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18859 if test "${ac_cv_header_tiffio_h+set}" = set; then
18860   echo $ECHO_N "(cached) $ECHO_C" >&6
18861 fi
18862 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18863 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18864 else
18865   # Is the header compilable?
18866 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18867 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18868 cat >conftest.$ac_ext <<_ACEOF
18869 #line $LINENO "configure"
18870 /* confdefs.h.  */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h.  */
18875 $ac_includes_default
18876 #include <tiffio.h>
18877 _ACEOF
18878 rm -f conftest.$ac_objext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18880   (eval $ac_compile) 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -s conftest.$ac_objext'
18885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886   (eval $ac_try) 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; }; then
18890   ac_header_compiler=yes
18891 else
18892   echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 ac_header_compiler=no
18896 fi
18897 rm -f conftest.$ac_objext conftest.$ac_ext
18898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18899 echo "${ECHO_T}$ac_header_compiler" >&6
18900
18901 # Is the header present?
18902 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18903 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18904 cat >conftest.$ac_ext <<_ACEOF
18905 #line $LINENO "configure"
18906 /* confdefs.h.  */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h.  */
18911 #include <tiffio.h>
18912 _ACEOF
18913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } >/dev/null; then
18921   if test -s conftest.err; then
18922     ac_cpp_err=$ac_c_preproc_warn_flag
18923   else
18924     ac_cpp_err=
18925   fi
18926 else
18927   ac_cpp_err=yes
18928 fi
18929 if test -z "$ac_cpp_err"; then
18930   ac_header_preproc=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935   ac_header_preproc=no
18936 fi
18937 rm -f conftest.err conftest.$ac_ext
18938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18939 echo "${ECHO_T}$ac_header_preproc" >&6
18940
18941 # So?  What about this header?
18942 case $ac_header_compiler:$ac_header_preproc in
18943   yes:no )
18944     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18945 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18946     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18947 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18948     (
18949       cat <<\_ASBOX
18950 ## ------------------------------------ ##
18951 ## Report this to bug-autoconf@gnu.org. ##
18952 ## ------------------------------------ ##
18953 _ASBOX
18954     ) |
18955       sed "s/^/$as_me: WARNING:     /" >&2
18956     ;;
18957   no:yes )
18958     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18959 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18960     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18961 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18962     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18964     (
18965       cat <<\_ASBOX
18966 ## ------------------------------------ ##
18967 ## Report this to bug-autoconf@gnu.org. ##
18968 ## ------------------------------------ ##
18969 _ASBOX
18970     ) |
18971       sed "s/^/$as_me: WARNING:     /" >&2
18972     ;;
18973 esac
18974 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18975 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18976 if test "${ac_cv_header_tiffio_h+set}" = set; then
18977   echo $ECHO_N "(cached) $ECHO_C" >&6
18978 else
18979   ac_cv_header_tiffio_h=$ac_header_preproc
18980 fi
18981 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18982 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18983
18984 fi
18985 if test $ac_cv_header_tiffio_h = yes; then
18986   echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18987 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18988 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   ac_check_lib_save_LIBS=$LIBS
18992 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
18993 cat >conftest.$ac_ext <<_ACEOF
18994 #line $LINENO "configure"
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 /* Override any gcc2 internal prototype to avoid an error.  */
19002 #ifdef __cplusplus
19003 extern "C"
19004 #endif
19005 /* We use char because int might match the return type of a gcc2
19006    builtin and then its argument prototype would still apply.  */
19007 char TIFFError ();
19008 int
19009 main ()
19010 {
19011 TIFFError ();
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19018   (eval $ac_link) 2>&5
19019   ac_status=$?
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -s conftest$ac_exeext'
19023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024   (eval $ac_try) 2>&5
19025   ac_status=$?
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); }; }; then
19028   ac_cv_lib_tiff_TIFFError=yes
19029 else
19030   echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19032
19033 ac_cv_lib_tiff_TIFFError=no
19034 fi
19035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19036 LIBS=$ac_check_lib_save_LIBS
19037 fi
19038 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19039 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19040 if test $ac_cv_lib_tiff_TIFFError = yes; then
19041   TIFF_LINK=" -ltiff"
19042 fi
19043
19044
19045 fi
19046
19047
19048
19049         if test "x$TIFF_LINK" = "x" ; then
19050             if test "$wxUSE_LIBTIFF" = "sys" ; then
19051                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19052 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19053    { (exit 1); exit 1; }; }
19054             else
19055                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19056 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19057                 wxUSE_LIBTIFF=builtin
19058             fi
19059         else
19060                         wxUSE_LIBTIFF=sys
19061         fi
19062     fi
19063
19064     if test "$wxUSE_LIBTIFF" = "builtin" ; then
19065         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
19066     fi
19067 fi
19068
19069
19070 if test "$wxUSE_EXPAT" != "no"; then
19071     wxUSE_XML=1
19072     cat >>confdefs.h <<\_ACEOF
19073 #define wxUSE_EXPAT 1
19074 _ACEOF
19075
19076     cat >>confdefs.h <<\_ACEOF
19077 #define wxUSE_XML 1
19078 _ACEOF
19079
19080
19081     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19082         if test "${ac_cv_header_expat_h+set}" = set; then
19083   echo "$as_me:$LINENO: checking for expat.h" >&5
19084 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19085 if test "${ac_cv_header_expat_h+set}" = set; then
19086   echo $ECHO_N "(cached) $ECHO_C" >&6
19087 fi
19088 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19089 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19090 else
19091   # Is the header compilable?
19092 echo "$as_me:$LINENO: checking expat.h usability" >&5
19093 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19094 cat >conftest.$ac_ext <<_ACEOF
19095 #line $LINENO "configure"
19096 /* confdefs.h.  */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h.  */
19101 $ac_includes_default
19102 #include <expat.h>
19103 _ACEOF
19104 rm -f conftest.$ac_objext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19106   (eval $ac_compile) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -s conftest.$ac_objext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_header_compiler=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_header_compiler=no
19122 fi
19123 rm -f conftest.$ac_objext conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19125 echo "${ECHO_T}$ac_header_compiler" >&6
19126
19127 # Is the header present?
19128 echo "$as_me:$LINENO: checking expat.h presence" >&5
19129 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19130 cat >conftest.$ac_ext <<_ACEOF
19131 #line $LINENO "configure"
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137 #include <expat.h>
19138 _ACEOF
19139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } >/dev/null; then
19147   if test -s conftest.err; then
19148     ac_cpp_err=$ac_c_preproc_warn_flag
19149   else
19150     ac_cpp_err=
19151   fi
19152 else
19153   ac_cpp_err=yes
19154 fi
19155 if test -z "$ac_cpp_err"; then
19156   ac_header_preproc=yes
19157 else
19158   echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161   ac_header_preproc=no
19162 fi
19163 rm -f conftest.err conftest.$ac_ext
19164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19165 echo "${ECHO_T}$ac_header_preproc" >&6
19166
19167 # So?  What about this header?
19168 case $ac_header_compiler:$ac_header_preproc in
19169   yes:no )
19170     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19171 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19172     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19173 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19174     (
19175       cat <<\_ASBOX
19176 ## ------------------------------------ ##
19177 ## Report this to bug-autoconf@gnu.org. ##
19178 ## ------------------------------------ ##
19179 _ASBOX
19180     ) |
19181       sed "s/^/$as_me: WARNING:     /" >&2
19182     ;;
19183   no:yes )
19184     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19185 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19186     { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19187 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19188     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19189 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19190     (
19191       cat <<\_ASBOX
19192 ## ------------------------------------ ##
19193 ## Report this to bug-autoconf@gnu.org. ##
19194 ## ------------------------------------ ##
19195 _ASBOX
19196     ) |
19197       sed "s/^/$as_me: WARNING:     /" >&2
19198     ;;
19199 esac
19200 echo "$as_me:$LINENO: checking for expat.h" >&5
19201 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19202 if test "${ac_cv_header_expat_h+set}" = set; then
19203   echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205   ac_cv_header_expat_h=$ac_header_preproc
19206 fi
19207 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19208 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19209
19210 fi
19211
19212
19213         if test "$ac_cv_header_expat_h" = "yes"; then
19214             echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
19215 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19216 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19217   echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219   ac_check_lib_save_LIBS=$LIBS
19220 LIBS="-lexpat  $LIBS"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 #line $LINENO "configure"
19223 /* confdefs.h.  */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h.  */
19228
19229 /* Override any gcc2 internal prototype to avoid an error.  */
19230 #ifdef __cplusplus
19231 extern "C"
19232 #endif
19233 /* We use char because int might match the return type of a gcc2
19234    builtin and then its argument prototype would still apply.  */
19235 char XML_ParserCreate ();
19236 int
19237 main ()
19238 {
19239 XML_ParserCreate ();
19240   ;
19241   return 0;
19242 }
19243 _ACEOF
19244 rm -f conftest.$ac_objext conftest$ac_exeext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19246   (eval $ac_link) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -s conftest$ac_exeext'
19251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252   (eval $ac_try) 2>&5
19253   ac_status=$?
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); }; }; then
19256   ac_cv_lib_expat_XML_ParserCreate=yes
19257 else
19258   echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261 ac_cv_lib_expat_XML_ParserCreate=no
19262 fi
19263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19264 LIBS=$ac_check_lib_save_LIBS
19265 fi
19266 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19267 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19268 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19269   EXPAT_LINK=" -lexpat"
19270 fi
19271
19272         fi
19273         if test "x$EXPAT_LINK" = "x" ; then
19274             if test "$wxUSE_EXPAT" = "sys" ; then
19275                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19276 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19277    { (exit 1); exit 1; }; }
19278             else
19279                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19280 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19281                 wxUSE_EXPAT=builtin
19282             fi
19283         else
19284                         wxUSE_EXPAT=sys
19285         fi
19286     fi
19287     if test "$wxUSE_EXPAT" = "builtin" ; then
19288
19289
19290 subdirs="$subdirs src/expat"
19291
19292     fi
19293 fi
19294
19295
19296
19297 AFMINSTALL=
19298 WIN32INSTALL=
19299
19300 TOOLKIT=
19301 TOOLKIT_INCLUDE=
19302 WIDGET_SET=
19303
19304 if test "$USE_WIN32" = 1 ; then
19305
19306 for ac_header in w32api.h
19307 do
19308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310   echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19313   echo $ECHO_N "(cached) $ECHO_C" >&6
19314 fi
19315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19317 else
19318   # Is the header compilable?
19319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19321 cat >conftest.$ac_ext <<_ACEOF
19322 #line $LINENO "configure"
19323 /* confdefs.h.  */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h.  */
19328 $ac_includes_default
19329 #include <$ac_header>
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333   (eval $ac_compile) 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } &&
19337          { ac_try='test -s conftest.$ac_objext'
19338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339   (eval $ac_try) 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; }; then
19343   ac_header_compiler=yes
19344 else
19345   echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348 ac_header_compiler=no
19349 fi
19350 rm -f conftest.$ac_objext conftest.$ac_ext
19351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19352 echo "${ECHO_T}$ac_header_compiler" >&6
19353
19354 # Is the header present?
19355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19358 #line $LINENO "configure"
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364 #include <$ac_header>
19365 _ACEOF
19366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19368   ac_status=$?
19369   grep -v '^ *+' conftest.er1 >conftest.err
19370   rm -f conftest.er1
19371   cat conftest.err >&5
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); } >/dev/null; then
19374   if test -s conftest.err; then
19375     ac_cpp_err=$ac_c_preproc_warn_flag
19376   else
19377     ac_cpp_err=
19378   fi
19379 else
19380   ac_cpp_err=yes
19381 fi
19382 if test -z "$ac_cpp_err"; then
19383   ac_header_preproc=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388   ac_header_preproc=no
19389 fi
19390 rm -f conftest.err conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19392 echo "${ECHO_T}$ac_header_preproc" >&6
19393
19394 # So?  What about this header?
19395 case $ac_header_compiler:$ac_header_preproc in
19396   yes:no )
19397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19401     (
19402       cat <<\_ASBOX
19403 ## ------------------------------------ ##
19404 ## Report this to bug-autoconf@gnu.org. ##
19405 ## ------------------------------------ ##
19406 _ASBOX
19407     ) |
19408       sed "s/^/$as_me: WARNING:     /" >&2
19409     ;;
19410   no:yes )
19411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19413     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19417     (
19418       cat <<\_ASBOX
19419 ## ------------------------------------ ##
19420 ## Report this to bug-autoconf@gnu.org. ##
19421 ## ------------------------------------ ##
19422 _ASBOX
19423     ) |
19424       sed "s/^/$as_me: WARNING:     /" >&2
19425     ;;
19426 esac
19427 echo "$as_me:$LINENO: checking for $ac_header" >&5
19428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19430   echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432   eval "$as_ac_Header=$ac_header_preproc"
19433 fi
19434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19436
19437 fi
19438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19439   cat >>confdefs.h <<_ACEOF
19440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19441 _ACEOF
19442
19443 fi
19444
19445 done
19446
19447     if test "${ac_cv_header_windows_h+set}" = set; then
19448   echo "$as_me:$LINENO: checking for windows.h" >&5
19449 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19450 if test "${ac_cv_header_windows_h+set}" = set; then
19451   echo $ECHO_N "(cached) $ECHO_C" >&6
19452 fi
19453 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19454 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19455 else
19456   # Is the header compilable?
19457 echo "$as_me:$LINENO: checking windows.h usability" >&5
19458 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19460 #line $LINENO "configure"
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466 $ac_includes_default
19467 #include <windows.h>
19468 _ACEOF
19469 rm -f conftest.$ac_objext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471   (eval $ac_compile) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_header_compiler=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_header_compiler=no
19487 fi
19488 rm -f conftest.$ac_objext conftest.$ac_ext
19489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19490 echo "${ECHO_T}$ac_header_compiler" >&6
19491
19492 # Is the header present?
19493 echo "$as_me:$LINENO: checking windows.h presence" >&5
19494 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19495 cat >conftest.$ac_ext <<_ACEOF
19496 #line $LINENO "configure"
19497 /* confdefs.h.  */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h.  */
19502 #include <windows.h>
19503 _ACEOF
19504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } >/dev/null; then
19512   if test -s conftest.err; then
19513     ac_cpp_err=$ac_c_preproc_warn_flag
19514   else
19515     ac_cpp_err=
19516   fi
19517 else
19518   ac_cpp_err=yes
19519 fi
19520 if test -z "$ac_cpp_err"; then
19521   ac_header_preproc=yes
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526   ac_header_preproc=no
19527 fi
19528 rm -f conftest.err conftest.$ac_ext
19529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19530 echo "${ECHO_T}$ac_header_preproc" >&6
19531
19532 # So?  What about this header?
19533 case $ac_header_compiler:$ac_header_preproc in
19534   yes:no )
19535     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19536 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19537     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19538 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19539     (
19540       cat <<\_ASBOX
19541 ## ------------------------------------ ##
19542 ## Report this to bug-autoconf@gnu.org. ##
19543 ## ------------------------------------ ##
19544 _ASBOX
19545     ) |
19546       sed "s/^/$as_me: WARNING:     /" >&2
19547     ;;
19548   no:yes )
19549     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19550 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19551     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19552 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19553     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19554 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19555     (
19556       cat <<\_ASBOX
19557 ## ------------------------------------ ##
19558 ## Report this to bug-autoconf@gnu.org. ##
19559 ## ------------------------------------ ##
19560 _ASBOX
19561     ) |
19562       sed "s/^/$as_me: WARNING:     /" >&2
19563     ;;
19564 esac
19565 echo "$as_me:$LINENO: checking for windows.h" >&5
19566 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19567 if test "${ac_cv_header_windows_h+set}" = set; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570   ac_cv_header_windows_h=$ac_header_preproc
19571 fi
19572 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19573 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19574
19575 fi
19576 if test $ac_cv_header_windows_h = yes; then
19577   :
19578 else
19579
19580         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19581 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19582    { (exit 1); exit 1; }; }
19583
19584 fi
19585
19586
19587
19588             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
19589
19590     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19591         LIBS="$LIBS -loleacc"
19592     fi
19593
19594     case "${host}" in
19595         *-*-cygwin* )
19596                         LIBS="$LIBS -lkernel32 -luser32"
19597             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
19598     esac
19599
19600         if test "$wxUSE_ODBC" = "sys" ; then
19601         wxUSE_ODBC = "yes"
19602     fi
19603     if test "$wxUSE_ODBC" = "yes" ; then
19604         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
19605         cat >>confdefs.h <<\_ACEOF
19606 #define wxUSE_ODBC 1
19607 _ACEOF
19608
19609     fi
19610
19611     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19612     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
19613
19614         WIN32INSTALL=win32install
19615 fi
19616
19617 if test "$wxUSE_GUI" = "yes"; then
19618     USE_GUI=1
19619
19620     GUI_TK_LIBRARY=
19621
19622     WXGTK12=
19623     WXGTK127=
19624     WXGTK20=
19625
19626     if test "$wxUSE_MSW" = 1 ; then
19627         TOOLKIT=MSW
19628         GUIDIST=MSW_DIST
19629     fi
19630
19631     if test "$wxUSE_GTK" = 1; then
19632         echo "$as_me:$LINENO: checking for GTK+ version" >&5
19633 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
19634
19635         gtk_version_cached=1
19636         if test "${wx_cv_lib_gtk+set}" = set; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639
19640                                                 gtk_version_cached=0
19641                 echo "$as_me:$LINENO: result: " >&5
19642 echo "${ECHO_T}" >&6
19643
19644                                                 GTK_MODULES=
19645                 if test "$wxUSE_THREADS" = "yes"; then
19646                     GTK_MODULES=gthread
19647                 fi
19648
19649                                                 wx_cv_lib_gtk=
19650                 if test "x$wxUSE_GTK2" = "xyes"; then
19651                     # Check whether --enable-gtktest or --disable-gtktest was given.
19652 if test "${enable_gtktest+set}" = set; then
19653   enableval="$enable_gtktest"
19654
19655 else
19656   enable_gtktest=yes
19657 fi;
19658
19659   pkg_config_args=gtk+-2.0
19660   for module in . $GTK_MODULES
19661   do
19662       case "$module" in
19663          gthread)
19664              pkg_config_args="$pkg_config_args gthread-2.0"
19665          ;;
19666       esac
19667   done
19668
19669   no_gtk=""
19670
19671   # Extract the first word of "pkg-config", so it can be a program name with args.
19672 set dummy pkg-config; ac_word=$2
19673 echo "$as_me:$LINENO: checking for $ac_word" >&5
19674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   case $PKG_CONFIG in
19679   [\\/]* | ?:[\\/]*)
19680   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19681   ;;
19682   *)
19683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19684 for as_dir in $PATH
19685 do
19686   IFS=$as_save_IFS
19687   test -z "$as_dir" && as_dir=.
19688   for ac_exec_ext in '' $ac_executable_extensions; do
19689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19690     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19692     break 2
19693   fi
19694 done
19695 done
19696
19697   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19698   ;;
19699 esac
19700 fi
19701 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19702
19703 if test -n "$PKG_CONFIG"; then
19704   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19705 echo "${ECHO_T}$PKG_CONFIG" >&6
19706 else
19707   echo "$as_me:$LINENO: result: no" >&5
19708 echo "${ECHO_T}no" >&6
19709 fi
19710
19711
19712   if test x$PKG_CONFIG != xno ; then
19713     if pkg-config --atleast-pkgconfig-version 0.7 ; then
19714       :
19715     else
19716       echo *** pkg-config too old; version 0.7 or better required.
19717       no_gtk=yes
19718       PKG_CONFIG=no
19719     fi
19720   else
19721     no_gtk=yes
19722   fi
19723
19724   min_gtk_version=2.0.0
19725   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19726 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
19727
19728   if test x$PKG_CONFIG != xno ; then
19729     ## don't try to run the test against uninstalled libtool libs
19730     if $PKG_CONFIG --uninstalled $pkg_config_args; then
19731           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19732           enable_gtktest=no
19733     fi
19734
19735     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19736           :
19737     else
19738           no_gtk=yes
19739     fi
19740   fi
19741
19742   if test x"$no_gtk" = x ; then
19743     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19744     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19745     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19746            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19747     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19748            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19749     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19750            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19751     if test "x$enable_gtktest" = "xyes" ; then
19752       ac_save_CFLAGS="$CFLAGS"
19753       ac_save_LIBS="$LIBS"
19754       CFLAGS="$CFLAGS $GTK_CFLAGS"
19755       LIBS="$GTK_LIBS $LIBS"
19756       rm -f conf.gtktest
19757       if test "$cross_compiling" = yes; then
19758   echo $ac_n "cross compiling; assumed OK... $ac_c"
19759 else
19760   cat >conftest.$ac_ext <<_ACEOF
19761 #line $LINENO "configure"
19762 /* confdefs.h.  */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h.  */
19767
19768 #include <gtk/gtk.h>
19769 #include <stdio.h>
19770 #include <stdlib.h>
19771
19772 int
19773 main ()
19774 {
19775   int major, minor, micro;
19776   char *tmp_version;
19777
19778   system ("touch conf.gtktest");
19779
19780   /* HP/UX 9 (%@#!) writes to sscanf strings */
19781   tmp_version = g_strdup("$min_gtk_version");
19782   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19783      printf("%s, bad version string\n", "$min_gtk_version");
19784      exit(1);
19785    }
19786
19787   if ((gtk_major_version != $gtk_config_major_version) ||
19788       (gtk_minor_version != $gtk_config_minor_version) ||
19789       (gtk_micro_version != $gtk_config_micro_version))
19790     {
19791       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19792              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19793              gtk_major_version, gtk_minor_version, gtk_micro_version);
19794       printf ("*** was found! If pkg-config was correct, then it is best\n");
19795       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19796       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19797       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19798       printf("*** required on your system.\n");
19799       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19800       printf("*** to point to the correct configuration files\n");
19801     }
19802   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19803            (gtk_minor_version != GTK_MINOR_VERSION) ||
19804            (gtk_micro_version != GTK_MICRO_VERSION))
19805     {
19806       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19807              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19808       printf("*** library (version %d.%d.%d)\n",
19809              gtk_major_version, gtk_minor_version, gtk_micro_version);
19810     }
19811   else
19812     {
19813       if ((gtk_major_version > major) ||
19814         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19815         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19816       {
19817         return 0;
19818        }
19819      else
19820       {
19821         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19822                gtk_major_version, gtk_minor_version, gtk_micro_version);
19823         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19824                major, minor, micro);
19825         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19826         printf("***\n");
19827         printf("*** If you have already installed a sufficiently new version, this error\n");
19828         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19829         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19830         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19831         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19832         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19833         printf("*** so that the correct libraries are found at run-time))\n");
19834       }
19835     }
19836   return 1;
19837 }
19838
19839 _ACEOF
19840 rm -f conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842   (eval $ac_link) 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847   (eval $ac_try) 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; }; then
19851   :
19852 else
19853   echo "$as_me: program exited with status $ac_status" >&5
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ( exit $ac_status )
19858 no_gtk=yes
19859 fi
19860 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19861 fi
19862        CFLAGS="$ac_save_CFLAGS"
19863        LIBS="$ac_save_LIBS"
19864      fi
19865   fi
19866   if test "x$no_gtk" = x ; then
19867      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19868 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19869      wx_cv_lib_gtk=2.0
19870   else
19871      echo "$as_me:$LINENO: result: no" >&5
19872 echo "${ECHO_T}no" >&6
19873      if test "$PKG_CONFIG" = "no" ; then
19874        echo "*** A new enough version of pkg-config was not found."
19875        echo "*** See http://pkgconfig.sourceforge.net"
19876      else
19877        if test -f conf.gtktest ; then
19878         :
19879        else
19880           echo "*** Could not run GTK+ test program, checking why..."
19881           ac_save_CFLAGS="$CFLAGS"
19882           ac_save_LIBS="$LIBS"
19883           CFLAGS="$CFLAGS $GTK_CFLAGS"
19884           LIBS="$LIBS $GTK_LIBS"
19885           cat >conftest.$ac_ext <<_ACEOF
19886 #line $LINENO "configure"
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892
19893 #include <gtk/gtk.h>
19894 #include <stdio.h>
19895
19896 int
19897 main ()
19898 {
19899  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19900   ;
19901   return 0;
19902 }
19903 _ACEOF
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19906   (eval $ac_link) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } &&
19910          { ac_try='test -s conftest$ac_exeext'
19911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912   (eval $ac_try) 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; }; then
19916    echo "*** The test program compiled, but did not run. This usually means"
19917           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19918           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19919           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19920           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
19921           echo "*** is required on your system"
19922           echo "***"
19923           echo "*** If you have an old version installed, it is best to remove it, although"
19924           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929  echo "*** The test program failed to compile or link. See the file config.log for the"
19930           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
19931 fi
19932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19933           CFLAGS="$ac_save_CFLAGS"
19934           LIBS="$ac_save_LIBS"
19935        fi
19936      fi
19937      GTK_CFLAGS=""
19938      GTK_LIBS=""
19939      :
19940   fi
19941
19942
19943   rm -f conf.gtktest
19944
19945                 else
19946
19947 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
19948 if test "${with_gtk_prefix+set}" = set; then
19949   withval="$with_gtk_prefix"
19950   gtk_config_prefix="$withval"
19951 else
19952   gtk_config_prefix=""
19953 fi;
19954
19955 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19956 if test "${with_gtk_exec_prefix+set}" = set; then
19957   withval="$with_gtk_exec_prefix"
19958   gtk_config_exec_prefix="$withval"
19959 else
19960   gtk_config_exec_prefix=""
19961 fi;
19962 # Check whether --enable-gtktest or --disable-gtktest was given.
19963 if test "${enable_gtktest+set}" = set; then
19964   enableval="$enable_gtktest"
19965
19966 else
19967   enable_gtktest=yes
19968 fi;
19969
19970   for module in . $GTK_MODULES
19971   do
19972       case "$module" in
19973          gthread)
19974              gtk_config_args="$gtk_config_args gthread"
19975          ;;
19976       esac
19977   done
19978
19979   if test x$gtk_config_exec_prefix != x ; then
19980      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19981      if test x${GTK_CONFIG+set} != xset ; then
19982         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19983      fi
19984   fi
19985   if test x$gtk_config_prefix != x ; then
19986      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19987      if test x${GTK_CONFIG+set} != xset ; then
19988         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19989      fi
19990   fi
19991
19992   # Extract the first word of "gtk-config", so it can be a program name with args.
19993 set dummy gtk-config; ac_word=$2
19994 echo "$as_me:$LINENO: checking for $ac_word" >&5
19995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19996 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999   case $GTK_CONFIG in
20000   [\\/]* | ?:[\\/]*)
20001   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20002   ;;
20003   *)
20004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20005 for as_dir in $PATH
20006 do
20007   IFS=$as_save_IFS
20008   test -z "$as_dir" && as_dir=.
20009   for ac_exec_ext in '' $ac_executable_extensions; do
20010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20011     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20013     break 2
20014   fi
20015 done
20016 done
20017
20018   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20019   ;;
20020 esac
20021 fi
20022 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20023
20024 if test -n "$GTK_CONFIG"; then
20025   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20026 echo "${ECHO_T}$GTK_CONFIG" >&6
20027 else
20028   echo "$as_me:$LINENO: result: no" >&5
20029 echo "${ECHO_T}no" >&6
20030 fi
20031
20032   min_gtk_version=1.2.7
20033   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20034 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20035   no_gtk=""
20036   if test "$GTK_CONFIG" = "no" ; then
20037     no_gtk=yes
20038   else
20039     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20040     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20041     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20042            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20043     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20044            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20045     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20046            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20047     if test "x$enable_gtktest" = "xyes" ; then
20048       ac_save_CFLAGS="$CFLAGS"
20049       ac_save_LIBS="$LIBS"
20050       CFLAGS="$CFLAGS $GTK_CFLAGS"
20051       LIBS="$GTK_LIBS $LIBS"
20052       rm -f conf.gtktest
20053       if test "$cross_compiling" = yes; then
20054   echo $ac_n "cross compiling; assumed OK... $ac_c"
20055 else
20056   cat >conftest.$ac_ext <<_ACEOF
20057 #line $LINENO "configure"
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063
20064 #include <gtk/gtk.h>
20065 #include <stdio.h>
20066 #include <stdlib.h>
20067
20068 int
20069 main ()
20070 {
20071   int major, minor, micro;
20072   char *tmp_version;
20073
20074   system ("touch conf.gtktest");
20075
20076   /* HP/UX 9 (%@#!) writes to sscanf strings */
20077   tmp_version = g_strdup("$min_gtk_version");
20078   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20079      printf("%s, bad version string\n", "$min_gtk_version");
20080      exit(1);
20081    }
20082
20083   if ((gtk_major_version != $gtk_config_major_version) ||
20084       (gtk_minor_version != $gtk_config_minor_version) ||
20085       (gtk_micro_version != $gtk_config_micro_version))
20086     {
20087       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20088              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20089              gtk_major_version, gtk_minor_version, gtk_micro_version);
20090       printf ("*** was found! If gtk-config was correct, then it is best\n");
20091       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20092       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20093       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20094       printf("*** required on your system.\n");
20095       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20096       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20097       printf("*** before re-running configure\n");
20098     }
20099 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20100   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20101            (gtk_minor_version != GTK_MINOR_VERSION) ||
20102            (gtk_micro_version != GTK_MICRO_VERSION))
20103     {
20104       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20105              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20106       printf("*** library (version %d.%d.%d)\n",
20107              gtk_major_version, gtk_minor_version, gtk_micro_version);
20108     }
20109 #endif /* defined (GTK_MAJOR_VERSION) ... */
20110   else
20111     {
20112       if ((gtk_major_version > major) ||
20113         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20114         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20115       {
20116         return 0;
20117        }
20118      else
20119       {
20120         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20121                gtk_major_version, gtk_minor_version, gtk_micro_version);
20122         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20123                major, minor, micro);
20124         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20125         printf("***\n");
20126         printf("*** If you have already installed a sufficiently new version, this error\n");
20127         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20128         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20129         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20130         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20131         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20132         printf("*** so that the correct libraries are found at run-time))\n");
20133       }
20134     }
20135   return 1;
20136 }
20137
20138 _ACEOF
20139 rm -f conftest$ac_exeext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20141   (eval $ac_link) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146   (eval $ac_try) 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }; }; then
20150   :
20151 else
20152   echo "$as_me: program exited with status $ac_status" >&5
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 ( exit $ac_status )
20157 no_gtk=yes
20158 fi
20159 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20160 fi
20161        CFLAGS="$ac_save_CFLAGS"
20162        LIBS="$ac_save_LIBS"
20163      fi
20164   fi
20165   if test "x$no_gtk" = x ; then
20166      echo "$as_me:$LINENO: result: yes" >&5
20167 echo "${ECHO_T}yes" >&6
20168      wx_cv_lib_gtk=1.2.7
20169   else
20170      echo "$as_me:$LINENO: result: no" >&5
20171 echo "${ECHO_T}no" >&6
20172      if test "$GTK_CONFIG" = "no" ; then
20173        echo "*** The gtk-config script installed by GTK could not be found"
20174        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20175        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20176        echo "*** full path to gtk-config."
20177      else
20178        if test -f conf.gtktest ; then
20179         :
20180        else
20181           echo "*** Could not run GTK test program, checking why..."
20182           CFLAGS="$CFLAGS $GTK_CFLAGS"
20183           LIBS="$LIBS $GTK_LIBS"
20184           cat >conftest.$ac_ext <<_ACEOF
20185 #line $LINENO "configure"
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191
20192 #include <gtk/gtk.h>
20193 #include <stdio.h>
20194
20195 int
20196 main ()
20197 {
20198  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205   (eval $ac_link) 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } &&
20209          { ac_try='test -s conftest$ac_exeext'
20210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211   (eval $ac_try) 2>&5
20212   ac_status=$?
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); }; }; then
20215    echo "*** The test program compiled, but did not run. This usually means"
20216           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20217           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20218           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20219           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20220           echo "*** is required on your system"
20221           echo "***"
20222           echo "*** If you have an old version installed, it is best to remove it, although"
20223           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20224           echo "***"
20225           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20226           echo "*** came with the system with the command"
20227           echo "***"
20228           echo "***    rpm --erase --nodeps gtk gtk-devel"
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233  echo "*** The test program failed to compile or link. See the file config.log for the"
20234           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20235           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20236           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20237 fi
20238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20239           CFLAGS="$ac_save_CFLAGS"
20240           LIBS="$ac_save_LIBS"
20241        fi
20242      fi
20243      GTK_CFLAGS=""
20244      GTK_LIBS=""
20245      :
20246   fi
20247
20248
20249   rm -f conf.gtktest
20250
20251
20252                     if test -z "$wx_cv_lib_gtk"; then
20253
20254 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20255 if test "${with_gtk_prefix+set}" = set; then
20256   withval="$with_gtk_prefix"
20257   gtk_config_prefix="$withval"
20258 else
20259   gtk_config_prefix=""
20260 fi;
20261
20262 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20263 if test "${with_gtk_exec_prefix+set}" = set; then
20264   withval="$with_gtk_exec_prefix"
20265   gtk_config_exec_prefix="$withval"
20266 else
20267   gtk_config_exec_prefix=""
20268 fi;
20269 # Check whether --enable-gtktest or --disable-gtktest was given.
20270 if test "${enable_gtktest+set}" = set; then
20271   enableval="$enable_gtktest"
20272
20273 else
20274   enable_gtktest=yes
20275 fi;
20276
20277   for module in . $GTK_MODULES
20278   do
20279       case "$module" in
20280          gthread)
20281              gtk_config_args="$gtk_config_args gthread"
20282          ;;
20283       esac
20284   done
20285
20286   if test x$gtk_config_exec_prefix != x ; then
20287      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20288      if test x${GTK_CONFIG+set} != xset ; then
20289         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20290      fi
20291   fi
20292   if test x$gtk_config_prefix != x ; then
20293      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20294      if test x${GTK_CONFIG+set} != xset ; then
20295         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20296      fi
20297   fi
20298
20299   # Extract the first word of "gtk-config", so it can be a program name with args.
20300 set dummy gtk-config; ac_word=$2
20301 echo "$as_me:$LINENO: checking for $ac_word" >&5
20302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20303 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   case $GTK_CONFIG in
20307   [\\/]* | ?:[\\/]*)
20308   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20309   ;;
20310   *)
20311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312 for as_dir in $PATH
20313 do
20314   IFS=$as_save_IFS
20315   test -z "$as_dir" && as_dir=.
20316   for ac_exec_ext in '' $ac_executable_extensions; do
20317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20318     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320     break 2
20321   fi
20322 done
20323 done
20324
20325   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20326   ;;
20327 esac
20328 fi
20329 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20330
20331 if test -n "$GTK_CONFIG"; then
20332   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20333 echo "${ECHO_T}$GTK_CONFIG" >&6
20334 else
20335   echo "$as_me:$LINENO: result: no" >&5
20336 echo "${ECHO_T}no" >&6
20337 fi
20338
20339   min_gtk_version=1.2.3
20340   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20341 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20342   no_gtk=""
20343   if test "$GTK_CONFIG" = "no" ; then
20344     no_gtk=yes
20345   else
20346     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20347     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20348     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20349            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20350     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20351            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20352     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20353            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20354     if test "x$enable_gtktest" = "xyes" ; then
20355       ac_save_CFLAGS="$CFLAGS"
20356       ac_save_LIBS="$LIBS"
20357       CFLAGS="$CFLAGS $GTK_CFLAGS"
20358       LIBS="$GTK_LIBS $LIBS"
20359       rm -f conf.gtktest
20360       if test "$cross_compiling" = yes; then
20361   echo $ac_n "cross compiling; assumed OK... $ac_c"
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 #line $LINENO "configure"
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370
20371 #include <gtk/gtk.h>
20372 #include <stdio.h>
20373 #include <stdlib.h>
20374
20375 int
20376 main ()
20377 {
20378   int major, minor, micro;
20379   char *tmp_version;
20380
20381   system ("touch conf.gtktest");
20382
20383   /* HP/UX 9 (%@#!) writes to sscanf strings */
20384   tmp_version = g_strdup("$min_gtk_version");
20385   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20386      printf("%s, bad version string\n", "$min_gtk_version");
20387      exit(1);
20388    }
20389
20390   if ((gtk_major_version != $gtk_config_major_version) ||
20391       (gtk_minor_version != $gtk_config_minor_version) ||
20392       (gtk_micro_version != $gtk_config_micro_version))
20393     {
20394       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20395              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20396              gtk_major_version, gtk_minor_version, gtk_micro_version);
20397       printf ("*** was found! If gtk-config was correct, then it is best\n");
20398       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20399       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20400       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20401       printf("*** required on your system.\n");
20402       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20403       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20404       printf("*** before re-running configure\n");
20405     }
20406 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20407   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20408            (gtk_minor_version != GTK_MINOR_VERSION) ||
20409            (gtk_micro_version != GTK_MICRO_VERSION))
20410     {
20411       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20412              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20413       printf("*** library (version %d.%d.%d)\n",
20414              gtk_major_version, gtk_minor_version, gtk_micro_version);
20415     }
20416 #endif /* defined (GTK_MAJOR_VERSION) ... */
20417   else
20418     {
20419       if ((gtk_major_version > major) ||
20420         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20421         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20422       {
20423         return 0;
20424        }
20425      else
20426       {
20427         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20428                gtk_major_version, gtk_minor_version, gtk_micro_version);
20429         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20430                major, minor, micro);
20431         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20432         printf("***\n");
20433         printf("*** If you have already installed a sufficiently new version, this error\n");
20434         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20435         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20436         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20437         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20438         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20439         printf("*** so that the correct libraries are found at run-time))\n");
20440       }
20441     }
20442   return 1;
20443 }
20444
20445 _ACEOF
20446 rm -f conftest$ac_exeext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20448   (eval $ac_link) 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453   (eval $ac_try) 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); }; }; then
20457   :
20458 else
20459   echo "$as_me: program exited with status $ac_status" >&5
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 ( exit $ac_status )
20464 no_gtk=yes
20465 fi
20466 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20467 fi
20468        CFLAGS="$ac_save_CFLAGS"
20469        LIBS="$ac_save_LIBS"
20470      fi
20471   fi
20472   if test "x$no_gtk" = x ; then
20473      echo "$as_me:$LINENO: result: yes" >&5
20474 echo "${ECHO_T}yes" >&6
20475      wx_cv_lib_gtk=1.2.3
20476   else
20477      echo "$as_me:$LINENO: result: no" >&5
20478 echo "${ECHO_T}no" >&6
20479      if test "$GTK_CONFIG" = "no" ; then
20480        echo "*** The gtk-config script installed by GTK could not be found"
20481        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20482        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20483        echo "*** full path to gtk-config."
20484      else
20485        if test -f conf.gtktest ; then
20486         :
20487        else
20488           echo "*** Could not run GTK test program, checking why..."
20489           CFLAGS="$CFLAGS $GTK_CFLAGS"
20490           LIBS="$LIBS $GTK_LIBS"
20491           cat >conftest.$ac_ext <<_ACEOF
20492 #line $LINENO "configure"
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498
20499 #include <gtk/gtk.h>
20500 #include <stdio.h>
20501
20502 int
20503 main ()
20504 {
20505  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512   (eval $ac_link) 2>&5
20513   ac_status=$?
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); } &&
20516          { ac_try='test -s conftest$ac_exeext'
20517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518   (eval $ac_try) 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); }; }; then
20522    echo "*** The test program compiled, but did not run. This usually means"
20523           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20524           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20525           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20526           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20527           echo "*** is required on your system"
20528           echo "***"
20529           echo "*** If you have an old version installed, it is best to remove it, although"
20530           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20531           echo "***"
20532           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20533           echo "*** came with the system with the command"
20534           echo "***"
20535           echo "***    rpm --erase --nodeps gtk gtk-devel"
20536 else
20537   echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540  echo "*** The test program failed to compile or link. See the file config.log for the"
20541           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20542           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20543           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20544 fi
20545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20546           CFLAGS="$ac_save_CFLAGS"
20547           LIBS="$ac_save_LIBS"
20548        fi
20549      fi
20550      GTK_CFLAGS=""
20551      GTK_LIBS=""
20552      :
20553   fi
20554
20555
20556   rm -f conf.gtktest
20557
20558                     fi
20559                 fi
20560
20561                 if test -z "$wx_cv_lib_gtk"; then
20562                                         wx_cv_lib_gtk=none
20563                 else
20564                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
20565                     wx_cv_libs_gtk=$GTK_LIBS
20566                 fi
20567
20568
20569 fi
20570
20571
20572                         if test "$gtk_version_cached" = 1; then
20573             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20574 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
20575         fi
20576
20577         case "$wx_cv_lib_gtk" in
20578             2.0)    WXGTK20=1
20579                     TOOLKIT_VERSION=2
20580                     ;;
20581             1.2.7)  WXGTK127=1
20582                     WXGTK12=1
20583                     ;;
20584             1.2.3)  WXGTK12=1
20585                     ;;
20586             *)      { { echo "$as_me:$LINENO: error:
20587 Please check that gtk-config is in path, the directory
20588 where GTK+ libraries are installed (returned by
20589 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20590 equivalent variable and GTK+ is version 1.2.3 or above.
20591                             " >&5
20592 echo "$as_me: error:
20593 Please check that gtk-config is in path, the directory
20594 where GTK+ libraries are installed (returned by
20595 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20596 equivalent variable and GTK+ is version 1.2.3 or above.
20597                             " >&2;}
20598    { (exit 1); exit 1; }; }
20599                     ;;
20600         esac
20601
20602         if test "$WXGTK20" = 1; then
20603             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20604
20605   succeeded=no
20606
20607   if test -z "$PKG_CONFIG"; then
20608     # Extract the first word of "pkg-config", so it can be a program name with args.
20609 set dummy pkg-config; ac_word=$2
20610 echo "$as_me:$LINENO: checking for $ac_word" >&5
20611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20612 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20613   echo $ECHO_N "(cached) $ECHO_C" >&6
20614 else
20615   case $PKG_CONFIG in
20616   [\\/]* | ?:[\\/]*)
20617   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20618   ;;
20619   *)
20620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20621 for as_dir in $PATH
20622 do
20623   IFS=$as_save_IFS
20624   test -z "$as_dir" && as_dir=.
20625   for ac_exec_ext in '' $ac_executable_extensions; do
20626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20627     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20629     break 2
20630   fi
20631 done
20632 done
20633
20634   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20635   ;;
20636 esac
20637 fi
20638 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20639
20640 if test -n "$PKG_CONFIG"; then
20641   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20642 echo "${ECHO_T}$PKG_CONFIG" >&6
20643 else
20644   echo "$as_me:$LINENO: result: no" >&5
20645 echo "${ECHO_T}no" >&6
20646 fi
20647
20648   fi
20649
20650   if test "$PKG_CONFIG" = "no" ; then
20651      echo "*** The pkg-config script could not be found. Make sure it is"
20652      echo "*** in your path, or set the PKG_CONFIG environment variable"
20653      echo "*** to the full path to pkg-config."
20654      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20655   else
20656      PKG_CONFIG_MIN_VERSION=0.9.0
20657      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20658         echo "$as_me:$LINENO: checking for pangoft2" >&5
20659 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
20660
20661         if $PKG_CONFIG --exists "pangoft2" ; then
20662             echo "$as_me:$LINENO: result: yes" >&5
20663 echo "${ECHO_T}yes" >&6
20664             succeeded=yes
20665
20666             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20667 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20668             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20669             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20670 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20671
20672             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20673 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20674             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20675             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20676 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20677         else
20678             PANGOFT2_CFLAGS=""
20679             PANGOFT2_LIBS=""
20680             ## If we have a custom action on failure, don't print errors, but
20681             ## do set a variable so people can do so.
20682             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20683
20684         fi
20685
20686
20687
20688      else
20689         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20690         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20691      fi
20692   fi
20693
20694   if test $succeeded = yes; then
20695
20696                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20697                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
20698
20699   else
20700
20701                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20702 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
20703                         wxUSE_PRINTING_ARCHITECTURE="no"
20704
20705
20706   fi
20707
20708             fi
20709         else
20710             if test "$wxUSE_UNICODE" = "yes"; then
20711                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20712 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
20713                 wxUSE_UNICODE=no
20714             fi
20715         fi
20716
20717                         if test "$USE_DARWIN" != 1; then
20718
20719 for ac_func in poll
20720 do
20721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20722 echo "$as_me:$LINENO: checking for $ac_func" >&5
20723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20724 if eval "test \"\${$as_ac_var+set}\" = set"; then
20725   echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727   cat >conftest.$ac_ext <<_ACEOF
20728 #line $LINENO "configure"
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 /* System header to define __stub macros and hopefully few prototypes,
20735     which can conflict with char $ac_func (); below.
20736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20737     <limits.h> exists even on freestanding compilers.  */
20738 #ifdef __STDC__
20739 # include <limits.h>
20740 #else
20741 # include <assert.h>
20742 #endif
20743 /* Override any gcc2 internal prototype to avoid an error.  */
20744 #ifdef __cplusplus
20745 extern "C"
20746 {
20747 #endif
20748 /* We use char because int might match the return type of a gcc2
20749    builtin and then its argument prototype would still apply.  */
20750 char $ac_func ();
20751 /* The GNU C library defines this for functions which it implements
20752     to always fail with ENOSYS.  Some functions are actually named
20753     something starting with __ and the normal name is an alias.  */
20754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20755 choke me
20756 #else
20757 char (*f) () = $ac_func;
20758 #endif
20759 #ifdef __cplusplus
20760 }
20761 #endif
20762
20763 int
20764 main ()
20765 {
20766 return f != $ac_func;
20767   ;
20768   return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20773   (eval $ac_link) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } &&
20777          { ac_try='test -s conftest$ac_exeext'
20778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779   (eval $ac_try) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); }; }; then
20783   eval "$as_ac_var=yes"
20784 else
20785   echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 eval "$as_ac_var=no"
20789 fi
20790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20791 fi
20792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20794 if test `eval echo '${'$as_ac_var'}'` = yes; then
20795   cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20797 _ACEOF
20798
20799 fi
20800 done
20801
20802         fi
20803
20804         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20805         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
20806
20807         AFMINSTALL=afminstall
20808         TOOLKIT=GTK
20809         GUIDIST=GTK_DIST
20810
20811                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20812 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20813 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816   ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lgdk  $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20819 #line $LINENO "configure"
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825
20826 /* Override any gcc2 internal prototype to avoid an error.  */
20827 #ifdef __cplusplus
20828 extern "C"
20829 #endif
20830 /* We use char because int might match the return type of a gcc2
20831    builtin and then its argument prototype would still apply.  */
20832 char gdk_im_open ();
20833 int
20834 main ()
20835 {
20836 gdk_im_open ();
20837   ;
20838   return 0;
20839 }
20840 _ACEOF
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20843   (eval $ac_link) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); } &&
20847          { ac_try='test -s conftest$ac_exeext'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   ac_cv_lib_gdk_gdk_im_open=yes
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 ac_cv_lib_gdk_gdk_im_open=no
20859 fi
20860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20861 LIBS=$ac_check_lib_save_LIBS
20862 fi
20863 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20864 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20865 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20866   cat >>confdefs.h <<\_ACEOF
20867 #define HAVE_XIM 1
20868 _ACEOF
20869
20870 fi
20871
20872     fi
20873
20874     if test "$wxUSE_MGL" = 1; then
20875        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20876 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
20877         if test "x$MGL_ROOT" = x ; then
20878             echo "$as_me:$LINENO: result: not found" >&5
20879 echo "${ECHO_T}not found" >&6
20880             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20881 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20882    { (exit 1); exit 1; }; }
20883         else
20884             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20885 echo "${ECHO_T}$MGL_ROOT" >&6
20886         fi
20887
20888         echo "$as_me:$LINENO: checking for libmgl location" >&5
20889 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
20890                         case "${host}" in
20891             *-*-linux* )
20892               if test "x$wxUSE_SHARED" = xyes ; then
20893                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20894               else
20895                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20896               fi
20897               ;;
20898             *-pc-msdosdjgpp )
20899               mgl_os_candidates="dos32/dj2"
20900               ;;
20901             *)
20902               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20903 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20904    { (exit 1); exit 1; }; }
20905         esac
20906
20907         mgl_lib_type=""
20908         mgl_os=""
20909
20910         for mgl_os_i in $mgl_os_candidates ; do
20911             if test "x$mgl_os" = x ; then
20912                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20913                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20914                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20915                         mgl_lib_type=debug
20916                         mgl_os=$mgl_os_i
20917                     fi
20918                 fi
20919                 if test "x$mgl_lib_type" = x ; then
20920                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20921                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20922                         mgl_lib_type=release
20923                         mgl_os=$mgl_os_i
20924                     fi
20925                 fi
20926             fi
20927         done
20928
20929         if test "x$mgl_os" = x ; then
20930             echo "$as_me:$LINENO: result: not found" >&5
20931 echo "${ECHO_T}not found" >&6
20932             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20933 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20934    { (exit 1); exit 1; }; }
20935         fi
20936         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20937 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
20938
20939         wxUSE_UNIVERSAL="yes"
20940
20941         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20942         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20943
20944         AFMINSTALL=afminstall
20945         TOOLKIT=MGL
20946         GUIDIST=MGL_DIST
20947     fi
20948
20949     if test "$wxUSE_MICROWIN" = 1; then
20950         echo "$as_me:$LINENO: checking for MicroWindows" >&5
20951 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
20952         if test "x$MICROWINDOWS" = x ; then
20953             echo "$as_me:$LINENO: result: not found" >&5
20954 echo "${ECHO_T}not found" >&6
20955             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20956 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20957    { (exit 1); exit 1; }; }
20958         else
20959             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20960 echo "${ECHO_T}$MICROWINDOWS" >&6
20961         fi
20962
20963         if test -f $MICROWINDOWS/lib/libmwin.a; then
20964             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20965 echo "${ECHO_T}MicroWindows' libraries found." >&6
20966         else
20967             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20968 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20969    { (exit 1); exit 1; }; }
20970         fi
20971
20972         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20973         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20974
20975         wxUSE_UNIVERSAL="yes"
20976
20977         AFMINSTALL=afminstall
20978         TOOLKIT=MICROWIN
20979         GUIDIST=MICROWIN_DIST
20980
20981         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
20982     fi
20983
20984     if test "$wxUSE_X11" = 1; then
20985                         echo "$as_me:$LINENO: checking for X" >&5
20986 echo $ECHO_N "checking for X... $ECHO_C" >&6
20987
20988
20989 # Check whether --with-x or --without-x was given.
20990 if test "${with_x+set}" = set; then
20991   withval="$with_x"
20992
20993 fi;
20994 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20995 if test "x$with_x" = xno; then
20996   # The user explicitly disabled X.
20997   have_x=disabled
20998 else
20999   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21000     # Both variables are already set.
21001     have_x=yes
21002   else
21003     if test "${ac_cv_have_x+set}" = set; then
21004   echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21006   # One or both of the vars are not set, and there is no cached value.
21007 ac_x_includes=no ac_x_libraries=no
21008 rm -fr conftest.dir
21009 if mkdir conftest.dir; then
21010   cd conftest.dir
21011   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21012   cat >Imakefile <<'_ACEOF'
21013 acfindx:
21014         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21015 _ACEOF
21016   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21017     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21018     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21019     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21020     for ac_extension in a so sl; do
21021       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21022          test -f $ac_im_libdir/libX11.$ac_extension; then
21023         ac_im_usrlibdir=$ac_im_libdir; break
21024       fi
21025     done
21026     # Screen out bogus values from the imake configuration.  They are
21027     # bogus both because they are the default anyway, and because
21028     # using them would break gcc on systems where it needs fixed includes.
21029     case $ac_im_incroot in
21030         /usr/include) ;;
21031         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21032     esac
21033     case $ac_im_usrlibdir in
21034         /usr/lib | /lib) ;;
21035         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21036     esac
21037   fi
21038   cd ..
21039   rm -fr conftest.dir
21040 fi
21041
21042 # Standard set of common directories for X headers.
21043 # Check X11 before X11Rn because it is often a symlink to the current release.
21044 ac_x_header_dirs='
21045 /usr/X11/include
21046 /usr/X11R6/include
21047 /usr/X11R5/include
21048 /usr/X11R4/include
21049
21050 /usr/include/X11
21051 /usr/include/X11R6
21052 /usr/include/X11R5
21053 /usr/include/X11R4
21054
21055 /usr/local/X11/include
21056 /usr/local/X11R6/include
21057 /usr/local/X11R5/include
21058 /usr/local/X11R4/include
21059
21060 /usr/local/include/X11
21061 /usr/local/include/X11R6
21062 /usr/local/include/X11R5
21063 /usr/local/include/X11R4
21064
21065 /usr/X386/include
21066 /usr/x386/include
21067 /usr/XFree86/include/X11
21068
21069 /usr/include
21070 /usr/local/include
21071 /usr/unsupported/include
21072 /usr/athena/include
21073 /usr/local/x11r5/include
21074 /usr/lpp/Xamples/include
21075
21076 /usr/openwin/include
21077 /usr/openwin/share/include'
21078
21079 if test "$ac_x_includes" = no; then
21080   # Guess where to find include files, by looking for Intrinsic.h.
21081   # First, try using that file with no special directory specified.
21082   cat >conftest.$ac_ext <<_ACEOF
21083 #line $LINENO "configure"
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 #include <X11/Intrinsic.h>
21090 _ACEOF
21091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } >/dev/null; then
21099   if test -s conftest.err; then
21100     ac_cpp_err=$ac_c_preproc_warn_flag
21101   else
21102     ac_cpp_err=
21103   fi
21104 else
21105   ac_cpp_err=yes
21106 fi
21107 if test -z "$ac_cpp_err"; then
21108   # We can compile using X headers with no special include directory.
21109 ac_x_includes=
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114   for ac_dir in $ac_x_header_dirs; do
21115   if test -r "$ac_dir/X11/Intrinsic.h"; then
21116     ac_x_includes=$ac_dir
21117     break
21118   fi
21119 done
21120 fi
21121 rm -f conftest.err conftest.$ac_ext
21122 fi # $ac_x_includes = no
21123
21124 if test "$ac_x_libraries" = no; then
21125   # Check for the libraries.
21126   # See if we find them without any special options.
21127   # Don't add to $LIBS permanently.
21128   ac_save_LIBS=$LIBS
21129   LIBS="-lXt $LIBS"
21130   cat >conftest.$ac_ext <<_ACEOF
21131 #line $LINENO "configure"
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 #include <X11/Intrinsic.h>
21138 int
21139 main ()
21140 {
21141 XtMalloc (0)
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 rm -f conftest.$ac_objext conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148   (eval $ac_link) 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } &&
21152          { ac_try='test -s conftest$ac_exeext'
21153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154   (eval $ac_try) 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); }; }; then
21158   LIBS=$ac_save_LIBS
21159 # We can link X programs with no special library path.
21160 ac_x_libraries=
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 LIBS=$ac_save_LIBS
21166 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21167 do
21168   # Don't even attempt the hair of trying to link an X program!
21169   for ac_extension in a so sl; do
21170     if test -r $ac_dir/libXt.$ac_extension; then
21171       ac_x_libraries=$ac_dir
21172       break 2
21173     fi
21174   done
21175 done
21176 fi
21177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21178 fi # $ac_x_libraries = no
21179
21180 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21181   # Didn't find X anywhere.  Cache the known absence of X.
21182   ac_cv_have_x="have_x=no"
21183 else
21184   # Record where we found X for the cache.
21185   ac_cv_have_x="have_x=yes \
21186                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21187 fi
21188 fi
21189
21190   fi
21191   eval "$ac_cv_have_x"
21192 fi # $with_x != no
21193
21194 if test "$have_x" != yes; then
21195   echo "$as_me:$LINENO: result: $have_x" >&5
21196 echo "${ECHO_T}$have_x" >&6
21197   no_x=yes
21198 else
21199   # If each of the values was on the command line, it overrides each guess.
21200   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21201   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21202   # Update the cache value to reflect the command line values.
21203   ac_cv_have_x="have_x=yes \
21204                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21205   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21206 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21207 fi
21208
21209 if test "$no_x" = yes; then
21210   # Not all programs may use this symbol, but it does not hurt to define it.
21211
21212 cat >>confdefs.h <<\_ACEOF
21213 #define X_DISPLAY_MISSING 1
21214 _ACEOF
21215
21216   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21217 else
21218   if test -n "$x_includes"; then
21219     X_CFLAGS="$X_CFLAGS -I$x_includes"
21220   fi
21221
21222   # It would also be nice to do this for all -L options, not just this one.
21223   if test -n "$x_libraries"; then
21224     X_LIBS="$X_LIBS -L$x_libraries"
21225     # For Solaris; some versions of Sun CC require a space after -R and
21226     # others require no space.  Words are not sufficient . . . .
21227     case `(uname -sr) 2>/dev/null` in
21228     "SunOS 5"*)
21229       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21230 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21231       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21232       cat >conftest.$ac_ext <<_ACEOF
21233 #line $LINENO "configure"
21234 /* confdefs.h.  */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h.  */
21239
21240 int
21241 main ()
21242 {
21243
21244   ;
21245   return 0;
21246 }
21247 _ACEOF
21248 rm -f conftest.$ac_objext conftest$ac_exeext
21249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21250   (eval $ac_link) 2>&5
21251   ac_status=$?
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } &&
21254          { ac_try='test -s conftest$ac_exeext'
21255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256   (eval $ac_try) 2>&5
21257   ac_status=$?
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); }; }; then
21260   ac_R_nospace=yes
21261 else
21262   echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21264
21265 ac_R_nospace=no
21266 fi
21267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21268       if test $ac_R_nospace = yes; then
21269         echo "$as_me:$LINENO: result: no" >&5
21270 echo "${ECHO_T}no" >&6
21271         X_LIBS="$X_LIBS -R$x_libraries"
21272       else
21273         LIBS="$ac_xsave_LIBS -R $x_libraries"
21274         cat >conftest.$ac_ext <<_ACEOF
21275 #line $LINENO "configure"
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281
21282 int
21283 main ()
21284 {
21285
21286   ;
21287   return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext conftest$ac_exeext
21291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21292   (eval $ac_link) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } &&
21296          { ac_try='test -s conftest$ac_exeext'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ac_R_space=yes
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 ac_R_space=no
21308 fi
21309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21310         if test $ac_R_space = yes; then
21311           echo "$as_me:$LINENO: result: yes" >&5
21312 echo "${ECHO_T}yes" >&6
21313           X_LIBS="$X_LIBS -R $x_libraries"
21314         else
21315           echo "$as_me:$LINENO: result: neither works" >&5
21316 echo "${ECHO_T}neither works" >&6
21317         fi
21318       fi
21319       LIBS=$ac_xsave_LIBS
21320     esac
21321   fi
21322
21323   # Check for system-dependent libraries X programs must link with.
21324   # Do this before checking for the system-independent R6 libraries
21325   # (-lICE), since we may need -lsocket or whatever for X linking.
21326
21327   if test "$ISC" = yes; then
21328     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21329   else
21330     # Martyn Johnson says this is needed for Ultrix, if the X
21331     # libraries were built with DECnet support.  And Karl Berry says
21332     # the Alpha needs dnet_stub (dnet does not exist).
21333     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21334     cat >conftest.$ac_ext <<_ACEOF
21335 #line $LINENO "configure"
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341
21342 /* Override any gcc2 internal prototype to avoid an error.  */
21343 #ifdef __cplusplus
21344 extern "C"
21345 #endif
21346 /* We use char because int might match the return type of a gcc2
21347    builtin and then its argument prototype would still apply.  */
21348 char XOpenDisplay ();
21349 int
21350 main ()
21351 {
21352 XOpenDisplay ();
21353   ;
21354   return 0;
21355 }
21356 _ACEOF
21357 rm -f conftest.$ac_objext conftest$ac_exeext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21359   (eval $ac_link) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } &&
21363          { ac_try='test -s conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   :
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21375 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21376 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21377   echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379   ac_check_lib_save_LIBS=$LIBS
21380 LIBS="-ldnet  $LIBS"
21381 cat >conftest.$ac_ext <<_ACEOF
21382 #line $LINENO "configure"
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388
21389 /* Override any gcc2 internal prototype to avoid an error.  */
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 /* We use char because int might match the return type of a gcc2
21394    builtin and then its argument prototype would still apply.  */
21395 char dnet_ntoa ();
21396 int
21397 main ()
21398 {
21399 dnet_ntoa ();
21400   ;
21401   return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext conftest$ac_exeext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21406   (eval $ac_link) 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } &&
21410          { ac_try='test -s conftest$ac_exeext'
21411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412   (eval $ac_try) 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; }; then
21416   ac_cv_lib_dnet_dnet_ntoa=yes
21417 else
21418   echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ac_cv_lib_dnet_dnet_ntoa=no
21422 fi
21423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21424 LIBS=$ac_check_lib_save_LIBS
21425 fi
21426 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21427 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21428 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21429   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21430 fi
21431
21432     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21433       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21434 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21435 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438   ac_check_lib_save_LIBS=$LIBS
21439 LIBS="-ldnet_stub  $LIBS"
21440 cat >conftest.$ac_ext <<_ACEOF
21441 #line $LINENO "configure"
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447
21448 /* Override any gcc2 internal prototype to avoid an error.  */
21449 #ifdef __cplusplus
21450 extern "C"
21451 #endif
21452 /* We use char because int might match the return type of a gcc2
21453    builtin and then its argument prototype would still apply.  */
21454 char dnet_ntoa ();
21455 int
21456 main ()
21457 {
21458 dnet_ntoa ();
21459   ;
21460   return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest.$ac_objext conftest$ac_exeext
21464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21465   (eval $ac_link) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } &&
21469          { ac_try='test -s conftest$ac_exeext'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; }; then
21475   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21476 else
21477   echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 ac_cv_lib_dnet_stub_dnet_ntoa=no
21481 fi
21482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21483 LIBS=$ac_check_lib_save_LIBS
21484 fi
21485 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21486 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21487 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21488   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21489 fi
21490
21491     fi
21492 fi
21493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21494     LIBS="$ac_xsave_LIBS"
21495
21496     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21497     # to get the SysV transport functions.
21498     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21499     # needs -lnsl.
21500     # The nsl library prevents programs from opening the X display
21501     # on Irix 5.2, according to T.E. Dickey.
21502     # The functions gethostbyname, getservbyname, and inet_addr are
21503     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21504     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21505 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21506 if test "${ac_cv_func_gethostbyname+set}" = set; then
21507   echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509   cat >conftest.$ac_ext <<_ACEOF
21510 #line $LINENO "configure"
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516 /* System header to define __stub macros and hopefully few prototypes,
21517     which can conflict with char gethostbyname (); below.
21518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519     <limits.h> exists even on freestanding compilers.  */
21520 #ifdef __STDC__
21521 # include <limits.h>
21522 #else
21523 # include <assert.h>
21524 #endif
21525 /* Override any gcc2 internal prototype to avoid an error.  */
21526 #ifdef __cplusplus
21527 extern "C"
21528 {
21529 #endif
21530 /* We use char because int might match the return type of a gcc2
21531    builtin and then its argument prototype would still apply.  */
21532 char gethostbyname ();
21533 /* The GNU C library defines this for functions which it implements
21534     to always fail with ENOSYS.  Some functions are actually named
21535     something starting with __ and the normal name is an alias.  */
21536 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21537 choke me
21538 #else
21539 char (*f) () = gethostbyname;
21540 #endif
21541 #ifdef __cplusplus
21542 }
21543 #endif
21544
21545 int
21546 main ()
21547 {
21548 return f != gethostbyname;
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } &&
21559          { ac_try='test -s conftest$ac_exeext'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ac_cv_func_gethostbyname=yes
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ac_cv_func_gethostbyname=no
21571 fi
21572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21573 fi
21574 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21575 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21576
21577     if test $ac_cv_func_gethostbyname = no; then
21578       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21579 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21580 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583   ac_check_lib_save_LIBS=$LIBS
21584 LIBS="-lnsl  $LIBS"
21585 cat >conftest.$ac_ext <<_ACEOF
21586 #line $LINENO "configure"
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592
21593 /* Override any gcc2 internal prototype to avoid an error.  */
21594 #ifdef __cplusplus
21595 extern "C"
21596 #endif
21597 /* We use char because int might match the return type of a gcc2
21598    builtin and then its argument prototype would still apply.  */
21599 char gethostbyname ();
21600 int
21601 main ()
21602 {
21603 gethostbyname ();
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext conftest$ac_exeext
21609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21610   (eval $ac_link) 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } &&
21614          { ac_try='test -s conftest$ac_exeext'
21615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616   (eval $ac_try) 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; }; then
21620   ac_cv_lib_nsl_gethostbyname=yes
21621 else
21622   echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 ac_cv_lib_nsl_gethostbyname=no
21626 fi
21627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21628 LIBS=$ac_check_lib_save_LIBS
21629 fi
21630 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21631 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21632 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21633   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21634 fi
21635
21636       if test $ac_cv_lib_nsl_gethostbyname = no; then
21637         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21638 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21639 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21640   echo $ECHO_N "(cached) $ECHO_C" >&6
21641 else
21642   ac_check_lib_save_LIBS=$LIBS
21643 LIBS="-lbsd  $LIBS"
21644 cat >conftest.$ac_ext <<_ACEOF
21645 #line $LINENO "configure"
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651
21652 /* Override any gcc2 internal prototype to avoid an error.  */
21653 #ifdef __cplusplus
21654 extern "C"
21655 #endif
21656 /* We use char because int might match the return type of a gcc2
21657    builtin and then its argument prototype would still apply.  */
21658 char gethostbyname ();
21659 int
21660 main ()
21661 {
21662 gethostbyname ();
21663   ;
21664   return 0;
21665 }
21666 _ACEOF
21667 rm -f conftest.$ac_objext conftest$ac_exeext
21668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21669   (eval $ac_link) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } &&
21673          { ac_try='test -s conftest$ac_exeext'
21674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675   (eval $ac_try) 2>&5
21676   ac_status=$?
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); }; }; then
21679   ac_cv_lib_bsd_gethostbyname=yes
21680 else
21681   echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ac_cv_lib_bsd_gethostbyname=no
21685 fi
21686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21687 LIBS=$ac_check_lib_save_LIBS
21688 fi
21689 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21690 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21691 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21692   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21693 fi
21694
21695       fi
21696     fi
21697
21698     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21699     # socket/setsockopt and other routines are undefined under SCO ODT
21700     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21701     # on later versions), says Simon Leinen: it contains gethostby*
21702     # variants that don't use the name server (or something).  -lsocket
21703     # must be given before -lnsl if both are needed.  We assume that
21704     # if connect needs -lnsl, so does gethostbyname.
21705     echo "$as_me:$LINENO: checking for connect" >&5
21706 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21707 if test "${ac_cv_func_connect+set}" = set; then
21708   echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710   cat >conftest.$ac_ext <<_ACEOF
21711 #line $LINENO "configure"
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717 /* System header to define __stub macros and hopefully few prototypes,
21718     which can conflict with char connect (); below.
21719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21720     <limits.h> exists even on freestanding compilers.  */
21721 #ifdef __STDC__
21722 # include <limits.h>
21723 #else
21724 # include <assert.h>
21725 #endif
21726 /* Override any gcc2 internal prototype to avoid an error.  */
21727 #ifdef __cplusplus
21728 extern "C"
21729 {
21730 #endif
21731 /* We use char because int might match the return type of a gcc2
21732    builtin and then its argument prototype would still apply.  */
21733 char connect ();
21734 /* The GNU C library defines this for functions which it implements
21735     to always fail with ENOSYS.  Some functions are actually named
21736     something starting with __ and the normal name is an alias.  */
21737 #if defined (__stub_connect) || defined (__stub___connect)
21738 choke me
21739 #else
21740 char (*f) () = connect;
21741 #endif
21742 #ifdef __cplusplus
21743 }
21744 #endif
21745
21746 int
21747 main ()
21748 {
21749 return f != connect;
21750   ;
21751   return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756   (eval $ac_link) 2>&5
21757   ac_status=$?
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } &&
21760          { ac_try='test -s conftest$ac_exeext'
21761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762   (eval $ac_try) 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; }; then
21766   ac_cv_func_connect=yes
21767 else
21768   echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 ac_cv_func_connect=no
21772 fi
21773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21774 fi
21775 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21776 echo "${ECHO_T}$ac_cv_func_connect" >&6
21777
21778     if test $ac_cv_func_connect = no; then
21779       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21780 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21781 if test "${ac_cv_lib_socket_connect+set}" = set; then
21782   echo $ECHO_N "(cached) $ECHO_C" >&6
21783 else
21784   ac_check_lib_save_LIBS=$LIBS
21785 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21786 cat >conftest.$ac_ext <<_ACEOF
21787 #line $LINENO "configure"
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793
21794 /* Override any gcc2 internal prototype to avoid an error.  */
21795 #ifdef __cplusplus
21796 extern "C"
21797 #endif
21798 /* We use char because int might match the return type of a gcc2
21799    builtin and then its argument prototype would still apply.  */
21800 char connect ();
21801 int
21802 main ()
21803 {
21804 connect ();
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21811   (eval $ac_link) 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } &&
21815          { ac_try='test -s conftest$ac_exeext'
21816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817   (eval $ac_try) 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; }; then
21821   ac_cv_lib_socket_connect=yes
21822 else
21823   echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21825
21826 ac_cv_lib_socket_connect=no
21827 fi
21828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21829 LIBS=$ac_check_lib_save_LIBS
21830 fi
21831 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21832 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21833 if test $ac_cv_lib_socket_connect = yes; then
21834   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21835 fi
21836
21837     fi
21838
21839     # Guillermo Gomez says -lposix is necessary on A/UX.
21840     echo "$as_me:$LINENO: checking for remove" >&5
21841 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21842 if test "${ac_cv_func_remove+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   cat >conftest.$ac_ext <<_ACEOF
21846 #line $LINENO "configure"
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 /* System header to define __stub macros and hopefully few prototypes,
21853     which can conflict with char remove (); below.
21854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21855     <limits.h> exists even on freestanding compilers.  */
21856 #ifdef __STDC__
21857 # include <limits.h>
21858 #else
21859 # include <assert.h>
21860 #endif
21861 /* Override any gcc2 internal prototype to avoid an error.  */
21862 #ifdef __cplusplus
21863 extern "C"
21864 {
21865 #endif
21866 /* We use char because int might match the return type of a gcc2
21867    builtin and then its argument prototype would still apply.  */
21868 char remove ();
21869 /* The GNU C library defines this for functions which it implements
21870     to always fail with ENOSYS.  Some functions are actually named
21871     something starting with __ and the normal name is an alias.  */
21872 #if defined (__stub_remove) || defined (__stub___remove)
21873 choke me
21874 #else
21875 char (*f) () = remove;
21876 #endif
21877 #ifdef __cplusplus
21878 }
21879 #endif
21880
21881 int
21882 main ()
21883 {
21884 return f != remove;
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891   (eval $ac_link) 2>&5
21892   ac_status=$?
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); } &&
21895          { ac_try='test -s conftest$ac_exeext'
21896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897   (eval $ac_try) 2>&5
21898   ac_status=$?
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); }; }; then
21901   ac_cv_func_remove=yes
21902 else
21903   echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906 ac_cv_func_remove=no
21907 fi
21908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21909 fi
21910 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21911 echo "${ECHO_T}$ac_cv_func_remove" >&6
21912
21913     if test $ac_cv_func_remove = no; then
21914       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21915 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21916 if test "${ac_cv_lib_posix_remove+set}" = set; then
21917   echo $ECHO_N "(cached) $ECHO_C" >&6
21918 else
21919   ac_check_lib_save_LIBS=$LIBS
21920 LIBS="-lposix  $LIBS"
21921 cat >conftest.$ac_ext <<_ACEOF
21922 #line $LINENO "configure"
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928
21929 /* Override any gcc2 internal prototype to avoid an error.  */
21930 #ifdef __cplusplus
21931 extern "C"
21932 #endif
21933 /* We use char because int might match the return type of a gcc2
21934    builtin and then its argument prototype would still apply.  */
21935 char remove ();
21936 int
21937 main ()
21938 {
21939 remove ();
21940   ;
21941   return 0;
21942 }
21943 _ACEOF
21944 rm -f conftest.$ac_objext conftest$ac_exeext
21945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21946   (eval $ac_link) 2>&5
21947   ac_status=$?
21948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949   (exit $ac_status); } &&
21950          { ac_try='test -s conftest$ac_exeext'
21951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952   (eval $ac_try) 2>&5
21953   ac_status=$?
21954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955   (exit $ac_status); }; }; then
21956   ac_cv_lib_posix_remove=yes
21957 else
21958   echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21960
21961 ac_cv_lib_posix_remove=no
21962 fi
21963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21964 LIBS=$ac_check_lib_save_LIBS
21965 fi
21966 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21967 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21968 if test $ac_cv_lib_posix_remove = yes; then
21969   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21970 fi
21971
21972     fi
21973
21974     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21975     echo "$as_me:$LINENO: checking for shmat" >&5
21976 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21977 if test "${ac_cv_func_shmat+set}" = set; then
21978   echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980   cat >conftest.$ac_ext <<_ACEOF
21981 #line $LINENO "configure"
21982 /* confdefs.h.  */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h.  */
21987 /* System header to define __stub macros and hopefully few prototypes,
21988     which can conflict with char shmat (); below.
21989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21990     <limits.h> exists even on freestanding compilers.  */
21991 #ifdef __STDC__
21992 # include <limits.h>
21993 #else
21994 # include <assert.h>
21995 #endif
21996 /* Override any gcc2 internal prototype to avoid an error.  */
21997 #ifdef __cplusplus
21998 extern "C"
21999 {
22000 #endif
22001 /* We use char because int might match the return type of a gcc2
22002    builtin and then its argument prototype would still apply.  */
22003 char shmat ();
22004 /* The GNU C library defines this for functions which it implements
22005     to always fail with ENOSYS.  Some functions are actually named
22006     something starting with __ and the normal name is an alias.  */
22007 #if defined (__stub_shmat) || defined (__stub___shmat)
22008 choke me
22009 #else
22010 char (*f) () = shmat;
22011 #endif
22012 #ifdef __cplusplus
22013 }
22014 #endif
22015
22016 int
22017 main ()
22018 {
22019 return f != shmat;
22020   ;
22021   return 0;
22022 }
22023 _ACEOF
22024 rm -f conftest.$ac_objext conftest$ac_exeext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22026   (eval $ac_link) 2>&5
22027   ac_status=$?
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } &&
22030          { ac_try='test -s conftest$ac_exeext'
22031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032   (eval $ac_try) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; }; then
22036   ac_cv_func_shmat=yes
22037 else
22038   echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041 ac_cv_func_shmat=no
22042 fi
22043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22044 fi
22045 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22046 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22047
22048     if test $ac_cv_func_shmat = no; then
22049       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22050 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22051 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22052   echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054   ac_check_lib_save_LIBS=$LIBS
22055 LIBS="-lipc  $LIBS"
22056 cat >conftest.$ac_ext <<_ACEOF
22057 #line $LINENO "configure"
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063
22064 /* Override any gcc2 internal prototype to avoid an error.  */
22065 #ifdef __cplusplus
22066 extern "C"
22067 #endif
22068 /* We use char because int might match the return type of a gcc2
22069    builtin and then its argument prototype would still apply.  */
22070 char shmat ();
22071 int
22072 main ()
22073 {
22074 shmat ();
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext conftest$ac_exeext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22081   (eval $ac_link) 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); } &&
22085          { ac_try='test -s conftest$ac_exeext'
22086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087   (eval $ac_try) 2>&5
22088   ac_status=$?
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); }; }; then
22091   ac_cv_lib_ipc_shmat=yes
22092 else
22093   echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096 ac_cv_lib_ipc_shmat=no
22097 fi
22098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22099 LIBS=$ac_check_lib_save_LIBS
22100 fi
22101 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22102 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22103 if test $ac_cv_lib_ipc_shmat = yes; then
22104   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22105 fi
22106
22107     fi
22108   fi
22109
22110   # Check for libraries that X11R6 Xt/Xaw programs need.
22111   ac_save_LDFLAGS=$LDFLAGS
22112   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22113   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22114   # check for ICE first), but we must link in the order -lSM -lICE or
22115   # we get undefined symbols.  So assume we have SM if we have ICE.
22116   # These have to be linked with before -lX11, unlike the other
22117   # libraries we check for below, so use a different variable.
22118   # John Interrante, Karl Berry
22119   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22120 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22121 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124   ac_check_lib_save_LIBS=$LIBS
22125 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22126 cat >conftest.$ac_ext <<_ACEOF
22127 #line $LINENO "configure"
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133
22134 /* Override any gcc2 internal prototype to avoid an error.  */
22135 #ifdef __cplusplus
22136 extern "C"
22137 #endif
22138 /* We use char because int might match the return type of a gcc2
22139    builtin and then its argument prototype would still apply.  */
22140 char IceConnectionNumber ();
22141 int
22142 main ()
22143 {
22144 IceConnectionNumber ();
22145   ;
22146   return 0;
22147 }
22148 _ACEOF
22149 rm -f conftest.$ac_objext conftest$ac_exeext
22150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22151   (eval $ac_link) 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); } &&
22155          { ac_try='test -s conftest$ac_exeext'
22156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157   (eval $ac_try) 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; }; then
22161   ac_cv_lib_ICE_IceConnectionNumber=yes
22162 else
22163   echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 ac_cv_lib_ICE_IceConnectionNumber=no
22167 fi
22168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22169 LIBS=$ac_check_lib_save_LIBS
22170 fi
22171 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22172 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22173 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22174   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22175 fi
22176
22177   LDFLAGS=$ac_save_LDFLAGS
22178
22179 fi
22180
22181
22182         if test "$no_x" = "yes"; then
22183           { { echo "$as_me:$LINENO: error: X11 not found" >&5
22184 echo "$as_me: error: X11 not found" >&2;}
22185    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
22186         fi
22187
22188         GUI_TK_LIBRARY="$X_LIBS"
22189         TOOLKIT_INCLUDE="$X_CFLAGS"
22190         AFMINSTALL=afminstall
22191         COMPILED_X_PROGRAM=0
22192
22193         if test "$wxUSE_NANOX" = "yes"; then
22194             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22195 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
22196             if test "x$MICROWIN" = x ; then
22197                 echo "$as_me:$LINENO: result: not found" >&5
22198 echo "${ECHO_T}not found" >&6
22199                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22200 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22201    { (exit 1); exit 1; }; }
22202             else
22203                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22204 echo "${ECHO_T}$MICROWIN" >&6
22205                 cat >>confdefs.h <<\_ACEOF
22206 #define wxUSE_NANOX 1
22207 _ACEOF
22208
22209             fi
22210         fi
22211
22212         xpm_link=
22213         echo "$as_me:$LINENO: checking for Xpm library" >&5
22214 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22215
22216 ac_find_libraries=
22217 for ac_dir in $SEARCH_LIB /usr/lib;
22218   do
22219     for ac_extension in a so sl dylib; do
22220       if test -f "$ac_dir/libXpm.$ac_extension"; then
22221         ac_find_libraries=$ac_dir
22222         break 2
22223       fi
22224     done
22225   done
22226
22227         if test "$ac_find_libraries" != "" ; then
22228
22229   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22230   result=$?
22231   if test $result = 0; then
22232     ac_path_to_link=""
22233   else
22234     ac_path_to_link=" -L$ac_find_libraries"
22235   fi
22236
22237             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22238             xpm_link=" -lXpm"
22239             cat >>confdefs.h <<\_ACEOF
22240 #define wxHAVE_LIB_XPM 1
22241 _ACEOF
22242
22243             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22244 echo "${ECHO_T}found at $ac_find_libraries" >&6
22245         else
22246             cat >conftest.$ac_ext <<_ACEOF
22247 #line $LINENO "configure"
22248 /* confdefs.h.  */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h.  */
22253
22254                     #include <X11/xpm.h>
22255
22256 int
22257 main ()
22258 {
22259
22260                     int version;
22261                     version = XpmLibraryVersion();
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269   (eval $ac_compile) 2>&5
22270   ac_status=$?
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); } &&
22273          { ac_try='test -s conftest.$ac_objext'
22274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275   (eval $ac_try) 2>&5
22276   ac_status=$?
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); }; }; then
22279
22280                     xpm_link=" -lXpm"
22281                     cat >>confdefs.h <<\_ACEOF
22282 #define wxHAVE_LIB_XPM 1
22283 _ACEOF
22284
22285                     echo "$as_me:$LINENO: result: found in default search path" >&5
22286 echo "${ECHO_T}found in default search path" >&6
22287                     COMPILED_X_PROGRAM=0
22288
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293
22294                     echo "$as_me:$LINENO: result: no" >&5
22295 echo "${ECHO_T}no" >&6
22296                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22297 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22298
22299
22300 fi
22301 rm -f conftest.$ac_objext conftest.$ac_ext
22302         fi
22303
22304         echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22305 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22306 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22307   echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309   ac_check_lib_save_LIBS=$LIBS
22310 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
22311 cat >conftest.$ac_ext <<_ACEOF
22312 #line $LINENO "configure"
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318
22319 /* Override any gcc2 internal prototype to avoid an error.  */
22320 #ifdef __cplusplus
22321 extern "C"
22322 #endif
22323 /* We use char because int might match the return type of a gcc2
22324    builtin and then its argument prototype would still apply.  */
22325 char XShapeQueryExtension ();
22326 int
22327 main ()
22328 {
22329 XShapeQueryExtension ();
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22336   (eval $ac_link) 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); } &&
22340          { ac_try='test -s conftest$ac_exeext'
22341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342   (eval $ac_try) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); }; }; then
22346   ac_cv_lib_Xext_XShapeQueryExtension=yes
22347 else
22348   echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351 ac_cv_lib_Xext_XShapeQueryExtension=no
22352 fi
22353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22354 LIBS=$ac_check_lib_save_LIBS
22355 fi
22356 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22357 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22358 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
22359
22360                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22361                       wxHAVE_XEXT_LIB=1
22362
22363 fi
22364
22365
22366         if test "$wxUSE_UNICODE" = "yes"; then
22367
22368   succeeded=no
22369
22370   if test -z "$PKG_CONFIG"; then
22371     # Extract the first word of "pkg-config", so it can be a program name with args.
22372 set dummy pkg-config; ac_word=$2
22373 echo "$as_me:$LINENO: checking for $ac_word" >&5
22374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22375 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   case $PKG_CONFIG in
22379   [\\/]* | ?:[\\/]*)
22380   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22381   ;;
22382   *)
22383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22384 for as_dir in $PATH
22385 do
22386   IFS=$as_save_IFS
22387   test -z "$as_dir" && as_dir=.
22388   for ac_exec_ext in '' $ac_executable_extensions; do
22389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22390     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22392     break 2
22393   fi
22394 done
22395 done
22396
22397   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22398   ;;
22399 esac
22400 fi
22401 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22402
22403 if test -n "$PKG_CONFIG"; then
22404   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22405 echo "${ECHO_T}$PKG_CONFIG" >&6
22406 else
22407   echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6
22409 fi
22410
22411   fi
22412
22413   if test "$PKG_CONFIG" = "no" ; then
22414      echo "*** The pkg-config script could not be found. Make sure it is"
22415      echo "*** in your path, or set the PKG_CONFIG environment variable"
22416      echo "*** to the full path to pkg-config."
22417      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22418   else
22419      PKG_CONFIG_MIN_VERSION=0.9.0
22420      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22421         echo "$as_me:$LINENO: checking for pangox" >&5
22422 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
22423
22424         if $PKG_CONFIG --exists "pangox" ; then
22425             echo "$as_me:$LINENO: result: yes" >&5
22426 echo "${ECHO_T}yes" >&6
22427             succeeded=yes
22428
22429             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22430 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
22431             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
22432             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22433 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
22434
22435             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22436 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
22437             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
22438             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22439 echo "${ECHO_T}$PANGOX_LIBS" >&6
22440         else
22441             PANGOX_CFLAGS=""
22442             PANGOX_LIBS=""
22443             ## If we have a custom action on failure, don't print errors, but
22444             ## do set a variable so people can do so.
22445             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
22446
22447         fi
22448
22449
22450
22451      else
22452         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22453         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22454      fi
22455   fi
22456
22457   if test $succeeded = yes; then
22458
22459                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22460                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
22461
22462   else
22463
22464                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22465 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22466    { (exit 1); exit 1; }; }
22467
22468
22469   fi
22470
22471
22472   succeeded=no
22473
22474   if test -z "$PKG_CONFIG"; then
22475     # Extract the first word of "pkg-config", so it can be a program name with args.
22476 set dummy pkg-config; ac_word=$2
22477 echo "$as_me:$LINENO: checking for $ac_word" >&5
22478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22479 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22480   echo $ECHO_N "(cached) $ECHO_C" >&6
22481 else
22482   case $PKG_CONFIG in
22483   [\\/]* | ?:[\\/]*)
22484   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22485   ;;
22486   *)
22487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22488 for as_dir in $PATH
22489 do
22490   IFS=$as_save_IFS
22491   test -z "$as_dir" && as_dir=.
22492   for ac_exec_ext in '' $ac_executable_extensions; do
22493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22494     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22496     break 2
22497   fi
22498 done
22499 done
22500
22501   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22502   ;;
22503 esac
22504 fi
22505 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22506
22507 if test -n "$PKG_CONFIG"; then
22508   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22509 echo "${ECHO_T}$PKG_CONFIG" >&6
22510 else
22511   echo "$as_me:$LINENO: result: no" >&5
22512 echo "${ECHO_T}no" >&6
22513 fi
22514
22515   fi
22516
22517   if test "$PKG_CONFIG" = "no" ; then
22518      echo "*** The pkg-config script could not be found. Make sure it is"
22519      echo "*** in your path, or set the PKG_CONFIG environment variable"
22520      echo "*** to the full path to pkg-config."
22521      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22522   else
22523      PKG_CONFIG_MIN_VERSION=0.9.0
22524      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22525         echo "$as_me:$LINENO: checking for pangoft2" >&5
22526 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22527
22528         if $PKG_CONFIG --exists "pangoft2" ; then
22529             echo "$as_me:$LINENO: result: yes" >&5
22530 echo "${ECHO_T}yes" >&6
22531             succeeded=yes
22532
22533             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22534 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22535             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22536             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22537 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22538
22539             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22540 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22541             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22542             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22543 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22544         else
22545             PANGOFT2_CFLAGS=""
22546             PANGOFT2_LIBS=""
22547             ## If we have a custom action on failure, don't print errors, but
22548             ## do set a variable so people can do so.
22549             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22550
22551         fi
22552
22553
22554
22555      else
22556         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22557         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22558      fi
22559   fi
22560
22561   if test $succeeded = yes; then
22562
22563                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22564                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22565
22566   else
22567
22568                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22569 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22570                         wxUSE_PRINTING_ARCHITECTURE="no"
22571
22572
22573   fi
22574
22575
22576   succeeded=no
22577
22578   if test -z "$PKG_CONFIG"; then
22579     # Extract the first word of "pkg-config", so it can be a program name with args.
22580 set dummy pkg-config; ac_word=$2
22581 echo "$as_me:$LINENO: checking for $ac_word" >&5
22582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22583 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22584   echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586   case $PKG_CONFIG in
22587   [\\/]* | ?:[\\/]*)
22588   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22589   ;;
22590   *)
22591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22592 for as_dir in $PATH
22593 do
22594   IFS=$as_save_IFS
22595   test -z "$as_dir" && as_dir=.
22596   for ac_exec_ext in '' $ac_executable_extensions; do
22597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22598     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22600     break 2
22601   fi
22602 done
22603 done
22604
22605   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22606   ;;
22607 esac
22608 fi
22609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22610
22611 if test -n "$PKG_CONFIG"; then
22612   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22613 echo "${ECHO_T}$PKG_CONFIG" >&6
22614 else
22615   echo "$as_me:$LINENO: result: no" >&5
22616 echo "${ECHO_T}no" >&6
22617 fi
22618
22619   fi
22620
22621   if test "$PKG_CONFIG" = "no" ; then
22622      echo "*** The pkg-config script could not be found. Make sure it is"
22623      echo "*** in your path, or set the PKG_CONFIG environment variable"
22624      echo "*** to the full path to pkg-config."
22625      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22626   else
22627      PKG_CONFIG_MIN_VERSION=0.9.0
22628      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22629         echo "$as_me:$LINENO: checking for pangoxft" >&5
22630 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
22631
22632         if $PKG_CONFIG --exists "pangoxft" ; then
22633             echo "$as_me:$LINENO: result: yes" >&5
22634 echo "${ECHO_T}yes" >&6
22635             succeeded=yes
22636
22637             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22638 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
22639             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
22640             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22641 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
22642
22643             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22644 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
22645             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
22646             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22647 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
22648         else
22649             PANGOXFT_CFLAGS=""
22650             PANGOXFT_LIBS=""
22651             ## If we have a custom action on failure, don't print errors, but
22652             ## do set a variable so people can do so.
22653             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
22654
22655         fi
22656
22657
22658
22659      else
22660         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22661         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22662      fi
22663   fi
22664
22665   if test $succeeded = yes; then
22666
22667                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22668                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
22669
22670   else
22671
22672                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22673 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22674
22675
22676   fi
22677
22678         fi
22679
22680         wxUSE_UNIVERSAL="yes"
22681
22682         if test "$wxUSE_NANOX" = "yes"; then
22683             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
22684             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"
22685             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22686         else
22687             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22688         fi
22689
22690         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22691         TOOLKIT=X11
22692         GUIDIST=X11_DIST
22693     fi
22694
22695     if test "$wxUSE_MOTIF" = 1; then
22696                         if test "$no_x" = yes; then
22697   # Not all programs may use this symbol, but it does not hurt to define it.
22698
22699 cat >>confdefs.h <<\_ACEOF
22700 #define X_DISPLAY_MISSING 1
22701 _ACEOF
22702
22703   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22704 else
22705   if test -n "$x_includes"; then
22706     X_CFLAGS="$X_CFLAGS -I$x_includes"
22707   fi
22708
22709   # It would also be nice to do this for all -L options, not just this one.
22710   if test -n "$x_libraries"; then
22711     X_LIBS="$X_LIBS -L$x_libraries"
22712     # For Solaris; some versions of Sun CC require a space after -R and
22713     # others require no space.  Words are not sufficient . . . .
22714     case `(uname -sr) 2>/dev/null` in
22715     "SunOS 5"*)
22716       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22717 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22718       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22719       cat >conftest.$ac_ext <<_ACEOF
22720 #line $LINENO "configure"
22721 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726
22727 int
22728 main ()
22729 {
22730
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22737   (eval $ac_link) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -s conftest$ac_exeext'
22742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743   (eval $ac_try) 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; }; then
22747   ac_R_nospace=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ac_R_nospace=no
22753 fi
22754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22755       if test $ac_R_nospace = yes; then
22756         echo "$as_me:$LINENO: result: no" >&5
22757 echo "${ECHO_T}no" >&6
22758         X_LIBS="$X_LIBS -R$x_libraries"
22759       else
22760         LIBS="$ac_xsave_LIBS -R $x_libraries"
22761         cat >conftest.$ac_ext <<_ACEOF
22762 #line $LINENO "configure"
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768
22769 int
22770 main ()
22771 {
22772
22773   ;
22774   return 0;
22775 }
22776 _ACEOF
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779   (eval $ac_link) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); } &&
22783          { ac_try='test -s conftest$ac_exeext'
22784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785   (eval $ac_try) 2>&5
22786   ac_status=$?
22787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788   (exit $ac_status); }; }; then
22789   ac_R_space=yes
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 ac_R_space=no
22795 fi
22796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22797         if test $ac_R_space = yes; then
22798           echo "$as_me:$LINENO: result: yes" >&5
22799 echo "${ECHO_T}yes" >&6
22800           X_LIBS="$X_LIBS -R $x_libraries"
22801         else
22802           echo "$as_me:$LINENO: result: neither works" >&5
22803 echo "${ECHO_T}neither works" >&6
22804         fi
22805       fi
22806       LIBS=$ac_xsave_LIBS
22807     esac
22808   fi
22809
22810   # Check for system-dependent libraries X programs must link with.
22811   # Do this before checking for the system-independent R6 libraries
22812   # (-lICE), since we may need -lsocket or whatever for X linking.
22813
22814   if test "$ISC" = yes; then
22815     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22816   else
22817     # Martyn Johnson says this is needed for Ultrix, if the X
22818     # libraries were built with DECnet support.  And Karl Berry says
22819     # the Alpha needs dnet_stub (dnet does not exist).
22820     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22821     cat >conftest.$ac_ext <<_ACEOF
22822 #line $LINENO "configure"
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828
22829 /* Override any gcc2 internal prototype to avoid an error.  */
22830 #ifdef __cplusplus
22831 extern "C"
22832 #endif
22833 /* We use char because int might match the return type of a gcc2
22834    builtin and then its argument prototype would still apply.  */
22835 char XOpenDisplay ();
22836 int
22837 main ()
22838 {
22839 XOpenDisplay ();
22840   ;
22841   return 0;
22842 }
22843 _ACEOF
22844 rm -f conftest.$ac_objext conftest$ac_exeext
22845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22846   (eval $ac_link) 2>&5
22847   ac_status=$?
22848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); } &&
22850          { ac_try='test -s conftest$ac_exeext'
22851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852   (eval $ac_try) 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; }; then
22856   :
22857 else
22858   echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22860
22861 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22862 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22863 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22864   echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866   ac_check_lib_save_LIBS=$LIBS
22867 LIBS="-ldnet  $LIBS"
22868 cat >conftest.$ac_ext <<_ACEOF
22869 #line $LINENO "configure"
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875
22876 /* Override any gcc2 internal prototype to avoid an error.  */
22877 #ifdef __cplusplus
22878 extern "C"
22879 #endif
22880 /* We use char because int might match the return type of a gcc2
22881    builtin and then its argument prototype would still apply.  */
22882 char dnet_ntoa ();
22883 int
22884 main ()
22885 {
22886 dnet_ntoa ();
22887   ;
22888   return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext conftest$ac_exeext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22893   (eval $ac_link) 2>&5
22894   ac_status=$?
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); } &&
22897          { ac_try='test -s conftest$ac_exeext'
22898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899   (eval $ac_try) 2>&5
22900   ac_status=$?
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); }; }; then
22903   ac_cv_lib_dnet_dnet_ntoa=yes
22904 else
22905   echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908 ac_cv_lib_dnet_dnet_ntoa=no
22909 fi
22910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22911 LIBS=$ac_check_lib_save_LIBS
22912 fi
22913 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22914 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22915 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22916   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22917 fi
22918
22919     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22920       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22921 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22922 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22923   echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925   ac_check_lib_save_LIBS=$LIBS
22926 LIBS="-ldnet_stub  $LIBS"
22927 cat >conftest.$ac_ext <<_ACEOF
22928 #line $LINENO "configure"
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934
22935 /* Override any gcc2 internal prototype to avoid an error.  */
22936 #ifdef __cplusplus
22937 extern "C"
22938 #endif
22939 /* We use char because int might match the return type of a gcc2
22940    builtin and then its argument prototype would still apply.  */
22941 char dnet_ntoa ();
22942 int
22943 main ()
22944 {
22945 dnet_ntoa ();
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952   (eval $ac_link) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } &&
22956          { ac_try='test -s conftest$ac_exeext'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; }; then
22962   ac_cv_lib_dnet_stub_dnet_ntoa=yes
22963 else
22964   echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967 ac_cv_lib_dnet_stub_dnet_ntoa=no
22968 fi
22969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22970 LIBS=$ac_check_lib_save_LIBS
22971 fi
22972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22973 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22974 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22975   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22976 fi
22977
22978     fi
22979 fi
22980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22981     LIBS="$ac_xsave_LIBS"
22982
22983     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22984     # to get the SysV transport functions.
22985     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22986     # needs -lnsl.
22987     # The nsl library prevents programs from opening the X display
22988     # on Irix 5.2, according to T.E. Dickey.
22989     # The functions gethostbyname, getservbyname, and inet_addr are
22990     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22991     echo "$as_me:$LINENO: checking for gethostbyname" >&5
22992 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22993 if test "${ac_cv_func_gethostbyname+set}" = set; then
22994   echo $ECHO_N "(cached) $ECHO_C" >&6
22995 else
22996   cat >conftest.$ac_ext <<_ACEOF
22997 #line $LINENO "configure"
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003 /* System header to define __stub macros and hopefully few prototypes,
23004     which can conflict with char gethostbyname (); below.
23005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23006     <limits.h> exists even on freestanding compilers.  */
23007 #ifdef __STDC__
23008 # include <limits.h>
23009 #else
23010 # include <assert.h>
23011 #endif
23012 /* Override any gcc2 internal prototype to avoid an error.  */
23013 #ifdef __cplusplus
23014 extern "C"
23015 {
23016 #endif
23017 /* We use char because int might match the return type of a gcc2
23018    builtin and then its argument prototype would still apply.  */
23019 char gethostbyname ();
23020 /* The GNU C library defines this for functions which it implements
23021     to always fail with ENOSYS.  Some functions are actually named
23022     something starting with __ and the normal name is an alias.  */
23023 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23024 choke me
23025 #else
23026 char (*f) () = gethostbyname;
23027 #endif
23028 #ifdef __cplusplus
23029 }
23030 #endif
23031
23032 int
23033 main ()
23034 {
23035 return f != gethostbyname;
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 rm -f conftest.$ac_objext conftest$ac_exeext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23042   (eval $ac_link) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } &&
23046          { ac_try='test -s conftest$ac_exeext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   ac_cv_func_gethostbyname=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ac_cv_func_gethostbyname=no
23058 fi
23059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23060 fi
23061 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23062 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23063
23064     if test $ac_cv_func_gethostbyname = no; then
23065       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23066 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23067 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23068   echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070   ac_check_lib_save_LIBS=$LIBS
23071 LIBS="-lnsl  $LIBS"
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
23080 /* Override any gcc2 internal prototype to avoid an error.  */
23081 #ifdef __cplusplus
23082 extern "C"
23083 #endif
23084 /* We use char because int might match the return type of a gcc2
23085    builtin and then its argument prototype would still apply.  */
23086 char gethostbyname ();
23087 int
23088 main ()
23089 {
23090 gethostbyname ();
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 rm -f conftest.$ac_objext conftest$ac_exeext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23097   (eval $ac_link) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } &&
23101          { ac_try='test -s conftest$ac_exeext'
23102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103   (eval $ac_try) 2>&5
23104   ac_status=$?
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); }; }; then
23107   ac_cv_lib_nsl_gethostbyname=yes
23108 else
23109   echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23111
23112 ac_cv_lib_nsl_gethostbyname=no
23113 fi
23114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23115 LIBS=$ac_check_lib_save_LIBS
23116 fi
23117 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23118 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23119 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23120   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23121 fi
23122
23123       if test $ac_cv_lib_nsl_gethostbyname = no; then
23124         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23125 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23126 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23127   echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129   ac_check_lib_save_LIBS=$LIBS
23130 LIBS="-lbsd  $LIBS"
23131 cat >conftest.$ac_ext <<_ACEOF
23132 #line $LINENO "configure"
23133 /* confdefs.h.  */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h.  */
23138
23139 /* Override any gcc2 internal prototype to avoid an error.  */
23140 #ifdef __cplusplus
23141 extern "C"
23142 #endif
23143 /* We use char because int might match the return type of a gcc2
23144    builtin and then its argument prototype would still apply.  */
23145 char gethostbyname ();
23146 int
23147 main ()
23148 {
23149 gethostbyname ();
23150   ;
23151   return 0;
23152 }
23153 _ACEOF
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23156   (eval $ac_link) 2>&5
23157   ac_status=$?
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); } &&
23160          { ac_try='test -s conftest$ac_exeext'
23161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162   (eval $ac_try) 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; }; then
23166   ac_cv_lib_bsd_gethostbyname=yes
23167 else
23168   echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171 ac_cv_lib_bsd_gethostbyname=no
23172 fi
23173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23174 LIBS=$ac_check_lib_save_LIBS
23175 fi
23176 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23177 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23178 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23179   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23180 fi
23181
23182       fi
23183     fi
23184
23185     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23186     # socket/setsockopt and other routines are undefined under SCO ODT
23187     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23188     # on later versions), says Simon Leinen: it contains gethostby*
23189     # variants that don't use the name server (or something).  -lsocket
23190     # must be given before -lnsl if both are needed.  We assume that
23191     # if connect needs -lnsl, so does gethostbyname.
23192     echo "$as_me:$LINENO: checking for connect" >&5
23193 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23194 if test "${ac_cv_func_connect+set}" = set; then
23195   echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197   cat >conftest.$ac_ext <<_ACEOF
23198 #line $LINENO "configure"
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 /* System header to define __stub macros and hopefully few prototypes,
23205     which can conflict with char connect (); below.
23206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23207     <limits.h> exists even on freestanding compilers.  */
23208 #ifdef __STDC__
23209 # include <limits.h>
23210 #else
23211 # include <assert.h>
23212 #endif
23213 /* Override any gcc2 internal prototype to avoid an error.  */
23214 #ifdef __cplusplus
23215 extern "C"
23216 {
23217 #endif
23218 /* We use char because int might match the return type of a gcc2
23219    builtin and then its argument prototype would still apply.  */
23220 char connect ();
23221 /* The GNU C library defines this for functions which it implements
23222     to always fail with ENOSYS.  Some functions are actually named
23223     something starting with __ and the normal name is an alias.  */
23224 #if defined (__stub_connect) || defined (__stub___connect)
23225 choke me
23226 #else
23227 char (*f) () = connect;
23228 #endif
23229 #ifdef __cplusplus
23230 }
23231 #endif
23232
23233 int
23234 main ()
23235 {
23236 return f != connect;
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_func_connect=yes
23254 else
23255   echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23257
23258 ac_cv_func_connect=no
23259 fi
23260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23261 fi
23262 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23263 echo "${ECHO_T}$ac_cv_func_connect" >&6
23264
23265     if test $ac_cv_func_connect = no; then
23266       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23267 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23268 if test "${ac_cv_lib_socket_connect+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271   ac_check_lib_save_LIBS=$LIBS
23272 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23273 cat >conftest.$ac_ext <<_ACEOF
23274 #line $LINENO "configure"
23275 /* confdefs.h.  */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h.  */
23280
23281 /* Override any gcc2 internal prototype to avoid an error.  */
23282 #ifdef __cplusplus
23283 extern "C"
23284 #endif
23285 /* We use char because int might match the return type of a gcc2
23286    builtin and then its argument prototype would still apply.  */
23287 char connect ();
23288 int
23289 main ()
23290 {
23291 connect ();
23292   ;
23293   return 0;
23294 }
23295 _ACEOF
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23298   (eval $ac_link) 2>&5
23299   ac_status=$?
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); } &&
23302          { ac_try='test -s conftest$ac_exeext'
23303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304   (eval $ac_try) 2>&5
23305   ac_status=$?
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); }; }; then
23308   ac_cv_lib_socket_connect=yes
23309 else
23310   echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23312
23313 ac_cv_lib_socket_connect=no
23314 fi
23315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23316 LIBS=$ac_check_lib_save_LIBS
23317 fi
23318 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23319 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23320 if test $ac_cv_lib_socket_connect = yes; then
23321   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23322 fi
23323
23324     fi
23325
23326     # Guillermo Gomez says -lposix is necessary on A/UX.
23327     echo "$as_me:$LINENO: checking for remove" >&5
23328 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23329 if test "${ac_cv_func_remove+set}" = set; then
23330   echo $ECHO_N "(cached) $ECHO_C" >&6
23331 else
23332   cat >conftest.$ac_ext <<_ACEOF
23333 #line $LINENO "configure"
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339 /* System header to define __stub macros and hopefully few prototypes,
23340     which can conflict with char remove (); below.
23341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23342     <limits.h> exists even on freestanding compilers.  */
23343 #ifdef __STDC__
23344 # include <limits.h>
23345 #else
23346 # include <assert.h>
23347 #endif
23348 /* Override any gcc2 internal prototype to avoid an error.  */
23349 #ifdef __cplusplus
23350 extern "C"
23351 {
23352 #endif
23353 /* We use char because int might match the return type of a gcc2
23354    builtin and then its argument prototype would still apply.  */
23355 char remove ();
23356 /* The GNU C library defines this for functions which it implements
23357     to always fail with ENOSYS.  Some functions are actually named
23358     something starting with __ and the normal name is an alias.  */
23359 #if defined (__stub_remove) || defined (__stub___remove)
23360 choke me
23361 #else
23362 char (*f) () = remove;
23363 #endif
23364 #ifdef __cplusplus
23365 }
23366 #endif
23367
23368 int
23369 main ()
23370 {
23371 return f != remove;
23372   ;
23373   return 0;
23374 }
23375 _ACEOF
23376 rm -f conftest.$ac_objext conftest$ac_exeext
23377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23378   (eval $ac_link) 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } &&
23382          { ac_try='test -s conftest$ac_exeext'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; }; then
23388   ac_cv_func_remove=yes
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393 ac_cv_func_remove=no
23394 fi
23395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23396 fi
23397 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23398 echo "${ECHO_T}$ac_cv_func_remove" >&6
23399
23400     if test $ac_cv_func_remove = no; then
23401       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23402 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23403 if test "${ac_cv_lib_posix_remove+set}" = set; then
23404   echo $ECHO_N "(cached) $ECHO_C" >&6
23405 else
23406   ac_check_lib_save_LIBS=$LIBS
23407 LIBS="-lposix  $LIBS"
23408 cat >conftest.$ac_ext <<_ACEOF
23409 #line $LINENO "configure"
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415
23416 /* Override any gcc2 internal prototype to avoid an error.  */
23417 #ifdef __cplusplus
23418 extern "C"
23419 #endif
23420 /* We use char because int might match the return type of a gcc2
23421    builtin and then its argument prototype would still apply.  */
23422 char remove ();
23423 int
23424 main ()
23425 {
23426 remove ();
23427   ;
23428   return 0;
23429 }
23430 _ACEOF
23431 rm -f conftest.$ac_objext conftest$ac_exeext
23432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23433   (eval $ac_link) 2>&5
23434   ac_status=$?
23435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436   (exit $ac_status); } &&
23437          { ac_try='test -s conftest$ac_exeext'
23438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439   (eval $ac_try) 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); }; }; then
23443   ac_cv_lib_posix_remove=yes
23444 else
23445   echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448 ac_cv_lib_posix_remove=no
23449 fi
23450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23451 LIBS=$ac_check_lib_save_LIBS
23452 fi
23453 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23454 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23455 if test $ac_cv_lib_posix_remove = yes; then
23456   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23457 fi
23458
23459     fi
23460
23461     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23462     echo "$as_me:$LINENO: checking for shmat" >&5
23463 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23464 if test "${ac_cv_func_shmat+set}" = set; then
23465   echo $ECHO_N "(cached) $ECHO_C" >&6
23466 else
23467   cat >conftest.$ac_ext <<_ACEOF
23468 #line $LINENO "configure"
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474 /* System header to define __stub macros and hopefully few prototypes,
23475     which can conflict with char shmat (); below.
23476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23477     <limits.h> exists even on freestanding compilers.  */
23478 #ifdef __STDC__
23479 # include <limits.h>
23480 #else
23481 # include <assert.h>
23482 #endif
23483 /* Override any gcc2 internal prototype to avoid an error.  */
23484 #ifdef __cplusplus
23485 extern "C"
23486 {
23487 #endif
23488 /* We use char because int might match the return type of a gcc2
23489    builtin and then its argument prototype would still apply.  */
23490 char shmat ();
23491 /* The GNU C library defines this for functions which it implements
23492     to always fail with ENOSYS.  Some functions are actually named
23493     something starting with __ and the normal name is an alias.  */
23494 #if defined (__stub_shmat) || defined (__stub___shmat)
23495 choke me
23496 #else
23497 char (*f) () = shmat;
23498 #endif
23499 #ifdef __cplusplus
23500 }
23501 #endif
23502
23503 int
23504 main ()
23505 {
23506 return f != shmat;
23507   ;
23508   return 0;
23509 }
23510 _ACEOF
23511 rm -f conftest.$ac_objext conftest$ac_exeext
23512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23513   (eval $ac_link) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); } &&
23517          { ac_try='test -s conftest$ac_exeext'
23518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519   (eval $ac_try) 2>&5
23520   ac_status=$?
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); }; }; then
23523   ac_cv_func_shmat=yes
23524 else
23525   echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528 ac_cv_func_shmat=no
23529 fi
23530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23531 fi
23532 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23533 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23534
23535     if test $ac_cv_func_shmat = no; then
23536       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23537 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23538 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23539   echo $ECHO_N "(cached) $ECHO_C" >&6
23540 else
23541   ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lipc  $LIBS"
23543 cat >conftest.$ac_ext <<_ACEOF
23544 #line $LINENO "configure"
23545 /* confdefs.h.  */
23546 _ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h.  */
23550
23551 /* Override any gcc2 internal prototype to avoid an error.  */
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 /* We use char because int might match the return type of a gcc2
23556    builtin and then its argument prototype would still apply.  */
23557 char shmat ();
23558 int
23559 main ()
23560 {
23561 shmat ();
23562   ;
23563   return 0;
23564 }
23565 _ACEOF
23566 rm -f conftest.$ac_objext conftest$ac_exeext
23567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23568   (eval $ac_link) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); } &&
23572          { ac_try='test -s conftest$ac_exeext'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; }; then
23578   ac_cv_lib_ipc_shmat=yes
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 ac_cv_lib_ipc_shmat=no
23584 fi
23585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23586 LIBS=$ac_check_lib_save_LIBS
23587 fi
23588 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23589 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23590 if test $ac_cv_lib_ipc_shmat = yes; then
23591   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23592 fi
23593
23594     fi
23595   fi
23596
23597   # Check for libraries that X11R6 Xt/Xaw programs need.
23598   ac_save_LDFLAGS=$LDFLAGS
23599   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23600   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23601   # check for ICE first), but we must link in the order -lSM -lICE or
23602   # we get undefined symbols.  So assume we have SM if we have ICE.
23603   # These have to be linked with before -lX11, unlike the other
23604   # libraries we check for below, so use a different variable.
23605   # John Interrante, Karl Berry
23606   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23607 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23608 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23609   echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611   ac_check_lib_save_LIBS=$LIBS
23612 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23613 cat >conftest.$ac_ext <<_ACEOF
23614 #line $LINENO "configure"
23615 /* confdefs.h.  */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h.  */
23620
23621 /* Override any gcc2 internal prototype to avoid an error.  */
23622 #ifdef __cplusplus
23623 extern "C"
23624 #endif
23625 /* We use char because int might match the return type of a gcc2
23626    builtin and then its argument prototype would still apply.  */
23627 char IceConnectionNumber ();
23628 int
23629 main ()
23630 {
23631 IceConnectionNumber ();
23632   ;
23633   return 0;
23634 }
23635 _ACEOF
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23638   (eval $ac_link) 2>&5
23639   ac_status=$?
23640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641   (exit $ac_status); } &&
23642          { ac_try='test -s conftest$ac_exeext'
23643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644   (eval $ac_try) 2>&5
23645   ac_status=$?
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); }; }; then
23648   ac_cv_lib_ICE_IceConnectionNumber=yes
23649 else
23650   echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23652
23653 ac_cv_lib_ICE_IceConnectionNumber=no
23654 fi
23655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23656 LIBS=$ac_check_lib_save_LIBS
23657 fi
23658 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23659 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23660 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23661   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23662 fi
23663
23664   LDFLAGS=$ac_save_LDFLAGS
23665
23666 fi
23667
23668
23669         if test "$no_x" = "yes"; then
23670           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23671 echo "$as_me: error: X11 not found" >&2;}
23672    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23673         fi
23674
23675                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23676         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
23677         AFMINSTALL=afminstall
23678         COMPILED_X_PROGRAM=0
23679
23680         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23681 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23682
23683 ac_find_includes=
23684 for ac_dir in $SEARCH_INCLUDE /usr/include;
23685   do
23686     if test -f "$ac_dir/Xm/Xm.h"; then
23687       ac_find_includes=$ac_dir
23688       break
23689     fi
23690   done
23691
23692         if test "$ac_find_includes" != "" ; then
23693             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23694 echo "${ECHO_T}found in $ac_find_includes" >&6
23695
23696     if test "x$ac_find_includes" = "x/usr/include"; then
23697     ac_path_to_include=""
23698   else
23699     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23700     result=$?
23701     if test $result = 0; then
23702       ac_path_to_include=""
23703     else
23704       ac_path_to_include=" -I$ac_find_includes"
23705     fi
23706   fi
23707
23708             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
23709         else
23710             cat >conftest.$ac_ext <<_ACEOF
23711 #line $LINENO "configure"
23712 /* confdefs.h.  */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h.  */
23717
23718                     #include <Xm/Xm.h>
23719
23720 int
23721 main ()
23722 {
23723
23724                     int version;
23725                     version = xmUseVersion;
23726
23727   ;
23728   return 0;
23729 }
23730 _ACEOF
23731 rm -f conftest.$ac_objext
23732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23733   (eval $ac_compile) 2>&5
23734   ac_status=$?
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -s conftest.$ac_objext'
23738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739   (eval $ac_try) 2>&5
23740   ac_status=$?
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); }; }; then
23743
23744                     echo "$as_me:$LINENO: result: found in default search path" >&5
23745 echo "${ECHO_T}found in default search path" >&6
23746                     COMPILED_X_PROGRAM=1
23747
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752
23753                     echo "$as_me:$LINENO: result: no" >&5
23754 echo "${ECHO_T}no" >&6
23755                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23756 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23757    { (exit 1); exit 1; }; }
23758
23759
23760 fi
23761 rm -f conftest.$ac_objext conftest.$ac_ext
23762         fi
23763
23764         if test "$COMPILED_X_PROGRAM" = 0; then
23765             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23766 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23767
23768 ac_find_libraries=
23769 for ac_dir in $SEARCH_LIB /usr/lib;
23770   do
23771     for ac_extension in a so sl dylib; do
23772       if test -f "$ac_dir/libXm.$ac_extension"; then
23773         ac_find_libraries=$ac_dir
23774         break 2
23775       fi
23776     done
23777   done
23778
23779             if test "$ac_find_libraries" != "" ; then
23780                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23781 echo "${ECHO_T}found at $ac_find_libraries" >&6
23782
23783
23784   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23785   result=$?
23786   if test $result = 0; then
23787     ac_path_to_link=""
23788   else
23789     ac_path_to_link=" -L$ac_find_libraries"
23790   fi
23791
23792                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23793             else
23794                                                                 save_CFLAGS=$CFLAGS
23795                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23796
23797                 cat >conftest.$ac_ext <<_ACEOF
23798 #line $LINENO "configure"
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804
23805                         #include <Xm/Xm.h>
23806
23807 int
23808 main ()
23809 {
23810
23811                         int version;
23812                         version = xmUseVersion;
23813
23814   ;
23815   return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23820   (eval $ac_compile) 2>&5
23821   ac_status=$?
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } &&
23824          { ac_try='test -s conftest.$ac_objext'
23825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826   (eval $ac_try) 2>&5
23827   ac_status=$?
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); }; }; then
23830
23831                         echo "$as_me:$LINENO: result: found in default search path" >&5
23832 echo "${ECHO_T}found in default search path" >&6
23833                         COMPILED_X_PROGRAM=1
23834
23835 else
23836   echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23838
23839
23840                         echo "$as_me:$LINENO: result: no" >&5
23841 echo "${ECHO_T}no" >&6
23842                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23843 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23844    { (exit 1); exit 1; }; }
23845
23846
23847 fi
23848 rm -f conftest.$ac_objext conftest.$ac_ext
23849
23850                 CFLAGS=$save_CFLAGS
23851             fi
23852         fi
23853
23854         xpm_link=
23855         echo "$as_me:$LINENO: checking for Xpm library" >&5
23856 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23857
23858 ac_find_libraries=
23859 for ac_dir in $SEARCH_LIB /usr/lib;
23860   do
23861     for ac_extension in a so sl dylib; do
23862       if test -f "$ac_dir/libXpm.$ac_extension"; then
23863         ac_find_libraries=$ac_dir
23864         break 2
23865       fi
23866     done
23867   done
23868
23869         if test "$ac_find_libraries" != "" ; then
23870
23871   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23872   result=$?
23873   if test $result = 0; then
23874     ac_path_to_link=""
23875   else
23876     ac_path_to_link=" -L$ac_find_libraries"
23877   fi
23878
23879             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23880
23881             xpm_link=" -lXpm"
23882             cat >>confdefs.h <<\_ACEOF
23883 #define wxHAVE_LIB_XPM 1
23884 _ACEOF
23885
23886             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23887 echo "${ECHO_T}found at $ac_find_libraries" >&6
23888         else
23889             save_CFLAGS=$CFLAGS
23890             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23891
23892             cat >conftest.$ac_ext <<_ACEOF
23893 #line $LINENO "configure"
23894 /* confdefs.h.  */
23895 _ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h.  */
23899
23900                     #include <X11/xpm.h>
23901
23902 int
23903 main ()
23904 {
23905
23906                     int version;
23907                     version = XpmLibraryVersion();
23908
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23915   (eval $ac_compile) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } &&
23919          { ac_try='test -s conftest.$ac_objext'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; }; then
23925
23926                     xpm_link=" -lXpm"
23927                     cat >>confdefs.h <<\_ACEOF
23928 #define wxHAVE_LIB_XPM 1
23929 _ACEOF
23930
23931                     echo "$as_me:$LINENO: result: found in default search path" >&5
23932 echo "${ECHO_T}found in default search path" >&6
23933                     COMPILED_X_PROGRAM=0
23934
23935 else
23936   echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23938
23939
23940                     echo "$as_me:$LINENO: result: no" >&5
23941 echo "${ECHO_T}no" >&6
23942                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23943 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23944
23945
23946 fi
23947 rm -f conftest.$ac_objext conftest.$ac_ext
23948
23949             CFLAGS=$save_CFLAGS
23950         fi
23951
23952         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23953 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
23954         libp_link=""
23955         libsm_ice_link=""
23956         libs_found=0
23957         for libp in "" " -lXp"; do
23958             if test "$libs_found" = "0"; then
23959                 for libsm_ice in " -lSM -lICE"; do
23960                     if test "$libs_found" = "0"; then
23961                         save_LIBS="$LIBS"
23962                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
23963                         save_CFLAGS=$CFLAGS
23964                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23965
23966                         cat >conftest.$ac_ext <<_ACEOF
23967 #line $LINENO "configure"
23968 /* confdefs.h.  */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h.  */
23973
23974                                 #include <Xm/Xm.h>
23975                                 #include <Xm/List.h>
23976
23977 int
23978 main ()
23979 {
23980
23981                                 XmString string = NULL;
23982                                 Widget w = NULL;
23983                                 int position = 0;
23984                                 XmListAddItem(w, string, position);
23985
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992   (eval $ac_link) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } &&
23996          { ac_try='test -s conftest$ac_exeext'
23997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998   (eval $ac_try) 2>&5
23999   ac_status=$?
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); }; }; then
24002
24003                                 libp_link="$libp"
24004                                 libsm_ice_link="$libsm_ice"
24005                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24006 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24007                                 libs_found=1
24008
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013
24014
24015 fi
24016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24017
24018                         LIBS="$save_LIBS"
24019                         CFLAGS=$save_CFLAGS
24020                     fi
24021                 done
24022             fi
24023         done
24024
24025         if test "$libs_found" = "0"; then
24026             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24027 echo "${ECHO_T}can't find the right libraries" >&6
24028             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24029 echo "$as_me: error: can't link a simple motif program" >&2;}
24030    { (exit 1); exit 1; }; }
24031         fi
24032
24033         save_CFLAGS=$CFLAGS
24034         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24035         echo "$as_me:$LINENO: checking for Motif 2" >&5
24036 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24037         cat >conftest.$ac_ext <<_ACEOF
24038 #line $LINENO "configure"
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044
24045                         #include <Xm/Xm.h>
24046
24047 int
24048 main ()
24049 {
24050
24051                         #if XmVersion < 2000
24052                         #error "Not Motif 2"
24053                         #endif
24054
24055   ;
24056   return 0;
24057 }
24058 _ACEOF
24059 rm -f conftest.$ac_objext
24060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24061   (eval $ac_compile) 2>&5
24062   ac_status=$?
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); } &&
24065          { ac_try='test -s conftest.$ac_objext'
24066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067   (eval $ac_try) 2>&5
24068   ac_status=$?
24069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070   (exit $ac_status); }; }; then
24071
24072                         cat >>confdefs.h <<\_ACEOF
24073 #define __WXMOTIF20__ 1
24074 _ACEOF
24075
24076                         echo "$as_me:$LINENO: result: found" >&5
24077 echo "${ECHO_T}found" >&6
24078
24079 else
24080   echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24082
24083
24084                         cat >>confdefs.h <<\_ACEOF
24085 #define __WXMOTIF20__ 0
24086 _ACEOF
24087
24088                         echo "$as_me:$LINENO: result: not found" >&5
24089 echo "${ECHO_T}not found" >&6
24090
24091 fi
24092 rm -f conftest.$ac_objext conftest.$ac_ext
24093         CFLAGS=$save_CFLAGS
24094
24095         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
24096         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
24097         TOOLKIT=MOTIF
24098         GUIDIST=MOTIF_DIST
24099         wxHAVE_XEXT_LIB=1
24100     fi
24101
24102     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24103        test "$wxHAVE_XEXT_LIB" = 1; then
24104         save_CFLAGS="$CFLAGS"
24105         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24106
24107         echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24108 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24109         cat >conftest.$ac_ext <<_ACEOF
24110 #line $LINENO "configure"
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116
24117                         #include <X11/Xlib.h>
24118                         #include <X11/extensions/shape.h>
24119
24120 int
24121 main ()
24122 {
24123
24124                         int dummy1, dummy2;
24125                         XShapeQueryExtension((Display*)NULL,
24126                                              (int*)NULL, (int*)NULL);
24127
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24134   (eval $ac_compile) 2>&5
24135   ac_status=$?
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } &&
24138          { ac_try='test -s conftest.$ac_objext'
24139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140   (eval $ac_try) 2>&5
24141   ac_status=$?
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); }; }; then
24144
24145                         cat >>confdefs.h <<\_ACEOF
24146 #define HAVE_XSHAPE 1
24147 _ACEOF
24148
24149                         echo "$as_me:$LINENO: result: found" >&5
24150 echo "${ECHO_T}found" >&6
24151
24152 else
24153   echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24155
24156
24157                         echo "$as_me:$LINENO: result: not found" >&5
24158 echo "${ECHO_T}not found" >&6
24159
24160 fi
24161 rm -f conftest.$ac_objext conftest.$ac_ext
24162         CFLAGS="$save_CFLAGS"
24163     fi
24164
24165     if test "$wxUSE_MAC" = 1; then
24166         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
24167
24168         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
24169         TOOLKIT=MAC
24170                 GUIDIST=MACX_DIST
24171     fi
24172
24173     if test "$wxUSE_COCOA" = 1; then
24174         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24175         TOOLKIT=COCOA
24176         GUIDIST=COCOA_DIST
24177     fi
24178
24179     if test "$wxUSE_PM" = 1; then
24180         TOOLKIT=PM
24181         GUIDIST=GTK_DIST
24182         { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24183 echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
24184         wxUSE_THREADS="no"
24185     fi
24186
24187         if test "$TOOLKIT" = "PM" ; then
24188         TOOLKIT_DIR="os2"
24189     else
24190         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24191     fi
24192
24193         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24194
24195     if test "$wxUSE_UNIVERSAL" = "yes"; then
24196         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24197
24198                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24199         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24200
24201         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24202         if test "$wxUSE_X11" = 1; then
24203             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24204         else
24205             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24206         fi
24207         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24208         WIDGET_SET=univ
24209     else
24210         ALL_OBJECTS="\$(GUIOBJS)"
24211         ALL_SOURCES="\$(ALL_SOURCES)"
24212         ALL_HEADERS="\$(ALL_HEADERS)"
24213     fi
24214
24215     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24216
24217     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24218         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24219     fi
24220
24221     if test "$wxUSE_HTML" = "yes"; then
24222         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24223     fi
24224
24225     if test "$wxUSE_LIBJPEG" = "builtin" ; then
24226         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24227     fi
24228     if test "$wxUSE_LIBTIFF" = "builtin" ; then
24229         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24230     fi
24231     if test "$wxUSE_LIBPNG" = "builtin" ; then
24232         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24233     fi
24234
24235         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24236     DISTDIR="wx\$(TOOLKIT)"
24237 else
24238     USE_GUI=0
24239
24240             TOOLKIT_DIR="base"
24241
24242         if test "$USE_WIN32" = 1 ; then
24243         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24244         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24245
24246                         TOOLKIT="MSW"
24247     else
24248         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24249         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24250     fi
24251
24252     ALL_SOURCES="\$(ALL_SOURCES)"
24253     ALL_HEADERS="\$(ALL_HEADERS)"
24254
24255     PORT_FILES="\${top_srcdir}/src/files.lst"
24256
24257         GUIDIST="BASE_DIST"
24258     DISTDIR="wxBase"
24259 fi
24260
24261
24262
24263
24264 IODBC_C_SRC=""
24265
24266
24267 if test "$TOOLKIT" != "MSW" ; then
24268
24269     if test "$wxUSE_ODBC" != "no" ; then
24270         cat >>confdefs.h <<\_ACEOF
24271 #define wxUSE_ODBC 1
24272 _ACEOF
24273
24274         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24275
24276                 WXODBCFLAG="-D_IODBC_"
24277
24278
24279         if test "$wxUSE_ODBC" = "sys" ; then
24280
24281             if test "${ac_cv_header_sql_h+set}" = set; then
24282   echo "$as_me:$LINENO: checking for sql.h" >&5
24283 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24284 if test "${ac_cv_header_sql_h+set}" = set; then
24285   echo $ECHO_N "(cached) $ECHO_C" >&6
24286 fi
24287 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24288 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24289 else
24290   # Is the header compilable?
24291 echo "$as_me:$LINENO: checking sql.h usability" >&5
24292 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24293 cat >conftest.$ac_ext <<_ACEOF
24294 #line $LINENO "configure"
24295 /* confdefs.h.  */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h.  */
24300 $ac_includes_default
24301 #include <sql.h>
24302 _ACEOF
24303 rm -f conftest.$ac_objext
24304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24305   (eval $ac_compile) 2>&5
24306   ac_status=$?
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); } &&
24309          { ac_try='test -s conftest.$ac_objext'
24310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311   (eval $ac_try) 2>&5
24312   ac_status=$?
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); }; }; then
24315   ac_header_compiler=yes
24316 else
24317   echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320 ac_header_compiler=no
24321 fi
24322 rm -f conftest.$ac_objext conftest.$ac_ext
24323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24324 echo "${ECHO_T}$ac_header_compiler" >&6
24325
24326 # Is the header present?
24327 echo "$as_me:$LINENO: checking sql.h presence" >&5
24328 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24329 cat >conftest.$ac_ext <<_ACEOF
24330 #line $LINENO "configure"
24331 /* confdefs.h.  */
24332 _ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h.  */
24336 #include <sql.h>
24337 _ACEOF
24338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24340   ac_status=$?
24341   grep -v '^ *+' conftest.er1 >conftest.err
24342   rm -f conftest.er1
24343   cat conftest.err >&5
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } >/dev/null; then
24346   if test -s conftest.err; then
24347     ac_cpp_err=$ac_c_preproc_warn_flag
24348   else
24349     ac_cpp_err=
24350   fi
24351 else
24352   ac_cpp_err=yes
24353 fi
24354 if test -z "$ac_cpp_err"; then
24355   ac_header_preproc=yes
24356 else
24357   echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360   ac_header_preproc=no
24361 fi
24362 rm -f conftest.err conftest.$ac_ext
24363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24364 echo "${ECHO_T}$ac_header_preproc" >&6
24365
24366 # So?  What about this header?
24367 case $ac_header_compiler:$ac_header_preproc in
24368   yes:no )
24369     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24370 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24371     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24372 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24373     (
24374       cat <<\_ASBOX
24375 ## ------------------------------------ ##
24376 ## Report this to bug-autoconf@gnu.org. ##
24377 ## ------------------------------------ ##
24378 _ASBOX
24379     ) |
24380       sed "s/^/$as_me: WARNING:     /" >&2
24381     ;;
24382   no:yes )
24383     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24384 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24385     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24386 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24387     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24388 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24389     (
24390       cat <<\_ASBOX
24391 ## ------------------------------------ ##
24392 ## Report this to bug-autoconf@gnu.org. ##
24393 ## ------------------------------------ ##
24394 _ASBOX
24395     ) |
24396       sed "s/^/$as_me: WARNING:     /" >&2
24397     ;;
24398 esac
24399 echo "$as_me:$LINENO: checking for sql.h" >&5
24400 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24401 if test "${ac_cv_header_sql_h+set}" = set; then
24402   echo $ECHO_N "(cached) $ECHO_C" >&6
24403 else
24404   ac_cv_header_sql_h=$ac_header_preproc
24405 fi
24406 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24407 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24408
24409 fi
24410
24411
24412             echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24413 echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24414 if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24415   echo $ECHO_N "(cached) $ECHO_C" >&6
24416 else
24417   ac_func_search_save_LIBS=$LIBS
24418 ac_cv_search_SQLAllocEnv=no
24419 cat >conftest.$ac_ext <<_ACEOF
24420 #line $LINENO "configure"
24421 /* confdefs.h.  */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h.  */
24426
24427 /* Override any gcc2 internal prototype to avoid an error.  */
24428 #ifdef __cplusplus
24429 extern "C"
24430 #endif
24431 /* We use char because int might match the return type of a gcc2
24432    builtin and then its argument prototype would still apply.  */
24433 char SQLAllocEnv ();
24434 int
24435 main ()
24436 {
24437 SQLAllocEnv ();
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24444   (eval $ac_link) 2>&5
24445   ac_status=$?
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } &&
24448          { ac_try='test -s conftest$ac_exeext'
24449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450   (eval $ac_try) 2>&5
24451   ac_status=$?
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); }; }; then
24454   ac_cv_search_SQLAllocEnv="none required"
24455 else
24456   echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459 fi
24460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24461 if test "$ac_cv_search_SQLAllocEnv" = no; then
24462   for ac_lib in iodbc unixodbc odbc ; do
24463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24464     cat >conftest.$ac_ext <<_ACEOF
24465 #line $LINENO "configure"
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471
24472 /* Override any gcc2 internal prototype to avoid an error.  */
24473 #ifdef __cplusplus
24474 extern "C"
24475 #endif
24476 /* We use char because int might match the return type of a gcc2
24477    builtin and then its argument prototype would still apply.  */
24478 char SQLAllocEnv ();
24479 int
24480 main ()
24481 {
24482 SQLAllocEnv ();
24483   ;
24484   return 0;
24485 }
24486 _ACEOF
24487 rm -f conftest.$ac_objext conftest$ac_exeext
24488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24489   (eval $ac_link) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); } &&
24493          { ac_try='test -s conftest$ac_exeext'
24494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495   (eval $ac_try) 2>&5
24496   ac_status=$?
24497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); }; }; then
24499   ac_cv_search_SQLAllocEnv="-l$ac_lib"
24500 break
24501 else
24502   echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24504
24505 fi
24506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24507   done
24508 fi
24509 LIBS=$ac_func_search_save_LIBS
24510 fi
24511 echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24512 echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24513 if test "$ac_cv_search_SQLAllocEnv" != no; then
24514   test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
24515
24516 else
24517
24518                 wxUSE_ODBC=builtin;
24519                 { echo "$as_me:$LINENO: WARNING:  can't find system Odbc library falling back to builtin " >&5
24520 echo "$as_me: WARNING:  can't find system Odbc library falling back to builtin " >&2;}
24521
24522 fi
24523
24524         fi
24525                 if test "$wxUSE_ODBC" != "sys" ; then
24526             ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
24527         fi
24528
24529     fi
24530
24531 fi
24532
24533 if test "$wxUSE_REGEX" = "builtin" ; then
24534     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
24535 fi
24536 if test "$wxUSE_ZLIB" = "builtin" ; then
24537     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
24538 fi
24539
24540
24541 USE_OPENGL=0
24542 if test "$wxUSE_OPENGL" = "yes"; then
24543     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
24544         OPENGL_LIBS="-framework OpenGL -framework AGL"
24545     elif test "$wxUSE_MSW" = 1; then
24546         OPENGL_LIBS="-lopengl32 -lglu32"
24547     else
24548
24549
24550 ac_find_includes=
24551 for ac_dir in $SEARCH_INCLUDE /usr/include;
24552   do
24553     if test -f "$ac_dir/GL/gl.h"; then
24554       ac_find_includes=$ac_dir
24555       break
24556     fi
24557   done
24558
24559         if test "$ac_find_includes" != "" ; then
24560             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24561 echo "${ECHO_T}found in $ac_find_includes" >&6
24562             set -x
24563
24564     if test "x$ac_find_includes" = "x/usr/include"; then
24565     ac_path_to_include=""
24566   else
24567     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24568     result=$?
24569     if test $result = 0; then
24570       ac_path_to_include=""
24571     else
24572       ac_path_to_include=" -I$ac_find_includes"
24573     fi
24574   fi
24575
24576             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24577             set +x
24578         fi
24579
24580         if test "${ac_cv_header_GL_gl_h+set}" = set; then
24581   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24582 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24583 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24584   echo $ECHO_N "(cached) $ECHO_C" >&6
24585 fi
24586 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24587 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24588 else
24589   # Is the header compilable?
24590 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24591 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24592 cat >conftest.$ac_ext <<_ACEOF
24593 #line $LINENO "configure"
24594 /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599 $ac_includes_default
24600 #include <GL/gl.h>
24601 _ACEOF
24602 rm -f conftest.$ac_objext
24603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24604   (eval $ac_compile) 2>&5
24605   ac_status=$?
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); } &&
24608          { ac_try='test -s conftest.$ac_objext'
24609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610   (eval $ac_try) 2>&5
24611   ac_status=$?
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); }; }; then
24614   ac_header_compiler=yes
24615 else
24616   echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24618
24619 ac_header_compiler=no
24620 fi
24621 rm -f conftest.$ac_objext conftest.$ac_ext
24622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24623 echo "${ECHO_T}$ac_header_compiler" >&6
24624
24625 # Is the header present?
24626 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24627 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24628 cat >conftest.$ac_ext <<_ACEOF
24629 #line $LINENO "configure"
24630 /* confdefs.h.  */
24631 _ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h.  */
24635 #include <GL/gl.h>
24636 _ACEOF
24637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24639   ac_status=$?
24640   grep -v '^ *+' conftest.er1 >conftest.err
24641   rm -f conftest.er1
24642   cat conftest.err >&5
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); } >/dev/null; then
24645   if test -s conftest.err; then
24646     ac_cpp_err=$ac_c_preproc_warn_flag
24647   else
24648     ac_cpp_err=
24649   fi
24650 else
24651   ac_cpp_err=yes
24652 fi
24653 if test -z "$ac_cpp_err"; then
24654   ac_header_preproc=yes
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659   ac_header_preproc=no
24660 fi
24661 rm -f conftest.err conftest.$ac_ext
24662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24663 echo "${ECHO_T}$ac_header_preproc" >&6
24664
24665 # So?  What about this header?
24666 case $ac_header_compiler:$ac_header_preproc in
24667   yes:no )
24668     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24669 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24670     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24671 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24672     (
24673       cat <<\_ASBOX
24674 ## ------------------------------------ ##
24675 ## Report this to bug-autoconf@gnu.org. ##
24676 ## ------------------------------------ ##
24677 _ASBOX
24678     ) |
24679       sed "s/^/$as_me: WARNING:     /" >&2
24680     ;;
24681   no:yes )
24682     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24683 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24684     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24685 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24686     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24687 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24688     (
24689       cat <<\_ASBOX
24690 ## ------------------------------------ ##
24691 ## Report this to bug-autoconf@gnu.org. ##
24692 ## ------------------------------------ ##
24693 _ASBOX
24694     ) |
24695       sed "s/^/$as_me: WARNING:     /" >&2
24696     ;;
24697 esac
24698 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24699 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24700 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24701   echo $ECHO_N "(cached) $ECHO_C" >&6
24702 else
24703   ac_cv_header_GL_gl_h=$ac_header_preproc
24704 fi
24705 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24706 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24707
24708 fi
24709 if test $ac_cv_header_GL_gl_h = yes; then
24710
24711                 found_gl=0
24712
24713                 echo "$as_me:$LINENO: checking for -lGL" >&5
24714 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24715
24716 ac_find_libraries=
24717 for ac_dir in $SEARCH_LIB /usr/lib;
24718   do
24719     for ac_extension in a so sl dylib; do
24720       if test -f "$ac_dir/libGL.$ac_extension"; then
24721         ac_find_libraries=$ac_dir
24722         break 2
24723       fi
24724     done
24725   done
24726
24727                 if test "$ac_find_libraries" != "" ; then
24728
24729   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24730   result=$?
24731   if test $result = 0; then
24732     ac_path_to_link=""
24733   else
24734     ac_path_to_link=" -L$ac_find_libraries"
24735   fi
24736
24737                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
24738                         LDFLAGS_GL="$ac_path_to_link"
24739                     fi
24740
24741
24742 ac_find_libraries=
24743 for ac_dir in $SEARCH_LIB /usr/lib;
24744   do
24745     for ac_extension in a so sl dylib; do
24746       if test -f "$ac_dir/libGLU.$ac_extension"; then
24747         ac_find_libraries=$ac_dir
24748         break 2
24749       fi
24750     done
24751   done
24752
24753                     if test "$ac_find_libraries" != "" ; then
24754
24755   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24756   result=$?
24757   if test $result = 0; then
24758     ac_path_to_link=""
24759   else
24760     ac_path_to_link=" -L$ac_find_libraries"
24761   fi
24762
24763                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
24764                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
24765                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24766                         fi
24767
24768                         found_gl=1
24769                         OPENGL_LIBS="-lGL -lGLU"
24770                         echo "$as_me:$LINENO: result: yes" >&5
24771 echo "${ECHO_T}yes" >&6
24772                     fi
24773                 fi
24774
24775                 if "$found_gl" != 1; then
24776                     echo "$as_me:$LINENO: result: no" >&5
24777 echo "${ECHO_T}no" >&6
24778                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24779 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24780
24781 ac_find_libraries=
24782 for ac_dir in $SEARCH_LIB /usr/lib;
24783   do
24784     for ac_extension in a so sl dylib; do
24785       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24786         ac_find_libraries=$ac_dir
24787         break 2
24788       fi
24789     done
24790   done
24791
24792                     if test "$ac_find_libraries" != "" ; then
24793
24794   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24795   result=$?
24796   if test $result = 0; then
24797     ac_path_to_link=""
24798   else
24799     ac_path_to_link=" -L$ac_find_libraries"
24800   fi
24801
24802                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24803                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
24804                         echo "$as_me:$LINENO: result: yes" >&5
24805 echo "${ECHO_T}yes" >&6
24806                     else
24807                         echo "$as_me:$LINENO: result: no" >&5
24808 echo "${ECHO_T}no" >&6
24809                     fi
24810                 fi
24811
24812 fi
24813
24814
24815
24816         if test "x$OPENGL_LIBS" = "x"; then
24817                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24818 echo "$as_me: error: OpenGL libraries not available" >&2;}
24819    { (exit 1); exit 1; }; }
24820         fi
24821     fi
24822
24823     if test "$wxUSE_OPENGL" = "yes"; then
24824         USE_OPENGL=1
24825         cat >>confdefs.h <<\_ACEOF
24826 #define wxUSE_OPENGL 1
24827 _ACEOF
24828
24829         cat >>confdefs.h <<\_ACEOF
24830 #define wxUSE_GLCANVAS 1
24831 _ACEOF
24832
24833         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24834     fi
24835 fi
24836
24837 if test -z "$TOOLKIT_VPATH" ; then
24838     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
24839 fi
24840
24841 if test -n "$TOOLKIT" ; then
24842     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24843 fi
24844
24845 UNICODE=0
24846 lib_unicode_suffix=
24847 if test "$wxUSE_UNICODE" = "yes"; then
24848     lib_unicode_suffix=u
24849     UNICODE=1
24850 fi
24851
24852 lib_debug_suffix=
24853 BUILD=release
24854 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24855     lib_debug_suffix=d
24856     BUILD=debug
24857 fi
24858
24859 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24860
24861 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24862 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
24863
24864 if test "$cross_compiling" = "yes"; then
24865     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24866     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24867     HOST_SUFFIX="-${host_alias}"
24868 fi
24869
24870 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24871 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
24872 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
24873
24874 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24875 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24876
24877 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24878 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24879 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24880 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24881
24882 case "${host}" in
24883     *-*-cygwin* | *-*-mingw32* )
24884         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24885         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24886         ;;
24887
24888     *-*-darwin* )
24889
24890         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24891         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24892
24893         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24894         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24895         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24896         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24897
24898                         if test "$wxUSE_MAC" = 1; then
24899                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24900             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
24901         fi
24902         ;;
24903 esac
24904
24905 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24906 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24907
24908 WXCONFIG_LIBS="-l${WX_LIBRARY}"
24909 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24910
24911 if test "$wxUSE_OPENGL" = "yes"; then
24912     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24913     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24914 fi
24915
24916
24917
24918 if test "$wxUSE_SHARED" = "yes"; then
24919     case "${host}" in
24920       *-pc-os2_emx | *-pc-os2-emx | \
24921       *-pc-msdosdjgpp )
24922                 wxUSE_SHARED=no
24923         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24924 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
24925       ;;
24926     esac
24927 fi
24928
24929 SHARED=0
24930 if test "$wxUSE_SHARED" = "yes"; then
24931     SHARED=1
24932
24933
24934   found_versioning=no
24935
24936
24937     if test $found_versioning = no ; then
24938       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24939 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24940 if test "${wx_cv_version_script+set}" = set; then
24941   echo $ECHO_N "(cached) $ECHO_C" >&6
24942 else
24943
24944         echo "VER_1 { *; };" >conftest.sym
24945         echo "int main() { return 0; }" >conftest.cpp
24946
24947         if { ac_try='
24948                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
24949                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } ; then
24955           if test -s conftest.stderr ; then
24956               wx_cv_version_script=no
24957           else
24958               wx_cv_version_script=yes
24959           fi
24960         else
24961           wx_cv_version_script=no
24962         fi
24963         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
24964
24965 fi
24966 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24967 echo "${ECHO_T}$wx_cv_version_script" >&6
24968       if test $wx_cv_version_script = yes ; then
24969         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
24970       fi
24971   fi
24972
24973
24974     case "${host}" in
24975       *-*-linux* | *-*-gnu* )
24976         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24977       ;;
24978
24979       *-*-solaris2* )
24980         if test "$GCC" = yes ; then
24981                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
24982
24983                                     saveLdflags="$LDFLAGS"
24984             LDFLAGS="$saveLdflags -Wl,-rpath,/"
24985             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24986 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24987             cat >conftest.$ac_ext <<_ACEOF
24988 #line $LINENO "configure"
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994
24995 int
24996 main ()
24997 {
24998
24999   ;
25000   return 0;
25001 }
25002 _ACEOF
25003 rm -f conftest.$ac_objext conftest$ac_exeext
25004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25005   (eval $ac_link) 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); } &&
25009          { ac_try='test -s conftest$ac_exeext'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; }; then
25015
25016                     echo "$as_me:$LINENO: result: yes" >&5
25017 echo "${ECHO_T}yes" >&6
25018                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25019
25020 else
25021   echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024
25025                     echo "$as_me:$LINENO: result: no" >&5
25026 echo "${ECHO_T}no" >&6
25027                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25028 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
25029                     LDFLAGS="$saveLdflags -Wl,-R,/"
25030                     cat >conftest.$ac_ext <<_ACEOF
25031 #line $LINENO "configure"
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037
25038 int
25039 main ()
25040 {
25041
25042   ;
25043   return 0;
25044 }
25045 _ACEOF
25046 rm -f conftest.$ac_objext conftest$ac_exeext
25047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25048   (eval $ac_link) 2>&5
25049   ac_status=$?
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } &&
25052          { ac_try='test -s conftest$ac_exeext'
25053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054   (eval $ac_try) 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); }; }; then
25058
25059                              echo "$as_me:$LINENO: result: yes" >&5
25060 echo "${ECHO_T}yes" >&6
25061                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25062 else
25063   echo "$as_me: failed program was:" >&5
25064 sed 's/^/| /' conftest.$ac_ext >&5
25065
25066
25067                             echo "$as_me:$LINENO: result: no" >&5
25068 echo "${ECHO_T}no" >&6
25069
25070 fi
25071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25072
25073 fi
25074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25075             LDFLAGS="$saveLdflags"
25076         else
25077             SHARED_LD="${CXX} -G -o"
25078             PIC_FLAG="-KPIC"
25079             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
25080         fi
25081       ;;
25082     esac
25083
25084         if test "x$WX_TARGET_LIBRARY" = "x"; then
25085         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25086         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25087     fi
25088
25089         WX_TARGET_LIBRARY_TYPE="so"
25090     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
25091 fi
25092
25093 if test "$wxUSE_SHARED" = "no"; then
25094
25095         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25096                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25097     fi
25098
25099     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
25100         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25101     fi
25102
25103     if test "$wxUSE_OPENGL" = "yes"; then
25104         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25105         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25106     else
25107         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25108     fi
25109
25110     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25111     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25112
25113     WX_TARGET_LIBRARY_TYPE="a"
25114     INSTALL_LIBRARY='$(INSTALL_DATA)'
25115
25116             STATIC_FLAG="yes"
25117 else
25118     STATIC_FLAG="no"
25119 fi
25120
25121 MACRESCOMP="@#"
25122 MACSETFILE="@#"
25123 MACRESWXCONFIG="#"
25124 if test "$wxUSE_MAC" = 1; then
25125         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
25126     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25127     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25128     # Extract the first word of "Rez", so it can be a program name with args.
25129 set dummy Rez; ac_word=$2
25130 echo "$as_me:$LINENO: checking for $ac_word" >&5
25131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25132 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25133   echo $ECHO_N "(cached) $ECHO_C" >&6
25134 else
25135   if test -n "$RESCOMP"; then
25136   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25137 else
25138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25139 for as_dir in $PATH
25140 do
25141   IFS=$as_save_IFS
25142   test -z "$as_dir" && as_dir=.
25143   for ac_exec_ext in '' $ac_executable_extensions; do
25144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25145     ac_cv_prog_RESCOMP="Rez"
25146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25147     break 2
25148   fi
25149 done
25150 done
25151
25152   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25153 fi
25154 fi
25155 RESCOMP=$ac_cv_prog_RESCOMP
25156 if test -n "$RESCOMP"; then
25157   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25158 echo "${ECHO_T}$RESCOMP" >&6
25159 else
25160   echo "$as_me:$LINENO: result: no" >&5
25161 echo "${ECHO_T}no" >&6
25162 fi
25163
25164     # Extract the first word of "DeRez", so it can be a program name with args.
25165 set dummy DeRez; ac_word=$2
25166 echo "$as_me:$LINENO: checking for $ac_word" >&5
25167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25168 if test "${ac_cv_prog_DEREZ+set}" = set; then
25169   echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171   if test -n "$DEREZ"; then
25172   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25173 else
25174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25175 for as_dir in $PATH
25176 do
25177   IFS=$as_save_IFS
25178   test -z "$as_dir" && as_dir=.
25179   for ac_exec_ext in '' $ac_executable_extensions; do
25180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25181     ac_cv_prog_DEREZ="DeRez"
25182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25183     break 2
25184   fi
25185 done
25186 done
25187
25188   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25189 fi
25190 fi
25191 DEREZ=$ac_cv_prog_DEREZ
25192 if test -n "$DEREZ"; then
25193   echo "$as_me:$LINENO: result: $DEREZ" >&5
25194 echo "${ECHO_T}$DEREZ" >&6
25195 else
25196   echo "$as_me:$LINENO: result: no" >&5
25197 echo "${ECHO_T}no" >&6
25198 fi
25199
25200     # Extract the first word of "SetFile", so it can be a program name with args.
25201 set dummy SetFile; ac_word=$2
25202 echo "$as_me:$LINENO: checking for $ac_word" >&5
25203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25204 if test "${ac_cv_prog_SETFILE+set}" = set; then
25205   echo $ECHO_N "(cached) $ECHO_C" >&6
25206 else
25207   if test -n "$SETFILE"; then
25208   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25209 else
25210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25211 for as_dir in $PATH
25212 do
25213   IFS=$as_save_IFS
25214   test -z "$as_dir" && as_dir=.
25215   for ac_exec_ext in '' $ac_executable_extensions; do
25216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25217     ac_cv_prog_SETFILE="SetFile"
25218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25219     break 2
25220   fi
25221 done
25222 done
25223
25224   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25225 fi
25226 fi
25227 SETFILE=$ac_cv_prog_SETFILE
25228 if test -n "$SETFILE"; then
25229   echo "$as_me:$LINENO: result: $SETFILE" >&5
25230 echo "${ECHO_T}$SETFILE" >&6
25231 else
25232   echo "$as_me:$LINENO: result: no" >&5
25233 echo "${ECHO_T}no" >&6
25234 fi
25235
25236     MACOSX_BUNDLE="bundle"
25237             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25238     MACSETFILE="\$(SETFILE)"
25239     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25240 elif test "$wxUSE_COCOA" = 1; then
25241     # Extract the first word of "Rez", so it can be a program name with args.
25242 set dummy Rez; ac_word=$2
25243 echo "$as_me:$LINENO: checking for $ac_word" >&5
25244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25245 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25246   echo $ECHO_N "(cached) $ECHO_C" >&6
25247 else
25248   if test -n "$RESCOMP"; then
25249   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25250 else
25251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25252 for as_dir in $PATH
25253 do
25254   IFS=$as_save_IFS
25255   test -z "$as_dir" && as_dir=.
25256   for ac_exec_ext in '' $ac_executable_extensions; do
25257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25258     ac_cv_prog_RESCOMP="Rez"
25259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25260     break 2
25261   fi
25262 done
25263 done
25264
25265   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25266 fi
25267 fi
25268 RESCOMP=$ac_cv_prog_RESCOMP
25269 if test -n "$RESCOMP"; then
25270   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25271 echo "${ECHO_T}$RESCOMP" >&6
25272 else
25273   echo "$as_me:$LINENO: result: no" >&5
25274 echo "${ECHO_T}no" >&6
25275 fi
25276
25277     # Extract the first word of "DeRez", so it can be a program name with args.
25278 set dummy DeRez; ac_word=$2
25279 echo "$as_me:$LINENO: checking for $ac_word" >&5
25280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25281 if test "${ac_cv_prog_DEREZ+set}" = set; then
25282   echo $ECHO_N "(cached) $ECHO_C" >&6
25283 else
25284   if test -n "$DEREZ"; then
25285   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25286 else
25287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25288 for as_dir in $PATH
25289 do
25290   IFS=$as_save_IFS
25291   test -z "$as_dir" && as_dir=.
25292   for ac_exec_ext in '' $ac_executable_extensions; do
25293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25294     ac_cv_prog_DEREZ="DeRez"
25295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25296     break 2
25297   fi
25298 done
25299 done
25300
25301   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25302 fi
25303 fi
25304 DEREZ=$ac_cv_prog_DEREZ
25305 if test -n "$DEREZ"; then
25306   echo "$as_me:$LINENO: result: $DEREZ" >&5
25307 echo "${ECHO_T}$DEREZ" >&6
25308 else
25309   echo "$as_me:$LINENO: result: no" >&5
25310 echo "${ECHO_T}no" >&6
25311 fi
25312
25313     # Extract the first word of "SetFile", so it can be a program name with args.
25314 set dummy SetFile; ac_word=$2
25315 echo "$as_me:$LINENO: checking for $ac_word" >&5
25316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25317 if test "${ac_cv_prog_SETFILE+set}" = set; then
25318   echo $ECHO_N "(cached) $ECHO_C" >&6
25319 else
25320   if test -n "$SETFILE"; then
25321   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25322 else
25323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25324 for as_dir in $PATH
25325 do
25326   IFS=$as_save_IFS
25327   test -z "$as_dir" && as_dir=.
25328   for ac_exec_ext in '' $ac_executable_extensions; do
25329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25330     ac_cv_prog_SETFILE="SetFile"
25331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25332     break 2
25333   fi
25334 done
25335 done
25336
25337   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25338 fi
25339 fi
25340 SETFILE=$ac_cv_prog_SETFILE
25341 if test -n "$SETFILE"; then
25342   echo "$as_me:$LINENO: result: $SETFILE" >&5
25343 echo "${ECHO_T}$SETFILE" >&6
25344 else
25345   echo "$as_me:$LINENO: result: no" >&5
25346 echo "${ECHO_T}no" >&6
25347 fi
25348
25349     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25350     MACSETFILE="\$(SETFILE)"
25351     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25352 else
25353     if test "$wxUSE_PM" = 1; then
25354         MACRESCOMP="emxbind -ep"
25355     fi
25356 fi
25357
25358
25359 echo "$as_me:$LINENO: checking for mode_t" >&5
25360 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25361 if test "${ac_cv_type_mode_t+set}" = set; then
25362   echo $ECHO_N "(cached) $ECHO_C" >&6
25363 else
25364   cat >conftest.$ac_ext <<_ACEOF
25365 #line $LINENO "configure"
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371 $ac_includes_default
25372 int
25373 main ()
25374 {
25375 if ((mode_t *) 0)
25376   return 0;
25377 if (sizeof (mode_t))
25378   return 0;
25379   ;
25380   return 0;
25381 }
25382 _ACEOF
25383 rm -f conftest.$ac_objext
25384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25385   (eval $ac_compile) 2>&5
25386   ac_status=$?
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); } &&
25389          { ac_try='test -s conftest.$ac_objext'
25390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391   (eval $ac_try) 2>&5
25392   ac_status=$?
25393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394   (exit $ac_status); }; }; then
25395   ac_cv_type_mode_t=yes
25396 else
25397   echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400 ac_cv_type_mode_t=no
25401 fi
25402 rm -f conftest.$ac_objext conftest.$ac_ext
25403 fi
25404 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25405 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25406 if test $ac_cv_type_mode_t = yes; then
25407   :
25408 else
25409
25410 cat >>confdefs.h <<_ACEOF
25411 #define mode_t int
25412 _ACEOF
25413
25414 fi
25415
25416 echo "$as_me:$LINENO: checking for off_t" >&5
25417 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25418 if test "${ac_cv_type_off_t+set}" = set; then
25419   echo $ECHO_N "(cached) $ECHO_C" >&6
25420 else
25421   cat >conftest.$ac_ext <<_ACEOF
25422 #line $LINENO "configure"
25423 /* confdefs.h.  */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h.  */
25428 $ac_includes_default
25429 int
25430 main ()
25431 {
25432 if ((off_t *) 0)
25433   return 0;
25434 if (sizeof (off_t))
25435   return 0;
25436   ;
25437   return 0;
25438 }
25439 _ACEOF
25440 rm -f conftest.$ac_objext
25441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25442   (eval $ac_compile) 2>&5
25443   ac_status=$?
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } &&
25446          { ac_try='test -s conftest.$ac_objext'
25447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448   (eval $ac_try) 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; }; then
25452   ac_cv_type_off_t=yes
25453 else
25454   echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457 ac_cv_type_off_t=no
25458 fi
25459 rm -f conftest.$ac_objext conftest.$ac_ext
25460 fi
25461 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25462 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25463 if test $ac_cv_type_off_t = yes; then
25464   :
25465 else
25466
25467 cat >>confdefs.h <<_ACEOF
25468 #define off_t long
25469 _ACEOF
25470
25471 fi
25472
25473 echo "$as_me:$LINENO: checking for pid_t" >&5
25474 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25475 if test "${ac_cv_type_pid_t+set}" = set; then
25476   echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478   cat >conftest.$ac_ext <<_ACEOF
25479 #line $LINENO "configure"
25480 /* confdefs.h.  */
25481 _ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h.  */
25485 $ac_includes_default
25486 int
25487 main ()
25488 {
25489 if ((pid_t *) 0)
25490   return 0;
25491 if (sizeof (pid_t))
25492   return 0;
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest.$ac_objext
25498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25499   (eval $ac_compile) 2>&5
25500   ac_status=$?
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); } &&
25503          { ac_try='test -s conftest.$ac_objext'
25504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505   (eval $ac_try) 2>&5
25506   ac_status=$?
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); }; }; then
25509   ac_cv_type_pid_t=yes
25510 else
25511   echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514 ac_cv_type_pid_t=no
25515 fi
25516 rm -f conftest.$ac_objext conftest.$ac_ext
25517 fi
25518 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25519 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25520 if test $ac_cv_type_pid_t = yes; then
25521   :
25522 else
25523
25524 cat >>confdefs.h <<_ACEOF
25525 #define pid_t int
25526 _ACEOF
25527
25528 fi
25529
25530 echo "$as_me:$LINENO: checking for size_t" >&5
25531 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25532 if test "${ac_cv_type_size_t+set}" = set; then
25533   echo $ECHO_N "(cached) $ECHO_C" >&6
25534 else
25535   cat >conftest.$ac_ext <<_ACEOF
25536 #line $LINENO "configure"
25537 /* confdefs.h.  */
25538 _ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h.  */
25542 $ac_includes_default
25543 int
25544 main ()
25545 {
25546 if ((size_t *) 0)
25547   return 0;
25548 if (sizeof (size_t))
25549   return 0;
25550   ;
25551   return 0;
25552 }
25553 _ACEOF
25554 rm -f conftest.$ac_objext
25555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25556   (eval $ac_compile) 2>&5
25557   ac_status=$?
25558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559   (exit $ac_status); } &&
25560          { ac_try='test -s conftest.$ac_objext'
25561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25562   (eval $ac_try) 2>&5
25563   ac_status=$?
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); }; }; then
25566   ac_cv_type_size_t=yes
25567 else
25568   echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571 ac_cv_type_size_t=no
25572 fi
25573 rm -f conftest.$ac_objext conftest.$ac_ext
25574 fi
25575 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25576 echo "${ECHO_T}$ac_cv_type_size_t" >&6
25577 if test $ac_cv_type_size_t = yes; then
25578   :
25579 else
25580
25581 cat >>confdefs.h <<_ACEOF
25582 #define size_t unsigned
25583 _ACEOF
25584
25585 fi
25586
25587 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25588 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25589 if test "${ac_cv_type_uid_t+set}" = set; then
25590   echo $ECHO_N "(cached) $ECHO_C" >&6
25591 else
25592   cat >conftest.$ac_ext <<_ACEOF
25593 #line $LINENO "configure"
25594 /* confdefs.h.  */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h.  */
25599 #include <sys/types.h>
25600
25601 _ACEOF
25602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25603   $EGREP "uid_t" >/dev/null 2>&1; then
25604   ac_cv_type_uid_t=yes
25605 else
25606   ac_cv_type_uid_t=no
25607 fi
25608 rm -f conftest*
25609
25610 fi
25611 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25612 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
25613 if test $ac_cv_type_uid_t = no; then
25614
25615 cat >>confdefs.h <<\_ACEOF
25616 #define uid_t int
25617 _ACEOF
25618
25619
25620 cat >>confdefs.h <<\_ACEOF
25621 #define gid_t int
25622 _ACEOF
25623
25624 fi
25625
25626
25627
25628
25629 ac_ext=cc
25630 ac_cpp='$CXXCPP $CPPFLAGS'
25631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25634
25635 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25636 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25637 if test "${wx_cv_size_t_is_uint+set}" = set; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640
25641                             cat >conftest.$ac_ext <<_ACEOF
25642 #line $LINENO "configure"
25643 /* confdefs.h.  */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h.  */
25648 #include <stddef.h>
25649 int
25650 main ()
25651 {
25652
25653             return 0; }
25654
25655             struct Foo { void foo(size_t); void foo(unsigned int); };
25656
25657             int bar() {
25658
25659   ;
25660   return 0;
25661 }
25662 _ACEOF
25663 rm -f conftest.$ac_objext
25664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25665   (eval $ac_compile) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); } &&
25669          { ac_try='test -s conftest.$ac_objext'
25670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); }; }; then
25675   wx_cv_size_t_is_uint=no
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680 wx_cv_size_t_is_uint=yes
25681
25682 fi
25683 rm -f conftest.$ac_objext conftest.$ac_ext
25684
25685
25686 fi
25687 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25688 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
25689
25690 if test "$wx_cv_size_t_is_uint" = "yes"; then
25691     cat >>confdefs.h <<\_ACEOF
25692 #define wxSIZE_T_IS_UINT 1
25693 _ACEOF
25694
25695 else
25696     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25697 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25698 if test "${wx_cv_size_t_is_ulong+set}" = set; then
25699   echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701   cat >conftest.$ac_ext <<_ACEOF
25702 #line $LINENO "configure"
25703 /* confdefs.h.  */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h.  */
25708 #include <stddef.h>
25709 int
25710 main ()
25711 {
25712
25713                 return 0; }
25714
25715                 struct Foo { void foo(size_t); void foo(unsigned long); };
25716
25717                 int bar() {
25718
25719   ;
25720   return 0;
25721 }
25722 _ACEOF
25723 rm -f conftest.$ac_objext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725   (eval $ac_compile) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); } &&
25729          { ac_try='test -s conftest.$ac_objext'
25730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731   (eval $ac_try) 2>&5
25732   ac_status=$?
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); }; }; then
25735   wx_cv_size_t_is_ulong=no
25736 else
25737   echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740 wx_cv_size_t_is_ulong=yes
25741
25742 fi
25743 rm -f conftest.$ac_objext conftest.$ac_ext
25744
25745 fi
25746 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25747 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
25748
25749     if test "$wx_cv_size_t_is_ulong" = "yes"; then
25750         cat >>confdefs.h <<\_ACEOF
25751 #define wxSIZE_T_IS_ULONG 1
25752 _ACEOF
25753
25754     fi
25755 fi
25756
25757 ac_ext=c
25758 ac_cpp='$CPP $CPPFLAGS'
25759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25762
25763
25764
25765 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25766 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25767 if test "${wx_cv_struct_pw_gecos+set}" = set; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770
25771         cat >conftest.$ac_ext <<_ACEOF
25772 #line $LINENO "configure"
25773 /* confdefs.h.  */
25774 _ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h.  */
25778 #include <pwd.h>
25779 int
25780 main ()
25781 {
25782
25783                 char *p;
25784                 struct passwd *pw;
25785                 p = pw->pw_gecos;
25786
25787   ;
25788   return 0;
25789 }
25790 _ACEOF
25791 rm -f conftest.$ac_objext
25792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25793   (eval $ac_compile) 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); } &&
25797          { ac_try='test -s conftest.$ac_objext'
25798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799   (eval $ac_try) 2>&5
25800   ac_status=$?
25801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); }; }; then
25803
25804                 wx_cv_struct_pw_gecos=yes
25805
25806 else
25807   echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25809
25810
25811                 wx_cv_struct_pw_gecos=no
25812
25813
25814 fi
25815 rm -f conftest.$ac_objext conftest.$ac_ext
25816
25817
25818 fi
25819 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25820 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
25821
25822 if test "$wx_cv_struct_pw_gecos" = "yes"; then
25823     cat >>confdefs.h <<\_ACEOF
25824 #define HAVE_PW_GECOS 1
25825 _ACEOF
25826
25827 fi
25828
25829
25830 if test "$wx_cv_sizeof_wchar_t" != "0"; then
25831     cat >>confdefs.h <<\_ACEOF
25832 #define wxUSE_WCHAR_T 1
25833 _ACEOF
25834
25835
25836         WCSLEN_FOUND=0
25837     WCHAR_LINK=
25838
25839 for ac_func in wcslen
25840 do
25841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25842 echo "$as_me:$LINENO: checking for $ac_func" >&5
25843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25844 if eval "test \"\${$as_ac_var+set}\" = set"; then
25845   echo $ECHO_N "(cached) $ECHO_C" >&6
25846 else
25847   cat >conftest.$ac_ext <<_ACEOF
25848 #line $LINENO "configure"
25849 /* confdefs.h.  */
25850 _ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h.  */
25854 /* System header to define __stub macros and hopefully few prototypes,
25855     which can conflict with char $ac_func (); below.
25856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25857     <limits.h> exists even on freestanding compilers.  */
25858 #ifdef __STDC__
25859 # include <limits.h>
25860 #else
25861 # include <assert.h>
25862 #endif
25863 /* Override any gcc2 internal prototype to avoid an error.  */
25864 #ifdef __cplusplus
25865 extern "C"
25866 {
25867 #endif
25868 /* We use char because int might match the return type of a gcc2
25869    builtin and then its argument prototype would still apply.  */
25870 char $ac_func ();
25871 /* The GNU C library defines this for functions which it implements
25872     to always fail with ENOSYS.  Some functions are actually named
25873     something starting with __ and the normal name is an alias.  */
25874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25875 choke me
25876 #else
25877 char (*f) () = $ac_func;
25878 #endif
25879 #ifdef __cplusplus
25880 }
25881 #endif
25882
25883 int
25884 main ()
25885 {
25886 return f != $ac_func;
25887   ;
25888   return 0;
25889 }
25890 _ACEOF
25891 rm -f conftest.$ac_objext conftest$ac_exeext
25892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25893   (eval $ac_link) 2>&5
25894   ac_status=$?
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } &&
25897          { ac_try='test -s conftest$ac_exeext'
25898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25899   (eval $ac_try) 2>&5
25900   ac_status=$?
25901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); }; }; then
25903   eval "$as_ac_var=yes"
25904 else
25905   echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908 eval "$as_ac_var=no"
25909 fi
25910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25911 fi
25912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25914 if test `eval echo '${'$as_ac_var'}'` = yes; then
25915   cat >>confdefs.h <<_ACEOF
25916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25917 _ACEOF
25918  WCSLEN_FOUND=1
25919 fi
25920 done
25921
25922
25923     if test "$WCSLEN_FOUND" = 0; then
25924         if test "$TOOLKIT" = "MSW"; then
25925             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25926 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25927 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930   ac_check_lib_save_LIBS=$LIBS
25931 LIBS="-lmsvcrt  $LIBS"
25932 cat >conftest.$ac_ext <<_ACEOF
25933 #line $LINENO "configure"
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939
25940 /* Override any gcc2 internal prototype to avoid an error.  */
25941 #ifdef __cplusplus
25942 extern "C"
25943 #endif
25944 /* We use char because int might match the return type of a gcc2
25945    builtin and then its argument prototype would still apply.  */
25946 char wcslen ();
25947 int
25948 main ()
25949 {
25950 wcslen ();
25951   ;
25952   return 0;
25953 }
25954 _ACEOF
25955 rm -f conftest.$ac_objext conftest$ac_exeext
25956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25957   (eval $ac_link) 2>&5
25958   ac_status=$?
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); } &&
25961          { ac_try='test -s conftest$ac_exeext'
25962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25963   (eval $ac_try) 2>&5
25964   ac_status=$?
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); }; }; then
25967   ac_cv_lib_msvcrt_wcslen=yes
25968 else
25969   echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25971
25972 ac_cv_lib_msvcrt_wcslen=no
25973 fi
25974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25975 LIBS=$ac_check_lib_save_LIBS
25976 fi
25977 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
25978 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
25979 if test $ac_cv_lib_msvcrt_wcslen = yes; then
25980   WCHAR_OK=1
25981 fi
25982
25983         else
25984             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
25985 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
25986 if test "${ac_cv_lib_w_wcslen+set}" = set; then
25987   echo $ECHO_N "(cached) $ECHO_C" >&6
25988 else
25989   ac_check_lib_save_LIBS=$LIBS
25990 LIBS="-lw  $LIBS"
25991 cat >conftest.$ac_ext <<_ACEOF
25992 #line $LINENO "configure"
25993 /* confdefs.h.  */
25994 _ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h.  */
25998
25999 /* Override any gcc2 internal prototype to avoid an error.  */
26000 #ifdef __cplusplus
26001 extern "C"
26002 #endif
26003 /* We use char because int might match the return type of a gcc2
26004    builtin and then its argument prototype would still apply.  */
26005 char wcslen ();
26006 int
26007 main ()
26008 {
26009 wcslen ();
26010   ;
26011   return 0;
26012 }
26013 _ACEOF
26014 rm -f conftest.$ac_objext conftest$ac_exeext
26015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26016   (eval $ac_link) 2>&5
26017   ac_status=$?
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } &&
26020          { ac_try='test -s conftest$ac_exeext'
26021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022   (eval $ac_try) 2>&5
26023   ac_status=$?
26024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); }; }; then
26026   ac_cv_lib_w_wcslen=yes
26027 else
26028   echo "$as_me: failed program was:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26030
26031 ac_cv_lib_w_wcslen=no
26032 fi
26033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26034 LIBS=$ac_check_lib_save_LIBS
26035 fi
26036 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26037 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26038 if test $ac_cv_lib_w_wcslen = yes; then
26039
26040                             WCHAR_LINK=" -lw"
26041                             WCSLEN_FOUND=1
26042
26043 fi
26044
26045         fi
26046     fi
26047
26048     if test "$WCSLEN_FOUND" = 1; then
26049         cat >>confdefs.h <<\_ACEOF
26050 #define HAVE_WCSLEN 1
26051 _ACEOF
26052
26053     fi
26054
26055
26056 for ac_func in wcsrtombs
26057 do
26058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26059 echo "$as_me:$LINENO: checking for $ac_func" >&5
26060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26061 if eval "test \"\${$as_ac_var+set}\" = set"; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064   cat >conftest.$ac_ext <<_ACEOF
26065 #line $LINENO "configure"
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071 /* System header to define __stub macros and hopefully few prototypes,
26072     which can conflict with char $ac_func (); below.
26073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26074     <limits.h> exists even on freestanding compilers.  */
26075 #ifdef __STDC__
26076 # include <limits.h>
26077 #else
26078 # include <assert.h>
26079 #endif
26080 /* Override any gcc2 internal prototype to avoid an error.  */
26081 #ifdef __cplusplus
26082 extern "C"
26083 {
26084 #endif
26085 /* We use char because int might match the return type of a gcc2
26086    builtin and then its argument prototype would still apply.  */
26087 char $ac_func ();
26088 /* The GNU C library defines this for functions which it implements
26089     to always fail with ENOSYS.  Some functions are actually named
26090     something starting with __ and the normal name is an alias.  */
26091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26092 choke me
26093 #else
26094 char (*f) () = $ac_func;
26095 #endif
26096 #ifdef __cplusplus
26097 }
26098 #endif
26099
26100 int
26101 main ()
26102 {
26103 return f != $ac_func;
26104   ;
26105   return 0;
26106 }
26107 _ACEOF
26108 rm -f conftest.$ac_objext conftest$ac_exeext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110   (eval $ac_link) 2>&5
26111   ac_status=$?
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); } &&
26114          { ac_try='test -s conftest$ac_exeext'
26115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116   (eval $ac_try) 2>&5
26117   ac_status=$?
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); }; }; then
26120   eval "$as_ac_var=yes"
26121 else
26122   echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125 eval "$as_ac_var=no"
26126 fi
26127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26128 fi
26129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26131 if test `eval echo '${'$as_ac_var'}'` = yes; then
26132   cat >>confdefs.h <<_ACEOF
26133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26134 _ACEOF
26135
26136 fi
26137 done
26138
26139 else
26140     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26141 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
26142 fi
26143
26144
26145
26146 ac_ext=cc
26147 ac_cpp='$CXXCPP $CPPFLAGS'
26148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26151
26152
26153
26154 for ac_func in vsnprintf
26155 do
26156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26157 echo "$as_me:$LINENO: checking for $ac_func" >&5
26158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26159 if eval "test \"\${$as_ac_var+set}\" = set"; then
26160   echo $ECHO_N "(cached) $ECHO_C" >&6
26161 else
26162   cat >conftest.$ac_ext <<_ACEOF
26163 #line $LINENO "configure"
26164 /* confdefs.h.  */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h.  */
26169 /* System header to define __stub macros and hopefully few prototypes,
26170     which can conflict with char $ac_func (); below.
26171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26172     <limits.h> exists even on freestanding compilers.  */
26173 #ifdef __STDC__
26174 # include <limits.h>
26175 #else
26176 # include <assert.h>
26177 #endif
26178 /* Override any gcc2 internal prototype to avoid an error.  */
26179 #ifdef __cplusplus
26180 extern "C"
26181 {
26182 #endif
26183 /* We use char because int might match the return type of a gcc2
26184    builtin and then its argument prototype would still apply.  */
26185 char $ac_func ();
26186 /* The GNU C library defines this for functions which it implements
26187     to always fail with ENOSYS.  Some functions are actually named
26188     something starting with __ and the normal name is an alias.  */
26189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26190 choke me
26191 #else
26192 char (*f) () = $ac_func;
26193 #endif
26194 #ifdef __cplusplus
26195 }
26196 #endif
26197
26198 int
26199 main ()
26200 {
26201 return f != $ac_func;
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 rm -f conftest.$ac_objext conftest$ac_exeext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26208   (eval $ac_link) 2>&5
26209   ac_status=$?
26210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211   (exit $ac_status); } &&
26212          { ac_try='test -s conftest$ac_exeext'
26213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214   (eval $ac_try) 2>&5
26215   ac_status=$?
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); }; }; then
26218   eval "$as_ac_var=yes"
26219 else
26220   echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26222
26223 eval "$as_ac_var=no"
26224 fi
26225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26226 fi
26227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26229 if test `eval echo '${'$as_ac_var'}'` = yes; then
26230   cat >>confdefs.h <<_ACEOF
26231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26232 _ACEOF
26233
26234 fi
26235 done
26236
26237
26238 if test "$ac_cv_func_vsnprintf" = "yes"; then
26239         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26240 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26241 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244
26245             cat >conftest.$ac_ext <<_ACEOF
26246 #line $LINENO "configure"
26247 /* confdefs.h.  */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h.  */
26252
26253                     #include <stdio.h>
26254                     #include <stdarg.h>
26255
26256 int
26257 main ()
26258 {
26259
26260                     char *buf;
26261                     va_list ap;
26262                     vsnprintf(buf, 10u, "%s", ap);
26263
26264   ;
26265   return 0;
26266 }
26267 _ACEOF
26268 rm -f conftest.$ac_objext
26269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26270   (eval $ac_compile) 2>&5
26271   ac_status=$?
26272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273   (exit $ac_status); } &&
26274          { ac_try='test -s conftest.$ac_objext'
26275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26276   (eval $ac_try) 2>&5
26277   ac_status=$?
26278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279   (exit $ac_status); }; }; then
26280   wx_cv_func_vsnprintf_decl=yes
26281 else
26282   echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285 wx_cv_func_vsnprintf_decl=no
26286
26287 fi
26288 rm -f conftest.$ac_objext conftest.$ac_ext
26289
26290
26291 fi
26292 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26293 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
26294
26295     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
26296         cat >>confdefs.h <<\_ACEOF
26297 #define HAVE_VSNPRINTF_DECL 1
26298 _ACEOF
26299
26300     fi
26301 fi
26302
26303 if test "$wxUSE_UNICODE" = yes; then
26304
26305
26306
26307 for ac_func in fputwc wprintf vswprintf
26308 do
26309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26310 echo "$as_me:$LINENO: checking for $ac_func" >&5
26311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26312 if eval "test \"\${$as_ac_var+set}\" = set"; then
26313   echo $ECHO_N "(cached) $ECHO_C" >&6
26314 else
26315   cat >conftest.$ac_ext <<_ACEOF
26316 #line $LINENO "configure"
26317 /* confdefs.h.  */
26318 _ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h.  */
26322 /* System header to define __stub macros and hopefully few prototypes,
26323     which can conflict with char $ac_func (); below.
26324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26325     <limits.h> exists even on freestanding compilers.  */
26326 #ifdef __STDC__
26327 # include <limits.h>
26328 #else
26329 # include <assert.h>
26330 #endif
26331 /* Override any gcc2 internal prototype to avoid an error.  */
26332 #ifdef __cplusplus
26333 extern "C"
26334 {
26335 #endif
26336 /* We use char because int might match the return type of a gcc2
26337    builtin and then its argument prototype would still apply.  */
26338 char $ac_func ();
26339 /* The GNU C library defines this for functions which it implements
26340     to always fail with ENOSYS.  Some functions are actually named
26341     something starting with __ and the normal name is an alias.  */
26342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26343 choke me
26344 #else
26345 char (*f) () = $ac_func;
26346 #endif
26347 #ifdef __cplusplus
26348 }
26349 #endif
26350
26351 int
26352 main ()
26353 {
26354 return f != $ac_func;
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 rm -f conftest.$ac_objext conftest$ac_exeext
26360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26361   (eval $ac_link) 2>&5
26362   ac_status=$?
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); } &&
26365          { ac_try='test -s conftest$ac_exeext'
26366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26367   (eval $ac_try) 2>&5
26368   ac_status=$?
26369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); }; }; then
26371   eval "$as_ac_var=yes"
26372 else
26373   echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26375
26376 eval "$as_ac_var=no"
26377 fi
26378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26379 fi
26380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26382 if test `eval echo '${'$as_ac_var'}'` = yes; then
26383   cat >>confdefs.h <<_ACEOF
26384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26385 _ACEOF
26386
26387 fi
26388 done
26389
26390
26391                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26392 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26393     cat >conftest.$ac_ext <<_ACEOF
26394 #line $LINENO "configure"
26395 /* confdefs.h.  */
26396 _ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h.  */
26400 #include <wchar.h>
26401 int
26402 main ()
26403 {
26404 &_vsnwprintf;
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 rm -f conftest.$ac_objext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411   (eval $ac_compile) 2>&5
26412   ac_status=$?
26413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414   (exit $ac_status); } &&
26415          { ac_try='test -s conftest.$ac_objext'
26416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417   (eval $ac_try) 2>&5
26418   ac_status=$?
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); }; }; then
26421   echo "$as_me:$LINENO: result: yes" >&5
26422 echo "${ECHO_T}yes" >&6
26423                     cat >>confdefs.h <<\_ACEOF
26424 #define HAVE__VSNWPRINTF 1
26425 _ACEOF
26426
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431 echo "$as_me:$LINENO: result: no" >&5
26432 echo "${ECHO_T}no" >&6
26433 fi
26434 rm -f conftest.$ac_objext conftest.$ac_ext;
26435 fi
26436
26437 ac_ext=c
26438 ac_cpp='$CPP $CPPFLAGS'
26439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26442
26443
26444
26445
26446 if test "$TOOLKIT" != "MSW"; then
26447
26448
26449
26450
26451 ac_ext=cc
26452 ac_cpp='$CXXCPP $CPPFLAGS'
26453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26456
26457
26458
26459
26460 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26461 if test "${with_libiconv_prefix+set}" = set; then
26462   withval="$with_libiconv_prefix"
26463
26464     for dir in `echo "$withval" | tr : ' '`; do
26465       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26466       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26467     done
26468
26469 fi;
26470
26471   echo "$as_me:$LINENO: checking for iconv" >&5
26472 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26473 if test "${am_cv_func_iconv+set}" = set; then
26474   echo $ECHO_N "(cached) $ECHO_C" >&6
26475 else
26476
26477     am_cv_func_iconv="no, consider installing GNU libiconv"
26478     am_cv_lib_iconv=no
26479     cat >conftest.$ac_ext <<_ACEOF
26480 #line $LINENO "configure"
26481 /* confdefs.h.  */
26482 _ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h.  */
26486 #include <stdlib.h>
26487 #include <iconv.h>
26488 int
26489 main ()
26490 {
26491 iconv_t cd = iconv_open("","");
26492        iconv(cd,NULL,NULL,NULL,NULL);
26493        iconv_close(cd);
26494   ;
26495   return 0;
26496 }
26497 _ACEOF
26498 rm -f conftest.$ac_objext conftest$ac_exeext
26499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26500   (eval $ac_link) 2>&5
26501   ac_status=$?
26502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503   (exit $ac_status); } &&
26504          { ac_try='test -s conftest$ac_exeext'
26505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506   (eval $ac_try) 2>&5
26507   ac_status=$?
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); }; }; then
26510   am_cv_func_iconv=yes
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515 fi
26516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26517     if test "$am_cv_func_iconv" != yes; then
26518       am_save_LIBS="$LIBS"
26519       LIBS="$LIBS -liconv"
26520       cat >conftest.$ac_ext <<_ACEOF
26521 #line $LINENO "configure"
26522 /* confdefs.h.  */
26523 _ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h.  */
26527 #include <stdlib.h>
26528 #include <iconv.h>
26529 int
26530 main ()
26531 {
26532 iconv_t cd = iconv_open("","");
26533          iconv(cd,NULL,NULL,NULL,NULL);
26534          iconv_close(cd);
26535   ;
26536   return 0;
26537 }
26538 _ACEOF
26539 rm -f conftest.$ac_objext conftest$ac_exeext
26540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26541   (eval $ac_link) 2>&5
26542   ac_status=$?
26543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); } &&
26545          { ac_try='test -s conftest$ac_exeext'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; }; then
26551   am_cv_lib_iconv=yes
26552         am_cv_func_iconv=yes
26553 else
26554   echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26556
26557 fi
26558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26559       LIBS="$am_save_LIBS"
26560     fi
26561
26562 fi
26563 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26564 echo "${ECHO_T}$am_cv_func_iconv" >&6
26565   if test "$am_cv_func_iconv" = yes; then
26566
26567 cat >>confdefs.h <<\_ACEOF
26568 #define HAVE_ICONV 1
26569 _ACEOF
26570
26571     echo "$as_me:$LINENO: checking if iconv needs const" >&5
26572 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26573 if test "${wx_cv_func_iconv_const+set}" = set; then
26574   echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576   cat >conftest.$ac_ext <<_ACEOF
26577 #line $LINENO "configure"
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583
26584 #include <stdlib.h>
26585 #include <iconv.h>
26586 extern
26587 #ifdef __cplusplus
26588 "C"
26589 #endif
26590 #if defined(__STDC__) || defined(__cplusplus)
26591 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26592 #else
26593 size_t iconv();
26594 #endif
26595
26596 int
26597 main ()
26598 {
26599
26600   ;
26601   return 0;
26602 }
26603 _ACEOF
26604 rm -f conftest.$ac_objext
26605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26606   (eval $ac_compile) 2>&5
26607   ac_status=$?
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); } &&
26610          { ac_try='test -s conftest.$ac_objext'
26611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; }; then
26616   wx_cv_func_iconv_const="no"
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 wx_cv_func_iconv_const="yes"
26622
26623 fi
26624 rm -f conftest.$ac_objext conftest.$ac_ext
26625
26626 fi
26627 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26628 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
26629
26630     iconv_const=
26631     if test "x$wx_cv_func_iconv_const" = "xyes"; then
26632         iconv_const="const"
26633     fi
26634
26635
26636 cat >>confdefs.h <<_ACEOF
26637 #define ICONV_CONST $iconv_const
26638 _ACEOF
26639
26640   fi
26641   LIBICONV=
26642   if test "$am_cv_lib_iconv" = yes; then
26643     LIBICONV="-liconv"
26644   fi
26645
26646
26647 LIBS="$LIBICONV $LIBS"
26648 ac_ext=c
26649 ac_cpp='$CPP $CPPFLAGS'
26650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26653
26654
26655 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
26656
26657 for ac_func in sigaction
26658 do
26659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26660 echo "$as_me:$LINENO: checking for $ac_func" >&5
26661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26662 if eval "test \"\${$as_ac_var+set}\" = set"; then
26663   echo $ECHO_N "(cached) $ECHO_C" >&6
26664 else
26665   cat >conftest.$ac_ext <<_ACEOF
26666 #line $LINENO "configure"
26667 /* confdefs.h.  */
26668 _ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h.  */
26672 /* System header to define __stub macros and hopefully few prototypes,
26673     which can conflict with char $ac_func (); below.
26674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26675     <limits.h> exists even on freestanding compilers.  */
26676 #ifdef __STDC__
26677 # include <limits.h>
26678 #else
26679 # include <assert.h>
26680 #endif
26681 /* Override any gcc2 internal prototype to avoid an error.  */
26682 #ifdef __cplusplus
26683 extern "C"
26684 {
26685 #endif
26686 /* We use char because int might match the return type of a gcc2
26687    builtin and then its argument prototype would still apply.  */
26688 char $ac_func ();
26689 /* The GNU C library defines this for functions which it implements
26690     to always fail with ENOSYS.  Some functions are actually named
26691     something starting with __ and the normal name is an alias.  */
26692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26693 choke me
26694 #else
26695 char (*f) () = $ac_func;
26696 #endif
26697 #ifdef __cplusplus
26698 }
26699 #endif
26700
26701 int
26702 main ()
26703 {
26704 return f != $ac_func;
26705   ;
26706   return 0;
26707 }
26708 _ACEOF
26709 rm -f conftest.$ac_objext conftest$ac_exeext
26710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26711   (eval $ac_link) 2>&5
26712   ac_status=$?
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } &&
26715          { ac_try='test -s conftest$ac_exeext'
26716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26717   (eval $ac_try) 2>&5
26718   ac_status=$?
26719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720   (exit $ac_status); }; }; then
26721   eval "$as_ac_var=yes"
26722 else
26723   echo "$as_me: failed program was:" >&5
26724 sed 's/^/| /' conftest.$ac_ext >&5
26725
26726 eval "$as_ac_var=no"
26727 fi
26728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26729 fi
26730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26732 if test `eval echo '${'$as_ac_var'}'` = yes; then
26733   cat >>confdefs.h <<_ACEOF
26734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26735 _ACEOF
26736
26737 fi
26738 done
26739
26740
26741     if test "$ac_cv_func_sigaction" = "no"; then
26742         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26743 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
26744         wxUSE_ON_FATAL_EXCEPTION=no
26745     fi
26746
26747     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
26748
26749
26750       ac_ext=cc
26751 ac_cpp='$CXXCPP $CPPFLAGS'
26752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26755
26756
26757       echo "$as_me:$LINENO: checking for sa_handler type" >&5
26758 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26759 if test "${wx_cv_type_sa_handler+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762
26763         cat >conftest.$ac_ext <<_ACEOF
26764 #line $LINENO "configure"
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 #include <signal.h>
26771 int
26772 main ()
26773 {
26774
26775                         extern void testSigHandler(int);
26776
26777                         struct sigaction sa;
26778                         sa.sa_handler = testSigHandler;
26779
26780   ;
26781   return 0;
26782 }
26783 _ACEOF
26784 rm -f conftest.$ac_objext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26786   (eval $ac_compile) 2>&5
26787   ac_status=$?
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); } &&
26790          { ac_try='test -s conftest.$ac_objext'
26791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792   (eval $ac_try) 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; }; then
26796
26797                         wx_cv_type_sa_handler=int
26798
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803
26804                         wx_cv_type_sa_handler=void
26805
26806 fi
26807 rm -f conftest.$ac_objext conftest.$ac_ext
26808
26809 fi
26810 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26811 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
26812
26813       ac_ext=c
26814 ac_cpp='$CPP $CPPFLAGS'
26815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26818
26819
26820       cat >>confdefs.h <<_ACEOF
26821 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
26822 _ACEOF
26823
26824     fi
26825 fi
26826
26827
26828
26829 for ac_func in mkstemp mktemp
26830 do
26831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26832 echo "$as_me:$LINENO: checking for $ac_func" >&5
26833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26834 if eval "test \"\${$as_ac_var+set}\" = set"; then
26835   echo $ECHO_N "(cached) $ECHO_C" >&6
26836 else
26837   cat >conftest.$ac_ext <<_ACEOF
26838 #line $LINENO "configure"
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844 /* System header to define __stub macros and hopefully few prototypes,
26845     which can conflict with char $ac_func (); below.
26846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26847     <limits.h> exists even on freestanding compilers.  */
26848 #ifdef __STDC__
26849 # include <limits.h>
26850 #else
26851 # include <assert.h>
26852 #endif
26853 /* Override any gcc2 internal prototype to avoid an error.  */
26854 #ifdef __cplusplus
26855 extern "C"
26856 {
26857 #endif
26858 /* We use char because int might match the return type of a gcc2
26859    builtin and then its argument prototype would still apply.  */
26860 char $ac_func ();
26861 /* The GNU C library defines this for functions which it implements
26862     to always fail with ENOSYS.  Some functions are actually named
26863     something starting with __ and the normal name is an alias.  */
26864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26865 choke me
26866 #else
26867 char (*f) () = $ac_func;
26868 #endif
26869 #ifdef __cplusplus
26870 }
26871 #endif
26872
26873 int
26874 main ()
26875 {
26876 return f != $ac_func;
26877   ;
26878   return 0;
26879 }
26880 _ACEOF
26881 rm -f conftest.$ac_objext conftest$ac_exeext
26882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26883   (eval $ac_link) 2>&5
26884   ac_status=$?
26885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); } &&
26887          { ac_try='test -s conftest$ac_exeext'
26888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889   (eval $ac_try) 2>&5
26890   ac_status=$?
26891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892   (exit $ac_status); }; }; then
26893   eval "$as_ac_var=yes"
26894 else
26895   echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26897
26898 eval "$as_ac_var=no"
26899 fi
26900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26901 fi
26902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26904 if test `eval echo '${'$as_ac_var'}'` = yes; then
26905   cat >>confdefs.h <<_ACEOF
26906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26907 _ACEOF
26908  break
26909 fi
26910 done
26911
26912
26913 echo "$as_me:$LINENO: checking for statfs" >&5
26914 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26915 if test "${wx_cv_func_statfs+set}" = set; then
26916   echo $ECHO_N "(cached) $ECHO_C" >&6
26917 else
26918   cat >conftest.$ac_ext <<_ACEOF
26919 #line $LINENO "configure"
26920 /* confdefs.h.  */
26921 _ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h.  */
26925
26926              #if defined(__BSD__)
26927                #include <sys/param.h>
26928                #include <sys/mount.h>
26929              #else
26930                #include <sys/vfs.h>
26931              #endif
26932
26933 int
26934 main ()
26935 {
26936
26937              long l;
26938              struct statfs fs;
26939              statfs("/", &fs);
26940              l = fs.f_bsize;
26941              l += fs.f_blocks;
26942              l += fs.f_bavail;
26943
26944   ;
26945   return 0;
26946 }
26947 _ACEOF
26948 rm -f conftest.$ac_objext
26949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26950   (eval $ac_compile) 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); } &&
26954          { ac_try='test -s conftest.$ac_objext'
26955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956   (eval $ac_try) 2>&5
26957   ac_status=$?
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); }; }; then
26960
26961              wx_cv_func_statfs=yes
26962
26963 else
26964   echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967
26968              wx_cv_func_statfs=no
26969
26970
26971 fi
26972 rm -f conftest.$ac_objext conftest.$ac_ext
26973
26974 fi
26975 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
26976 echo "${ECHO_T}$wx_cv_func_statfs" >&6
26977
26978 if test "$wx_cv_func_statfs" = "yes"; then
26979     wx_cv_type_statvfs_t="struct statfs"
26980     cat >>confdefs.h <<\_ACEOF
26981 #define HAVE_STATFS 1
26982 _ACEOF
26983
26984 else
26985     echo "$as_me:$LINENO: checking for statvfs" >&5
26986 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
26987 if test "${wx_cv_func_statvfs+set}" = set; then
26988   echo $ECHO_N "(cached) $ECHO_C" >&6
26989 else
26990   cat >conftest.$ac_ext <<_ACEOF
26991 #line $LINENO "configure"
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997
26998                 #include <stddef.h>
26999                 #include <sys/statvfs.h>
27000
27001 int
27002 main ()
27003 {
27004
27005                 statvfs("/", NULL);
27006
27007   ;
27008   return 0;
27009 }
27010 _ACEOF
27011 rm -f conftest.$ac_objext
27012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27013   (eval $ac_compile) 2>&5
27014   ac_status=$?
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); } &&
27017          { ac_try='test -s conftest.$ac_objext'
27018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019   (eval $ac_try) 2>&5
27020   ac_status=$?
27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); }; }; then
27023   wx_cv_func_statvfs=yes
27024 else
27025   echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27027
27028 wx_cv_func_statvfs=no
27029
27030 fi
27031 rm -f conftest.$ac_objext conftest.$ac_ext
27032
27033 fi
27034 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27035 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
27036
27037     if test "$wx_cv_func_statvfs" = "yes"; then
27038
27039
27040         ac_ext=cc
27041 ac_cpp='$CXXCPP $CPPFLAGS'
27042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27045
27046
27047         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27048 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27049 if test "${wx_cv_type_statvfs_t+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 else
27052   cat >conftest.$ac_ext <<_ACEOF
27053 #line $LINENO "configure"
27054 /* confdefs.h.  */
27055 _ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h.  */
27059
27060                     #include <sys/statvfs.h>
27061
27062 int
27063 main ()
27064 {
27065
27066                     long l;
27067                     statvfs_t fs;
27068                     statvfs("/", &fs);
27069                     l = fs.f_bsize;
27070                     l += fs.f_blocks;
27071                     l += fs.f_bavail;
27072
27073   ;
27074   return 0;
27075 }
27076 _ACEOF
27077 rm -f conftest.$ac_objext
27078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27079   (eval $ac_compile) 2>&5
27080   ac_status=$?
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); } &&
27083          { ac_try='test -s conftest.$ac_objext'
27084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085   (eval $ac_try) 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; }; then
27089   wx_cv_type_statvfs_t=statvfs_t
27090 else
27091   echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094
27095                     cat >conftest.$ac_ext <<_ACEOF
27096 #line $LINENO "configure"
27097 /* confdefs.h.  */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h.  */
27102
27103                             #include <sys/statvfs.h>
27104
27105 int
27106 main ()
27107 {
27108
27109                             long l;
27110                             struct statvfs fs;
27111                             statvfs("/", &fs);
27112                             l = fs.f_bsize;
27113                             l += fs.f_blocks;
27114                             l += fs.f_bavail;
27115
27116   ;
27117   return 0;
27118 }
27119 _ACEOF
27120 rm -f conftest.$ac_objext
27121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27122   (eval $ac_compile) 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } &&
27126          { ac_try='test -s conftest.$ac_objext'
27127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128   (eval $ac_try) 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); }; }; then
27132   wx_cv_type_statvfs_t="struct statvfs"
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 wx_cv_type_statvfs_t="unknown"
27138
27139 fi
27140 rm -f conftest.$ac_objext conftest.$ac_ext
27141
27142
27143 fi
27144 rm -f conftest.$ac_objext conftest.$ac_ext
27145
27146 fi
27147 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27148 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
27149
27150         ac_ext=c
27151 ac_cpp='$CPP $CPPFLAGS'
27152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27155
27156
27157         if test "$wx_cv_type_statvfs_t" != "unknown"; then
27158             cat >>confdefs.h <<\_ACEOF
27159 #define HAVE_STATVFS 1
27160 _ACEOF
27161
27162         fi
27163     else
27164                 wx_cv_type_statvfs_t="unknown"
27165     fi
27166 fi
27167
27168 if test "$wx_cv_type_statvfs_t" != "unknown"; then
27169     cat >>confdefs.h <<_ACEOF
27170 #define WX_STATFS_T $wx_cv_type_statvfs_t
27171 _ACEOF
27172
27173 else
27174     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27175 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
27176 fi
27177
27178 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
27179
27180
27181 for ac_func in fcntl flock
27182 do
27183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27184 echo "$as_me:$LINENO: checking for $ac_func" >&5
27185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27186 if eval "test \"\${$as_ac_var+set}\" = set"; then
27187   echo $ECHO_N "(cached) $ECHO_C" >&6
27188 else
27189   cat >conftest.$ac_ext <<_ACEOF
27190 #line $LINENO "configure"
27191 /* confdefs.h.  */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h.  */
27196 /* System header to define __stub macros and hopefully few prototypes,
27197     which can conflict with char $ac_func (); below.
27198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27199     <limits.h> exists even on freestanding compilers.  */
27200 #ifdef __STDC__
27201 # include <limits.h>
27202 #else
27203 # include <assert.h>
27204 #endif
27205 /* Override any gcc2 internal prototype to avoid an error.  */
27206 #ifdef __cplusplus
27207 extern "C"
27208 {
27209 #endif
27210 /* We use char because int might match the return type of a gcc2
27211    builtin and then its argument prototype would still apply.  */
27212 char $ac_func ();
27213 /* The GNU C library defines this for functions which it implements
27214     to always fail with ENOSYS.  Some functions are actually named
27215     something starting with __ and the normal name is an alias.  */
27216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27217 choke me
27218 #else
27219 char (*f) () = $ac_func;
27220 #endif
27221 #ifdef __cplusplus
27222 }
27223 #endif
27224
27225 int
27226 main ()
27227 {
27228 return f != $ac_func;
27229   ;
27230   return 0;
27231 }
27232 _ACEOF
27233 rm -f conftest.$ac_objext conftest$ac_exeext
27234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27235   (eval $ac_link) 2>&5
27236   ac_status=$?
27237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); } &&
27239          { ac_try='test -s conftest$ac_exeext'
27240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27241   (eval $ac_try) 2>&5
27242   ac_status=$?
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); }; }; then
27245   eval "$as_ac_var=yes"
27246 else
27247   echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27249
27250 eval "$as_ac_var=no"
27251 fi
27252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27253 fi
27254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27256 if test `eval echo '${'$as_ac_var'}'` = yes; then
27257   cat >>confdefs.h <<_ACEOF
27258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27259 _ACEOF
27260  break
27261 fi
27262 done
27263
27264
27265     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
27266         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27267 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
27268         wxUSE_SNGLINST_CHECKER=no
27269     fi
27270 fi
27271
27272
27273 for ac_func in timegm
27274 do
27275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27276 echo "$as_me:$LINENO: checking for $ac_func" >&5
27277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27278 if eval "test \"\${$as_ac_var+set}\" = set"; then
27279   echo $ECHO_N "(cached) $ECHO_C" >&6
27280 else
27281   cat >conftest.$ac_ext <<_ACEOF
27282 #line $LINENO "configure"
27283 /* confdefs.h.  */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h.  */
27288 /* System header to define __stub macros and hopefully few prototypes,
27289     which can conflict with char $ac_func (); below.
27290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27291     <limits.h> exists even on freestanding compilers.  */
27292 #ifdef __STDC__
27293 # include <limits.h>
27294 #else
27295 # include <assert.h>
27296 #endif
27297 /* Override any gcc2 internal prototype to avoid an error.  */
27298 #ifdef __cplusplus
27299 extern "C"
27300 {
27301 #endif
27302 /* We use char because int might match the return type of a gcc2
27303    builtin and then its argument prototype would still apply.  */
27304 char $ac_func ();
27305 /* The GNU C library defines this for functions which it implements
27306     to always fail with ENOSYS.  Some functions are actually named
27307     something starting with __ and the normal name is an alias.  */
27308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27309 choke me
27310 #else
27311 char (*f) () = $ac_func;
27312 #endif
27313 #ifdef __cplusplus
27314 }
27315 #endif
27316
27317 int
27318 main ()
27319 {
27320 return f != $ac_func;
27321   ;
27322   return 0;
27323 }
27324 _ACEOF
27325 rm -f conftest.$ac_objext conftest$ac_exeext
27326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27327   (eval $ac_link) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } &&
27331          { ac_try='test -s conftest$ac_exeext'
27332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333   (eval $ac_try) 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337   eval "$as_ac_var=yes"
27338 else
27339   echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27341
27342 eval "$as_ac_var=no"
27343 fi
27344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27345 fi
27346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27348 if test `eval echo '${'$as_ac_var'}'` = yes; then
27349   cat >>confdefs.h <<_ACEOF
27350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27351 _ACEOF
27352
27353 fi
27354 done
27355
27356
27357
27358
27359 for ac_func in putenv setenv
27360 do
27361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27362 echo "$as_me:$LINENO: checking for $ac_func" >&5
27363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27364 if eval "test \"\${$as_ac_var+set}\" = set"; then
27365   echo $ECHO_N "(cached) $ECHO_C" >&6
27366 else
27367   cat >conftest.$ac_ext <<_ACEOF
27368 #line $LINENO "configure"
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374 /* System header to define __stub macros and hopefully few prototypes,
27375     which can conflict with char $ac_func (); below.
27376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27377     <limits.h> exists even on freestanding compilers.  */
27378 #ifdef __STDC__
27379 # include <limits.h>
27380 #else
27381 # include <assert.h>
27382 #endif
27383 /* Override any gcc2 internal prototype to avoid an error.  */
27384 #ifdef __cplusplus
27385 extern "C"
27386 {
27387 #endif
27388 /* We use char because int might match the return type of a gcc2
27389    builtin and then its argument prototype would still apply.  */
27390 char $ac_func ();
27391 /* The GNU C library defines this for functions which it implements
27392     to always fail with ENOSYS.  Some functions are actually named
27393     something starting with __ and the normal name is an alias.  */
27394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27395 choke me
27396 #else
27397 char (*f) () = $ac_func;
27398 #endif
27399 #ifdef __cplusplus
27400 }
27401 #endif
27402
27403 int
27404 main ()
27405 {
27406 return f != $ac_func;
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext conftest$ac_exeext
27412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27413   (eval $ac_link) 2>&5
27414   ac_status=$?
27415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416   (exit $ac_status); } &&
27417          { ac_try='test -s conftest$ac_exeext'
27418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419   (eval $ac_try) 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); }; }; then
27423   eval "$as_ac_var=yes"
27424 else
27425   echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27427
27428 eval "$as_ac_var=no"
27429 fi
27430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27431 fi
27432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27434 if test `eval echo '${'$as_ac_var'}'` = yes; then
27435   cat >>confdefs.h <<_ACEOF
27436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27437 _ACEOF
27438  break
27439 fi
27440 done
27441
27442
27443 HAVE_SOME_SLEEP_FUNC=0
27444 if test "$USE_BEOS" = 1; then
27445             cat >>confdefs.h <<\_ACEOF
27446 #define HAVE_SLEEP 1
27447 _ACEOF
27448
27449     HAVE_SOME_SLEEP_FUNC=1
27450 fi
27451
27452 if test "$USE_DARWIN" = 1; then
27453             cat >>confdefs.h <<\_ACEOF
27454 #define HAVE_USLEEP 1
27455 _ACEOF
27456
27457     HAVE_SOME_SLEEP_FUNC=1
27458 fi
27459
27460 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27461         POSIX4_LINK=
27462
27463 for ac_func in nanosleep
27464 do
27465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27466 echo "$as_me:$LINENO: checking for $ac_func" >&5
27467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27468 if eval "test \"\${$as_ac_var+set}\" = set"; then
27469   echo $ECHO_N "(cached) $ECHO_C" >&6
27470 else
27471   cat >conftest.$ac_ext <<_ACEOF
27472 #line $LINENO "configure"
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 /* System header to define __stub macros and hopefully few prototypes,
27479     which can conflict with char $ac_func (); below.
27480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27481     <limits.h> exists even on freestanding compilers.  */
27482 #ifdef __STDC__
27483 # include <limits.h>
27484 #else
27485 # include <assert.h>
27486 #endif
27487 /* Override any gcc2 internal prototype to avoid an error.  */
27488 #ifdef __cplusplus
27489 extern "C"
27490 {
27491 #endif
27492 /* We use char because int might match the return type of a gcc2
27493    builtin and then its argument prototype would still apply.  */
27494 char $ac_func ();
27495 /* The GNU C library defines this for functions which it implements
27496     to always fail with ENOSYS.  Some functions are actually named
27497     something starting with __ and the normal name is an alias.  */
27498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27499 choke me
27500 #else
27501 char (*f) () = $ac_func;
27502 #endif
27503 #ifdef __cplusplus
27504 }
27505 #endif
27506
27507 int
27508 main ()
27509 {
27510 return f != $ac_func;
27511   ;
27512   return 0;
27513 }
27514 _ACEOF
27515 rm -f conftest.$ac_objext conftest$ac_exeext
27516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27517   (eval $ac_link) 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); } &&
27521          { ac_try='test -s conftest$ac_exeext'
27522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523   (eval $ac_try) 2>&5
27524   ac_status=$?
27525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526   (exit $ac_status); }; }; then
27527   eval "$as_ac_var=yes"
27528 else
27529   echo "$as_me: failed program was:" >&5
27530 sed 's/^/| /' conftest.$ac_ext >&5
27531
27532 eval "$as_ac_var=no"
27533 fi
27534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27535 fi
27536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27538 if test `eval echo '${'$as_ac_var'}'` = yes; then
27539   cat >>confdefs.h <<_ACEOF
27540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27541 _ACEOF
27542  cat >>confdefs.h <<\_ACEOF
27543 #define HAVE_NANOSLEEP 1
27544 _ACEOF
27545
27546 else
27547
27548             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27549 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27550 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27551   echo $ECHO_N "(cached) $ECHO_C" >&6
27552 else
27553   ac_check_lib_save_LIBS=$LIBS
27554 LIBS="-lposix4  $LIBS"
27555 cat >conftest.$ac_ext <<_ACEOF
27556 #line $LINENO "configure"
27557 /* confdefs.h.  */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h.  */
27562
27563 /* Override any gcc2 internal prototype to avoid an error.  */
27564 #ifdef __cplusplus
27565 extern "C"
27566 #endif
27567 /* We use char because int might match the return type of a gcc2
27568    builtin and then its argument prototype would still apply.  */
27569 char nanosleep ();
27570 int
27571 main ()
27572 {
27573 nanosleep ();
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext conftest$ac_exeext
27579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27580   (eval $ac_link) 2>&5
27581   ac_status=$?
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); } &&
27584          { ac_try='test -s conftest$ac_exeext'
27585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586   (eval $ac_try) 2>&5
27587   ac_status=$?
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); }; }; then
27590   ac_cv_lib_posix4_nanosleep=yes
27591 else
27592   echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27594
27595 ac_cv_lib_posix4_nanosleep=no
27596 fi
27597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27598 LIBS=$ac_check_lib_save_LIBS
27599 fi
27600 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27601 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27602 if test $ac_cv_lib_posix4_nanosleep = yes; then
27603
27604                     cat >>confdefs.h <<\_ACEOF
27605 #define HAVE_NANOSLEEP 1
27606 _ACEOF
27607
27608                     POSIX4_LINK=" -lposix4"
27609
27610 else
27611
27612
27613 for ac_func in usleep
27614 do
27615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27616 echo "$as_me:$LINENO: checking for $ac_func" >&5
27617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27618 if eval "test \"\${$as_ac_var+set}\" = set"; then
27619   echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621   cat >conftest.$ac_ext <<_ACEOF
27622 #line $LINENO "configure"
27623 /* confdefs.h.  */
27624 _ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h.  */
27628 /* System header to define __stub macros and hopefully few prototypes,
27629     which can conflict with char $ac_func (); below.
27630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631     <limits.h> exists even on freestanding compilers.  */
27632 #ifdef __STDC__
27633 # include <limits.h>
27634 #else
27635 # include <assert.h>
27636 #endif
27637 /* Override any gcc2 internal prototype to avoid an error.  */
27638 #ifdef __cplusplus
27639 extern "C"
27640 {
27641 #endif
27642 /* We use char because int might match the return type of a gcc2
27643    builtin and then its argument prototype would still apply.  */
27644 char $ac_func ();
27645 /* The GNU C library defines this for functions which it implements
27646     to always fail with ENOSYS.  Some functions are actually named
27647     something starting with __ and the normal name is an alias.  */
27648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27649 choke me
27650 #else
27651 char (*f) () = $ac_func;
27652 #endif
27653 #ifdef __cplusplus
27654 }
27655 #endif
27656
27657 int
27658 main ()
27659 {
27660 return f != $ac_func;
27661   ;
27662   return 0;
27663 }
27664 _ACEOF
27665 rm -f conftest.$ac_objext conftest$ac_exeext
27666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27667   (eval $ac_link) 2>&5
27668   ac_status=$?
27669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); } &&
27671          { ac_try='test -s conftest$ac_exeext'
27672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27673   (eval $ac_try) 2>&5
27674   ac_status=$?
27675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); }; }; then
27677   eval "$as_ac_var=yes"
27678 else
27679   echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27681
27682 eval "$as_ac_var=no"
27683 fi
27684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27685 fi
27686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27688 if test `eval echo '${'$as_ac_var'}'` = yes; then
27689   cat >>confdefs.h <<_ACEOF
27690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27691 _ACEOF
27692  cat >>confdefs.h <<\_ACEOF
27693 #define HAVE_USLEEP 1
27694 _ACEOF
27695
27696 else
27697   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27698 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27699
27700 fi
27701 done
27702
27703
27704
27705 fi
27706
27707
27708
27709 fi
27710 done
27711
27712 fi
27713
27714
27715
27716 for ac_func in uname gethostname
27717 do
27718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27719 echo "$as_me:$LINENO: checking for $ac_func" >&5
27720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27721 if eval "test \"\${$as_ac_var+set}\" = set"; then
27722   echo $ECHO_N "(cached) $ECHO_C" >&6
27723 else
27724   cat >conftest.$ac_ext <<_ACEOF
27725 #line $LINENO "configure"
27726 /* confdefs.h.  */
27727 _ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h.  */
27731 /* System header to define __stub macros and hopefully few prototypes,
27732     which can conflict with char $ac_func (); below.
27733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27734     <limits.h> exists even on freestanding compilers.  */
27735 #ifdef __STDC__
27736 # include <limits.h>
27737 #else
27738 # include <assert.h>
27739 #endif
27740 /* Override any gcc2 internal prototype to avoid an error.  */
27741 #ifdef __cplusplus
27742 extern "C"
27743 {
27744 #endif
27745 /* We use char because int might match the return type of a gcc2
27746    builtin and then its argument prototype would still apply.  */
27747 char $ac_func ();
27748 /* The GNU C library defines this for functions which it implements
27749     to always fail with ENOSYS.  Some functions are actually named
27750     something starting with __ and the normal name is an alias.  */
27751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27752 choke me
27753 #else
27754 char (*f) () = $ac_func;
27755 #endif
27756 #ifdef __cplusplus
27757 }
27758 #endif
27759
27760 int
27761 main ()
27762 {
27763 return f != $ac_func;
27764   ;
27765   return 0;
27766 }
27767 _ACEOF
27768 rm -f conftest.$ac_objext conftest$ac_exeext
27769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27770   (eval $ac_link) 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); } &&
27774          { ac_try='test -s conftest$ac_exeext'
27775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776   (eval $ac_try) 2>&5
27777   ac_status=$?
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); }; }; then
27780   eval "$as_ac_var=yes"
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785 eval "$as_ac_var=no"
27786 fi
27787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27788 fi
27789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27791 if test `eval echo '${'$as_ac_var'}'` = yes; then
27792   cat >>confdefs.h <<_ACEOF
27793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27794 _ACEOF
27795  break
27796 fi
27797 done
27798
27799
27800
27801
27802 ac_ext=cc
27803 ac_cpp='$CXXCPP $CPPFLAGS'
27804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27807
27808
27809
27810 for ac_func in strtok_r
27811 do
27812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27813 echo "$as_me:$LINENO: checking for $ac_func" >&5
27814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27815 if eval "test \"\${$as_ac_var+set}\" = set"; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   cat >conftest.$ac_ext <<_ACEOF
27819 #line $LINENO "configure"
27820 /* confdefs.h.  */
27821 _ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h.  */
27825 /* System header to define __stub macros and hopefully few prototypes,
27826     which can conflict with char $ac_func (); below.
27827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27828     <limits.h> exists even on freestanding compilers.  */
27829 #ifdef __STDC__
27830 # include <limits.h>
27831 #else
27832 # include <assert.h>
27833 #endif
27834 /* Override any gcc2 internal prototype to avoid an error.  */
27835 #ifdef __cplusplus
27836 extern "C"
27837 {
27838 #endif
27839 /* We use char because int might match the return type of a gcc2
27840    builtin and then its argument prototype would still apply.  */
27841 char $ac_func ();
27842 /* The GNU C library defines this for functions which it implements
27843     to always fail with ENOSYS.  Some functions are actually named
27844     something starting with __ and the normal name is an alias.  */
27845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27846 choke me
27847 #else
27848 char (*f) () = $ac_func;
27849 #endif
27850 #ifdef __cplusplus
27851 }
27852 #endif
27853
27854 int
27855 main ()
27856 {
27857 return f != $ac_func;
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext conftest$ac_exeext
27863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27864   (eval $ac_link) 2>&5
27865   ac_status=$?
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); } &&
27868          { ac_try='test -s conftest$ac_exeext'
27869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27870   (eval $ac_try) 2>&5
27871   ac_status=$?
27872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873   (exit $ac_status); }; }; then
27874   eval "$as_ac_var=yes"
27875 else
27876   echo "$as_me: failed program was:" >&5
27877 sed 's/^/| /' conftest.$ac_ext >&5
27878
27879 eval "$as_ac_var=no"
27880 fi
27881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27882 fi
27883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27885 if test `eval echo '${'$as_ac_var'}'` = yes; then
27886   cat >>confdefs.h <<_ACEOF
27887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27888 _ACEOF
27889
27890 fi
27891 done
27892
27893
27894 ac_ext=c
27895 ac_cpp='$CPP $CPPFLAGS'
27896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27899
27900
27901 INET_LINK=
27902
27903 for ac_func in inet_addr
27904 do
27905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27906 echo "$as_me:$LINENO: checking for $ac_func" >&5
27907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27908 if eval "test \"\${$as_ac_var+set}\" = set"; then
27909   echo $ECHO_N "(cached) $ECHO_C" >&6
27910 else
27911   cat >conftest.$ac_ext <<_ACEOF
27912 #line $LINENO "configure"
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918 /* System header to define __stub macros and hopefully few prototypes,
27919     which can conflict with char $ac_func (); below.
27920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27921     <limits.h> exists even on freestanding compilers.  */
27922 #ifdef __STDC__
27923 # include <limits.h>
27924 #else
27925 # include <assert.h>
27926 #endif
27927 /* Override any gcc2 internal prototype to avoid an error.  */
27928 #ifdef __cplusplus
27929 extern "C"
27930 {
27931 #endif
27932 /* We use char because int might match the return type of a gcc2
27933    builtin and then its argument prototype would still apply.  */
27934 char $ac_func ();
27935 /* The GNU C library defines this for functions which it implements
27936     to always fail with ENOSYS.  Some functions are actually named
27937     something starting with __ and the normal name is an alias.  */
27938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27939 choke me
27940 #else
27941 char (*f) () = $ac_func;
27942 #endif
27943 #ifdef __cplusplus
27944 }
27945 #endif
27946
27947 int
27948 main ()
27949 {
27950 return f != $ac_func;
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext conftest$ac_exeext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27957   (eval $ac_link) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); } &&
27961          { ac_try='test -s conftest$ac_exeext'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; }; then
27967   eval "$as_ac_var=yes"
27968 else
27969   echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972 eval "$as_ac_var=no"
27973 fi
27974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27975 fi
27976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27978 if test `eval echo '${'$as_ac_var'}'` = yes; then
27979   cat >>confdefs.h <<_ACEOF
27980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27981 _ACEOF
27982  cat >>confdefs.h <<\_ACEOF
27983 #define HAVE_INET_ADDR 1
27984 _ACEOF
27985
27986 else
27987
27988         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27989 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27990 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 else
27993   ac_check_lib_save_LIBS=$LIBS
27994 LIBS="-lnsl  $LIBS"
27995 cat >conftest.$ac_ext <<_ACEOF
27996 #line $LINENO "configure"
27997 /* confdefs.h.  */
27998 _ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h.  */
28002
28003 /* Override any gcc2 internal prototype to avoid an error.  */
28004 #ifdef __cplusplus
28005 extern "C"
28006 #endif
28007 /* We use char because int might match the return type of a gcc2
28008    builtin and then its argument prototype would still apply.  */
28009 char inet_addr ();
28010 int
28011 main ()
28012 {
28013 inet_addr ();
28014   ;
28015   return 0;
28016 }
28017 _ACEOF
28018 rm -f conftest.$ac_objext conftest$ac_exeext
28019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28020   (eval $ac_link) 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); } &&
28024          { ac_try='test -s conftest$ac_exeext'
28025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28026   (eval $ac_try) 2>&5
28027   ac_status=$?
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); }; }; then
28030   ac_cv_lib_nsl_inet_addr=yes
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035 ac_cv_lib_nsl_inet_addr=no
28036 fi
28037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28038 LIBS=$ac_check_lib_save_LIBS
28039 fi
28040 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28041 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28042 if test $ac_cv_lib_nsl_inet_addr = yes; then
28043   INET_LINK="nsl"
28044 else
28045   echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28046 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28047 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28048   echo $ECHO_N "(cached) $ECHO_C" >&6
28049 else
28050   ac_check_lib_save_LIBS=$LIBS
28051 LIBS="-lresolv  $LIBS"
28052 cat >conftest.$ac_ext <<_ACEOF
28053 #line $LINENO "configure"
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059
28060 /* Override any gcc2 internal prototype to avoid an error.  */
28061 #ifdef __cplusplus
28062 extern "C"
28063 #endif
28064 /* We use char because int might match the return type of a gcc2
28065    builtin and then its argument prototype would still apply.  */
28066 char inet_addr ();
28067 int
28068 main ()
28069 {
28070 inet_addr ();
28071   ;
28072   return 0;
28073 }
28074 _ACEOF
28075 rm -f conftest.$ac_objext conftest$ac_exeext
28076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28077   (eval $ac_link) 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); } &&
28081          { ac_try='test -s conftest$ac_exeext'
28082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083   (eval $ac_try) 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; }; then
28087   ac_cv_lib_resolv_inet_addr=yes
28088 else
28089   echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092 ac_cv_lib_resolv_inet_addr=no
28093 fi
28094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28095 LIBS=$ac_check_lib_save_LIBS
28096 fi
28097 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28098 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28099 if test $ac_cv_lib_resolv_inet_addr = yes; then
28100   INET_LINK="resolv"
28101 else
28102   echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28103 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28104 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28105   echo $ECHO_N "(cached) $ECHO_C" >&6
28106 else
28107   ac_check_lib_save_LIBS=$LIBS
28108 LIBS="-lsocket  $LIBS"
28109 cat >conftest.$ac_ext <<_ACEOF
28110 #line $LINENO "configure"
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116
28117 /* Override any gcc2 internal prototype to avoid an error.  */
28118 #ifdef __cplusplus
28119 extern "C"
28120 #endif
28121 /* We use char because int might match the return type of a gcc2
28122    builtin and then its argument prototype would still apply.  */
28123 char inet_addr ();
28124 int
28125 main ()
28126 {
28127 inet_addr ();
28128   ;
28129   return 0;
28130 }
28131 _ACEOF
28132 rm -f conftest.$ac_objext conftest$ac_exeext
28133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28134   (eval $ac_link) 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } &&
28138          { ac_try='test -s conftest$ac_exeext'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   ac_cv_lib_socket_inet_addr=yes
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149 ac_cv_lib_socket_inet_addr=no
28150 fi
28151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28152 LIBS=$ac_check_lib_save_LIBS
28153 fi
28154 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28155 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28156 if test $ac_cv_lib_socket_inet_addr = yes; then
28157   INET_LINK="socket"
28158
28159 fi
28160
28161
28162 fi
28163
28164
28165 fi
28166
28167
28168
28169 fi
28170 done
28171
28172
28173
28174 for ac_func in inet_aton
28175 do
28176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28177 echo "$as_me:$LINENO: checking for $ac_func" >&5
28178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28179 if eval "test \"\${$as_ac_var+set}\" = set"; then
28180   echo $ECHO_N "(cached) $ECHO_C" >&6
28181 else
28182   cat >conftest.$ac_ext <<_ACEOF
28183 #line $LINENO "configure"
28184 /* confdefs.h.  */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h.  */
28189 /* System header to define __stub macros and hopefully few prototypes,
28190     which can conflict with char $ac_func (); below.
28191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28192     <limits.h> exists even on freestanding compilers.  */
28193 #ifdef __STDC__
28194 # include <limits.h>
28195 #else
28196 # include <assert.h>
28197 #endif
28198 /* Override any gcc2 internal prototype to avoid an error.  */
28199 #ifdef __cplusplus
28200 extern "C"
28201 {
28202 #endif
28203 /* We use char because int might match the return type of a gcc2
28204    builtin and then its argument prototype would still apply.  */
28205 char $ac_func ();
28206 /* The GNU C library defines this for functions which it implements
28207     to always fail with ENOSYS.  Some functions are actually named
28208     something starting with __ and the normal name is an alias.  */
28209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28210 choke me
28211 #else
28212 char (*f) () = $ac_func;
28213 #endif
28214 #ifdef __cplusplus
28215 }
28216 #endif
28217
28218 int
28219 main ()
28220 {
28221 return f != $ac_func;
28222   ;
28223   return 0;
28224 }
28225 _ACEOF
28226 rm -f conftest.$ac_objext conftest$ac_exeext
28227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28228   (eval $ac_link) 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); } &&
28232          { ac_try='test -s conftest$ac_exeext'
28233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234   (eval $ac_try) 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; }; then
28238   eval "$as_ac_var=yes"
28239 else
28240   echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243 eval "$as_ac_var=no"
28244 fi
28245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28246 fi
28247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28249 if test `eval echo '${'$as_ac_var'}'` = yes; then
28250   cat >>confdefs.h <<_ACEOF
28251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28252 _ACEOF
28253  cat >>confdefs.h <<\_ACEOF
28254 #define HAVE_INET_ATON 1
28255 _ACEOF
28256
28257 else
28258
28259                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28260 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28261 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28262 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28263   echo $ECHO_N "(cached) $ECHO_C" >&6
28264 else
28265   ac_check_lib_save_LIBS=$LIBS
28266 LIBS="-l$INET_LINK  $LIBS"
28267 cat >conftest.$ac_ext <<_ACEOF
28268 #line $LINENO "configure"
28269 /* confdefs.h.  */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h.  */
28274
28275 /* Override any gcc2 internal prototype to avoid an error.  */
28276 #ifdef __cplusplus
28277 extern "C"
28278 #endif
28279 /* We use char because int might match the return type of a gcc2
28280    builtin and then its argument prototype would still apply.  */
28281 char inet_aton ();
28282 int
28283 main ()
28284 {
28285 inet_aton ();
28286   ;
28287   return 0;
28288 }
28289 _ACEOF
28290 rm -f conftest.$ac_objext conftest$ac_exeext
28291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28292   (eval $ac_link) 2>&5
28293   ac_status=$?
28294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); } &&
28296          { ac_try='test -s conftest$ac_exeext'
28297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298   (eval $ac_try) 2>&5
28299   ac_status=$?
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); }; }; then
28302   eval "$as_ac_Lib=yes"
28303 else
28304   echo "$as_me: failed program was:" >&5
28305 sed 's/^/| /' conftest.$ac_ext >&5
28306
28307 eval "$as_ac_Lib=no"
28308 fi
28309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28310 LIBS=$ac_check_lib_save_LIBS
28311 fi
28312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28313 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28314 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28315   cat >>confdefs.h <<\_ACEOF
28316 #define HAVE_INET_ATON 1
28317 _ACEOF
28318
28319 fi
28320
28321
28322 fi
28323 done
28324
28325
28326 if test "x$INET_LINK" != "x"; then
28327     cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_INET_ADDR 1
28329 _ACEOF
28330
28331     INET_LINK=" -l$INET_LINK"
28332 fi
28333
28334 fi
28335
28336
28337
28338 ESD_LINK=
28339 if test "${ac_cv_header_esd_h+set}" = set; then
28340   echo "$as_me:$LINENO: checking for esd.h" >&5
28341 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28342 if test "${ac_cv_header_esd_h+set}" = set; then
28343   echo $ECHO_N "(cached) $ECHO_C" >&6
28344 fi
28345 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28346 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28347 else
28348   # Is the header compilable?
28349 echo "$as_me:$LINENO: checking esd.h usability" >&5
28350 echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28351 cat >conftest.$ac_ext <<_ACEOF
28352 #line $LINENO "configure"
28353 /* confdefs.h.  */
28354 _ACEOF
28355 cat confdefs.h >>conftest.$ac_ext
28356 cat >>conftest.$ac_ext <<_ACEOF
28357 /* end confdefs.h.  */
28358 $ac_includes_default
28359 #include <esd.h>
28360 _ACEOF
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363   (eval $ac_compile) 2>&5
28364   ac_status=$?
28365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366   (exit $ac_status); } &&
28367          { ac_try='test -s conftest.$ac_objext'
28368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369   (eval $ac_try) 2>&5
28370   ac_status=$?
28371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372   (exit $ac_status); }; }; then
28373   ac_header_compiler=yes
28374 else
28375   echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28377
28378 ac_header_compiler=no
28379 fi
28380 rm -f conftest.$ac_objext conftest.$ac_ext
28381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28382 echo "${ECHO_T}$ac_header_compiler" >&6
28383
28384 # Is the header present?
28385 echo "$as_me:$LINENO: checking esd.h presence" >&5
28386 echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28387 cat >conftest.$ac_ext <<_ACEOF
28388 #line $LINENO "configure"
28389 /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394 #include <esd.h>
28395 _ACEOF
28396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28398   ac_status=$?
28399   grep -v '^ *+' conftest.er1 >conftest.err
28400   rm -f conftest.er1
28401   cat conftest.err >&5
28402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403   (exit $ac_status); } >/dev/null; then
28404   if test -s conftest.err; then
28405     ac_cpp_err=$ac_c_preproc_warn_flag
28406   else
28407     ac_cpp_err=
28408   fi
28409 else
28410   ac_cpp_err=yes
28411 fi
28412 if test -z "$ac_cpp_err"; then
28413   ac_header_preproc=yes
28414 else
28415   echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28417
28418   ac_header_preproc=no
28419 fi
28420 rm -f conftest.err conftest.$ac_ext
28421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28422 echo "${ECHO_T}$ac_header_preproc" >&6
28423
28424 # So?  What about this header?
28425 case $ac_header_compiler:$ac_header_preproc in
28426   yes:no )
28427     { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28428 echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28429     { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28430 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28431     (
28432       cat <<\_ASBOX
28433 ## ------------------------------------ ##
28434 ## Report this to bug-autoconf@gnu.org. ##
28435 ## ------------------------------------ ##
28436 _ASBOX
28437     ) |
28438       sed "s/^/$as_me: WARNING:     /" >&2
28439     ;;
28440   no:yes )
28441     { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28442 echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28443     { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28444 echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28445     { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28446 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28447     (
28448       cat <<\_ASBOX
28449 ## ------------------------------------ ##
28450 ## Report this to bug-autoconf@gnu.org. ##
28451 ## ------------------------------------ ##
28452 _ASBOX
28453     ) |
28454       sed "s/^/$as_me: WARNING:     /" >&2
28455     ;;
28456 esac
28457 echo "$as_me:$LINENO: checking for esd.h" >&5
28458 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28459 if test "${ac_cv_header_esd_h+set}" = set; then
28460   echo $ECHO_N "(cached) $ECHO_C" >&6
28461 else
28462   ac_cv_header_esd_h=$ac_header_preproc
28463 fi
28464 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28465 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28466
28467 fi
28468 if test $ac_cv_header_esd_h = yes; then
28469
28470   echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28471 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28472 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28473   echo $ECHO_N "(cached) $ECHO_C" >&6
28474 else
28475   ac_check_lib_save_LIBS=$LIBS
28476 LIBS="-lesd  $LIBS"
28477 cat >conftest.$ac_ext <<_ACEOF
28478 #line $LINENO "configure"
28479 /* confdefs.h.  */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h.  */
28484
28485 /* Override any gcc2 internal prototype to avoid an error.  */
28486 #ifdef __cplusplus
28487 extern "C"
28488 #endif
28489 /* We use char because int might match the return type of a gcc2
28490    builtin and then its argument prototype would still apply.  */
28491 char esd_close ();
28492 int
28493 main ()
28494 {
28495 esd_close ();
28496   ;
28497   return 0;
28498 }
28499 _ACEOF
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28502   (eval $ac_link) 2>&5
28503   ac_status=$?
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } &&
28506          { ac_try='test -s conftest$ac_exeext'
28507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508   (eval $ac_try) 2>&5
28509   ac_status=$?
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); }; }; then
28512   ac_cv_lib_esd_esd_close=yes
28513 else
28514   echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28516
28517 ac_cv_lib_esd_esd_close=no
28518 fi
28519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28520 LIBS=$ac_check_lib_save_LIBS
28521 fi
28522 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28523 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28524 if test $ac_cv_lib_esd_esd_close = yes; then
28525
28526     ESD_LINK="-lesd"
28527
28528 fi
28529
28530
28531 fi
28532
28533
28534
28535
28536
28537 cat >confcache <<\_ACEOF
28538 # This file is a shell script that caches the results of configure
28539 # tests run on this system so they can be shared between configure
28540 # scripts and configure runs, see configure's option --config-cache.
28541 # It is not useful on other systems.  If it contains results you don't
28542 # want to keep, you may remove or edit it.
28543 #
28544 # config.status only pays attention to the cache file if you give it
28545 # the --recheck option to rerun configure.
28546 #
28547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28549 # following values.
28550
28551 _ACEOF
28552
28553 # The following way of writing the cache mishandles newlines in values,
28554 # but we know of no workaround that is simple, portable, and efficient.
28555 # So, don't put newlines in cache variables' values.
28556 # Ultrix sh set writes to stderr and can't be redirected directly,
28557 # and sets the high bit in the cache file unless we assign to the vars.
28558 {
28559   (set) 2>&1 |
28560     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28561     *ac_space=\ *)
28562       # `set' does not quote correctly, so add quotes (double-quote
28563       # substitution turns \\\\ into \\, and sed turns \\ into \).
28564       sed -n \
28565         "s/'/'\\\\''/g;
28566           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28567       ;;
28568     *)
28569       # `set' quotes correctly as required by POSIX, so do not add quotes.
28570       sed -n \
28571         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28572       ;;
28573     esac;
28574 } |
28575   sed '
28576      t clear
28577      : clear
28578      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28579      t end
28580      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28581      : end' >>confcache
28582 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28583   if test -w $cache_file; then
28584     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28585     cat confcache >$cache_file
28586   else
28587     echo "not updating unwritable cache $cache_file"
28588   fi
28589 fi
28590 rm -f confcache
28591
28592
28593 CPP_MT_FLAG=
28594 if test "$TOOLKIT" != "MSW"; then
28595
28596
28597     THREADS_LINK=
28598     THREADS_CFLAGS=
28599
28600     if test "$wxUSE_THREADS" = "yes" ; then
28601         if test "$USE_BEOS" = 1; then
28602             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28603 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
28604             wxUSE_THREADS="no"
28605         fi
28606     fi
28607
28608     if test "$wxUSE_THREADS" = "yes" ; then
28609
28610
28611                                 THREAD_OPTS="-pthread"
28612         case "${host}" in
28613           *-*-solaris2* | *-*-sunos4* )
28614                 if test "x$GCC" = "xyes"; then
28615                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
28616                 else
28617                     THREAD_OPTS="-mt $THREAD_OPTS"
28618                 fi
28619                 ;;
28620           *-*-freebsd*)
28621                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28622                 ;;
28623           *-*-darwin* | *-*-cygwin* )
28624                                                 THREAD_OPTS=""
28625                 ;;
28626           *-*-aix*)
28627                                 THREAD_OPTS="pthreads"
28628                 ;;
28629           *-hp-hpux* )
28630                                                                 if test "x$GCC" != "xyes"; then
28631                     THREAD_OPTS=""
28632                 fi
28633                 ;;
28634
28635           *-*-irix* )
28636                                                                 if test "x$GCC" = "xyes"; then
28637                     THREAD_OPTS=""
28638                 fi
28639                 ;;
28640
28641           *-*-*UnixWare*)
28642                                 if test "x$GCC" != "xyes"; then
28643                     THREAD_OPTS="-Ethread"
28644                 fi
28645                 ;;
28646         esac
28647
28648                                 THREAD_OPTS="$THREAD_OPTS pthread none"
28649
28650                 THREADS_OK=no
28651         for flag in $THREAD_OPTS; do
28652             case $flag in
28653                 none)
28654                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28655 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
28656                     ;;
28657
28658                 -*)
28659                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28660 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
28661                     THREADS_CFLAGS="$flag"
28662                     ;;
28663
28664                 *)
28665                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28666 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
28667                     THREADS_LINK="-l$flag"
28668                     ;;
28669               esac
28670
28671               save_LIBS="$LIBS"
28672               save_CFLAGS="$CFLAGS"
28673               LIBS="$THREADS_LINK $LIBS"
28674               CFLAGS="$THREADS_CFLAGS $CFLAGS"
28675
28676               cat >conftest.$ac_ext <<_ACEOF
28677 #line $LINENO "configure"
28678 /* confdefs.h.  */
28679 _ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h.  */
28683 #include <pthread.h>
28684 int
28685 main ()
28686 {
28687 pthread_create(0,0,0,0);
28688   ;
28689   return 0;
28690 }
28691 _ACEOF
28692 rm -f conftest.$ac_objext conftest$ac_exeext
28693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28694   (eval $ac_link) 2>&5
28695   ac_status=$?
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); } &&
28698          { ac_try='test -s conftest$ac_exeext'
28699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700   (eval $ac_try) 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; }; then
28704   THREADS_OK=yes
28705 else
28706   echo "$as_me: failed program was:" >&5
28707 sed 's/^/| /' conftest.$ac_ext >&5
28708
28709 fi
28710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28711
28712               LIBS="$save_LIBS"
28713               CFLAGS="$save_CFLAGS"
28714
28715               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28716 echo "${ECHO_T}$THREADS_OK" >&6
28717               if test "x$THREADS_OK" = "xyes"; then
28718                       break;
28719               fi
28720
28721               THREADS_LINK=""
28722               THREADS_CFLAGS=""
28723       done
28724
28725       if test "x$THREADS_OK" != "xyes"; then
28726           wxUSE_THREADS=no
28727           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28728 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
28729       else
28730                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28731           LIBS="$THREADS_LINK $LIBS"
28732
28733           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28734 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
28735           flag=no
28736           case "${host}" in
28737             *-aix*)
28738                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28739                 flag="-D_THREAD_SAFE"
28740                 ;;
28741             *-freebsd*)
28742                 flag="-D_THREAD_SAFE"
28743                 ;;
28744             *-hp-hpux* )
28745                 flag="-D_REENTRANT"
28746                 if test "x$GCC" != "xyes"; then
28747                                         flag="$flag -D_RWSTD_MULTI_THREAD"
28748                 fi
28749                 ;;
28750             *solaris* | alpha*-osf*)
28751                 flag="-D_REENTRANT"
28752                 ;;
28753           esac
28754           echo "$as_me:$LINENO: result: ${flag}" >&5
28755 echo "${ECHO_T}${flag}" >&6
28756           if test "x$flag" != xno; then
28757               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
28758           fi
28759
28760           if test "x$THREADS_CFLAGS" != "x"; then
28761                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
28762             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28763           fi
28764       fi
28765     fi
28766
28767         if test "$wxUSE_THREADS" = "yes" ; then
28768
28769 for ac_func in thr_setconcurrency
28770 do
28771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28772 echo "$as_me:$LINENO: checking for $ac_func" >&5
28773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28774 if eval "test \"\${$as_ac_var+set}\" = set"; then
28775   echo $ECHO_N "(cached) $ECHO_C" >&6
28776 else
28777   cat >conftest.$ac_ext <<_ACEOF
28778 #line $LINENO "configure"
28779 /* confdefs.h.  */
28780 _ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h.  */
28784 /* System header to define __stub macros and hopefully few prototypes,
28785     which can conflict with char $ac_func (); below.
28786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28787     <limits.h> exists even on freestanding compilers.  */
28788 #ifdef __STDC__
28789 # include <limits.h>
28790 #else
28791 # include <assert.h>
28792 #endif
28793 /* Override any gcc2 internal prototype to avoid an error.  */
28794 #ifdef __cplusplus
28795 extern "C"
28796 {
28797 #endif
28798 /* We use char because int might match the return type of a gcc2
28799    builtin and then its argument prototype would still apply.  */
28800 char $ac_func ();
28801 /* The GNU C library defines this for functions which it implements
28802     to always fail with ENOSYS.  Some functions are actually named
28803     something starting with __ and the normal name is an alias.  */
28804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28805 choke me
28806 #else
28807 char (*f) () = $ac_func;
28808 #endif
28809 #ifdef __cplusplus
28810 }
28811 #endif
28812
28813 int
28814 main ()
28815 {
28816 return f != $ac_func;
28817   ;
28818   return 0;
28819 }
28820 _ACEOF
28821 rm -f conftest.$ac_objext conftest$ac_exeext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823   (eval $ac_link) 2>&5
28824   ac_status=$?
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } &&
28827          { ac_try='test -s conftest$ac_exeext'
28828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829   (eval $ac_try) 2>&5
28830   ac_status=$?
28831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832   (exit $ac_status); }; }; then
28833   eval "$as_ac_var=yes"
28834 else
28835   echo "$as_me: failed program was:" >&5
28836 sed 's/^/| /' conftest.$ac_ext >&5
28837
28838 eval "$as_ac_var=no"
28839 fi
28840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28841 fi
28842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28844 if test `eval echo '${'$as_ac_var'}'` = yes; then
28845   cat >>confdefs.h <<_ACEOF
28846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28847 _ACEOF
28848
28849 fi
28850 done
28851
28852
28853
28854 for ac_header in sched.h
28855 do
28856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28858   echo "$as_me:$LINENO: checking for $ac_header" >&5
28859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28861   echo $ECHO_N "(cached) $ECHO_C" >&6
28862 fi
28863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28865 else
28866   # Is the header compilable?
28867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28869 cat >conftest.$ac_ext <<_ACEOF
28870 #line $LINENO "configure"
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876 $ac_includes_default
28877 #include <$ac_header>
28878 _ACEOF
28879 rm -f conftest.$ac_objext
28880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28881   (eval $ac_compile) 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); } &&
28885          { ac_try='test -s conftest.$ac_objext'
28886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887   (eval $ac_try) 2>&5
28888   ac_status=$?
28889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890   (exit $ac_status); }; }; then
28891   ac_header_compiler=yes
28892 else
28893   echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28895
28896 ac_header_compiler=no
28897 fi
28898 rm -f conftest.$ac_objext conftest.$ac_ext
28899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28900 echo "${ECHO_T}$ac_header_compiler" >&6
28901
28902 # Is the header present?
28903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28905 cat >conftest.$ac_ext <<_ACEOF
28906 #line $LINENO "configure"
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912 #include <$ac_header>
28913 _ACEOF
28914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28916   ac_status=$?
28917   grep -v '^ *+' conftest.er1 >conftest.err
28918   rm -f conftest.er1
28919   cat conftest.err >&5
28920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921   (exit $ac_status); } >/dev/null; then
28922   if test -s conftest.err; then
28923     ac_cpp_err=$ac_c_preproc_warn_flag
28924   else
28925     ac_cpp_err=
28926   fi
28927 else
28928   ac_cpp_err=yes
28929 fi
28930 if test -z "$ac_cpp_err"; then
28931   ac_header_preproc=yes
28932 else
28933   echo "$as_me: failed program was:" >&5
28934 sed 's/^/| /' conftest.$ac_ext >&5
28935
28936   ac_header_preproc=no
28937 fi
28938 rm -f conftest.err conftest.$ac_ext
28939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28940 echo "${ECHO_T}$ac_header_preproc" >&6
28941
28942 # So?  What about this header?
28943 case $ac_header_compiler:$ac_header_preproc in
28944   yes:no )
28945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28949     (
28950       cat <<\_ASBOX
28951 ## ------------------------------------ ##
28952 ## Report this to bug-autoconf@gnu.org. ##
28953 ## ------------------------------------ ##
28954 _ASBOX
28955     ) |
28956       sed "s/^/$as_me: WARNING:     /" >&2
28957     ;;
28958   no:yes )
28959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28961     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28965     (
28966       cat <<\_ASBOX
28967 ## ------------------------------------ ##
28968 ## Report this to bug-autoconf@gnu.org. ##
28969 ## ------------------------------------ ##
28970 _ASBOX
28971     ) |
28972       sed "s/^/$as_me: WARNING:     /" >&2
28973     ;;
28974 esac
28975 echo "$as_me:$LINENO: checking for $ac_header" >&5
28976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28978   echo $ECHO_N "(cached) $ECHO_C" >&6
28979 else
28980   eval "$as_ac_Header=$ac_header_preproc"
28981 fi
28982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28984
28985 fi
28986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28987   cat >>confdefs.h <<_ACEOF
28988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28989 _ACEOF
28990
28991 fi
28992
28993 done
28994
28995       if test "$ac_cv_header_sched_h" = "yes"; then
28996           echo "$as_me:$LINENO: checking for sched_yield" >&5
28997 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
28998 if test "${ac_cv_func_sched_yield+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   cat >conftest.$ac_ext <<_ACEOF
29002 #line $LINENO "configure"
29003 /* confdefs.h.  */
29004 _ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h.  */
29008 /* System header to define __stub macros and hopefully few prototypes,
29009     which can conflict with char sched_yield (); below.
29010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29011     <limits.h> exists even on freestanding compilers.  */
29012 #ifdef __STDC__
29013 # include <limits.h>
29014 #else
29015 # include <assert.h>
29016 #endif
29017 /* Override any gcc2 internal prototype to avoid an error.  */
29018 #ifdef __cplusplus
29019 extern "C"
29020 {
29021 #endif
29022 /* We use char because int might match the return type of a gcc2
29023    builtin and then its argument prototype would still apply.  */
29024 char sched_yield ();
29025 /* The GNU C library defines this for functions which it implements
29026     to always fail with ENOSYS.  Some functions are actually named
29027     something starting with __ and the normal name is an alias.  */
29028 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29029 choke me
29030 #else
29031 char (*f) () = sched_yield;
29032 #endif
29033 #ifdef __cplusplus
29034 }
29035 #endif
29036
29037 int
29038 main ()
29039 {
29040 return f != sched_yield;
29041   ;
29042   return 0;
29043 }
29044 _ACEOF
29045 rm -f conftest.$ac_objext conftest$ac_exeext
29046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29047   (eval $ac_link) 2>&5
29048   ac_status=$?
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); } &&
29051          { ac_try='test -s conftest$ac_exeext'
29052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053   (eval $ac_try) 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; }; then
29057   ac_cv_func_sched_yield=yes
29058 else
29059   echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062 ac_cv_func_sched_yield=no
29063 fi
29064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29065 fi
29066 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29067 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29068 if test $ac_cv_func_sched_yield = yes; then
29069   cat >>confdefs.h <<\_ACEOF
29070 #define HAVE_SCHED_YIELD 1
29071 _ACEOF
29072
29073 else
29074
29075                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29076 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29077 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29078   echo $ECHO_N "(cached) $ECHO_C" >&6
29079 else
29080   ac_check_lib_save_LIBS=$LIBS
29081 LIBS="-lposix4  $LIBS"
29082 cat >conftest.$ac_ext <<_ACEOF
29083 #line $LINENO "configure"
29084 /* confdefs.h.  */
29085 _ACEOF
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h.  */
29089
29090 /* Override any gcc2 internal prototype to avoid an error.  */
29091 #ifdef __cplusplus
29092 extern "C"
29093 #endif
29094 /* We use char because int might match the return type of a gcc2
29095    builtin and then its argument prototype would still apply.  */
29096 char sched_yield ();
29097 int
29098 main ()
29099 {
29100 sched_yield ();
29101   ;
29102   return 0;
29103 }
29104 _ACEOF
29105 rm -f conftest.$ac_objext conftest$ac_exeext
29106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29107   (eval $ac_link) 2>&5
29108   ac_status=$?
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } &&
29111          { ac_try='test -s conftest$ac_exeext'
29112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113   (eval $ac_try) 2>&5
29114   ac_status=$?
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); }; }; then
29117   ac_cv_lib_posix4_sched_yield=yes
29118 else
29119   echo "$as_me: failed program was:" >&5
29120 sed 's/^/| /' conftest.$ac_ext >&5
29121
29122 ac_cv_lib_posix4_sched_yield=no
29123 fi
29124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29125 LIBS=$ac_check_lib_save_LIBS
29126 fi
29127 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29128 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29129 if test $ac_cv_lib_posix4_sched_yield = yes; then
29130   cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_SCHED_YIELD 1
29132 _ACEOF
29133  POSIX4_LINK=" -lposix4"
29134 else
29135   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29136 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29137
29138 fi
29139
29140
29141
29142 fi
29143
29144       fi
29145
29146                                           HAVE_PRIOR_FUNCS=0
29147       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29148 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29149 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29150   echo $ECHO_N "(cached) $ECHO_C" >&6
29151 else
29152   cat >conftest.$ac_ext <<_ACEOF
29153 #line $LINENO "configure"
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159 /* System header to define __stub macros and hopefully few prototypes,
29160     which can conflict with char pthread_attr_getschedpolicy (); below.
29161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29162     <limits.h> exists even on freestanding compilers.  */
29163 #ifdef __STDC__
29164 # include <limits.h>
29165 #else
29166 # include <assert.h>
29167 #endif
29168 /* Override any gcc2 internal prototype to avoid an error.  */
29169 #ifdef __cplusplus
29170 extern "C"
29171 {
29172 #endif
29173 /* We use char because int might match the return type of a gcc2
29174    builtin and then its argument prototype would still apply.  */
29175 char pthread_attr_getschedpolicy ();
29176 /* The GNU C library defines this for functions which it implements
29177     to always fail with ENOSYS.  Some functions are actually named
29178     something starting with __ and the normal name is an alias.  */
29179 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29180 choke me
29181 #else
29182 char (*f) () = pthread_attr_getschedpolicy;
29183 #endif
29184 #ifdef __cplusplus
29185 }
29186 #endif
29187
29188 int
29189 main ()
29190 {
29191 return f != pthread_attr_getschedpolicy;
29192   ;
29193   return 0;
29194 }
29195 _ACEOF
29196 rm -f conftest.$ac_objext conftest$ac_exeext
29197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29198   (eval $ac_link) 2>&5
29199   ac_status=$?
29200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201   (exit $ac_status); } &&
29202          { ac_try='test -s conftest$ac_exeext'
29203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204   (eval $ac_try) 2>&5
29205   ac_status=$?
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); }; }; then
29208   ac_cv_func_pthread_attr_getschedpolicy=yes
29209 else
29210   echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29212
29213 ac_cv_func_pthread_attr_getschedpolicy=no
29214 fi
29215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29216 fi
29217 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29218 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29219 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29220   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29221 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29222 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29223   echo $ECHO_N "(cached) $ECHO_C" >&6
29224 else
29225   cat >conftest.$ac_ext <<_ACEOF
29226 #line $LINENO "configure"
29227 /* confdefs.h.  */
29228 _ACEOF
29229 cat confdefs.h >>conftest.$ac_ext
29230 cat >>conftest.$ac_ext <<_ACEOF
29231 /* end confdefs.h.  */
29232 /* System header to define __stub macros and hopefully few prototypes,
29233     which can conflict with char pthread_attr_setschedparam (); below.
29234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29235     <limits.h> exists even on freestanding compilers.  */
29236 #ifdef __STDC__
29237 # include <limits.h>
29238 #else
29239 # include <assert.h>
29240 #endif
29241 /* Override any gcc2 internal prototype to avoid an error.  */
29242 #ifdef __cplusplus
29243 extern "C"
29244 {
29245 #endif
29246 /* We use char because int might match the return type of a gcc2
29247    builtin and then its argument prototype would still apply.  */
29248 char pthread_attr_setschedparam ();
29249 /* The GNU C library defines this for functions which it implements
29250     to always fail with ENOSYS.  Some functions are actually named
29251     something starting with __ and the normal name is an alias.  */
29252 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29253 choke me
29254 #else
29255 char (*f) () = pthread_attr_setschedparam;
29256 #endif
29257 #ifdef __cplusplus
29258 }
29259 #endif
29260
29261 int
29262 main ()
29263 {
29264 return f != pthread_attr_setschedparam;
29265   ;
29266   return 0;
29267 }
29268 _ACEOF
29269 rm -f conftest.$ac_objext conftest$ac_exeext
29270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29271   (eval $ac_link) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); } &&
29275          { ac_try='test -s conftest$ac_exeext'
29276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277   (eval $ac_try) 2>&5
29278   ac_status=$?
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); }; }; then
29281   ac_cv_func_pthread_attr_setschedparam=yes
29282 else
29283   echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29285
29286 ac_cv_func_pthread_attr_setschedparam=no
29287 fi
29288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29289 fi
29290 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29291 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29292 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29293   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29294 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29295 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298   cat >conftest.$ac_ext <<_ACEOF
29299 #line $LINENO "configure"
29300 /* confdefs.h.  */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h.  */
29305 /* System header to define __stub macros and hopefully few prototypes,
29306     which can conflict with char sched_get_priority_max (); below.
29307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29308     <limits.h> exists even on freestanding compilers.  */
29309 #ifdef __STDC__
29310 # include <limits.h>
29311 #else
29312 # include <assert.h>
29313 #endif
29314 /* Override any gcc2 internal prototype to avoid an error.  */
29315 #ifdef __cplusplus
29316 extern "C"
29317 {
29318 #endif
29319 /* We use char because int might match the return type of a gcc2
29320    builtin and then its argument prototype would still apply.  */
29321 char sched_get_priority_max ();
29322 /* The GNU C library defines this for functions which it implements
29323     to always fail with ENOSYS.  Some functions are actually named
29324     something starting with __ and the normal name is an alias.  */
29325 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29326 choke me
29327 #else
29328 char (*f) () = sched_get_priority_max;
29329 #endif
29330 #ifdef __cplusplus
29331 }
29332 #endif
29333
29334 int
29335 main ()
29336 {
29337 return f != sched_get_priority_max;
29338   ;
29339   return 0;
29340 }
29341 _ACEOF
29342 rm -f conftest.$ac_objext conftest$ac_exeext
29343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29344   (eval $ac_link) 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); } &&
29348          { ac_try='test -s conftest$ac_exeext'
29349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29350   (eval $ac_try) 2>&5
29351   ac_status=$?
29352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353   (exit $ac_status); }; }; then
29354   ac_cv_func_sched_get_priority_max=yes
29355 else
29356   echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29358
29359 ac_cv_func_sched_get_priority_max=no
29360 fi
29361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29362 fi
29363 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29364 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29365 if test $ac_cv_func_sched_get_priority_max = yes; then
29366   HAVE_PRIOR_FUNCS=1
29367 else
29368   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29369 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29370 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29371   echo $ECHO_N "(cached) $ECHO_C" >&6
29372 else
29373   ac_check_lib_save_LIBS=$LIBS
29374 LIBS="-lposix4  $LIBS"
29375 cat >conftest.$ac_ext <<_ACEOF
29376 #line $LINENO "configure"
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29382
29383 /* Override any gcc2 internal prototype to avoid an error.  */
29384 #ifdef __cplusplus
29385 extern "C"
29386 #endif
29387 /* We use char because int might match the return type of a gcc2
29388    builtin and then its argument prototype would still apply.  */
29389 char sched_get_priority_max ();
29390 int
29391 main ()
29392 {
29393 sched_get_priority_max ();
29394   ;
29395   return 0;
29396 }
29397 _ACEOF
29398 rm -f conftest.$ac_objext conftest$ac_exeext
29399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29400   (eval $ac_link) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } &&
29404          { ac_try='test -s conftest$ac_exeext'
29405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406   (eval $ac_try) 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   ac_cv_lib_posix4_sched_get_priority_max=yes
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415 ac_cv_lib_posix4_sched_get_priority_max=no
29416 fi
29417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29418 LIBS=$ac_check_lib_save_LIBS
29419 fi
29420 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29421 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29422 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
29423
29424                                 HAVE_PRIOR_FUNCS=1
29425                                 POSIX4_LINK=" -lposix4"
29426
29427 fi
29428
29429
29430 fi
29431
29432
29433 fi
29434
29435
29436 fi
29437
29438
29439       if test "$HAVE_PRIOR_FUNCS" = 1; then
29440         cat >>confdefs.h <<\_ACEOF
29441 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
29442 _ACEOF
29443
29444       else
29445         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29446 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
29447       fi
29448
29449       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29450 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29451 if test "${ac_cv_func_pthread_cancel+set}" = set; then
29452   echo $ECHO_N "(cached) $ECHO_C" >&6
29453 else
29454   cat >conftest.$ac_ext <<_ACEOF
29455 #line $LINENO "configure"
29456 /* confdefs.h.  */
29457 _ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h.  */
29461 /* System header to define __stub macros and hopefully few prototypes,
29462     which can conflict with char pthread_cancel (); below.
29463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29464     <limits.h> exists even on freestanding compilers.  */
29465 #ifdef __STDC__
29466 # include <limits.h>
29467 #else
29468 # include <assert.h>
29469 #endif
29470 /* Override any gcc2 internal prototype to avoid an error.  */
29471 #ifdef __cplusplus
29472 extern "C"
29473 {
29474 #endif
29475 /* We use char because int might match the return type of a gcc2
29476    builtin and then its argument prototype would still apply.  */
29477 char pthread_cancel ();
29478 /* The GNU C library defines this for functions which it implements
29479     to always fail with ENOSYS.  Some functions are actually named
29480     something starting with __ and the normal name is an alias.  */
29481 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29482 choke me
29483 #else
29484 char (*f) () = pthread_cancel;
29485 #endif
29486 #ifdef __cplusplus
29487 }
29488 #endif
29489
29490 int
29491 main ()
29492 {
29493 return f != pthread_cancel;
29494   ;
29495   return 0;
29496 }
29497 _ACEOF
29498 rm -f conftest.$ac_objext conftest$ac_exeext
29499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29500   (eval $ac_link) 2>&5
29501   ac_status=$?
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); } &&
29504          { ac_try='test -s conftest$ac_exeext'
29505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506   (eval $ac_try) 2>&5
29507   ac_status=$?
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); }; }; then
29510   ac_cv_func_pthread_cancel=yes
29511 else
29512   echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515 ac_cv_func_pthread_cancel=no
29516 fi
29517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29518 fi
29519 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29520 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29521 if test $ac_cv_func_pthread_cancel = yes; then
29522   cat >>confdefs.h <<\_ACEOF
29523 #define HAVE_PTHREAD_CANCEL 1
29524 _ACEOF
29525
29526 else
29527   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29528 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
29529 fi
29530
29531
29532       echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29533 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29534 if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29535   echo $ECHO_N "(cached) $ECHO_C" >&6
29536 else
29537
29538         cat >conftest.$ac_ext <<_ACEOF
29539 #line $LINENO "configure"
29540 /* confdefs.h.  */
29541 _ACEOF
29542 cat confdefs.h >>conftest.$ac_ext
29543 cat >>conftest.$ac_ext <<_ACEOF
29544 /* end confdefs.h.  */
29545 #include <pthread.h>
29546 int
29547 main ()
29548 {
29549
29550                         pthread_cleanup_push(NULL, NULL);
29551                         pthread_cleanup_pop(0);
29552
29553   ;
29554   return 0;
29555 }
29556 _ACEOF
29557 rm -f conftest.$ac_objext
29558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29559   (eval $ac_compile) 2>&5
29560   ac_status=$?
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); } &&
29563          { ac_try='test -s conftest.$ac_objext'
29564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565   (eval $ac_try) 2>&5
29566   ac_status=$?
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); }; }; then
29569
29570                         wx_cv_func_pthread_cleanup_push=yes
29571
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576
29577                         wx_cv_func_pthread_cleanup_push=no
29578
29579 fi
29580 rm -f conftest.$ac_objext conftest.$ac_ext
29581
29582 fi
29583 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29584 echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
29585
29586       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
29587           cat >>confdefs.h <<\_ACEOF
29588 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
29589 _ACEOF
29590
29591       fi
29592
29593
29594       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29595 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29596 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599
29600         cat >conftest.$ac_ext <<_ACEOF
29601 #line $LINENO "configure"
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607 #include <pthread.h>
29608 int
29609 main ()
29610 {
29611
29612                pthread_mutexattr_t attr;
29613                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
29614
29615   ;
29616   return 0;
29617 }
29618 _ACEOF
29619 rm -f conftest.$ac_objext
29620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29621   (eval $ac_compile) 2>&5
29622   ac_status=$?
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); } &&
29625          { ac_try='test -s conftest.$ac_objext'
29626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627   (eval $ac_try) 2>&5
29628   ac_status=$?
29629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); }; }; then
29631
29632                wx_cv_type_pthread_mutexattr_t=yes
29633
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29637
29638
29639                wx_cv_type_pthread_mutexattr_t=no
29640
29641
29642 fi
29643 rm -f conftest.$ac_objext conftest.$ac_ext
29644
29645 fi
29646 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29647 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
29648
29649       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
29650         cat >>confdefs.h <<\_ACEOF
29651 #define HAVE_PTHREAD_MUTEXATTR_T 1
29652 _ACEOF
29653
29654       else
29655                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29656 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29657 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29658   echo $ECHO_N "(cached) $ECHO_C" >&6
29659 else
29660
29661             cat >conftest.$ac_ext <<_ACEOF
29662 #line $LINENO "configure"
29663 /* confdefs.h.  */
29664 _ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h.  */
29668 #include <pthread.h>
29669 int
29670 main ()
29671 {
29672
29673                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
29674
29675   ;
29676   return 0;
29677 }
29678 _ACEOF
29679 rm -f conftest.$ac_objext
29680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29681   (eval $ac_compile) 2>&5
29682   ac_status=$?
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); } &&
29685          { ac_try='test -s conftest.$ac_objext'
29686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687   (eval $ac_try) 2>&5
29688   ac_status=$?
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); }; }; then
29691
29692                     wx_cv_type_pthread_rec_mutex_init=yes
29693
29694 else
29695   echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29697
29698
29699                     wx_cv_type_pthread_rec_mutex_init=no
29700
29701
29702 fi
29703 rm -f conftest.$ac_objext conftest.$ac_ext
29704
29705 fi
29706 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29707 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
29708         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
29709           cat >>confdefs.h <<\_ACEOF
29710 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
29711 _ACEOF
29712
29713         else
29714                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29715 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
29716         fi
29717       fi
29718     fi
29719
29720 else
29721     if test "$wxUSE_THREADS" = "yes" ; then
29722       case "${host}" in
29723         *-*-mingw32* )
29724                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29725 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29726 if test "${wx_cv_cflags_mthread+set}" = set; then
29727   echo $ECHO_N "(cached) $ECHO_C" >&6
29728 else
29729
29730                     CFLAGS_OLD="$CFLAGS"
29731                     CFLAGS="$CFLAGS -mthreads"
29732                     cat >conftest.$ac_ext <<_ACEOF
29733 #line $LINENO "configure"
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739
29740 int
29741 main ()
29742 {
29743
29744   ;
29745   return 0;
29746 }
29747 _ACEOF
29748 rm -f conftest.$ac_objext
29749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29750   (eval $ac_compile) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -s conftest.$ac_objext'
29755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756   (eval $ac_try) 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); }; }; then
29760   wx_cv_cflags_mthread=yes
29761 else
29762   echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29764
29765 wx_cv_cflags_mthread=no
29766
29767 fi
29768 rm -f conftest.$ac_objext conftest.$ac_ext
29769
29770
29771 fi
29772 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29773 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
29774
29775             if test "$wx_cv_cflags_mthread" = "yes"; then
29776                                 CXXFLAGS="$CXXFLAGS -mthreads"
29777                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29778                 LDFLAGS="$LDFLAGS -mthreads"
29779             else
29780                                 CFLAGS="$CFLAGS_OLD"
29781             fi
29782         ;;
29783       esac
29784     fi
29785 fi
29786
29787 if test "$wxUSE_THREADS" = "yes"; then
29788   cat >>confdefs.h <<\_ACEOF
29789 #define wxUSE_THREADS 1
29790 _ACEOF
29791
29792
29793   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
29794 else
29795       if test "$ac_cv_func_strtok_r" = "yes"; then
29796     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29797 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
29798     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29799         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
29800         echo "$as_me:$LINENO: result: yes" >&5
29801 echo "${ECHO_T}yes" >&6
29802     else
29803         echo "$as_me:$LINENO: result: no" >&5
29804 echo "${ECHO_T}no" >&6
29805     fi
29806   fi
29807 fi
29808
29809 if test "$WXGTK20" = 1 ; then
29810   cat >>confdefs.h <<_ACEOF
29811 #define __WXGTK20__ $WXGTK20
29812 _ACEOF
29813
29814   WXGTK12=1
29815 fi
29816
29817 if test "$WXGTK12" = 1 ; then
29818   cat >>confdefs.h <<_ACEOF
29819 #define __WXGTK12__ $WXGTK12
29820 _ACEOF
29821
29822 fi
29823
29824 if test "$WXGTK127" = 1 ; then
29825   cat >>confdefs.h <<_ACEOF
29826 #define __WXGTK127__ $WXGTK127
29827 _ACEOF
29828
29829 fi
29830
29831 WXDEBUG=
29832
29833 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29834     WXDEBUG="-g"
29835     wxUSE_OPTIMISE=no
29836 fi
29837
29838 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29839     wxUSE_DEBUG_INFO=yes
29840     WXDEBUG="-ggdb"
29841 fi
29842
29843 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
29844     cat >>confdefs.h <<\_ACEOF
29845 #define WXDEBUG 1
29846 _ACEOF
29847
29848     WXDEBUG_DEFINE="-D__WXDEBUG__"
29849 else
29850     if test "$wxUSE_GTK" = 1 ; then
29851         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29852     fi
29853 fi
29854
29855 if test "$wxUSE_MEM_TRACING" = "yes" ; then
29856     cat >>confdefs.h <<\_ACEOF
29857 #define wxUSE_MEMORY_TRACING 1
29858 _ACEOF
29859
29860     cat >>confdefs.h <<\_ACEOF
29861 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
29862 _ACEOF
29863
29864     cat >>confdefs.h <<\_ACEOF
29865 #define wxUSE_DEBUG_NEW_ALWAYS 1
29866 _ACEOF
29867
29868     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29869 fi
29870
29871 if test "$wxUSE_DMALLOC" = "yes" ; then
29872     DMALLOC_LIBS="-ldmalloc"
29873 fi
29874
29875 PROFILE=
29876 if test "$wxUSE_PROFILE" = "yes" ; then
29877     PROFILE=" -pg"
29878 fi
29879
29880 CODE_GEN_FLAGS=
29881 CODE_GEN_FLAGS_CXX=
29882 if test "$GCC" = "yes" ; then
29883     if test "$wxUSE_NO_RTTI" = "yes" ; then
29884         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
29885     fi
29886     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29887         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29888     fi
29889     if test "$wxUSE_PERMISSIVE" = "yes" ; then
29890         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29891     fi
29892
29893                                                 case "${host}" in
29894       powerpc*-*-aix* )
29895         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29896         ;;
29897       *-hppa* )
29898         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29899         ;;
29900     esac
29901 fi
29902
29903 OPTIMISE=
29904 if test "$wxUSE_OPTIMISE" = "no" ; then
29905     if test "$GCC" = yes ; then
29906                         OPTIMISE="-O0"
29907     fi
29908 else
29909     if test "$GCC" = yes ; then
29910         OPTIMISE="-O2"
29911
29912                 case "${host}" in
29913             i586-*-*|i686-*-* )
29914             OPTIMISE="${OPTIMISE} "
29915         ;;
29916         esac
29917     else
29918         OPTIMISE="-O"
29919     fi
29920 fi
29921
29922
29923 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
29924     cat >>confdefs.h <<\_ACEOF
29925 #define WXWIN_COMPATIBILITY_2 1
29926 _ACEOF
29927
29928
29929     WXWIN_COMPATIBILITY_2_2="yes"
29930 fi
29931
29932 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
29933     cat >>confdefs.h <<\_ACEOF
29934 #define WXWIN_COMPATIBILITY_2_2 1
29935 _ACEOF
29936
29937
29938     WXWIN_COMPATIBILITY_2_4="yes"
29939 fi
29940
29941 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
29942     cat >>confdefs.h <<\_ACEOF
29943 #define WXWIN_COMPATIBILITY_2_4 1
29944 _ACEOF
29945
29946 fi
29947
29948
29949 if test "$wxUSE_GUI" = "yes"; then
29950   cat >>confdefs.h <<\_ACEOF
29951 #define wxUSE_GUI 1
29952 _ACEOF
29953
29954
29955                       else
29956   cat >>confdefs.h <<\_ACEOF
29957 #define wxUSE_NOGUI 1
29958 _ACEOF
29959
29960 fi
29961
29962
29963 if test "$wxUSE_UNIX" = "yes"; then
29964   cat >>confdefs.h <<\_ACEOF
29965 #define wxUSE_UNIX 1
29966 _ACEOF
29967
29968 fi
29969
29970
29971 if test "$wxUSE_STL" = "yes"; then
29972   cat >>confdefs.h <<\_ACEOF
29973 #define wxUSE_STL 1
29974 _ACEOF
29975
29976 fi
29977
29978 if test "$wxUSE_APPLE_IEEE" = "yes"; then
29979   cat >>confdefs.h <<\_ACEOF
29980 #define wxUSE_APPLE_IEEE 1
29981 _ACEOF
29982
29983 fi
29984
29985 if test "$wxUSE_TIMER" = "yes"; then
29986   cat >>confdefs.h <<\_ACEOF
29987 #define wxUSE_TIMER 1
29988 _ACEOF
29989
29990 fi
29991
29992 if test "$wxUSE_WAVE" = "yes"; then
29993   cat >>confdefs.h <<\_ACEOF
29994 #define wxUSE_WAVE 1
29995 _ACEOF
29996
29997 fi
29998
29999 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
30000   cat >>confdefs.h <<\_ACEOF
30001 #define wxUSE_CMDLINE_PARSER 1
30002 _ACEOF
30003
30004 fi
30005
30006 if test "$wxUSE_STOPWATCH" = "yes"; then
30007   cat >>confdefs.h <<\_ACEOF
30008 #define wxUSE_STOPWATCH 1
30009 _ACEOF
30010
30011 fi
30012
30013 if test "$wxUSE_DATETIME" = "yes"; then
30014   cat >>confdefs.h <<\_ACEOF
30015 #define wxUSE_DATETIME 1
30016 _ACEOF
30017
30018 fi
30019
30020 if test "$wxUSE_FILE" = "yes"; then
30021   cat >>confdefs.h <<\_ACEOF
30022 #define wxUSE_FILE 1
30023 _ACEOF
30024
30025 fi
30026
30027 if test "$wxUSE_FFILE" = "yes"; then
30028   cat >>confdefs.h <<\_ACEOF
30029 #define wxUSE_FFILE 1
30030 _ACEOF
30031
30032 fi
30033
30034 if test "$wxUSE_FILESYSTEM" = "yes"; then
30035   cat >>confdefs.h <<\_ACEOF
30036 #define wxUSE_FILESYSTEM 1
30037 _ACEOF
30038
30039 fi
30040
30041 if test "$wxUSE_FS_ZIP" = "yes"; then
30042   cat >>confdefs.h <<\_ACEOF
30043 #define wxUSE_FS_ZIP 1
30044 _ACEOF
30045
30046 fi
30047
30048 if test "$wxUSE_ZIPSTREAM" = "yes"; then
30049   cat >>confdefs.h <<\_ACEOF
30050 #define wxUSE_ZIPSTREAM 1
30051 _ACEOF
30052
30053 fi
30054
30055 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30056   cat >>confdefs.h <<\_ACEOF
30057 #define wxUSE_ON_FATAL_EXCEPTION 1
30058 _ACEOF
30059
30060 fi
30061
30062 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30063   cat >>confdefs.h <<\_ACEOF
30064 #define wxUSE_SNGLINST_CHECKER 1
30065 _ACEOF
30066
30067 fi
30068
30069 if test "$wxUSE_BUSYINFO" = "yes"; then
30070   cat >>confdefs.h <<\_ACEOF
30071 #define wxUSE_BUSYINFO 1
30072 _ACEOF
30073
30074 fi
30075
30076 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
30077   cat >>confdefs.h <<\_ACEOF
30078 #define wxUSE_STD_IOSTREAM 1
30079 _ACEOF
30080
30081 fi
30082
30083 if test "$wxUSE_TEXTBUFFER" = "yes"; then
30084     cat >>confdefs.h <<\_ACEOF
30085 #define wxUSE_TEXTBUFFER 1
30086 _ACEOF
30087
30088 fi
30089
30090 if test "$wxUSE_TEXTFILE" = "yes"; then
30091   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
30092     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30093 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
30094   else
30095     cat >>confdefs.h <<\_ACEOF
30096 #define wxUSE_TEXTFILE 1
30097 _ACEOF
30098
30099   fi
30100 fi
30101
30102 if test "$wxUSE_CONFIG" = "yes" ; then
30103   if test "$wxUSE_TEXTFILE" != "yes"; then
30104     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30105 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
30106   else
30107     cat >>confdefs.h <<\_ACEOF
30108 #define wxUSE_CONFIG 1
30109 _ACEOF
30110
30111     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30112   fi
30113 fi
30114
30115 if test "$wxUSE_INTL" = "yes" ; then
30116   if test "$wxUSE_FILE" != "yes"; then
30117     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30118 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
30119   else
30120     cat >>confdefs.h <<\_ACEOF
30121 #define wxUSE_INTL 1
30122 _ACEOF
30123
30124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
30125     GUIDIST="$GUIDIST INTL_DIST"
30126   fi
30127 fi
30128
30129 if test "$wxUSE_LOG" = "yes"; then
30130   cat >>confdefs.h <<\_ACEOF
30131 #define wxUSE_LOG 1
30132 _ACEOF
30133
30134
30135     if test "$wxUSE_LOGGUI" = "yes"; then
30136       cat >>confdefs.h <<\_ACEOF
30137 #define wxUSE_LOGGUI 1
30138 _ACEOF
30139
30140     fi
30141
30142     if test "$wxUSE_LOGWINDOW" = "yes"; then
30143       cat >>confdefs.h <<\_ACEOF
30144 #define wxUSE_LOGWINDOW 1
30145 _ACEOF
30146
30147     fi
30148
30149     if test "$wxUSE_LOGDIALOG" = "yes"; then
30150       cat >>confdefs.h <<\_ACEOF
30151 #define wxUSE_LOG_DIALOG 1
30152 _ACEOF
30153
30154     fi
30155 fi
30156
30157 if test "$wxUSE_LONGLONG" = "yes"; then
30158   cat >>confdefs.h <<\_ACEOF
30159 #define wxUSE_LONGLONG 1
30160 _ACEOF
30161
30162 fi
30163
30164 if test "$wxUSE_GEOMETRY" = "yes"; then
30165   cat >>confdefs.h <<\_ACEOF
30166 #define wxUSE_GEOMETRY 1
30167 _ACEOF
30168
30169 fi
30170
30171 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
30172   cat >>confdefs.h <<\_ACEOF
30173 #define wxUSE_DIALUP_MANAGER 1
30174 _ACEOF
30175
30176   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
30177 fi
30178
30179 if test "$wxUSE_STREAMS" = "yes" ; then
30180   cat >>confdefs.h <<\_ACEOF
30181 #define wxUSE_STREAMS 1
30182 _ACEOF
30183
30184 fi
30185
30186
30187 if test "$wxUSE_DATETIME" = "yes"; then
30188
30189 for ac_func in strptime
30190 do
30191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30192 echo "$as_me:$LINENO: checking for $ac_func" >&5
30193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30194 if eval "test \"\${$as_ac_var+set}\" = set"; then
30195   echo $ECHO_N "(cached) $ECHO_C" >&6
30196 else
30197   cat >conftest.$ac_ext <<_ACEOF
30198 #line $LINENO "configure"
30199 /* confdefs.h.  */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h.  */
30204 /* System header to define __stub macros and hopefully few prototypes,
30205     which can conflict with char $ac_func (); below.
30206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30207     <limits.h> exists even on freestanding compilers.  */
30208 #ifdef __STDC__
30209 # include <limits.h>
30210 #else
30211 # include <assert.h>
30212 #endif
30213 /* Override any gcc2 internal prototype to avoid an error.  */
30214 #ifdef __cplusplus
30215 extern "C"
30216 {
30217 #endif
30218 /* We use char because int might match the return type of a gcc2
30219    builtin and then its argument prototype would still apply.  */
30220 char $ac_func ();
30221 /* The GNU C library defines this for functions which it implements
30222     to always fail with ENOSYS.  Some functions are actually named
30223     something starting with __ and the normal name is an alias.  */
30224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30225 choke me
30226 #else
30227 char (*f) () = $ac_func;
30228 #endif
30229 #ifdef __cplusplus
30230 }
30231 #endif
30232
30233 int
30234 main ()
30235 {
30236 return f != $ac_func;
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30243   (eval $ac_link) 2>&5
30244   ac_status=$?
30245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246   (exit $ac_status); } &&
30247          { ac_try='test -s conftest$ac_exeext'
30248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30249   (eval $ac_try) 2>&5
30250   ac_status=$?
30251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252   (exit $ac_status); }; }; then
30253   eval "$as_ac_var=yes"
30254 else
30255   echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30257
30258 eval "$as_ac_var=no"
30259 fi
30260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30261 fi
30262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30264 if test `eval echo '${'$as_ac_var'}'` = yes; then
30265   cat >>confdefs.h <<_ACEOF
30266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30267 _ACEOF
30268
30269 fi
30270 done
30271
30272
30273             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30274 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30275 if test "${wx_cv_var_timezone+set}" = set; then
30276   echo $ECHO_N "(cached) $ECHO_C" >&6
30277 else
30278
30279                         cat >conftest.$ac_ext <<_ACEOF
30280 #line $LINENO "configure"
30281 /* confdefs.h.  */
30282 _ACEOF
30283 cat confdefs.h >>conftest.$ac_ext
30284 cat >>conftest.$ac_ext <<_ACEOF
30285 /* end confdefs.h.  */
30286
30287                                 #include <time.h>
30288
30289 int
30290 main ()
30291 {
30292
30293                                 int tz;
30294                                 tz = timezone;
30295
30296   ;
30297   return 0;
30298 }
30299 _ACEOF
30300 rm -f conftest.$ac_objext
30301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30302   (eval $ac_compile) 2>&5
30303   ac_status=$?
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); } &&
30306          { ac_try='test -s conftest.$ac_objext'
30307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308   (eval $ac_try) 2>&5
30309   ac_status=$?
30310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311   (exit $ac_status); }; }; then
30312
30313                                 wx_cv_var_timezone=timezone
30314
30315 else
30316   echo "$as_me: failed program was:" >&5
30317 sed 's/^/| /' conftest.$ac_ext >&5
30318
30319
30320                                 cat >conftest.$ac_ext <<_ACEOF
30321 #line $LINENO "configure"
30322 /* confdefs.h.  */
30323 _ACEOF
30324 cat confdefs.h >>conftest.$ac_ext
30325 cat >>conftest.$ac_ext <<_ACEOF
30326 /* end confdefs.h.  */
30327
30328                                         #include <time.h>
30329
30330 int
30331 main ()
30332 {
30333
30334                                         int tz;
30335                                         tz = _timezone;
30336
30337   ;
30338   return 0;
30339 }
30340 _ACEOF
30341 rm -f conftest.$ac_objext
30342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30343   (eval $ac_compile) 2>&5
30344   ac_status=$?
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); } &&
30347          { ac_try='test -s conftest.$ac_objext'
30348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349   (eval $ac_try) 2>&5
30350   ac_status=$?
30351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352   (exit $ac_status); }; }; then
30353
30354                                         wx_cv_var_timezone=_timezone
30355
30356 else
30357   echo "$as_me: failed program was:" >&5
30358 sed 's/^/| /' conftest.$ac_ext >&5
30359
30360
30361                                         cat >conftest.$ac_ext <<_ACEOF
30362 #line $LINENO "configure"
30363 /* confdefs.h.  */
30364 _ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h.  */
30368
30369                                                 #include <time.h>
30370
30371 int
30372 main ()
30373 {
30374
30375                                                 int tz;
30376                                                 tz = __timezone;
30377
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 rm -f conftest.$ac_objext
30383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30384   (eval $ac_compile) 2>&5
30385   ac_status=$?
30386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387   (exit $ac_status); } &&
30388          { ac_try='test -s conftest.$ac_objext'
30389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390   (eval $ac_try) 2>&5
30391   ac_status=$?
30392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393   (exit $ac_status); }; }; then
30394
30395                                                 wx_cv_var_timezone=__timezone
30396
30397 else
30398   echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30400
30401
30402                                                 if test "$USE_DOS" = 0 ; then
30403                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30404 echo "$as_me: WARNING: no timezone variable" >&2;}
30405                                                 fi
30406
30407
30408 fi
30409 rm -f conftest.$ac_objext conftest.$ac_ext
30410
30411
30412 fi
30413 rm -f conftest.$ac_objext conftest.$ac_ext
30414
30415
30416 fi
30417 rm -f conftest.$ac_objext conftest.$ac_ext
30418
30419
30420 fi
30421 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30422 echo "${ECHO_T}$wx_cv_var_timezone" >&6
30423
30424         if test "x$wx_cv_var_timezone" != x ; then
30425         cat >>confdefs.h <<_ACEOF
30426 #define WX_TIMEZONE $wx_cv_var_timezone
30427 _ACEOF
30428
30429     fi
30430
30431
30432 for ac_func in localtime
30433 do
30434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30435 echo "$as_me:$LINENO: checking for $ac_func" >&5
30436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30437 if eval "test \"\${$as_ac_var+set}\" = set"; then
30438   echo $ECHO_N "(cached) $ECHO_C" >&6
30439 else
30440   cat >conftest.$ac_ext <<_ACEOF
30441 #line $LINENO "configure"
30442 /* confdefs.h.  */
30443 _ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h.  */
30447 /* System header to define __stub macros and hopefully few prototypes,
30448     which can conflict with char $ac_func (); below.
30449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30450     <limits.h> exists even on freestanding compilers.  */
30451 #ifdef __STDC__
30452 # include <limits.h>
30453 #else
30454 # include <assert.h>
30455 #endif
30456 /* Override any gcc2 internal prototype to avoid an error.  */
30457 #ifdef __cplusplus
30458 extern "C"
30459 {
30460 #endif
30461 /* We use char because int might match the return type of a gcc2
30462    builtin and then its argument prototype would still apply.  */
30463 char $ac_func ();
30464 /* The GNU C library defines this for functions which it implements
30465     to always fail with ENOSYS.  Some functions are actually named
30466     something starting with __ and the normal name is an alias.  */
30467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30468 choke me
30469 #else
30470 char (*f) () = $ac_func;
30471 #endif
30472 #ifdef __cplusplus
30473 }
30474 #endif
30475
30476 int
30477 main ()
30478 {
30479 return f != $ac_func;
30480   ;
30481   return 0;
30482 }
30483 _ACEOF
30484 rm -f conftest.$ac_objext conftest$ac_exeext
30485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30486   (eval $ac_link) 2>&5
30487   ac_status=$?
30488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489   (exit $ac_status); } &&
30490          { ac_try='test -s conftest$ac_exeext'
30491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492   (eval $ac_try) 2>&5
30493   ac_status=$?
30494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495   (exit $ac_status); }; }; then
30496   eval "$as_ac_var=yes"
30497 else
30498   echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30500
30501 eval "$as_ac_var=no"
30502 fi
30503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30504 fi
30505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30507 if test `eval echo '${'$as_ac_var'}'` = yes; then
30508   cat >>confdefs.h <<_ACEOF
30509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30510 _ACEOF
30511
30512 fi
30513 done
30514
30515
30516     if test "$ac_cv_func_localtime" = "yes"; then
30517         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30518 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30519 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30520   echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522
30523             cat >conftest.$ac_ext <<_ACEOF
30524 #line $LINENO "configure"
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530
30531                     #include <time.h>
30532
30533 int
30534 main ()
30535 {
30536
30537                     struct tm tm;
30538                     tm.tm_gmtoff++;
30539
30540   ;
30541   return 0;
30542 }
30543 _ACEOF
30544 rm -f conftest.$ac_objext
30545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30546   (eval $ac_compile) 2>&5
30547   ac_status=$?
30548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549   (exit $ac_status); } &&
30550          { ac_try='test -s conftest.$ac_objext'
30551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30552   (eval $ac_try) 2>&5
30553   ac_status=$?
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); }; }; then
30556
30557                     wx_cv_struct_tm_has_gmtoff=yes
30558
30559 else
30560   echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30562
30563 wx_cv_struct_tm_has_gmtoff=no
30564
30565 fi
30566 rm -f conftest.$ac_objext conftest.$ac_ext
30567
30568 fi
30569 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30570 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
30571     fi
30572
30573     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
30574         cat >>confdefs.h <<\_ACEOF
30575 #define WX_GMTOFF_IN_TM 1
30576 _ACEOF
30577
30578     fi
30579
30580
30581
30582 for ac_func in gettimeofday ftime
30583 do
30584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30585 echo "$as_me:$LINENO: checking for $ac_func" >&5
30586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30587 if eval "test \"\${$as_ac_var+set}\" = set"; then
30588   echo $ECHO_N "(cached) $ECHO_C" >&6
30589 else
30590   cat >conftest.$ac_ext <<_ACEOF
30591 #line $LINENO "configure"
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597 /* System header to define __stub macros and hopefully few prototypes,
30598     which can conflict with char $ac_func (); below.
30599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30600     <limits.h> exists even on freestanding compilers.  */
30601 #ifdef __STDC__
30602 # include <limits.h>
30603 #else
30604 # include <assert.h>
30605 #endif
30606 /* Override any gcc2 internal prototype to avoid an error.  */
30607 #ifdef __cplusplus
30608 extern "C"
30609 {
30610 #endif
30611 /* We use char because int might match the return type of a gcc2
30612    builtin and then its argument prototype would still apply.  */
30613 char $ac_func ();
30614 /* The GNU C library defines this for functions which it implements
30615     to always fail with ENOSYS.  Some functions are actually named
30616     something starting with __ and the normal name is an alias.  */
30617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30618 choke me
30619 #else
30620 char (*f) () = $ac_func;
30621 #endif
30622 #ifdef __cplusplus
30623 }
30624 #endif
30625
30626 int
30627 main ()
30628 {
30629 return f != $ac_func;
30630   ;
30631   return 0;
30632 }
30633 _ACEOF
30634 rm -f conftest.$ac_objext conftest$ac_exeext
30635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30636   (eval $ac_link) 2>&5
30637   ac_status=$?
30638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639   (exit $ac_status); } &&
30640          { ac_try='test -s conftest$ac_exeext'
30641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30642   (eval $ac_try) 2>&5
30643   ac_status=$?
30644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645   (exit $ac_status); }; }; then
30646   eval "$as_ac_var=yes"
30647 else
30648   echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30650
30651 eval "$as_ac_var=no"
30652 fi
30653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30654 fi
30655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30657 if test `eval echo '${'$as_ac_var'}'` = yes; then
30658   cat >>confdefs.h <<_ACEOF
30659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30660 _ACEOF
30661  break
30662 fi
30663 done
30664
30665
30666     if test "$ac_cv_func_gettimeofday" = "yes"; then
30667         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30668 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30669 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30670   echo $ECHO_N "(cached) $ECHO_C" >&6
30671 else
30672
30673
30674
30675             ac_ext=cc
30676 ac_cpp='$CXXCPP $CPPFLAGS'
30677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30680
30681
30682             cat >conftest.$ac_ext <<_ACEOF
30683 #line $LINENO "configure"
30684 /* confdefs.h.  */
30685 _ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h.  */
30689
30690                     #include <sys/time.h>
30691                     #include <unistd.h>
30692
30693 int
30694 main ()
30695 {
30696
30697                     struct timeval tv;
30698                     gettimeofday(&tv, NULL);
30699
30700   ;
30701   return 0;
30702 }
30703 _ACEOF
30704 rm -f conftest.$ac_objext
30705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30706   (eval $ac_compile) 2>&5
30707   ac_status=$?
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); } &&
30710          { ac_try='test -s conftest.$ac_objext'
30711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712   (eval $ac_try) 2>&5
30713   ac_status=$?
30714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715   (exit $ac_status); }; }; then
30716   wx_cv_func_gettimeofday_has_2_args=yes
30717 else
30718   echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30720
30721 cat >conftest.$ac_ext <<_ACEOF
30722 #line $LINENO "configure"
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728
30729                         #include <sys/time.h>
30730                         #include <unistd.h>
30731
30732 int
30733 main ()
30734 {
30735
30736                         struct timeval tv;
30737                         gettimeofday(&tv);
30738
30739   ;
30740   return 0;
30741 }
30742 _ACEOF
30743 rm -f conftest.$ac_objext
30744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30745   (eval $ac_compile) 2>&5
30746   ac_status=$?
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); } &&
30749          { ac_try='test -s conftest.$ac_objext'
30750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751   (eval $ac_try) 2>&5
30752   ac_status=$?
30753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754   (exit $ac_status); }; }; then
30755   wx_cv_func_gettimeofday_has_2_args=no
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760
30761                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30762 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
30763                         wx_cv_func_gettimeofday_has_2_args=unknown
30764
30765
30766 fi
30767 rm -f conftest.$ac_objext conftest.$ac_ext
30768
30769 fi
30770 rm -f conftest.$ac_objext conftest.$ac_ext
30771             ac_ext=c
30772 ac_cpp='$CPP $CPPFLAGS'
30773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30776
30777
30778 fi
30779 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30780 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
30781
30782         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
30783             cat >>confdefs.h <<\_ACEOF
30784 #define WX_GETTIMEOFDAY_NO_TZ 1
30785 _ACEOF
30786
30787         fi
30788     fi
30789
30790     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30791 fi
30792
30793
30794 if test "$wxUSE_SOCKETS" = "yes"; then
30795     if test "$wxUSE_MGL" = "1"; then
30796         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30797 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
30798         wxUSE_SOCKETS="no"
30799     fi
30800     if test "$wxUSE_COCOA" = "1"; then
30801         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
30802 echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
30803         wxUSE_SOCKETS="no"
30804     fi
30805 fi
30806
30807 if test "$wxUSE_SOCKETS" = "yes"; then
30808         if test "$TOOLKIT" != "MSW"; then
30809                 echo "$as_me:$LINENO: checking for socket" >&5
30810 echo $ECHO_N "checking for socket... $ECHO_C" >&6
30811 if test "${ac_cv_func_socket+set}" = set; then
30812   echo $ECHO_N "(cached) $ECHO_C" >&6
30813 else
30814   cat >conftest.$ac_ext <<_ACEOF
30815 #line $LINENO "configure"
30816 /* confdefs.h.  */
30817 _ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h.  */
30821 /* System header to define __stub macros and hopefully few prototypes,
30822     which can conflict with char socket (); below.
30823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30824     <limits.h> exists even on freestanding compilers.  */
30825 #ifdef __STDC__
30826 # include <limits.h>
30827 #else
30828 # include <assert.h>
30829 #endif
30830 /* Override any gcc2 internal prototype to avoid an error.  */
30831 #ifdef __cplusplus
30832 extern "C"
30833 {
30834 #endif
30835 /* We use char because int might match the return type of a gcc2
30836    builtin and then its argument prototype would still apply.  */
30837 char socket ();
30838 /* The GNU C library defines this for functions which it implements
30839     to always fail with ENOSYS.  Some functions are actually named
30840     something starting with __ and the normal name is an alias.  */
30841 #if defined (__stub_socket) || defined (__stub___socket)
30842 choke me
30843 #else
30844 char (*f) () = socket;
30845 #endif
30846 #ifdef __cplusplus
30847 }
30848 #endif
30849
30850 int
30851 main ()
30852 {
30853 return f != socket;
30854   ;
30855   return 0;
30856 }
30857 _ACEOF
30858 rm -f conftest.$ac_objext conftest$ac_exeext
30859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30860   (eval $ac_link) 2>&5
30861   ac_status=$?
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); } &&
30864          { ac_try='test -s conftest$ac_exeext'
30865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866   (eval $ac_try) 2>&5
30867   ac_status=$?
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); }; }; then
30870   ac_cv_func_socket=yes
30871 else
30872   echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30874
30875 ac_cv_func_socket=no
30876 fi
30877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30878 fi
30879 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30880 echo "${ECHO_T}$ac_cv_func_socket" >&6
30881 if test $ac_cv_func_socket = yes; then
30882   :
30883 else
30884   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30885 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30886 if test "${ac_cv_lib_socket_socket+set}" = set; then
30887   echo $ECHO_N "(cached) $ECHO_C" >&6
30888 else
30889   ac_check_lib_save_LIBS=$LIBS
30890 LIBS="-lsocket  $LIBS"
30891 cat >conftest.$ac_ext <<_ACEOF
30892 #line $LINENO "configure"
30893 /* confdefs.h.  */
30894 _ACEOF
30895 cat confdefs.h >>conftest.$ac_ext
30896 cat >>conftest.$ac_ext <<_ACEOF
30897 /* end confdefs.h.  */
30898
30899 /* Override any gcc2 internal prototype to avoid an error.  */
30900 #ifdef __cplusplus
30901 extern "C"
30902 #endif
30903 /* We use char because int might match the return type of a gcc2
30904    builtin and then its argument prototype would still apply.  */
30905 char socket ();
30906 int
30907 main ()
30908 {
30909 socket ();
30910   ;
30911   return 0;
30912 }
30913 _ACEOF
30914 rm -f conftest.$ac_objext conftest$ac_exeext
30915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30916   (eval $ac_link) 2>&5
30917   ac_status=$?
30918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919   (exit $ac_status); } &&
30920          { ac_try='test -s conftest$ac_exeext'
30921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30922   (eval $ac_try) 2>&5
30923   ac_status=$?
30924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925   (exit $ac_status); }; }; then
30926   ac_cv_lib_socket_socket=yes
30927 else
30928   echo "$as_me: failed program was:" >&5
30929 sed 's/^/| /' conftest.$ac_ext >&5
30930
30931 ac_cv_lib_socket_socket=no
30932 fi
30933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30934 LIBS=$ac_check_lib_save_LIBS
30935 fi
30936 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30937 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30938 if test $ac_cv_lib_socket_socket = yes; then
30939   if test "$INET_LINK" != " -lsocket"; then
30940                     INET_LINK="$INET_LINK -lsocket"
30941                 fi
30942 else
30943
30944                     { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30945 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
30946                     wxUSE_SOCKETS=no
30947
30948
30949 fi
30950
30951
30952 fi
30953
30954     fi
30955 fi
30956
30957 if test "$wxUSE_SOCKETS" = "yes" ; then
30958                 if test "$TOOLKIT" != "MSW"; then
30959                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30960 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30961 if test "${wx_cv_type_getsockname3+set}" = set; then
30962   echo $ECHO_N "(cached) $ECHO_C" >&6
30963 else
30964
30965                 cat >conftest.$ac_ext <<_ACEOF
30966 #line $LINENO "configure"
30967 /* confdefs.h.  */
30968 _ACEOF
30969 cat confdefs.h >>conftest.$ac_ext
30970 cat >>conftest.$ac_ext <<_ACEOF
30971 /* end confdefs.h.  */
30972
30973                         #include <sys/types.h>
30974                         #include <sys/socket.h>
30975
30976 int
30977 main ()
30978 {
30979
30980                         socklen_t len;
30981                         getsockname(0, 0, &len);
30982
30983   ;
30984   return 0;
30985 }
30986 _ACEOF
30987 rm -f conftest.$ac_objext
30988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30989   (eval $ac_compile) 2>&5
30990   ac_status=$?
30991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); } &&
30993          { ac_try='test -s conftest.$ac_objext'
30994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30995   (eval $ac_try) 2>&5
30996   ac_status=$?
30997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); }; }; then
30999   wx_cv_type_getsockname3=socklen_t
31000 else
31001   echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31003
31004
31005                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
31006                         if test "$GCC" = yes ; then
31007                             CFLAGS="$CFLAGS -Werror"
31008                         fi
31009
31010                         cat >conftest.$ac_ext <<_ACEOF
31011 #line $LINENO "configure"
31012 /* confdefs.h.  */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h.  */
31017
31018                                 #include <sys/types.h>
31019                                 #include <sys/socket.h>
31020
31021 int
31022 main ()
31023 {
31024
31025                                 size_t len;
31026                                 getsockname(0, 0, &len);
31027
31028   ;
31029   return 0;
31030 }
31031 _ACEOF
31032 rm -f conftest.$ac_objext
31033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31034   (eval $ac_compile) 2>&5
31035   ac_status=$?
31036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037   (exit $ac_status); } &&
31038          { ac_try='test -s conftest.$ac_objext'
31039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040   (eval $ac_try) 2>&5
31041   ac_status=$?
31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043   (exit $ac_status); }; }; then
31044   wx_cv_type_getsockname3=size_t
31045 else
31046   echo "$as_me: failed program was:" >&5
31047 sed 's/^/| /' conftest.$ac_ext >&5
31048
31049 cat >conftest.$ac_ext <<_ACEOF
31050 #line $LINENO "configure"
31051 /* confdefs.h.  */
31052 _ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h.  */
31056
31057                                     #include <sys/types.h>
31058                                     #include <sys/socket.h>
31059
31060 int
31061 main ()
31062 {
31063
31064                                     int len;
31065                                     getsockname(0, 0, &len);
31066
31067   ;
31068   return 0;
31069 }
31070 _ACEOF
31071 rm -f conftest.$ac_objext
31072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31073   (eval $ac_compile) 2>&5
31074   ac_status=$?
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); } &&
31077          { ac_try='test -s conftest.$ac_objext'
31078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079   (eval $ac_try) 2>&5
31080   ac_status=$?
31081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082   (exit $ac_status); }; }; then
31083   wx_cv_type_getsockname3=int
31084 else
31085   echo "$as_me: failed program was:" >&5
31086 sed 's/^/| /' conftest.$ac_ext >&5
31087
31088 wx_cv_type_getsockname3=unknown
31089
31090 fi
31091 rm -f conftest.$ac_objext conftest.$ac_ext
31092
31093 fi
31094 rm -f conftest.$ac_objext conftest.$ac_ext
31095
31096                         CFLAGS="$CFLAGS_OLD"
31097
31098
31099 fi
31100 rm -f conftest.$ac_objext conftest.$ac_ext
31101
31102 fi
31103 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31104 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
31105
31106         if test "$wx_cv_type_getsockname3" = "unknown"; then
31107             wxUSE_SOCKETS=no
31108             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31109 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
31110         else
31111             cat >>confdefs.h <<_ACEOF
31112 #define SOCKLEN_T $wx_cv_type_getsockname3
31113 _ACEOF
31114
31115         fi
31116     fi
31117 fi
31118
31119 if test "$wxUSE_SOCKETS" = "yes" ; then
31120     cat >>confdefs.h <<\_ACEOF
31121 #define wxUSE_SOCKETS 1
31122 _ACEOF
31123
31124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
31125 fi
31126
31127 if test "$wxUSE_PROTOCOL" = "yes"; then
31128     if test "$wxUSE_SOCKETS" != "yes"; then
31129         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31130 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31131         wxUSE_PROTOCOL=no
31132     fi
31133 fi
31134
31135 if test "$wxUSE_PROTOCOL" = "yes"; then
31136     cat >>confdefs.h <<\_ACEOF
31137 #define wxUSE_PROTOCOL 1
31138 _ACEOF
31139
31140
31141     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31142         cat >>confdefs.h <<\_ACEOF
31143 #define wxUSE_PROTOCOL_HTTP 1
31144 _ACEOF
31145
31146     fi
31147     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31148         cat >>confdefs.h <<\_ACEOF
31149 #define wxUSE_PROTOCOL_FTP 1
31150 _ACEOF
31151
31152     fi
31153     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31154         cat >>confdefs.h <<\_ACEOF
31155 #define wxUSE_PROTOCOL_FILE 1
31156 _ACEOF
31157
31158     fi
31159 else
31160     if test "$wxUSE_FS_INET" = "yes"; then
31161         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31162 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31163         wxUSE_FS_INET="no"
31164     fi
31165 fi
31166
31167 if test "$wxUSE_URL" = "yes"; then
31168     if test "$wxUSE_PROTOCOL" != "yes"; then
31169         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31170 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31171         wxUSE_URL=no
31172     fi
31173     if test "$wxUSE_URL" = "yes"; then
31174         cat >>confdefs.h <<\_ACEOF
31175 #define wxUSE_URL 1
31176 _ACEOF
31177
31178     fi
31179 fi
31180
31181 if test "$wxUSE_FS_INET" = "yes"; then
31182   cat >>confdefs.h <<\_ACEOF
31183 #define wxUSE_FS_INET 1
31184 _ACEOF
31185
31186 fi
31187
31188
31189 if test "$wxUSE_GUI" = "yes"; then
31190
31191     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
31192         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31193 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
31194         wxUSE_JOYSTICK=no
31195      fi
31196     if test "$TOOLKIT" = "MOTIF"; then
31197         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31198 echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
31199         wxUSE_JOYSTICK=no
31200      fi
31201     if test "$TOOLKIT" = "X11"; then
31202         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31203 echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
31204         wxUSE_JOYSTICK=no
31205      fi
31206
31207         if test "$TOOLKIT" != "MSW"; then
31208         if test "$wxUSE_JOYSTICK" = "yes"; then
31209
31210 for ac_header in linux/joystick.h
31211 do
31212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31214   echo "$as_me:$LINENO: checking for $ac_header" >&5
31215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31217   echo $ECHO_N "(cached) $ECHO_C" >&6
31218 fi
31219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31221 else
31222   # Is the header compilable?
31223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
31233 #include <$ac_header>
31234 _ACEOF
31235 rm -f conftest.$ac_objext
31236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31237   (eval $ac_compile) 2>&5
31238   ac_status=$?
31239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240   (exit $ac_status); } &&
31241          { ac_try='test -s conftest.$ac_objext'
31242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31243   (eval $ac_try) 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); }; }; then
31247   ac_header_compiler=yes
31248 else
31249   echo "$as_me: failed program was:" >&5
31250 sed 's/^/| /' conftest.$ac_ext >&5
31251
31252 ac_header_compiler=no
31253 fi
31254 rm -f conftest.$ac_objext conftest.$ac_ext
31255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31256 echo "${ECHO_T}$ac_header_compiler" >&6
31257
31258 # Is the header present?
31259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31261 cat >conftest.$ac_ext <<_ACEOF
31262 #line $LINENO "configure"
31263 /* confdefs.h.  */
31264 _ACEOF
31265 cat confdefs.h >>conftest.$ac_ext
31266 cat >>conftest.$ac_ext <<_ACEOF
31267 /* end confdefs.h.  */
31268 #include <$ac_header>
31269 _ACEOF
31270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31272   ac_status=$?
31273   grep -v '^ *+' conftest.er1 >conftest.err
31274   rm -f conftest.er1
31275   cat conftest.err >&5
31276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277   (exit $ac_status); } >/dev/null; then
31278   if test -s conftest.err; then
31279     ac_cpp_err=$ac_c_preproc_warn_flag
31280   else
31281     ac_cpp_err=
31282   fi
31283 else
31284   ac_cpp_err=yes
31285 fi
31286 if test -z "$ac_cpp_err"; then
31287   ac_header_preproc=yes
31288 else
31289   echo "$as_me: failed program was:" >&5
31290 sed 's/^/| /' conftest.$ac_ext >&5
31291
31292   ac_header_preproc=no
31293 fi
31294 rm -f conftest.err conftest.$ac_ext
31295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31296 echo "${ECHO_T}$ac_header_preproc" >&6
31297
31298 # So?  What about this header?
31299 case $ac_header_compiler:$ac_header_preproc in
31300   yes:no )
31301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31305     (
31306       cat <<\_ASBOX
31307 ## ------------------------------------ ##
31308 ## Report this to bug-autoconf@gnu.org. ##
31309 ## ------------------------------------ ##
31310 _ASBOX
31311     ) |
31312       sed "s/^/$as_me: WARNING:     /" >&2
31313     ;;
31314   no:yes )
31315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31317     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31321     (
31322       cat <<\_ASBOX
31323 ## ------------------------------------ ##
31324 ## Report this to bug-autoconf@gnu.org. ##
31325 ## ------------------------------------ ##
31326 _ASBOX
31327     ) |
31328       sed "s/^/$as_me: WARNING:     /" >&2
31329     ;;
31330 esac
31331 echo "$as_me:$LINENO: checking for $ac_header" >&5
31332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31334   echo $ECHO_N "(cached) $ECHO_C" >&6
31335 else
31336   eval "$as_ac_Header=$ac_header_preproc"
31337 fi
31338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31340
31341 fi
31342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31343   cat >>confdefs.h <<_ACEOF
31344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31345 _ACEOF
31346
31347 fi
31348
31349 done
31350
31351             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31352                 wxUSE_JOYSTICK=no
31353                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31354 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
31355             fi
31356         fi
31357     fi
31358
31359     if test "$wxUSE_JOYSTICK" = "yes"; then
31360         cat >>confdefs.h <<\_ACEOF
31361 #define wxUSE_JOYSTICK 1
31362 _ACEOF
31363
31364         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31365     fi
31366 fi
31367
31368
31369 if test "$TOOLKIT" != "MSW"; then
31370
31371     HAVE_DL_FUNCS=0
31372     HAVE_SHL_FUNCS=0
31373     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31374         if test "$USE_DARWIN" = 1; then
31375                         HAVE_DL_FUNCS=1
31376         else
31377
31378 for ac_func in dlopen
31379 do
31380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31381 echo "$as_me:$LINENO: checking for $ac_func" >&5
31382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31383 if eval "test \"\${$as_ac_var+set}\" = set"; then
31384   echo $ECHO_N "(cached) $ECHO_C" >&6
31385 else
31386   cat >conftest.$ac_ext <<_ACEOF
31387 #line $LINENO "configure"
31388 /* confdefs.h.  */
31389 _ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h.  */
31393 /* System header to define __stub macros and hopefully few prototypes,
31394     which can conflict with char $ac_func (); below.
31395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31396     <limits.h> exists even on freestanding compilers.  */
31397 #ifdef __STDC__
31398 # include <limits.h>
31399 #else
31400 # include <assert.h>
31401 #endif
31402 /* Override any gcc2 internal prototype to avoid an error.  */
31403 #ifdef __cplusplus
31404 extern "C"
31405 {
31406 #endif
31407 /* We use char because int might match the return type of a gcc2
31408    builtin and then its argument prototype would still apply.  */
31409 char $ac_func ();
31410 /* The GNU C library defines this for functions which it implements
31411     to always fail with ENOSYS.  Some functions are actually named
31412     something starting with __ and the normal name is an alias.  */
31413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31414 choke me
31415 #else
31416 char (*f) () = $ac_func;
31417 #endif
31418 #ifdef __cplusplus
31419 }
31420 #endif
31421
31422 int
31423 main ()
31424 {
31425 return f != $ac_func;
31426   ;
31427   return 0;
31428 }
31429 _ACEOF
31430 rm -f conftest.$ac_objext conftest$ac_exeext
31431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31432   (eval $ac_link) 2>&5
31433   ac_status=$?
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); } &&
31436          { ac_try='test -s conftest$ac_exeext'
31437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31438   (eval $ac_try) 2>&5
31439   ac_status=$?
31440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441   (exit $ac_status); }; }; then
31442   eval "$as_ac_var=yes"
31443 else
31444   echo "$as_me: failed program was:" >&5
31445 sed 's/^/| /' conftest.$ac_ext >&5
31446
31447 eval "$as_ac_var=no"
31448 fi
31449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31450 fi
31451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31453 if test `eval echo '${'$as_ac_var'}'` = yes; then
31454   cat >>confdefs.h <<_ACEOF
31455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31456 _ACEOF
31457
31458                 cat >>confdefs.h <<\_ACEOF
31459 #define HAVE_DLOPEN 1
31460 _ACEOF
31461
31462                 HAVE_DL_FUNCS=1
31463
31464 else
31465
31466                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31467 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31468 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31469   echo $ECHO_N "(cached) $ECHO_C" >&6
31470 else
31471   ac_check_lib_save_LIBS=$LIBS
31472 LIBS="-ldl  $LIBS"
31473 cat >conftest.$ac_ext <<_ACEOF
31474 #line $LINENO "configure"
31475 /* confdefs.h.  */
31476 _ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h.  */
31480
31481 /* Override any gcc2 internal prototype to avoid an error.  */
31482 #ifdef __cplusplus
31483 extern "C"
31484 #endif
31485 /* We use char because int might match the return type of a gcc2
31486    builtin and then its argument prototype would still apply.  */
31487 char dlopen ();
31488 int
31489 main ()
31490 {
31491 dlopen ();
31492   ;
31493   return 0;
31494 }
31495 _ACEOF
31496 rm -f conftest.$ac_objext conftest$ac_exeext
31497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31498   (eval $ac_link) 2>&5
31499   ac_status=$?
31500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501   (exit $ac_status); } &&
31502          { ac_try='test -s conftest$ac_exeext'
31503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504   (eval $ac_try) 2>&5
31505   ac_status=$?
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); }; }; then
31508   ac_cv_lib_dl_dlopen=yes
31509 else
31510   echo "$as_me: failed program was:" >&5
31511 sed 's/^/| /' conftest.$ac_ext >&5
31512
31513 ac_cv_lib_dl_dlopen=no
31514 fi
31515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31516 LIBS=$ac_check_lib_save_LIBS
31517 fi
31518 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31520 if test $ac_cv_lib_dl_dlopen = yes; then
31521
31522                                 cat >>confdefs.h <<\_ACEOF
31523 #define HAVE_DLOPEN 1
31524 _ACEOF
31525
31526                                 HAVE_DL_FUNCS=1
31527                                 DL_LINK=" -ldl$DL_LINK"
31528
31529 else
31530
31531
31532 for ac_func in shl_load
31533 do
31534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31535 echo "$as_me:$LINENO: checking for $ac_func" >&5
31536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31537 if eval "test \"\${$as_ac_var+set}\" = set"; then
31538   echo $ECHO_N "(cached) $ECHO_C" >&6
31539 else
31540   cat >conftest.$ac_ext <<_ACEOF
31541 #line $LINENO "configure"
31542 /* confdefs.h.  */
31543 _ACEOF
31544 cat confdefs.h >>conftest.$ac_ext
31545 cat >>conftest.$ac_ext <<_ACEOF
31546 /* end confdefs.h.  */
31547 /* System header to define __stub macros and hopefully few prototypes,
31548     which can conflict with char $ac_func (); below.
31549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31550     <limits.h> exists even on freestanding compilers.  */
31551 #ifdef __STDC__
31552 # include <limits.h>
31553 #else
31554 # include <assert.h>
31555 #endif
31556 /* Override any gcc2 internal prototype to avoid an error.  */
31557 #ifdef __cplusplus
31558 extern "C"
31559 {
31560 #endif
31561 /* We use char because int might match the return type of a gcc2
31562    builtin and then its argument prototype would still apply.  */
31563 char $ac_func ();
31564 /* The GNU C library defines this for functions which it implements
31565     to always fail with ENOSYS.  Some functions are actually named
31566     something starting with __ and the normal name is an alias.  */
31567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31568 choke me
31569 #else
31570 char (*f) () = $ac_func;
31571 #endif
31572 #ifdef __cplusplus
31573 }
31574 #endif
31575
31576 int
31577 main ()
31578 {
31579 return f != $ac_func;
31580   ;
31581   return 0;
31582 }
31583 _ACEOF
31584 rm -f conftest.$ac_objext conftest$ac_exeext
31585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31586   (eval $ac_link) 2>&5
31587   ac_status=$?
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); } &&
31590          { ac_try='test -s conftest$ac_exeext'
31591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31592   (eval $ac_try) 2>&5
31593   ac_status=$?
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); }; }; then
31596   eval "$as_ac_var=yes"
31597 else
31598   echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31600
31601 eval "$as_ac_var=no"
31602 fi
31603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31604 fi
31605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31607 if test `eval echo '${'$as_ac_var'}'` = yes; then
31608   cat >>confdefs.h <<_ACEOF
31609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31610 _ACEOF
31611
31612                                                 cat >>confdefs.h <<\_ACEOF
31613 #define HAVE_SHL_LOAD 1
31614 _ACEOF
31615
31616                                                 HAVE_SHL_FUNCS=1
31617
31618 else
31619
31620                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31621 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31622 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31623   echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31625   ac_check_lib_save_LIBS=$LIBS
31626 LIBS="-lshl_load  $LIBS"
31627 cat >conftest.$ac_ext <<_ACEOF
31628 #line $LINENO "configure"
31629 /* confdefs.h.  */
31630 _ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h.  */
31634
31635 /* Override any gcc2 internal prototype to avoid an error.  */
31636 #ifdef __cplusplus
31637 extern "C"
31638 #endif
31639 /* We use char because int might match the return type of a gcc2
31640    builtin and then its argument prototype would still apply.  */
31641 char dld ();
31642 int
31643 main ()
31644 {
31645 dld ();
31646   ;
31647   return 0;
31648 }
31649 _ACEOF
31650 rm -f conftest.$ac_objext conftest$ac_exeext
31651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31652   (eval $ac_link) 2>&5
31653   ac_status=$?
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); } &&
31656          { ac_try='test -s conftest$ac_exeext'
31657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31658   (eval $ac_try) 2>&5
31659   ac_status=$?
31660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661   (exit $ac_status); }; }; then
31662   ac_cv_lib_shl_load_dld=yes
31663 else
31664   echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31666
31667 ac_cv_lib_shl_load_dld=no
31668 fi
31669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31670 LIBS=$ac_check_lib_save_LIBS
31671 fi
31672 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31673 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31674 if test $ac_cv_lib_shl_load_dld = yes; then
31675
31676                                                                 HAVE_SHL_FUNCS=1
31677                                                                 DL_LINK=" -ldld$DL_LINK"
31678
31679 fi
31680
31681
31682 fi
31683 done
31684
31685
31686 fi
31687
31688
31689 fi
31690 done
31691
31692
31693                 if test "$HAVE_DL_FUNCS" = 1; then
31694
31695 for ac_func in dlerror
31696 do
31697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31698 echo "$as_me:$LINENO: checking for $ac_func" >&5
31699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31700 if eval "test \"\${$as_ac_var+set}\" = set"; then
31701   echo $ECHO_N "(cached) $ECHO_C" >&6
31702 else
31703   cat >conftest.$ac_ext <<_ACEOF
31704 #line $LINENO "configure"
31705 /* confdefs.h.  */
31706 _ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h.  */
31710 /* System header to define __stub macros and hopefully few prototypes,
31711     which can conflict with char $ac_func (); below.
31712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31713     <limits.h> exists even on freestanding compilers.  */
31714 #ifdef __STDC__
31715 # include <limits.h>
31716 #else
31717 # include <assert.h>
31718 #endif
31719 /* Override any gcc2 internal prototype to avoid an error.  */
31720 #ifdef __cplusplus
31721 extern "C"
31722 {
31723 #endif
31724 /* We use char because int might match the return type of a gcc2
31725    builtin and then its argument prototype would still apply.  */
31726 char $ac_func ();
31727 /* The GNU C library defines this for functions which it implements
31728     to always fail with ENOSYS.  Some functions are actually named
31729     something starting with __ and the normal name is an alias.  */
31730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31731 choke me
31732 #else
31733 char (*f) () = $ac_func;
31734 #endif
31735 #ifdef __cplusplus
31736 }
31737 #endif
31738
31739 int
31740 main ()
31741 {
31742 return f != $ac_func;
31743   ;
31744   return 0;
31745 }
31746 _ACEOF
31747 rm -f conftest.$ac_objext conftest$ac_exeext
31748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31749   (eval $ac_link) 2>&5
31750   ac_status=$?
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); } &&
31753          { ac_try='test -s conftest$ac_exeext'
31754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31755   (eval $ac_try) 2>&5
31756   ac_status=$?
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); }; }; then
31759   eval "$as_ac_var=yes"
31760 else
31761   echo "$as_me: failed program was:" >&5
31762 sed 's/^/| /' conftest.$ac_ext >&5
31763
31764 eval "$as_ac_var=no"
31765 fi
31766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31767 fi
31768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31770 if test `eval echo '${'$as_ac_var'}'` = yes; then
31771   cat >>confdefs.h <<_ACEOF
31772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31773 _ACEOF
31774  cat >>confdefs.h <<\_ACEOF
31775 #define HAVE_DLERROR 1
31776 _ACEOF
31777
31778 else
31779   echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31780 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31781 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31782   echo $ECHO_N "(cached) $ECHO_C" >&6
31783 else
31784   ac_check_lib_save_LIBS=$LIBS
31785 LIBS="-ldl  $LIBS"
31786 cat >conftest.$ac_ext <<_ACEOF
31787 #line $LINENO "configure"
31788 /* confdefs.h.  */
31789 _ACEOF
31790 cat confdefs.h >>conftest.$ac_ext
31791 cat >>conftest.$ac_ext <<_ACEOF
31792 /* end confdefs.h.  */
31793
31794 /* Override any gcc2 internal prototype to avoid an error.  */
31795 #ifdef __cplusplus
31796 extern "C"
31797 #endif
31798 /* We use char because int might match the return type of a gcc2
31799    builtin and then its argument prototype would still apply.  */
31800 char dlerror ();
31801 int
31802 main ()
31803 {
31804 dlerror ();
31805   ;
31806   return 0;
31807 }
31808 _ACEOF
31809 rm -f conftest.$ac_objext conftest$ac_exeext
31810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31811   (eval $ac_link) 2>&5
31812   ac_status=$?
31813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814   (exit $ac_status); } &&
31815          { ac_try='test -s conftest$ac_exeext'
31816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817   (eval $ac_try) 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); }; }; then
31821   ac_cv_lib_dl_dlerror=yes
31822 else
31823   echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31825
31826 ac_cv_lib_dl_dlerror=no
31827 fi
31828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31829 LIBS=$ac_check_lib_save_LIBS
31830 fi
31831 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31832 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31833 if test $ac_cv_lib_dl_dlerror = yes; then
31834   cat >>confdefs.h <<\_ACEOF
31835 #define HAVE_DLERROR 1
31836 _ACEOF
31837
31838 fi
31839
31840 fi
31841 done
31842
31843         fi
31844         fi
31845
31846         if test "$HAVE_DL_FUNCS" = 0; then
31847             if test "$HAVE_SHL_FUNCS" = 0; then
31848               if test "$USE_UNIX" = 1; then
31849                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31850 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31851                   wxUSE_DYNAMIC_LOADER=no
31852                   wxUSE_DYNLIB_CLASS=no
31853               else
31854                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31855 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31856               fi
31857             fi
31858         fi
31859     fi
31860 fi
31861
31862 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31863     cat >>confdefs.h <<\_ACEOF
31864 #define wxUSE_DYNAMIC_LOADER 1
31865 _ACEOF
31866
31867 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31868     cat >>confdefs.h <<\_ACEOF
31869 #define wxUSE_DYNLIB_CLASS 1
31870 _ACEOF
31871
31872 fi
31873
31874
31875 if test "$wxUSE_FONTMAP" = "yes" ; then
31876   cat >>confdefs.h <<\_ACEOF
31877 #define wxUSE_FONTMAP 1
31878 _ACEOF
31879
31880 fi
31881
31882 if test "$wxUSE_UNICODE" = "yes" ; then
31883   cat >>confdefs.h <<\_ACEOF
31884 #define wxUSE_UNICODE 1
31885 _ACEOF
31886
31887
31888   if test "$wxUSE_MSW" != 1; then
31889       wxUSE_UNICODE_MSLU=no
31890   fi
31891
31892   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
31893         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31894 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31895 if test "${ac_cv_lib_unicows_main+set}" = set; then
31896   echo $ECHO_N "(cached) $ECHO_C" >&6
31897 else
31898   ac_check_lib_save_LIBS=$LIBS
31899 LIBS="-lunicows  $LIBS"
31900 cat >conftest.$ac_ext <<_ACEOF
31901 #line $LINENO "configure"
31902 /* confdefs.h.  */
31903 _ACEOF
31904 cat confdefs.h >>conftest.$ac_ext
31905 cat >>conftest.$ac_ext <<_ACEOF
31906 /* end confdefs.h.  */
31907
31908
31909 int
31910 main ()
31911 {
31912 main ();
31913   ;
31914   return 0;
31915 }
31916 _ACEOF
31917 rm -f conftest.$ac_objext conftest$ac_exeext
31918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31919   (eval $ac_link) 2>&5
31920   ac_status=$?
31921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922   (exit $ac_status); } &&
31923          { ac_try='test -s conftest$ac_exeext'
31924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31925   (eval $ac_try) 2>&5
31926   ac_status=$?
31927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928   (exit $ac_status); }; }; then
31929   ac_cv_lib_unicows_main=yes
31930 else
31931   echo "$as_me: failed program was:" >&5
31932 sed 's/^/| /' conftest.$ac_ext >&5
31933
31934 ac_cv_lib_unicows_main=no
31935 fi
31936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31937 LIBS=$ac_check_lib_save_LIBS
31938 fi
31939 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31940 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31941 if test $ac_cv_lib_unicows_main = yes; then
31942
31943                 cat >>confdefs.h <<\_ACEOF
31944 #define wxUSE_UNICODE_MSLU 1
31945 _ACEOF
31946
31947
31948 else
31949
31950                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31951                              Applications will only run on Windows NT/2000/XP!" >&5
31952 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31953                              Applications will only run on Windows NT/2000/XP!" >&2;}
31954                 wxUSE_UNICODE_MSLU=no
31955
31956 fi
31957
31958     fi
31959 fi
31960
31961 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
31962   cat >>confdefs.h <<\_ACEOF
31963 #define wxUSE_EXPERIMENTAL_PRINTF 1
31964 _ACEOF
31965
31966 fi
31967
31968
31969 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
31970   cat >>confdefs.h <<\_ACEOF
31971 #define wxUSE_POSTSCRIPT 1
31972 _ACEOF
31973
31974 fi
31975
31976 cat >>confdefs.h <<\_ACEOF
31977 #define wxUSE_AFM_FOR_POSTSCRIPT 1
31978 _ACEOF
31979
31980
31981 cat >>confdefs.h <<\_ACEOF
31982 #define wxUSE_NORMALIZED_PS_FONTS 1
31983 _ACEOF
31984
31985
31986
31987 if test "$wxUSE_CONSTRAINTS" = "yes"; then
31988     cat >>confdefs.h <<\_ACEOF
31989 #define wxUSE_CONSTRAINTS 1
31990 _ACEOF
31991
31992     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31993 fi
31994
31995 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31996    cat >>confdefs.h <<\_ACEOF
31997 #define wxUSE_MDI_ARCHITECTURE 1
31998 _ACEOF
31999
32000    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
32001 fi
32002
32003 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
32004     cat >>confdefs.h <<\_ACEOF
32005 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
32006 _ACEOF
32007
32008     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32009     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32010         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32011     fi
32012 fi
32013
32014 if test "$wxUSE_HELP" = "yes"; then
32015     cat >>confdefs.h <<\_ACEOF
32016 #define wxUSE_HELP 1
32017 _ACEOF
32018
32019     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
32020
32021     if test "$wxUSE_MSW" = 1; then
32022       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
32023         cat >>confdefs.h <<\_ACEOF
32024 #define wxUSE_MS_HTML_HELP 1
32025 _ACEOF
32026
32027       fi
32028     fi
32029
32030     if test "$wxUSE_WXHTML_HELP" = "yes"; then
32031       if test "$wxUSE_HTML" = "yes"; then
32032         cat >>confdefs.h <<\_ACEOF
32033 #define wxUSE_WXHTML_HELP 1
32034 _ACEOF
32035
32036       else
32037         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32038 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
32039         wxUSE_WXHTML_HELP=no
32040       fi
32041     fi
32042 fi
32043
32044 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32045     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32046         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32047 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
32048     else
32049         cat >>confdefs.h <<\_ACEOF
32050 #define wxUSE_PRINTING_ARCHITECTURE 1
32051 _ACEOF
32052
32053     fi
32054     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32055 fi
32056
32057 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
32058     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32059 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32060    { (exit 1); exit 1; }; }
32061 fi
32062
32063
32064 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
32065                           -o "$wxUSE_CLIPBOARD"     = "yes" \
32066                           -o "$wxUSE_OLE"     = "yes" \
32067                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32068
32069 for ac_header in ole2.h
32070 do
32071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32073   echo "$as_me:$LINENO: checking for $ac_header" >&5
32074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32076   echo $ECHO_N "(cached) $ECHO_C" >&6
32077 fi
32078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32080 else
32081   # Is the header compilable?
32082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32084 cat >conftest.$ac_ext <<_ACEOF
32085 #line $LINENO "configure"
32086 /* confdefs.h.  */
32087 _ACEOF
32088 cat confdefs.h >>conftest.$ac_ext
32089 cat >>conftest.$ac_ext <<_ACEOF
32090 /* end confdefs.h.  */
32091 $ac_includes_default
32092 #include <$ac_header>
32093 _ACEOF
32094 rm -f conftest.$ac_objext
32095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32096   (eval $ac_compile) 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); } &&
32100          { ac_try='test -s conftest.$ac_objext'
32101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102   (eval $ac_try) 2>&5
32103   ac_status=$?
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); }; }; then
32106   ac_header_compiler=yes
32107 else
32108   echo "$as_me: failed program was:" >&5
32109 sed 's/^/| /' conftest.$ac_ext >&5
32110
32111 ac_header_compiler=no
32112 fi
32113 rm -f conftest.$ac_objext conftest.$ac_ext
32114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32115 echo "${ECHO_T}$ac_header_compiler" >&6
32116
32117 # Is the header present?
32118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32120 cat >conftest.$ac_ext <<_ACEOF
32121 #line $LINENO "configure"
32122 /* confdefs.h.  */
32123 _ACEOF
32124 cat confdefs.h >>conftest.$ac_ext
32125 cat >>conftest.$ac_ext <<_ACEOF
32126 /* end confdefs.h.  */
32127 #include <$ac_header>
32128 _ACEOF
32129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32131   ac_status=$?
32132   grep -v '^ *+' conftest.er1 >conftest.err
32133   rm -f conftest.er1
32134   cat conftest.err >&5
32135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136   (exit $ac_status); } >/dev/null; then
32137   if test -s conftest.err; then
32138     ac_cpp_err=$ac_c_preproc_warn_flag
32139   else
32140     ac_cpp_err=
32141   fi
32142 else
32143   ac_cpp_err=yes
32144 fi
32145 if test -z "$ac_cpp_err"; then
32146   ac_header_preproc=yes
32147 else
32148   echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32150
32151   ac_header_preproc=no
32152 fi
32153 rm -f conftest.err conftest.$ac_ext
32154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32155 echo "${ECHO_T}$ac_header_preproc" >&6
32156
32157 # So?  What about this header?
32158 case $ac_header_compiler:$ac_header_preproc in
32159   yes:no )
32160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32164     (
32165       cat <<\_ASBOX
32166 ## ------------------------------------ ##
32167 ## Report this to bug-autoconf@gnu.org. ##
32168 ## ------------------------------------ ##
32169 _ASBOX
32170     ) |
32171       sed "s/^/$as_me: WARNING:     /" >&2
32172     ;;
32173   no:yes )
32174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32176     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32180     (
32181       cat <<\_ASBOX
32182 ## ------------------------------------ ##
32183 ## Report this to bug-autoconf@gnu.org. ##
32184 ## ------------------------------------ ##
32185 _ASBOX
32186     ) |
32187       sed "s/^/$as_me: WARNING:     /" >&2
32188     ;;
32189 esac
32190 echo "$as_me:$LINENO: checking for $ac_header" >&5
32191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193   echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195   eval "$as_ac_Header=$ac_header_preproc"
32196 fi
32197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32199
32200 fi
32201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32202   cat >>confdefs.h <<_ACEOF
32203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32204 _ACEOF
32205
32206 fi
32207
32208 done
32209
32210
32211     if test "$ac_cv_header_ole2_h" = "yes" ; then
32212         if test "$GCC" = yes ; then
32213
32214
32215             ac_ext=cc
32216 ac_cpp='$CXXCPP $CPPFLAGS'
32217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32220
32221
32222             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32223 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32224             cat >conftest.$ac_ext <<_ACEOF
32225 #line $LINENO "configure"
32226 /* confdefs.h.  */
32227 _ACEOF
32228 cat confdefs.h >>conftest.$ac_ext
32229 cat >>conftest.$ac_ext <<_ACEOF
32230 /* end confdefs.h.  */
32231 #include <windows.h>
32232                             #include <ole2.h>
32233 int
32234 main ()
32235 {
32236
32237   ;
32238   return 0;
32239 }
32240 _ACEOF
32241 rm -f conftest.$ac_objext
32242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32243   (eval $ac_compile) 2>&5
32244   ac_status=$?
32245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); } &&
32247          { ac_try='test -s conftest.$ac_objext'
32248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249   (eval $ac_try) 2>&5
32250   ac_status=$?
32251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252   (exit $ac_status); }; }; then
32253   echo "$as_me:$LINENO: result: no" >&5
32254 echo "${ECHO_T}no" >&6
32255 else
32256   echo "$as_me: failed program was:" >&5
32257 sed 's/^/| /' conftest.$ac_ext >&5
32258
32259 echo "$as_me:$LINENO: result: yes" >&5
32260 echo "${ECHO_T}yes" >&6
32261                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32262 fi
32263 rm -f conftest.$ac_objext conftest.$ac_ext
32264             ac_ext=c
32265 ac_cpp='$CPP $CPPFLAGS'
32266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32269
32270             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
32271             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
32272             cat >>confdefs.h <<\_ACEOF
32273 #define wxUSE_OLE 1
32274 _ACEOF
32275
32276
32277         fi
32278
32279                 cat >>confdefs.h <<\_ACEOF
32280 #define wxUSE_DATAOBJ 1
32281 _ACEOF
32282
32283     else
32284         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32285 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
32286
32287         wxUSE_CLIPBOARD=no
32288         wxUSE_DRAG_AND_DROP=no
32289         wxUSE_DATAOBJ=no
32290         wxUSE_OLE=no
32291     fi
32292
32293     if test "$wxUSE_METAFILE" = "yes"; then
32294         cat >>confdefs.h <<\_ACEOF
32295 #define wxUSE_METAFILE 1
32296 _ACEOF
32297
32298
32299                 cat >>confdefs.h <<\_ACEOF
32300 #define wxUSE_ENH_METAFILE 1
32301 _ACEOF
32302
32303     fi
32304 fi
32305
32306 if test "$wxUSE_IPC" = "yes"; then
32307     if test "$wxUSE_SOCKETS" != "yes"; then
32308         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32309 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
32310     fi
32311
32312     cat >>confdefs.h <<\_ACEOF
32313 #define wxUSE_IPC 1
32314 _ACEOF
32315
32316 fi
32317
32318 if test "$wxUSE_CLIPBOARD" = "yes"; then
32319     if test "$wxUSE_MGL" = 1; then
32320         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32321 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
32322         wxUSE_CLIPBOARD=no
32323     fi
32324
32325     if test "$wxUSE_CLIPBOARD" = "yes"; then
32326         cat >>confdefs.h <<\_ACEOF
32327 #define wxUSE_CLIPBOARD 1
32328 _ACEOF
32329
32330
32331                 cat >>confdefs.h <<\_ACEOF
32332 #define wxUSE_DATAOBJ 1
32333 _ACEOF
32334
32335     fi
32336 fi
32337
32338 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32339     if test "$wxUSE_GTK" = 1; then
32340         if test "$WXGTK12" != 1; then
32341             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32342 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
32343             wxUSE_DRAG_AND_DROP=no
32344         fi
32345     fi
32346
32347     if test "$wxUSE_MOTIF" = 1; then
32348         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32349 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
32350         wxUSE_DRAG_AND_DROP=no
32351     fi
32352
32353     if test "$wxUSE_X11" = 1; then
32354         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32355 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
32356         wxUSE_DRAG_AND_DROP=no
32357     fi
32358
32359     if test "$wxUSE_MGL" = 1; then
32360         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32361 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
32362         wxUSE_DRAG_AND_DROP=no
32363     fi
32364
32365     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
32366         cat >>confdefs.h <<\_ACEOF
32367 #define wxUSE_DRAG_AND_DROP 1
32368 _ACEOF
32369
32370         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32371     fi
32372
32373 fi
32374
32375 if test "$wxUSE_SPLINES" = "yes" ; then
32376   cat >>confdefs.h <<\_ACEOF
32377 #define wxUSE_SPLINES 1
32378 _ACEOF
32379
32380 fi
32381
32382
32383 USES_CONTROLS=0
32384 if test "$wxUSE_CONTROLS" = "yes"; then
32385   USES_CONTROLS=1
32386 fi
32387
32388 if test "$wxUSE_ACCEL" = "yes"; then
32389   cat >>confdefs.h <<\_ACEOF
32390 #define wxUSE_ACCEL 1
32391 _ACEOF
32392
32393   USES_CONTROLS=1
32394 fi
32395
32396 if test "$wxUSE_BUTTON" = "yes"; then
32397   cat >>confdefs.h <<\_ACEOF
32398 #define wxUSE_BUTTON 1
32399 _ACEOF
32400
32401   USES_CONTROLS=1
32402 fi
32403
32404 if test "$wxUSE_BMPBUTTON" = "yes"; then
32405   cat >>confdefs.h <<\_ACEOF
32406 #define wxUSE_BMPBUTTON 1
32407 _ACEOF
32408
32409   USES_CONTROLS=1
32410 fi
32411
32412 if test "$wxUSE_CALCTRL" = "yes"; then
32413   cat >>confdefs.h <<\_ACEOF
32414 #define wxUSE_CALENDARCTRL 1
32415 _ACEOF
32416
32417   USES_CONTROLS=1
32418   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
32419 fi
32420
32421 if test "$wxUSE_CARET" = "yes"; then
32422   cat >>confdefs.h <<\_ACEOF
32423 #define wxUSE_CARET 1
32424 _ACEOF
32425
32426   USES_CONTROLS=1
32427   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32428 fi
32429
32430 if test "$wxUSE_COMBOBOX" = "yes"; then
32431   cat >>confdefs.h <<\_ACEOF
32432 #define wxUSE_COMBOBOX 1
32433 _ACEOF
32434
32435   USES_CONTROLS=1
32436 fi
32437
32438 if test "$wxUSE_CHOICE" = "yes"; then
32439   cat >>confdefs.h <<\_ACEOF
32440 #define wxUSE_CHOICE 1
32441 _ACEOF
32442
32443   USES_CONTROLS=1
32444 fi
32445
32446 if test "$wxUSE_CHECKBOX" = "yes"; then
32447   cat >>confdefs.h <<\_ACEOF
32448 #define wxUSE_CHECKBOX 1
32449 _ACEOF
32450
32451   USES_CONTROLS=1
32452 fi
32453
32454 if test "$wxUSE_CHECKLST" = "yes"; then
32455   cat >>confdefs.h <<\_ACEOF
32456 #define wxUSE_CHECKLISTBOX 1
32457 _ACEOF
32458
32459   USES_CONTROLS=1
32460   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32461 fi
32462
32463 if test "$wxUSE_DISPLAY" = "yes"; then
32464     cat >>confdefs.h <<\_ACEOF
32465 #define wxUSE_DISPLAY 1
32466 _ACEOF
32467
32468     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32469 fi
32470
32471 if test "$wxUSE_GAUGE" = "yes"; then
32472   cat >>confdefs.h <<\_ACEOF
32473 #define wxUSE_GAUGE 1
32474 _ACEOF
32475
32476   USES_CONTROLS=1
32477 fi
32478
32479 if test "$wxUSE_GRID" = "yes"; then
32480   cat >>confdefs.h <<\_ACEOF
32481 #define wxUSE_GRID 1
32482 _ACEOF
32483
32484   USES_CONTROLS=1
32485   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
32486 fi
32487
32488 if test "$wxUSE_IMAGLIST" = "yes"; then
32489     cat >>confdefs.h <<\_ACEOF
32490 #define wxUSE_IMAGLIST 1
32491 _ACEOF
32492
32493 fi
32494
32495 if test "$wxUSE_LISTBOX" = "yes"; then
32496     cat >>confdefs.h <<\_ACEOF
32497 #define wxUSE_LISTBOX 1
32498 _ACEOF
32499
32500     USES_CONTROLS=1
32501 fi
32502
32503 if test "$wxUSE_LISTCTRL" = "yes"; then
32504     if test "$wxUSE_IMAGLIST" = "yes"; then
32505         cat >>confdefs.h <<\_ACEOF
32506 #define wxUSE_LISTCTRL 1
32507 _ACEOF
32508
32509         USES_CONTROLS=1
32510         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32511     else
32512         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32513 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
32514     fi
32515 fi
32516
32517 if test "$wxUSE_NOTEBOOK" = "yes"; then
32518     cat >>confdefs.h <<\_ACEOF
32519 #define wxUSE_NOTEBOOK 1
32520 _ACEOF
32521
32522     USES_CONTROLS=1
32523     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32524 fi
32525
32526
32527 if test "$wxUSE_RADIOBOX" = "yes"; then
32528     cat >>confdefs.h <<\_ACEOF
32529 #define wxUSE_RADIOBOX 1
32530 _ACEOF
32531
32532     USES_CONTROLS=1
32533 fi
32534
32535 if test "$wxUSE_RADIOBTN" = "yes"; then
32536     cat >>confdefs.h <<\_ACEOF
32537 #define wxUSE_RADIOBTN 1
32538 _ACEOF
32539
32540     USES_CONTROLS=1
32541 fi
32542
32543 if test "$wxUSE_SASH" = "yes"; then
32544     cat >>confdefs.h <<\_ACEOF
32545 #define wxUSE_SASH 1
32546 _ACEOF
32547
32548     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32549 fi
32550
32551 if test "$wxUSE_SCROLLBAR" = "yes"; then
32552     cat >>confdefs.h <<\_ACEOF
32553 #define wxUSE_SCROLLBAR 1
32554 _ACEOF
32555
32556     USES_CONTROLS=1
32557     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
32558 fi
32559
32560 if test "$wxUSE_SLIDER" = "yes"; then
32561     cat >>confdefs.h <<\_ACEOF
32562 #define wxUSE_SLIDER 1
32563 _ACEOF
32564
32565     USES_CONTROLS=1
32566 fi
32567
32568 if test "$wxUSE_SPINBTN" = "yes"; then
32569     cat >>confdefs.h <<\_ACEOF
32570 #define wxUSE_SPINBTN 1
32571 _ACEOF
32572
32573     USES_CONTROLS=1
32574 fi
32575
32576 if test "$wxUSE_SPINCTRL" = "yes"; then
32577     cat >>confdefs.h <<\_ACEOF
32578 #define wxUSE_SPINCTRL 1
32579 _ACEOF
32580
32581     USES_CONTROLS=1
32582 fi
32583
32584 if test "$wxUSE_SPLITTER" = "yes"; then
32585     cat >>confdefs.h <<\_ACEOF
32586 #define wxUSE_SPLITTER 1
32587 _ACEOF
32588
32589     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32590 fi
32591
32592 if test "$wxUSE_STATBMP" = "yes"; then
32593     cat >>confdefs.h <<\_ACEOF
32594 #define wxUSE_STATBMP 1
32595 _ACEOF
32596
32597     USES_CONTROLS=1
32598 fi
32599
32600 if test "$wxUSE_STATBOX" = "yes"; then
32601     cat >>confdefs.h <<\_ACEOF
32602 #define wxUSE_STATBOX 1
32603 _ACEOF
32604
32605     USES_CONTROLS=1
32606 fi
32607
32608 if test "$wxUSE_STATTEXT" = "yes"; then
32609     cat >>confdefs.h <<\_ACEOF
32610 #define wxUSE_STATTEXT 1
32611 _ACEOF
32612
32613     USES_CONTROLS=1
32614 fi
32615
32616 if test "$wxUSE_STATLINE" = "yes"; then
32617     cat >>confdefs.h <<\_ACEOF
32618 #define wxUSE_STATLINE 1
32619 _ACEOF
32620
32621     USES_CONTROLS=1
32622 fi
32623
32624 if test "$wxUSE_STATUSBAR" = "yes"; then
32625     cat >>confdefs.h <<\_ACEOF
32626 #define wxUSE_STATUSBAR 1
32627 _ACEOF
32628
32629     USES_CONTROLS=1
32630
32631     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
32632 fi
32633
32634 if test "$wxUSE_TABDIALOG" = "yes"; then
32635     cat >>confdefs.h <<\_ACEOF
32636 #define wxUSE_TAB_DIALOG 1
32637 _ACEOF
32638
32639     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32640 fi
32641
32642 if test "$wxUSE_TEXTCTRL" = "yes"; then
32643     cat >>confdefs.h <<\_ACEOF
32644 #define wxUSE_TEXTCTRL 1
32645 _ACEOF
32646
32647     USES_CONTROLS=1
32648     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32649 fi
32650
32651 if test "$wxUSE_TOGGLEBTN" = "yes"; then
32652     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32653         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32654 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
32655         wxUSE_TOGGLEBTN=no
32656     fi
32657     if test "$wxUSE_UNIVERSAL" = "yes"; then
32658         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32659 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
32660         wxUSE_TOGGLEBTN=no
32661     fi
32662
32663     if test "$wxUSE_TOGGLEBTN" = "yes"; then
32664         cat >>confdefs.h <<\_ACEOF
32665 #define wxUSE_TOGGLEBTN 1
32666 _ACEOF
32667
32668         USES_CONTROLS=1
32669     fi
32670 fi
32671
32672 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
32673     cat >>confdefs.h <<\_ACEOF
32674 #define wxUSE_TOOLBAR_SIMPLE 1
32675 _ACEOF
32676
32677     wxUSE_TOOLBAR="yes"
32678     USES_CONTROLS=1
32679 fi
32680
32681 if test "$wxUSE_TOOLBAR" = "yes"; then
32682     cat >>confdefs.h <<\_ACEOF
32683 #define wxUSE_TOOLBAR 1
32684 _ACEOF
32685
32686     USES_CONTROLS=1
32687
32688         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32689         wxUSE_TOOLBAR_NATIVE="yes"
32690     fi
32691
32692     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
32693         cat >>confdefs.h <<\_ACEOF
32694 #define wxUSE_TOOLBAR_NATIVE 1
32695 _ACEOF
32696
32697         USES_CONTROLS=1
32698     fi
32699
32700     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
32701 fi
32702
32703 if test "$wxUSE_TOOLTIPS" = "yes"; then
32704     if test "$wxUSE_MOTIF" = 1; then
32705         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32706 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
32707     else
32708         if test "$wxUSE_UNIVERSAL" = "yes"; then
32709             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32710 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
32711         else
32712             cat >>confdefs.h <<\_ACEOF
32713 #define wxUSE_TOOLTIPS 1
32714 _ACEOF
32715
32716         fi
32717     fi
32718 fi
32719
32720 if test "$wxUSE_TREECTRL" = "yes"; then
32721     if test "$wxUSE_IMAGLIST" = "yes"; then
32722         cat >>confdefs.h <<\_ACEOF
32723 #define wxUSE_TREECTRL 1
32724 _ACEOF
32725
32726         USES_CONTROLS=1
32727         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32728     else
32729         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32730 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
32731     fi
32732 fi
32733
32734 if test "$wxUSE_POPUPWIN" = "yes"; then
32735     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32736         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32737 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
32738     else
32739         if test "$wxUSE_MOTIF" = 1; then
32740             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32741 echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
32742         else
32743             if test "$wxUSE_PM" = 1; then
32744                 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32745 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
32746             else
32747                 cat >>confdefs.h <<\_ACEOF
32748 #define wxUSE_POPUPWIN 1
32749 _ACEOF
32750
32751
32752                 USES_CONTROLS=1
32753             fi
32754         fi
32755     fi
32756 fi
32757
32758 if test "$wxUSE_TIPWINDOW" = "yes"; then
32759     if test "$wxUSE_PM" = 1; then
32760         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32761 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
32762     else
32763         cat >>confdefs.h <<\_ACEOF
32764 #define wxUSE_TIPWINDOW 1
32765 _ACEOF
32766
32767     fi
32768 fi
32769
32770 if test "$USES_CONTROLS" = 1; then
32771     cat >>confdefs.h <<\_ACEOF
32772 #define wxUSE_CONTROLS 1
32773 _ACEOF
32774
32775 fi
32776
32777
32778
32779 if test "$wxUSE_DRAGIMAGE" = "yes"; then
32780     cat >>confdefs.h <<\_ACEOF
32781 #define wxUSE_DRAGIMAGE 1
32782 _ACEOF
32783
32784     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32785 fi
32786
32787 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
32788     cat >>confdefs.h <<\_ACEOF
32789 #define wxUSE_ACCESSIBILITY 1
32790 _ACEOF
32791
32792     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32793 fi
32794
32795 if test "$wxUSE_MENUS" = "yes"; then
32796     cat >>confdefs.h <<\_ACEOF
32797 #define wxUSE_MENUS 1
32798 _ACEOF
32799
32800     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
32801 fi
32802
32803 if test "$wxUSE_METAFILE" = "yes"; then
32804     cat >>confdefs.h <<\_ACEOF
32805 #define wxUSE_METAFILE 1
32806 _ACEOF
32807
32808 fi
32809
32810 if test "$wxUSE_MIMETYPE" = "yes"; then
32811     cat >>confdefs.h <<\_ACEOF
32812 #define wxUSE_MIMETYPE 1
32813 _ACEOF
32814
32815 fi
32816
32817 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
32818     cat >>confdefs.h <<\_ACEOF
32819 #define wxUSE_SYSTEM_OPTIONS 1
32820 _ACEOF
32821
32822 if test "$TOOLKIT" = "MSW"; then
32823     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32824 fi
32825
32826 fi
32827
32828 if test "$wxUSE_MINIFRAME" = "yes"; then
32829     cat >>confdefs.h <<\_ACEOF
32830 #define wxUSE_MINIFRAME 1
32831 _ACEOF
32832
32833     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32834 fi
32835
32836 USE_HTML=0
32837 if test "$wxUSE_HTML" = "yes"; then
32838     cat >>confdefs.h <<\_ACEOF
32839 #define wxUSE_HTML 1
32840 _ACEOF
32841
32842     USE_HTML=1
32843     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
32844 fi
32845
32846 if test "$wxUSE_VALIDATORS" = "yes"; then
32847     cat >>confdefs.h <<\_ACEOF
32848 #define wxUSE_VALIDATORS 1
32849 _ACEOF
32850
32851     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32852 fi
32853
32854 if test "$wxUSE_PALETTE" = "yes" ; then
32855   cat >>confdefs.h <<\_ACEOF
32856 #define wxUSE_PALETTE 1
32857 _ACEOF
32858
32859 fi
32860
32861 if test "$wxUSE_IMAGE" = "yes" ; then
32862   cat >>confdefs.h <<\_ACEOF
32863 #define wxUSE_IMAGE 1
32864 _ACEOF
32865
32866 fi
32867
32868 if test "$wxUSE_GIF" = "yes" ; then
32869   cat >>confdefs.h <<\_ACEOF
32870 #define wxUSE_GIF 1
32871 _ACEOF
32872
32873 fi
32874
32875 if test "$wxUSE_PCX" = "yes" ; then
32876   cat >>confdefs.h <<\_ACEOF
32877 #define wxUSE_PCX 1
32878 _ACEOF
32879
32880 fi
32881
32882 if test "$wxUSE_IFF" = "yes" ; then
32883   cat >>confdefs.h <<\_ACEOF
32884 #define wxUSE_IFF 1
32885 _ACEOF
32886
32887 fi
32888
32889 if test "$wxUSE_PNM" = "yes" ; then
32890   cat >>confdefs.h <<\_ACEOF
32891 #define wxUSE_PNM 1
32892 _ACEOF
32893
32894 fi
32895
32896 if test "$wxUSE_XPM" = "yes" ; then
32897   cat >>confdefs.h <<\_ACEOF
32898 #define wxUSE_XPM 1
32899 _ACEOF
32900
32901 fi
32902
32903 if test "$wxUSE_ICO_CUR" = "yes" ; then
32904   cat >>confdefs.h <<\_ACEOF
32905 #define wxUSE_ICO_CUR 1
32906 _ACEOF
32907
32908 fi
32909
32910 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32911     LIBS=" -lunicows $LIBS"
32912 fi
32913
32914
32915 if test "$wxUSE_CHOICEDLG" = "yes"; then
32916     cat >>confdefs.h <<\_ACEOF
32917 #define wxUSE_CHOICEDLG 1
32918 _ACEOF
32919
32920 fi
32921
32922 if test "$wxUSE_COLOURDLG" = "yes"; then
32923     cat >>confdefs.h <<\_ACEOF
32924 #define wxUSE_COLOURDLG 1
32925 _ACEOF
32926
32927 fi
32928
32929 if test "$wxUSE_FILEDLG" = "yes"; then
32930     cat >>confdefs.h <<\_ACEOF
32931 #define wxUSE_FILEDLG 1
32932 _ACEOF
32933
32934 fi
32935
32936 if test "$wxUSE_FINDREPLDLG" = "yes"; then
32937     cat >>confdefs.h <<\_ACEOF
32938 #define wxUSE_FINDREPLDLG 1
32939 _ACEOF
32940
32941 fi
32942
32943 if test "$wxUSE_FONTDLG" = "yes"; then
32944     cat >>confdefs.h <<\_ACEOF
32945 #define wxUSE_FONTDLG 1
32946 _ACEOF
32947
32948 fi
32949
32950 if test "$wxUSE_DIRDLG" = "yes"; then
32951     if test "$wxUSE_TREECTRL" != "yes"; then
32952         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32953 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
32954     else
32955         cat >>confdefs.h <<\_ACEOF
32956 #define wxUSE_DIRDLG 1
32957 _ACEOF
32958
32959     fi
32960 fi
32961
32962 if test "$wxUSE_MSGDLG" = "yes"; then
32963     cat >>confdefs.h <<\_ACEOF
32964 #define wxUSE_MSGDLG 1
32965 _ACEOF
32966
32967 fi
32968
32969 if test "$wxUSE_NUMBERDLG" = "yes"; then
32970     cat >>confdefs.h <<\_ACEOF
32971 #define wxUSE_NUMBERDLG 1
32972 _ACEOF
32973
32974 fi
32975
32976 if test "$wxUSE_PROGRESSDLG" = "yes"; then
32977     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32978        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
32979 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
32980     else
32981         cat >>confdefs.h <<\_ACEOF
32982 #define wxUSE_PROGRESSDLG 1
32983 _ACEOF
32984
32985     fi
32986 fi
32987
32988 if test "$wxUSE_SPLASH" = "yes"; then
32989     cat >>confdefs.h <<\_ACEOF
32990 #define wxUSE_SPLASH 1
32991 _ACEOF
32992
32993 fi
32994
32995 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
32996     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32997        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
32998 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
32999     else
33000         cat >>confdefs.h <<\_ACEOF
33001 #define wxUSE_STARTUP_TIPS 1
33002 _ACEOF
33003
33004     fi
33005 fi
33006
33007 if test "$wxUSE_TEXTDLG" = "yes"; then
33008     cat >>confdefs.h <<\_ACEOF
33009 #define wxUSE_TEXTDLG 1
33010 _ACEOF
33011
33012 fi
33013
33014 if test "$wxUSE_WIZARDDLG" = "yes"; then
33015     cat >>confdefs.h <<\_ACEOF
33016 #define wxUSE_WIZARDDLG 1
33017 _ACEOF
33018
33019     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33020 fi
33021
33022
33023 if test "$cross_compiling" = "yes"; then
33024         OSINFO="\"$host\""
33025 else
33026         OSINFO=`uname -s -r -m`
33027     OSINFO="\"$OSINFO\""
33028 fi
33029
33030 cat >>confdefs.h <<_ACEOF
33031 #define WXWIN_OS_DESCRIPTION $OSINFO
33032 _ACEOF
33033
33034
33035
33036 if test "x$prefix" != "xNONE"; then
33037     wxPREFIX=$prefix
33038 else
33039     wxPREFIX=$ac_default_prefix
33040 fi
33041
33042 cat >>confdefs.h <<_ACEOF
33043 #define wxINSTALL_PREFIX "$wxPREFIX"
33044 _ACEOF
33045
33046
33047 top_builddir_wxconfig=`pwd`
33048
33049
33050
33051
33052 if test "$wxUSE_MAC" = 1 ; then
33053     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33054 fi
33055 if test "$wxUSE_COCOA" = 1 ; then
33056     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33057 fi
33058
33059
33060 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33061
33062 have_cos=0
33063 have_floor=0
33064
33065 for ac_func in cos
33066 do
33067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33068 echo "$as_me:$LINENO: checking for $ac_func" >&5
33069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33070 if eval "test \"\${$as_ac_var+set}\" = set"; then
33071   echo $ECHO_N "(cached) $ECHO_C" >&6
33072 else
33073   cat >conftest.$ac_ext <<_ACEOF
33074 #line $LINENO "configure"
33075 /* confdefs.h.  */
33076 _ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h.  */
33080 /* System header to define __stub macros and hopefully few prototypes,
33081     which can conflict with char $ac_func (); below.
33082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33083     <limits.h> exists even on freestanding compilers.  */
33084 #ifdef __STDC__
33085 # include <limits.h>
33086 #else
33087 # include <assert.h>
33088 #endif
33089 /* Override any gcc2 internal prototype to avoid an error.  */
33090 #ifdef __cplusplus
33091 extern "C"
33092 {
33093 #endif
33094 /* We use char because int might match the return type of a gcc2
33095    builtin and then its argument prototype would still apply.  */
33096 char $ac_func ();
33097 /* The GNU C library defines this for functions which it implements
33098     to always fail with ENOSYS.  Some functions are actually named
33099     something starting with __ and the normal name is an alias.  */
33100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33101 choke me
33102 #else
33103 char (*f) () = $ac_func;
33104 #endif
33105 #ifdef __cplusplus
33106 }
33107 #endif
33108
33109 int
33110 main ()
33111 {
33112 return f != $ac_func;
33113   ;
33114   return 0;
33115 }
33116 _ACEOF
33117 rm -f conftest.$ac_objext conftest$ac_exeext
33118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33119   (eval $ac_link) 2>&5
33120   ac_status=$?
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); } &&
33123          { ac_try='test -s conftest$ac_exeext'
33124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33125   (eval $ac_try) 2>&5
33126   ac_status=$?
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); }; }; then
33129   eval "$as_ac_var=yes"
33130 else
33131   echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33133
33134 eval "$as_ac_var=no"
33135 fi
33136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33137 fi
33138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33140 if test `eval echo '${'$as_ac_var'}'` = yes; then
33141   cat >>confdefs.h <<_ACEOF
33142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33143 _ACEOF
33144  have_cos=1
33145 fi
33146 done
33147
33148
33149 for ac_func in floor
33150 do
33151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33152 echo "$as_me:$LINENO: checking for $ac_func" >&5
33153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33154 if eval "test \"\${$as_ac_var+set}\" = set"; then
33155   echo $ECHO_N "(cached) $ECHO_C" >&6
33156 else
33157   cat >conftest.$ac_ext <<_ACEOF
33158 #line $LINENO "configure"
33159 /* confdefs.h.  */
33160 _ACEOF
33161 cat confdefs.h >>conftest.$ac_ext
33162 cat >>conftest.$ac_ext <<_ACEOF
33163 /* end confdefs.h.  */
33164 /* System header to define __stub macros and hopefully few prototypes,
33165     which can conflict with char $ac_func (); below.
33166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33167     <limits.h> exists even on freestanding compilers.  */
33168 #ifdef __STDC__
33169 # include <limits.h>
33170 #else
33171 # include <assert.h>
33172 #endif
33173 /* Override any gcc2 internal prototype to avoid an error.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 {
33177 #endif
33178 /* We use char because int might match the return type of a gcc2
33179    builtin and then its argument prototype would still apply.  */
33180 char $ac_func ();
33181 /* The GNU C library defines this for functions which it implements
33182     to always fail with ENOSYS.  Some functions are actually named
33183     something starting with __ and the normal name is an alias.  */
33184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33185 choke me
33186 #else
33187 char (*f) () = $ac_func;
33188 #endif
33189 #ifdef __cplusplus
33190 }
33191 #endif
33192
33193 int
33194 main ()
33195 {
33196 return f != $ac_func;
33197   ;
33198   return 0;
33199 }
33200 _ACEOF
33201 rm -f conftest.$ac_objext conftest$ac_exeext
33202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33203   (eval $ac_link) 2>&5
33204   ac_status=$?
33205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206   (exit $ac_status); } &&
33207          { ac_try='test -s conftest$ac_exeext'
33208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33209   (eval $ac_try) 2>&5
33210   ac_status=$?
33211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212   (exit $ac_status); }; }; then
33213   eval "$as_ac_var=yes"
33214 else
33215   echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33217
33218 eval "$as_ac_var=no"
33219 fi
33220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33221 fi
33222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33224 if test `eval echo '${'$as_ac_var'}'` = yes; then
33225   cat >>confdefs.h <<_ACEOF
33226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33227 _ACEOF
33228  have_floor=1
33229 fi
33230 done
33231
33232 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33233 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
33234 if test "$have_cos" = 1 -a "$have_floor" = 1; then
33235     echo "$as_me:$LINENO: result: yes" >&5
33236 echo "${ECHO_T}yes" >&6
33237 else
33238     echo "$as_me:$LINENO: result: no" >&5
33239 echo "${ECHO_T}no" >&6
33240     LIBS="$LIBS -lm"
33241     # use different functions to avoid configure caching
33242     have_sin=0
33243     have_ceil=0
33244
33245 for ac_func in sin
33246 do
33247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33248 echo "$as_me:$LINENO: checking for $ac_func" >&5
33249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33250 if eval "test \"\${$as_ac_var+set}\" = set"; then
33251   echo $ECHO_N "(cached) $ECHO_C" >&6
33252 else
33253   cat >conftest.$ac_ext <<_ACEOF
33254 #line $LINENO "configure"
33255 /* confdefs.h.  */
33256 _ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h.  */
33260 /* System header to define __stub macros and hopefully few prototypes,
33261     which can conflict with char $ac_func (); below.
33262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33263     <limits.h> exists even on freestanding compilers.  */
33264 #ifdef __STDC__
33265 # include <limits.h>
33266 #else
33267 # include <assert.h>
33268 #endif
33269 /* Override any gcc2 internal prototype to avoid an error.  */
33270 #ifdef __cplusplus
33271 extern "C"
33272 {
33273 #endif
33274 /* We use char because int might match the return type of a gcc2
33275    builtin and then its argument prototype would still apply.  */
33276 char $ac_func ();
33277 /* The GNU C library defines this for functions which it implements
33278     to always fail with ENOSYS.  Some functions are actually named
33279     something starting with __ and the normal name is an alias.  */
33280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33281 choke me
33282 #else
33283 char (*f) () = $ac_func;
33284 #endif
33285 #ifdef __cplusplus
33286 }
33287 #endif
33288
33289 int
33290 main ()
33291 {
33292 return f != $ac_func;
33293   ;
33294   return 0;
33295 }
33296 _ACEOF
33297 rm -f conftest.$ac_objext conftest$ac_exeext
33298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33299   (eval $ac_link) 2>&5
33300   ac_status=$?
33301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302   (exit $ac_status); } &&
33303          { ac_try='test -s conftest$ac_exeext'
33304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33305   (eval $ac_try) 2>&5
33306   ac_status=$?
33307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308   (exit $ac_status); }; }; then
33309   eval "$as_ac_var=yes"
33310 else
33311   echo "$as_me: failed program was:" >&5
33312 sed 's/^/| /' conftest.$ac_ext >&5
33313
33314 eval "$as_ac_var=no"
33315 fi
33316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33317 fi
33318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33320 if test `eval echo '${'$as_ac_var'}'` = yes; then
33321   cat >>confdefs.h <<_ACEOF
33322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33323 _ACEOF
33324  have_sin=1
33325 fi
33326 done
33327
33328
33329 for ac_func in ceil
33330 do
33331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33332 echo "$as_me:$LINENO: checking for $ac_func" >&5
33333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33334 if eval "test \"\${$as_ac_var+set}\" = set"; then
33335   echo $ECHO_N "(cached) $ECHO_C" >&6
33336 else
33337   cat >conftest.$ac_ext <<_ACEOF
33338 #line $LINENO "configure"
33339 /* confdefs.h.  */
33340 _ACEOF
33341 cat confdefs.h >>conftest.$ac_ext
33342 cat >>conftest.$ac_ext <<_ACEOF
33343 /* end confdefs.h.  */
33344 /* System header to define __stub macros and hopefully few prototypes,
33345     which can conflict with char $ac_func (); below.
33346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33347     <limits.h> exists even on freestanding compilers.  */
33348 #ifdef __STDC__
33349 # include <limits.h>
33350 #else
33351 # include <assert.h>
33352 #endif
33353 /* Override any gcc2 internal prototype to avoid an error.  */
33354 #ifdef __cplusplus
33355 extern "C"
33356 {
33357 #endif
33358 /* We use char because int might match the return type of a gcc2
33359    builtin and then its argument prototype would still apply.  */
33360 char $ac_func ();
33361 /* The GNU C library defines this for functions which it implements
33362     to always fail with ENOSYS.  Some functions are actually named
33363     something starting with __ and the normal name is an alias.  */
33364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33365 choke me
33366 #else
33367 char (*f) () = $ac_func;
33368 #endif
33369 #ifdef __cplusplus
33370 }
33371 #endif
33372
33373 int
33374 main ()
33375 {
33376 return f != $ac_func;
33377   ;
33378   return 0;
33379 }
33380 _ACEOF
33381 rm -f conftest.$ac_objext conftest$ac_exeext
33382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33383   (eval $ac_link) 2>&5
33384   ac_status=$?
33385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386   (exit $ac_status); } &&
33387          { ac_try='test -s conftest$ac_exeext'
33388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389   (eval $ac_try) 2>&5
33390   ac_status=$?
33391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392   (exit $ac_status); }; }; then
33393   eval "$as_ac_var=yes"
33394 else
33395   echo "$as_me: failed program was:" >&5
33396 sed 's/^/| /' conftest.$ac_ext >&5
33397
33398 eval "$as_ac_var=no"
33399 fi
33400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33401 fi
33402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33404 if test `eval echo '${'$as_ac_var'}'` = yes; then
33405   cat >>confdefs.h <<_ACEOF
33406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33407 _ACEOF
33408  have_ceil=1
33409 fi
33410 done
33411
33412     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33413 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
33414     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
33415         echo "$as_me:$LINENO: result: yes" >&5
33416 echo "${ECHO_T}yes" >&6
33417     else
33418         echo "$as_me:$LINENO: result: no" >&5
33419 echo "${ECHO_T}no" >&6
33420         # not sure we should warn the user, crash, etc.
33421     fi
33422 fi
33423
33424 if test "$wxUSE_GUI" = "yes"; then
33425
33426
33427             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33428                      drawing dynamic erase event exec font image \
33429                      minimal propsize rotate shaped widgets"
33430
33431     if test "$wxUSE_MONOLITHIC" != "yes"; then
33432         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33433     fi
33434 else
33435     SAMPLES_SUBDIRS="console"
33436 fi
33437
33438
33439 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
33440 -I\${top_srcdir}/include \
33441 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33442 $TOOLKIT_INCLUDE"
33443
33444 if test "$GXX" = yes ; then
33445         CXXWARNINGS="-Wall"
33446         fi
33447
33448 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33449
33450 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
33451 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33452 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
33453
33454
33455 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
33456 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33457 EXTRALIBS_XML="$EXPAT_LINK"
33458 if test "$wxUSE_GUI" = "yes"; then
33459     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33460 fi
33461 if test "$wxUSE_OPENGL" = "yes"; then
33462     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33463 fi
33464
33465 LDFLAGS="$LDFLAGS $PROFILE"
33466
33467 if test "$wxUSE_GTK" = 1; then
33468     WXCONFIG_INCLUDE=
33469 else
33470     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33471 fi
33472
33473 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33474     WXUNIV=1
33475 else
33476     WXUNIV=0
33477 fi
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487 if test $wxUSE_MONOLITHIC = "yes" ; then
33488     MONOLITHIC=1
33489 else
33490     MONOLITHIC=0
33491 fi
33492
33493 VENDOR="custom"
33494 OFFICIAL_BUILD=0
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
33508
33509
33510
33511
33512
33513
33514     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
33515
33516     if test -n "$ac_tool_prefix"; then
33517   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33519 echo "$as_me:$LINENO: checking for $ac_word" >&5
33520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33521 if test "${ac_cv_prog_RANLIB+set}" = set; then
33522   echo $ECHO_N "(cached) $ECHO_C" >&6
33523 else
33524   if test -n "$RANLIB"; then
33525   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33526 else
33527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33528 for as_dir in $PATH
33529 do
33530   IFS=$as_save_IFS
33531   test -z "$as_dir" && as_dir=.
33532   for ac_exec_ext in '' $ac_executable_extensions; do
33533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33534     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33536     break 2
33537   fi
33538 done
33539 done
33540
33541 fi
33542 fi
33543 RANLIB=$ac_cv_prog_RANLIB
33544 if test -n "$RANLIB"; then
33545   echo "$as_me:$LINENO: result: $RANLIB" >&5
33546 echo "${ECHO_T}$RANLIB" >&6
33547 else
33548   echo "$as_me:$LINENO: result: no" >&5
33549 echo "${ECHO_T}no" >&6
33550 fi
33551
33552 fi
33553 if test -z "$ac_cv_prog_RANLIB"; then
33554   ac_ct_RANLIB=$RANLIB
33555   # Extract the first word of "ranlib", so it can be a program name with args.
33556 set dummy ranlib; ac_word=$2
33557 echo "$as_me:$LINENO: checking for $ac_word" >&5
33558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33560   echo $ECHO_N "(cached) $ECHO_C" >&6
33561 else
33562   if test -n "$ac_ct_RANLIB"; then
33563   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33564 else
33565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33566 for as_dir in $PATH
33567 do
33568   IFS=$as_save_IFS
33569   test -z "$as_dir" && as_dir=.
33570   for ac_exec_ext in '' $ac_executable_extensions; do
33571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33572     ac_cv_prog_ac_ct_RANLIB="ranlib"
33573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33574     break 2
33575   fi
33576 done
33577 done
33578
33579   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33580 fi
33581 fi
33582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33583 if test -n "$ac_ct_RANLIB"; then
33584   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33585 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33586 else
33587   echo "$as_me:$LINENO: result: no" >&5
33588 echo "${ECHO_T}no" >&6
33589 fi
33590
33591   RANLIB=$ac_ct_RANLIB
33592 else
33593   RANLIB="$ac_cv_prog_RANLIB"
33594 fi
33595
33596     # Find a good install program.  We prefer a C program (faster),
33597 # so one script is as good as another.  But avoid the broken or
33598 # incompatible versions:
33599 # SysV /etc/install, /usr/sbin/install
33600 # SunOS /usr/etc/install
33601 # IRIX /sbin/install
33602 # AIX /bin/install
33603 # AmigaOS /C/install, which installs bootblocks on floppy discs
33604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
33606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33607 # ./install, which can be erroneously created by make from ./install.sh.
33608 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33609 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
33610 if test -z "$INSTALL"; then
33611 if test "${ac_cv_path_install+set}" = set; then
33612   echo $ECHO_N "(cached) $ECHO_C" >&6
33613 else
33614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33615 for as_dir in $PATH
33616 do
33617   IFS=$as_save_IFS
33618   test -z "$as_dir" && as_dir=.
33619   # Account for people who put trailing slashes in PATH elements.
33620 case $as_dir/ in
33621   ./ | .// | /cC/* | \
33622   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33623   /usr/ucb/* ) ;;
33624   *)
33625     # OSF1 and SCO ODT 3.0 have their own names for install.
33626     # Don't use installbsd from OSF since it installs stuff as root
33627     # by default.
33628     for ac_prog in ginstall scoinst install; do
33629       for ac_exec_ext in '' $ac_executable_extensions; do
33630         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33631           if test $ac_prog = install &&
33632             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33633             # AIX install.  It has an incompatible calling convention.
33634             :
33635           elif test $ac_prog = install &&
33636             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33637             # program-specific install script used by HP pwplus--don't use.
33638             :
33639           else
33640             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33641             break 3
33642           fi
33643         fi
33644       done
33645     done
33646     ;;
33647 esac
33648 done
33649
33650
33651 fi
33652   if test "${ac_cv_path_install+set}" = set; then
33653     INSTALL=$ac_cv_path_install
33654   else
33655     # As a last resort, use the slow shell script.  We don't cache a
33656     # path for INSTALL within a source directory, because that will
33657     # break other packages using the cache if that directory is
33658     # removed, or if the path is relative.
33659     INSTALL=$ac_install_sh
33660   fi
33661 fi
33662 echo "$as_me:$LINENO: result: $INSTALL" >&5
33663 echo "${ECHO_T}$INSTALL" >&6
33664
33665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33666 # It thinks the first close brace ends the variable substitution.
33667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33668
33669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
33670
33671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33672
33673     echo "$as_me:$LINENO: checking whether ln -s works" >&5
33674 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33675 LN_S=$as_ln_s
33676 if test "$LN_S" = "ln -s"; then
33677   echo "$as_me:$LINENO: result: yes" >&5
33678 echo "${ECHO_T}yes" >&6
33679 else
33680   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33681 echo "${ECHO_T}no, using $LN_S" >&6
33682 fi
33683
33684
33685     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33686 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33688 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33689   echo $ECHO_N "(cached) $ECHO_C" >&6
33690 else
33691   cat >conftest.make <<\_ACEOF
33692 all:
33693         @echo 'ac_maketemp="$(MAKE)"'
33694 _ACEOF
33695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33696 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
33697 if test -n "$ac_maketemp"; then
33698   eval ac_cv_prog_make_${ac_make}_set=yes
33699 else
33700   eval ac_cv_prog_make_${ac_make}_set=no
33701 fi
33702 rm -f conftest.make
33703 fi
33704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
33705   echo "$as_me:$LINENO: result: yes" >&5
33706 echo "${ECHO_T}yes" >&6
33707   SET_MAKE=
33708 else
33709   echo "$as_me:$LINENO: result: no" >&5
33710 echo "${ECHO_T}no" >&6
33711   SET_MAKE="MAKE=${MAKE-make}"
33712 fi
33713
33714
33715
33716     if test "$build" != "$host" ; then
33717         AR=$host_alias-ar
33718         STRIP=$host_alias-strip
33719     else
33720         # Extract the first word of "ar", so it can be a program name with args.
33721 set dummy ar; ac_word=$2
33722 echo "$as_me:$LINENO: checking for $ac_word" >&5
33723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33724 if test "${ac_cv_prog_AR+set}" = set; then
33725   echo $ECHO_N "(cached) $ECHO_C" >&6
33726 else
33727   if test -n "$AR"; then
33728   ac_cv_prog_AR="$AR" # Let the user override the test.
33729 else
33730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33731 for as_dir in $PATH
33732 do
33733   IFS=$as_save_IFS
33734   test -z "$as_dir" && as_dir=.
33735   for ac_exec_ext in '' $ac_executable_extensions; do
33736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33737     ac_cv_prog_AR="ar"
33738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33739     break 2
33740   fi
33741 done
33742 done
33743
33744   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33745 fi
33746 fi
33747 AR=$ac_cv_prog_AR
33748 if test -n "$AR"; then
33749   echo "$as_me:$LINENO: result: $AR" >&5
33750 echo "${ECHO_T}$AR" >&6
33751 else
33752   echo "$as_me:$LINENO: result: no" >&5
33753 echo "${ECHO_T}no" >&6
33754 fi
33755
33756         # Extract the first word of "strip", so it can be a program name with args.
33757 set dummy strip; ac_word=$2
33758 echo "$as_me:$LINENO: checking for $ac_word" >&5
33759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33760 if test "${ac_cv_prog_STRIP+set}" = set; then
33761   echo $ECHO_N "(cached) $ECHO_C" >&6
33762 else
33763   if test -n "$STRIP"; then
33764   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33765 else
33766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33767 for as_dir in $PATH
33768 do
33769   IFS=$as_save_IFS
33770   test -z "$as_dir" && as_dir=.
33771   for ac_exec_ext in '' $ac_executable_extensions; do
33772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33773     ac_cv_prog_STRIP="strip"
33774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33775     break 2
33776   fi
33777 done
33778 done
33779
33780   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33781 fi
33782 fi
33783 STRIP=$ac_cv_prog_STRIP
33784 if test -n "$STRIP"; then
33785   echo "$as_me:$LINENO: result: $STRIP" >&5
33786 echo "${ECHO_T}$STRIP" >&6
33787 else
33788   echo "$as_me:$LINENO: result: no" >&5
33789 echo "${ECHO_T}no" >&6
33790 fi
33791
33792     fi
33793
33794     case ${host} in
33795         *-hp-hpux* )
33796             INSTALL_DIR="mkdir"
33797             ;;
33798         *)  INSTALL_DIR="$INSTALL -d"
33799             ;;
33800     esac
33801
33802
33803     LDFLAGS_GUI=
33804     case ${host} in
33805         *-*-cygwin* | *-*-mingw32* )
33806         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
33807     esac
33808
33809
33810     fi
33811
33812         echo "$as_me:$LINENO: checking if make is GNU make" >&5
33813 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
33814 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
33815   echo $ECHO_N "(cached) $ECHO_C" >&6
33816 else
33817
33818         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33819                 egrep -s GNU > /dev/null); then
33820             bakefile_cv_prog_makeisgnu="yes"
33821         else
33822             bakefile_cv_prog_makeisgnu="no"
33823         fi
33824
33825 fi
33826 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
33827 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
33828
33829     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33830         IF_GNU_MAKE=""
33831     else
33832         IF_GNU_MAKE="#"
33833     fi
33834
33835
33836
33837     PLATFORM_UNIX=0
33838     PLATFORM_WIN32=0
33839     PLATFORM_MSDOS=0
33840     PLATFORM_MAC=0
33841     PLATFORM_MACOSX=0
33842
33843     case "${host}" in
33844         *-*-cygwin* | *-*-mingw32* )
33845             PLATFORM_WIN32=1
33846         ;;
33847         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33848             PLATFORM_MSDOS=1
33849         ;;
33850         powerpc-*-darwin* )
33851             PLATFORM_MAC=1
33852             PLATFORM_MACOSX=1
33853         ;;
33854         * )
33855             PLATFORM_UNIX=1
33856         ;;
33857     esac
33858
33859
33860
33861
33862
33863
33864
33865
33866     SO_SUFFIX="so"
33867     EXEEXT=""
33868     DLLPREFIX=lib
33869
33870     case "${host}" in
33871         *-hp-hpux* )
33872             SO_SUFFIX="sl"
33873         ;;
33874         *-*-aix* )
33875                                                                         SO_SUFFIX="a"
33876         ;;
33877         *-*-cygwin* | *-*-mingw32* )
33878             SO_SUFFIX="dll"
33879             EXEEXT=".exe"
33880             DLLPREFIX=""
33881         ;;
33882         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33883             EXEEXT=".exe"
33884             DLLPREFIX=""
33885         ;;
33886         powerpc-*-darwin* )
33887             SO_SUFFIX="dylib"
33888         ;;
33889     esac
33890
33891
33892
33893
33894
33895
33896         SHARED_LD_CC="\$(CC) -shared -o"
33897     SHARED_LD_CXX="\$(CXX) -shared -o"
33898
33899         if test "x$GCC" = "xyes"; then
33900                 PIC_FLAG="-fPIC"
33901     fi
33902
33903     case "${host}" in
33904       *-hp-hpux* )
33905                 if test "x$GCC" = "xyes"; then
33906                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33907             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33908         else
33909                         LDFLAGS="$LDFLAGS -L/usr/lib"
33910
33911             SHARED_LD_CC="${CC} -b -o"
33912             SHARED_LD_CXX="${CXX} -b -o"
33913             PIC_FLAG="+Z"
33914         fi
33915       ;;
33916
33917       *-*-linux* )
33918         if test "x$GCC" != "xyes"; then
33919             echo "$as_me:$LINENO: checking for Intel compiler" >&5
33920 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33921 if test "${bakefile_cv_prog_icc+set}" = set; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924
33925                 cat >conftest.$ac_ext <<_ACEOF
33926 #line $LINENO "configure"
33927 /* confdefs.h.  */
33928 _ACEOF
33929 cat confdefs.h >>conftest.$ac_ext
33930 cat >>conftest.$ac_ext <<_ACEOF
33931 /* end confdefs.h.  */
33932
33933 int
33934 main ()
33935 {
33936
33937                         #ifndef __INTEL_COMPILER
33938                         #error Not icc
33939                         #endif
33940
33941   ;
33942   return 0;
33943 }
33944 _ACEOF
33945 rm -f conftest.$ac_objext
33946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33947   (eval $ac_compile) 2>&5
33948   ac_status=$?
33949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950   (exit $ac_status); } &&
33951          { ac_try='test -s conftest.$ac_objext'
33952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953   (eval $ac_try) 2>&5
33954   ac_status=$?
33955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956   (exit $ac_status); }; }; then
33957   bakefile_cv_prog_icc=yes
33958 else
33959   echo "$as_me: failed program was:" >&5
33960 sed 's/^/| /' conftest.$ac_ext >&5
33961
33962 bakefile_cv_prog_icc=no
33963
33964 fi
33965 rm -f conftest.$ac_objext conftest.$ac_ext
33966
33967 fi
33968 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33969 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
33970             if test "$bakefile_cv_prog_icc" = "yes"; then
33971                 PIC_FLAG="-KPIC"
33972             fi
33973         fi
33974       ;;
33975
33976       *-*-solaris2* )
33977         if test "x$GCC" != xyes ; then
33978             SHARED_LD_CC="${CC} -G -o"
33979             SHARED_LD_CXX="${CXX} -G -o"
33980             PIC_FLAG="-KPIC"
33981         fi
33982       ;;
33983
33984       *-*-darwin* )
33985                         CFLAGS="$CFLAGS -fno-common"
33986         CXXFLAGS="$CXXFLAGS -fno-common"
33987
33988
33989         cat <<EOF >shared-ld-sh
33990 #!/bin/sh
33991 #-----------------------------------------------------------------------------
33992 #-- Name:        distrib/mac/shared-ld-sh
33993 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
33994 #-- Author:      Gilles Depeyrot
33995 #-- Copyright:   (c) 2002 Gilles Depeyrot
33996 #-- Licence:     any use permitted
33997 #-----------------------------------------------------------------------------
33998
33999 verbose=0
34000 args=""
34001 objects=""
34002
34003 while test \${#} -gt 0; do
34004     case \${1} in
34005
34006        -v)
34007         verbose=1
34008         ;;
34009
34010        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34011         # collect these options and values
34012         args="\${args} \${1} \${2}"
34013         shift
34014         ;;
34015
34016        -l*|-L*|-flat_namespace)
34017         # collect these options
34018         args="\${args} \${1}"
34019         ;;
34020
34021        -dynamiclib)
34022         # skip these options
34023         ;;
34024
34025        -*)
34026         echo "shared-ld: unhandled option '\${1}'"
34027         exit 1
34028         ;;
34029
34030         *.o | *.a | *.dylib)
34031         # collect object files
34032         objects="\${objects} \${1}"
34033         ;;
34034
34035         *)
34036         echo "shared-ld: unhandled argument '\${1}'"
34037         exit 1
34038         ;;
34039
34040     esac
34041     shift
34042 done
34043
34044 #
34045 # Link one module containing all the others
34046 #
34047 if test \${verbose} = 1; then
34048     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34049 fi
34050 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34051 status=\$?
34052 if test \${status} != 0; then
34053     exit \${status}
34054 fi
34055
34056 #
34057 # Link the shared library from the single module created
34058 #
34059 if test \${verbose} = 1; then
34060     echo "cc -dynamiclib master.\$\$.o \${args}"
34061 fi
34062 c++ -dynamiclib master.\$\$.o \${args}
34063 status=\$?
34064 if test \${status} != 0; then
34065     exit \${status}
34066 fi
34067
34068 #
34069 # Remove intermediate module
34070 #
34071 rm -f master.\$\$.o
34072
34073 exit 0
34074 EOF
34075         chmod +x shared-ld-sh
34076
34077         SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34078         SHARED_LD_CXX="$SHARED_LD_CC"
34079         PIC_FLAG="-dynamic -fPIC"
34080                                       ;;
34081
34082       *-*-aix* )
34083                 if test "x$GCC" != "xyes"; then
34084                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34085 set dummy makeC++SharedLib; ac_word=$2
34086 echo "$as_me:$LINENO: checking for $ac_word" >&5
34087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34088 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34089   echo $ECHO_N "(cached) $ECHO_C" >&6
34090 else
34091   if test -n "$AIX_CXX_LD"; then
34092   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34093 else
34094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34095 for as_dir in $PATH
34096 do
34097   IFS=$as_save_IFS
34098   test -z "$as_dir" && as_dir=.
34099   for ac_exec_ext in '' $ac_executable_extensions; do
34100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34101     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34103     break 2
34104   fi
34105 done
34106 done
34107
34108   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34109 fi
34110 fi
34111 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
34112 if test -n "$AIX_CXX_LD"; then
34113   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34114 echo "${ECHO_T}$AIX_CXX_LD" >&6
34115 else
34116   echo "$as_me:$LINENO: result: no" >&5
34117 echo "${ECHO_T}no" >&6
34118 fi
34119
34120                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34121             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34122         fi
34123       ;;
34124
34125       *-*-beos* )
34126                         SHARED_LD_CC="${LD} -shared -o"
34127         SHARED_LD_CXX="${LD} -shared -o"
34128       ;;
34129
34130       *-*-irix* )
34131                 if test "x$GCC" != "xyes"; then
34132             PIC_FLAG="-KPIC"
34133         fi
34134       ;;
34135
34136       *-*-cygwin* | *-*-mingw32* )
34137         PIC_FLAG=""
34138       ;;
34139
34140       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34141       *-*-sunos4* | \
34142       *-*-osf* | \
34143       *-*-dgux5* | \
34144       *-*-sysv5* )
34145               ;;
34146
34147       *)
34148         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34149 echo "$as_me: error: unknown system type $host." >&2;}
34150    { (exit 1); exit 1; }; }
34151     esac
34152
34153
34154
34155
34156
34157
34158     USE_SOVERSION=0
34159     USE_SOVERLINUX=0
34160     USE_SOVERSOLARIS=0
34161     USE_SOSYMLINKS=0
34162     USE_MACVERSION=0
34163     SONAME_FLAG=
34164
34165     case "${host}" in
34166       *-*-linux* )
34167         SONAME_FLAG="-Wl,-soname,"
34168         USE_SOVERSION=1
34169         USE_SOVERLINUX=1
34170         USE_SOSYMLINKS=1
34171       ;;
34172
34173       *-*-solaris2* )
34174         SONAME_FLAG="-h "
34175         USE_SOVERSION=1
34176         USE_SOVERSOLARIS=1
34177         USE_SOSYMLINKS=1
34178       ;;
34179
34180       *-*-darwin* )
34181         USE_MACVERSION=1
34182         USE_SOVERSION=1
34183         USE_SOSYMLINKS=1
34184       ;;
34185     esac
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34196 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34197     DEPS_TRACKING=0
34198
34199     if test "x$GCC" = "xyes"; then
34200         DEPSMODE=gcc
34201         DEPS_TRACKING=1
34202         case "${host}" in
34203             powerpc-*-darwin* )
34204                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34205             ;;
34206             * )
34207                 DEPSFLAG_GCC="-MMD"
34208             ;;
34209         esac
34210         echo "$as_me:$LINENO: result: gcc" >&5
34211 echo "${ECHO_T}gcc" >&6
34212     else
34213         echo "$as_me:$LINENO: result: none" >&5
34214 echo "${ECHO_T}none" >&6
34215     fi
34216
34217     if test $DEPS_TRACKING = 1 ; then
34218         cat <<EOF >bk-deps
34219 #!/bin/sh
34220
34221 # This script is part of Bakefile (http://bakefile.sf.net) autoconf script.
34222 # It is used to track C/C++ files dependencies in portable way.
34223 #
34224 # Permission is given to use this file in any way.
34225
34226 DEPSMODE=$DEPSMODE
34227 DEPSDIR=.deps
34228 DEPSFLAG_GCC="$DEPSFLAG_GCC"
34229
34230 mkdir -p \$DEPSDIR
34231
34232 if test \$DEPSMODE = gcc ; then
34233     \${*} \${DEPSFLAG_GCC}
34234     status=\${?}
34235     if test \${status} != 0 ; then
34236         exit \${status}
34237     fi
34238     # move created file to the location we want it in:
34239     while test \${#} -gt 0; do
34240         case "\${1}" in
34241             -o )
34242                 shift
34243                 objfile=\${1}
34244             ;;
34245             -* )
34246             ;;
34247             * )
34248                 srcfile=\${1}
34249             ;;
34250         esac
34251         shift
34252     done
34253     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34254     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
34255     if test -f \$depfile ; then
34256         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34257         rm -f \$depfile
34258     else
34259         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34260         if test -f \$depfile ; then
34261             sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34262             rm -f \$depfile
34263         fi
34264     fi
34265     exit 0
34266 else
34267     \${*}
34268     exit \${?}
34269 fi
34270 EOF
34271         chmod +x bk-deps
34272     fi
34273
34274
34275
34276
34277     RESCOMP=
34278     SETFILE=
34279
34280     case ${host} in
34281         *-*-cygwin* | *-*-mingw32* )
34282                         if test "$build" != "$host" ; then
34283                 RESCOMP=$host_alias-windres
34284             else
34285                 # Extract the first word of "windres", so it can be a program name with args.
34286 set dummy windres; ac_word=$2
34287 echo "$as_me:$LINENO: checking for $ac_word" >&5
34288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34289 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34290   echo $ECHO_N "(cached) $ECHO_C" >&6
34291 else
34292   if test -n "$RESCOMP"; then
34293   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34294 else
34295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34296 for as_dir in $PATH
34297 do
34298   IFS=$as_save_IFS
34299   test -z "$as_dir" && as_dir=.
34300   for ac_exec_ext in '' $ac_executable_extensions; do
34301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34302     ac_cv_prog_RESCOMP="windres"
34303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34304     break 2
34305   fi
34306 done
34307 done
34308
34309   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34310 fi
34311 fi
34312 RESCOMP=$ac_cv_prog_RESCOMP
34313 if test -n "$RESCOMP"; then
34314   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34315 echo "${ECHO_T}$RESCOMP" >&6
34316 else
34317   echo "$as_me:$LINENO: result: no" >&5
34318 echo "${ECHO_T}no" >&6
34319 fi
34320
34321             fi
34322          ;;
34323
34324       *-*-darwin* )
34325             # Extract the first word of "Rez", so it can be a program name with args.
34326 set dummy Rez; ac_word=$2
34327 echo "$as_me:$LINENO: checking for $ac_word" >&5
34328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34329 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34330   echo $ECHO_N "(cached) $ECHO_C" >&6
34331 else
34332   if test -n "$RESCOMP"; then
34333   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34334 else
34335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34336 for as_dir in $PATH
34337 do
34338   IFS=$as_save_IFS
34339   test -z "$as_dir" && as_dir=.
34340   for ac_exec_ext in '' $ac_executable_extensions; do
34341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34342     ac_cv_prog_RESCOMP="Rez"
34343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34344     break 2
34345   fi
34346 done
34347 done
34348
34349   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34350 fi
34351 fi
34352 RESCOMP=$ac_cv_prog_RESCOMP
34353 if test -n "$RESCOMP"; then
34354   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34355 echo "${ECHO_T}$RESCOMP" >&6
34356 else
34357   echo "$as_me:$LINENO: result: no" >&5
34358 echo "${ECHO_T}no" >&6
34359 fi
34360
34361             # Extract the first word of "SetFile", so it can be a program name with args.
34362 set dummy SetFile; ac_word=$2
34363 echo "$as_me:$LINENO: checking for $ac_word" >&5
34364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34365 if test "${ac_cv_prog_SETFILE+set}" = set; then
34366   echo $ECHO_N "(cached) $ECHO_C" >&6
34367 else
34368   if test -n "$SETFILE"; then
34369   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34370 else
34371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34372 for as_dir in $PATH
34373 do
34374   IFS=$as_save_IFS
34375   test -z "$as_dir" && as_dir=.
34376   for ac_exec_ext in '' $ac_executable_extensions; do
34377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34378     ac_cv_prog_SETFILE="SetFile"
34379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34380     break 2
34381   fi
34382 done
34383 done
34384
34385   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34386 fi
34387 fi
34388 SETFILE=$ac_cv_prog_SETFILE
34389 if test -n "$SETFILE"; then
34390   echo "$as_me:$LINENO: result: $SETFILE" >&5
34391 echo "${ECHO_T}$SETFILE" >&6
34392 else
34393   echo "$as_me:$LINENO: result: no" >&5
34394 echo "${ECHO_T}no" >&6
34395 fi
34396
34397         ;;
34398     esac
34399
34400
34401
34402
34403
34404
34405
34406     COND_BUILD_DEBUG="#"
34407     if test "x$BUILD" = "xdebug" ; then
34408         COND_BUILD_DEBUG=""
34409     fi
34410
34411     COND_BUILD_RELEASE="#"
34412     if test "x$BUILD" = "xrelease" ; then
34413         COND_BUILD_RELEASE=""
34414     fi
34415
34416     COND_DEPS_TRACKING_0="#"
34417     if test "x$DEPS_TRACKING" = "x0" ; then
34418         COND_DEPS_TRACKING_0=""
34419     fi
34420
34421     COND_DEPS_TRACKING_1="#"
34422     if test "x$DEPS_TRACKING" = "x1" ; then
34423         COND_DEPS_TRACKING_1=""
34424     fi
34425
34426     COND_MONOLITHIC_0="#"
34427     if test "x$MONOLITHIC" = "x0" ; then
34428         COND_MONOLITHIC_0=""
34429     fi
34430
34431     COND_MONOLITHIC_0_SHARED_0="#"
34432     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34433         COND_MONOLITHIC_0_SHARED_0=""
34434     fi
34435
34436     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34437     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34438         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
34439     fi
34440
34441     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34442     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34443         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34444     fi
34445
34446     COND_MONOLITHIC_0_SHARED_1="#"
34447     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34448         COND_MONOLITHIC_0_SHARED_1=""
34449     fi
34450
34451     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34452     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34453         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34454     fi
34455
34456     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34457     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34458         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34459     fi
34460
34461     COND_MONOLITHIC_1="#"
34462     if test "x$MONOLITHIC" = "x1" ; then
34463         COND_MONOLITHIC_1=""
34464     fi
34465
34466     COND_MONOLITHIC_1_SHARED_0="#"
34467     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34468         COND_MONOLITHIC_1_SHARED_0=""
34469     fi
34470
34471     COND_MONOLITHIC_1_SHARED_1="#"
34472     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34473         COND_MONOLITHIC_1_SHARED_1=""
34474     fi
34475
34476     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34477     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34478         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34479     fi
34480
34481     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34482     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34483         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34484     fi
34485
34486     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34487     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34488         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34489     fi
34490
34491     COND_PLATFORM_MACOSX_1="#"
34492     if test "x$PLATFORM_MACOSX" = "x1" ; then
34493         COND_PLATFORM_MACOSX_1=""
34494     fi
34495
34496     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34497     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34498         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34499     fi
34500
34501     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34502     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34503         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34504     fi
34505
34506     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34507     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34508         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34509     fi
34510
34511     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34512     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34513         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34514     fi
34515
34516     COND_PLATFORM_UNIX_1="#"
34517     if test "x$PLATFORM_UNIX" = "x1" ; then
34518         COND_PLATFORM_UNIX_1=""
34519     fi
34520
34521     COND_PLATFORM_WIN32_0="#"
34522     if test "x$PLATFORM_WIN32" = "x0" ; then
34523         COND_PLATFORM_WIN32_0=""
34524     fi
34525
34526     COND_PLATFORM_WIN32_1="#"
34527     if test "x$PLATFORM_WIN32" = "x1" ; then
34528         COND_PLATFORM_WIN32_1=""
34529     fi
34530
34531     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
34532     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34533         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
34534     fi
34535
34536     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
34537     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34538         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
34539     fi
34540
34541     COND_TOOLKIT_COCOA="#"
34542     if test "x$TOOLKIT" = "xCOCOA" ; then
34543         COND_TOOLKIT_COCOA=""
34544     fi
34545
34546     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34547     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34548         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
34549     fi
34550
34551     COND_TOOLKIT_GTK="#"
34552     if test "x$TOOLKIT" = "xGTK" ; then
34553         COND_TOOLKIT_GTK=""
34554     fi
34555
34556     COND_TOOLKIT_GTK_USE_GUI_1="#"
34557     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34558         COND_TOOLKIT_GTK_USE_GUI_1=""
34559     fi
34560
34561     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34562     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34563         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
34564     fi
34565
34566     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#"
34567     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34568         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1=""
34569     fi
34570
34571     COND_TOOLKIT_MAC="#"
34572     if test "x$TOOLKIT" = "xMAC" ; then
34573         COND_TOOLKIT_MAC=""
34574     fi
34575
34576     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
34577     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34578         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
34579     fi
34580
34581     COND_TOOLKIT_MGL="#"
34582     if test "x$TOOLKIT" = "xMGL" ; then
34583         COND_TOOLKIT_MGL=""
34584     fi
34585
34586     COND_TOOLKIT_MGL_USE_GUI_1="#"
34587     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
34588         COND_TOOLKIT_MGL_USE_GUI_1=""
34589     fi
34590
34591     COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#"
34592     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34593         COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1=""
34594     fi
34595
34596     COND_TOOLKIT_MOTIF="#"
34597     if test "x$TOOLKIT" = "xMOTIF" ; then
34598         COND_TOOLKIT_MOTIF=""
34599     fi
34600
34601     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
34602     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
34603         COND_TOOLKIT_MOTIF_USE_GUI_1=""
34604     fi
34605
34606     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
34607     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34608         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
34609     fi
34610
34611     COND_TOOLKIT_MSW="#"
34612     if test "x$TOOLKIT" = "xMSW" ; then
34613         COND_TOOLKIT_MSW=""
34614     fi
34615
34616     COND_TOOLKIT_MSW_USE_GUI_1="#"
34617     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
34618         COND_TOOLKIT_MSW_USE_GUI_1=""
34619     fi
34620
34621     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
34622     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34623         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
34624     fi
34625
34626     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#"
34627     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34628         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1=""
34629     fi
34630
34631     COND_TOOLKIT_OS2="#"
34632     if test "x$TOOLKIT" = "xOS2" ; then
34633         COND_TOOLKIT_OS2=""
34634     fi
34635
34636     COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
34637     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34638         COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
34639     fi
34640
34641     COND_TOOLKIT_X11="#"
34642     if test "x$TOOLKIT" = "xX11" ; then
34643         COND_TOOLKIT_X11=""
34644     fi
34645
34646     COND_TOOLKIT_X11_USE_GUI_1="#"
34647     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
34648         COND_TOOLKIT_X11_USE_GUI_1=""
34649     fi
34650
34651     COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#"
34652     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34653         COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1=""
34654     fi
34655
34656     COND_UNICODE_1="#"
34657     if test "x$UNICODE" = "x1" ; then
34658         COND_UNICODE_1=""
34659     fi
34660
34661     COND_USE_GUI_0="#"
34662     if test "x$USE_GUI" = "x0" ; then
34663         COND_USE_GUI_0=""
34664     fi
34665
34666     COND_USE_GUI_1="#"
34667     if test "x$USE_GUI" = "x1" ; then
34668         COND_USE_GUI_1=""
34669     fi
34670
34671     COND_USE_GUI_1_WXUNIV_0="#"
34672     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34673         COND_USE_GUI_1_WXUNIV_0=""
34674     fi
34675
34676     COND_USE_GUI_1_WXUNIV_1="#"
34677     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
34678         COND_USE_GUI_1_WXUNIV_1=""
34679     fi
34680
34681     COND_USE_SOSYMLINKS_1="#"
34682     if test "x$USE_SOSYMLINKS" = "x1" ; then
34683         COND_USE_SOSYMLINKS_1=""
34684     fi
34685
34686     COND_USE_SOVERLINUX_1="#"
34687     if test "x$USE_SOVERLINUX" = "x1" ; then
34688         COND_USE_SOVERLINUX_1=""
34689     fi
34690
34691     COND_USE_SOVERSION_0="#"
34692     if test "x$USE_SOVERSION" = "x0" ; then
34693         COND_USE_SOVERSION_0=""
34694     fi
34695
34696     COND_USE_SOVERSOLARIS_1="#"
34697     if test "x$USE_SOVERSOLARIS" = "x1" ; then
34698         COND_USE_SOVERSOLARIS_1=""
34699     fi
34700
34701     COND_WXUNIV_1="#"
34702     if test "x$WXUNIV" = "x1" ; then
34703         COND_WXUNIV_1=""
34704     fi
34705
34706     COND_WXUSE_LIBJPEG_BUILTIN="#"
34707     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34708         COND_WXUSE_LIBJPEG_BUILTIN=""
34709     fi
34710
34711     COND_WXUSE_LIBPNG_BUILTIN="#"
34712     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34713         COND_WXUSE_LIBPNG_BUILTIN=""
34714     fi
34715
34716     COND_WXUSE_LIBTIFF_BUILTIN="#"
34717     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34718         COND_WXUSE_LIBTIFF_BUILTIN=""
34719     fi
34720
34721     COND_WXUSE_ODBC_BUILTIN="#"
34722     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
34723         COND_WXUSE_ODBC_BUILTIN=""
34724     fi
34725
34726     COND_WXUSE_REGEX_BUILTIN="#"
34727     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
34728         COND_WXUSE_REGEX_BUILTIN=""
34729     fi
34730
34731     COND_WXUSE_ZLIB_BUILTIN="#"
34732     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
34733         COND_WXUSE_ZLIB_BUILTIN=""
34734     fi
34735
34736     COND_PLATFORM_MAC_1="#"
34737     if test "x$PLATFORM_MAC" = "x1" ; then
34738         COND_PLATFORM_MAC_1=""
34739     fi
34740
34741     COND_SHARED_1="#"
34742     if test "x$SHARED" = "x1" ; then
34743         COND_SHARED_1=""
34744     fi
34745
34746     COND_SHARED_0="#"
34747     if test "x$SHARED" = "x0" ; then
34748         COND_SHARED_0=""
34749     fi
34750
34751     COND_WXUSE_EXPAT_BUILTIN="#"
34752     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
34753         COND_WXUSE_EXPAT_BUILTIN=""
34754     fi
34755
34756
34757
34758
34759
34760
34761 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34866   echo $ECHO_N "(cached) $ECHO_C" >&6
34867 else
34868   cat >conftest.make <<\_ACEOF
34869 all:
34870         @echo 'ac_maketemp="$(MAKE)"'
34871 _ACEOF
34872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34874 if test -n "$ac_maketemp"; then
34875   eval ac_cv_prog_make_${ac_make}_set=yes
34876 else
34877   eval ac_cv_prog_make_${ac_make}_set=no
34878 fi
34879 rm -f conftest.make
34880 fi
34881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34882   echo "$as_me:$LINENO: result: yes" >&5
34883 echo "${ECHO_T}yes" >&6
34884   SET_MAKE=
34885 else
34886   echo "$as_me:$LINENO: result: no" >&5
34887 echo "${ECHO_T}no" >&6
34888   SET_MAKE="MAKE=${MAKE-make}"
34889 fi
34890
34891
34892 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34893     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34894 fi
34895
34896           ac_config_headers="$ac_config_headers setup.h"
34897
34898
34899                               ac_config_files="$ac_config_files wx-config version-script Makefile"
34900
34901
34902           ac_config_commands="$ac_config_commands default"
34903
34904
34905
34906 if test "$wxUSE_GUI" = "yes"; then
34907     SUBDIRS="samples demos utils contrib"
34908 else         SUBDIRS="samples utils"
34909 fi
34910
34911 for subdir in `echo $SUBDIRS`; do
34912     if test -d ${srcdir}/${subdir} ; then
34913         if test "$wxUSE_GUI" = "yes"; then
34914             if test ${subdir} = "samples"; then
34915                                                 for sample in `echo $SAMPLES_SUBDIRS`; do
34916                     if test -d $srcdir/samples/$sample; then
34917                         makefiles="samples/$sample/Makefile.in $makefiles"
34918                     fi
34919                 done
34920             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
34921             fi
34922         else                                     if test ${subdir} = "samples"; then
34923                 makefiles="samples/console/Makefile.in"
34924             else                 makefiles="utils/HelpGen/Makefile.in \
34925                            utils/HelpGen/src/Makefile.in \
34926                            utils/makegen/Makefile.in"
34927             fi
34928         fi
34929
34930         for mkin in $makefiles ; do
34931             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
34932                       ac_config_files="$ac_config_files $mk"
34933
34934         done
34935     fi
34936 done
34937
34938
34939 cat >confcache <<\_ACEOF
34940 # This file is a shell script that caches the results of configure
34941 # tests run on this system so they can be shared between configure
34942 # scripts and configure runs, see configure's option --config-cache.
34943 # It is not useful on other systems.  If it contains results you don't
34944 # want to keep, you may remove or edit it.
34945 #
34946 # config.status only pays attention to the cache file if you give it
34947 # the --recheck option to rerun configure.
34948 #
34949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34951 # following values.
34952
34953 _ACEOF
34954
34955 # The following way of writing the cache mishandles newlines in values,
34956 # but we know of no workaround that is simple, portable, and efficient.
34957 # So, don't put newlines in cache variables' values.
34958 # Ultrix sh set writes to stderr and can't be redirected directly,
34959 # and sets the high bit in the cache file unless we assign to the vars.
34960 {
34961   (set) 2>&1 |
34962     case `(ac_space=' '; set | grep ac_space) 2>&1` in
34963     *ac_space=\ *)
34964       # `set' does not quote correctly, so add quotes (double-quote
34965       # substitution turns \\\\ into \\, and sed turns \\ into \).
34966       sed -n \
34967         "s/'/'\\\\''/g;
34968           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34969       ;;
34970     *)
34971       # `set' quotes correctly as required by POSIX, so do not add quotes.
34972       sed -n \
34973         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34974       ;;
34975     esac;
34976 } |
34977   sed '
34978      t clear
34979      : clear
34980      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34981      t end
34982      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34983      : end' >>confcache
34984 if diff $cache_file confcache >/dev/null 2>&1; then :; else
34985   if test -w $cache_file; then
34986     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34987     cat confcache >$cache_file
34988   else
34989     echo "not updating unwritable cache $cache_file"
34990   fi
34991 fi
34992 rm -f confcache
34993
34994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34995 # Let make expand exec_prefix.
34996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34997
34998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35000 # trailing colons and then remove the whole line if VPATH becomes empty
35001 # (actually we leave an empty line to preserve line numbers).
35002 if test "x$srcdir" = x.; then
35003   ac_vpsub='/^[         ]*VPATH[        ]*=/{
35004 s/:*\$(srcdir):*/:/;
35005 s/:*\${srcdir}:*/:/;
35006 s/:*@srcdir@:*/:/;
35007 s/^\([^=]*=[    ]*\):*/\1/;
35008 s/:*$//;
35009 s/^[^=]*=[      ]*$//;
35010 }'
35011 fi
35012
35013 DEFS=-DHAVE_CONFIG_H
35014
35015 ac_libobjs=
35016 ac_ltlibobjs=
35017 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35018   # 1. Remove the extension, and $U if already installed.
35019   ac_i=`echo "$ac_i" |
35020          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35021   # 2. Add them.
35022   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35023   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35024 done
35025 LIBOBJS=$ac_libobjs
35026
35027 LTLIBOBJS=$ac_ltlibobjs
35028
35029
35030
35031 : ${CONFIG_STATUS=./config.status}
35032 ac_clean_files_save=$ac_clean_files
35033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35034 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35035 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35036 cat >$CONFIG_STATUS <<_ACEOF
35037 #! $SHELL
35038 # Generated by $as_me.
35039 # Run this file to recreate the current configuration.
35040 # Compiler output produced by configure, useful for debugging
35041 # configure, is in config.log if it exists.
35042
35043 debug=false
35044 ac_cs_recheck=false
35045 ac_cs_silent=false
35046 SHELL=\${CONFIG_SHELL-$SHELL}
35047 _ACEOF
35048
35049 cat >>$CONFIG_STATUS <<\_ACEOF
35050 ## --------------------- ##
35051 ## M4sh Initialization.  ##
35052 ## --------------------- ##
35053
35054 # Be Bourne compatible
35055 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35056   emulate sh
35057   NULLCMD=:
35058   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35059   # is contrary to our usage.  Disable this feature.
35060   alias -g '${1+"$@"}'='"$@"'
35061 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35062   set -o posix
35063 fi
35064
35065 # Support unset when possible.
35066 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35067   as_unset=unset
35068 else
35069   as_unset=false
35070 fi
35071
35072
35073 # Work around bugs in pre-3.0 UWIN ksh.
35074 $as_unset ENV MAIL MAILPATH
35075 PS1='$ '
35076 PS2='> '
35077 PS4='+ '
35078
35079 # NLS nuisances.
35080 for as_var in \
35081   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35082   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35083   LC_TELEPHONE LC_TIME
35084 do
35085   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35086     eval $as_var=C; export $as_var
35087   else
35088     $as_unset $as_var
35089   fi
35090 done
35091
35092 # Required to use basename.
35093 if expr a : '\(a\)' >/dev/null 2>&1; then
35094   as_expr=expr
35095 else
35096   as_expr=false
35097 fi
35098
35099 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35100   as_basename=basename
35101 else
35102   as_basename=false
35103 fi
35104
35105
35106 # Name of the executable.
35107 as_me=`$as_basename "$0" ||
35108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35109          X"$0" : 'X\(//\)$' \| \
35110          X"$0" : 'X\(/\)$' \| \
35111          .     : '\(.\)' 2>/dev/null ||
35112 echo X/"$0" |
35113     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35114           /^X\/\(\/\/\)$/{ s//\1/; q; }
35115           /^X\/\(\/\).*/{ s//\1/; q; }
35116           s/.*/./; q'`
35117
35118
35119 # PATH needs CR, and LINENO needs CR and PATH.
35120 # Avoid depending upon Character Ranges.
35121 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35122 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35123 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35124 as_cr_digits='0123456789'
35125 as_cr_alnum=$as_cr_Letters$as_cr_digits
35126
35127 # The user is always right.
35128 if test "${PATH_SEPARATOR+set}" != set; then
35129   echo "#! /bin/sh" >conf$$.sh
35130   echo  "exit 0"   >>conf$$.sh
35131   chmod +x conf$$.sh
35132   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35133     PATH_SEPARATOR=';'
35134   else
35135     PATH_SEPARATOR=:
35136   fi
35137   rm -f conf$$.sh
35138 fi
35139
35140
35141   as_lineno_1=$LINENO
35142   as_lineno_2=$LINENO
35143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35144   test "x$as_lineno_1" != "x$as_lineno_2" &&
35145   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
35146   # Find who we are.  Look in the path if we contain no path at all
35147   # relative or not.
35148   case $0 in
35149     *[\\/]* ) as_myself=$0 ;;
35150     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35151 for as_dir in $PATH
35152 do
35153   IFS=$as_save_IFS
35154   test -z "$as_dir" && as_dir=.
35155   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35156 done
35157
35158        ;;
35159   esac
35160   # We did not find ourselves, most probably we were run as `sh COMMAND'
35161   # in which case we are not to be found in the path.
35162   if test "x$as_myself" = x; then
35163     as_myself=$0
35164   fi
35165   if test ! -f "$as_myself"; then
35166     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35167 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35168    { (exit 1); exit 1; }; }
35169   fi
35170   case $CONFIG_SHELL in
35171   '')
35172     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35173 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35174 do
35175   IFS=$as_save_IFS
35176   test -z "$as_dir" && as_dir=.
35177   for as_base in sh bash ksh sh5; do
35178          case $as_dir in
35179          /*)
35180            if ("$as_dir/$as_base" -c '
35181   as_lineno_1=$LINENO
35182   as_lineno_2=$LINENO
35183   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35184   test "x$as_lineno_1" != "x$as_lineno_2" &&
35185   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
35186              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35187              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35188              CONFIG_SHELL=$as_dir/$as_base
35189              export CONFIG_SHELL
35190              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35191            fi;;
35192          esac
35193        done
35194 done
35195 ;;
35196   esac
35197
35198   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35199   # uniformly replaced by the line number.  The first 'sed' inserts a
35200   # line-number line before each line; the second 'sed' does the real
35201   # work.  The second script uses 'N' to pair each line-number line
35202   # with the numbered line, and appends trailing '-' during
35203   # substitution so that $LINENO is not a special case at line end.
35204   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35205   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
35206   sed '=' <$as_myself |
35207     sed '
35208       N
35209       s,$,-,
35210       : loop
35211       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35212       t loop
35213       s,-$,,
35214       s,^['$as_cr_digits']*\n,,
35215     ' >$as_me.lineno &&
35216   chmod +x $as_me.lineno ||
35217     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35218 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35219    { (exit 1); exit 1; }; }
35220
35221   # Don't try to exec as it changes $[0], causing all sort of problems
35222   # (the dirname of $[0] is not the place where we might find the
35223   # original and so on.  Autoconf is especially sensible to this).
35224   . ./$as_me.lineno
35225   # Exit status is that of the last command.
35226   exit
35227 }
35228
35229
35230 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35231   *c*,-n*) ECHO_N= ECHO_C='
35232 ' ECHO_T='      ' ;;
35233   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35234   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
35235 esac
35236
35237 if expr a : '\(a\)' >/dev/null 2>&1; then
35238   as_expr=expr
35239 else
35240   as_expr=false
35241 fi
35242
35243 rm -f conf$$ conf$$.exe conf$$.file
35244 echo >conf$$.file
35245 if ln -s conf$$.file conf$$ 2>/dev/null; then
35246   # We could just check for DJGPP; but this test a) works b) is more generic
35247   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35248   if test -f conf$$.exe; then
35249     # Don't use ln at all; we don't have any links
35250     as_ln_s='cp -p'
35251   else
35252     as_ln_s='ln -s'
35253   fi
35254 elif ln conf$$.file conf$$ 2>/dev/null; then
35255   as_ln_s=ln
35256 else
35257   as_ln_s='cp -p'
35258 fi
35259 rm -f conf$$ conf$$.exe conf$$.file
35260
35261 if mkdir -p . 2>/dev/null; then
35262   as_mkdir_p=:
35263 else
35264   as_mkdir_p=false
35265 fi
35266
35267 as_executable_p="test -f"
35268
35269 # Sed expression to map a string onto a valid CPP name.
35270 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35271
35272 # Sed expression to map a string onto a valid variable name.
35273 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35274
35275
35276 # IFS
35277 # We need space, tab and new line, in precisely that order.
35278 as_nl='
35279 '
35280 IFS="   $as_nl"
35281
35282 # CDPATH.
35283 $as_unset CDPATH
35284
35285 exec 6>&1
35286
35287 # Open the log real soon, to keep \$[0] and so on meaningful, and to
35288 # report actual input values of CONFIG_FILES etc. instead of their
35289 # values after options handling.  Logging --version etc. is OK.
35290 exec 5>>config.log
35291 {
35292   echo
35293   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35294 ## Running $as_me. ##
35295 _ASBOX
35296 } >&5
35297 cat >&5 <<_CSEOF
35298
35299 This file was extended by wxWindows $as_me 2.5.0, which was
35300 generated by GNU Autoconf 2.57.  Invocation command line was
35301
35302   CONFIG_FILES    = $CONFIG_FILES
35303   CONFIG_HEADERS  = $CONFIG_HEADERS
35304   CONFIG_LINKS    = $CONFIG_LINKS
35305   CONFIG_COMMANDS = $CONFIG_COMMANDS
35306   $ $0 $@
35307
35308 _CSEOF
35309 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35310 echo >&5
35311 _ACEOF
35312
35313 # Files that config.status was made for.
35314 if test -n "$ac_config_files"; then
35315   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35316 fi
35317
35318 if test -n "$ac_config_headers"; then
35319   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35320 fi
35321
35322 if test -n "$ac_config_links"; then
35323   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35324 fi
35325
35326 if test -n "$ac_config_commands"; then
35327   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35328 fi
35329
35330 cat >>$CONFIG_STATUS <<\_ACEOF
35331
35332 ac_cs_usage="\
35333 \`$as_me' instantiates files from templates according to the
35334 current configuration.
35335
35336 Usage: $0 [OPTIONS] [FILE]...
35337
35338   -h, --help       print this help, then exit
35339   -V, --version    print version number, then exit
35340   -q, --quiet      do not print progress messages
35341   -d, --debug      don't remove temporary files
35342       --recheck    update $as_me by reconfiguring in the same conditions
35343   --file=FILE[:TEMPLATE]
35344                    instantiate the configuration file FILE
35345   --header=FILE[:TEMPLATE]
35346                    instantiate the configuration header FILE
35347
35348 Configuration files:
35349 $config_files
35350
35351 Configuration headers:
35352 $config_headers
35353
35354 Configuration commands:
35355 $config_commands
35356
35357 Report bugs to <bug-autoconf@gnu.org>."
35358 _ACEOF
35359
35360 cat >>$CONFIG_STATUS <<_ACEOF
35361 ac_cs_version="\\
35362 wxWindows config.status 2.5.0
35363 configured by $0, generated by GNU Autoconf 2.57,
35364   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35365
35366 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35367 Free Software Foundation, Inc.
35368 This config.status script is free software; the Free Software Foundation
35369 gives unlimited permission to copy, distribute and modify it."
35370 srcdir=$srcdir
35371 INSTALL="$INSTALL"
35372 _ACEOF
35373
35374 cat >>$CONFIG_STATUS <<\_ACEOF
35375 # If no file are specified by the user, then we need to provide default
35376 # value.  By we need to know if files were specified by the user.
35377 ac_need_defaults=:
35378 while test $# != 0
35379 do
35380   case $1 in
35381   --*=*)
35382     ac_option=`expr "x$1" : 'x\([^=]*\)='`
35383     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35384     ac_shift=:
35385     ;;
35386   -*)
35387     ac_option=$1
35388     ac_optarg=$2
35389     ac_shift=shift
35390     ;;
35391   *) # This is not an option, so the user has probably given explicit
35392      # arguments.
35393      ac_option=$1
35394      ac_need_defaults=false;;
35395   esac
35396
35397   case $ac_option in
35398   # Handling of the options.
35399 _ACEOF
35400 cat >>$CONFIG_STATUS <<\_ACEOF
35401   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35402     ac_cs_recheck=: ;;
35403   --version | --vers* | -V )
35404     echo "$ac_cs_version"; exit 0 ;;
35405   --he | --h)
35406     # Conflict between --help and --header
35407     { { echo "$as_me:$LINENO: error: ambiguous option: $1
35408 Try \`$0 --help' for more information." >&5
35409 echo "$as_me: error: ambiguous option: $1
35410 Try \`$0 --help' for more information." >&2;}
35411    { (exit 1); exit 1; }; };;
35412   --help | --hel | -h )
35413     echo "$ac_cs_usage"; exit 0 ;;
35414   --debug | --d* | -d )
35415     debug=: ;;
35416   --file | --fil | --fi | --f )
35417     $ac_shift
35418     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35419     ac_need_defaults=false;;
35420   --header | --heade | --head | --hea )
35421     $ac_shift
35422     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35423     ac_need_defaults=false;;
35424   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35425   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35426     ac_cs_silent=: ;;
35427
35428   # This is an error.
35429   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35430 Try \`$0 --help' for more information." >&5
35431 echo "$as_me: error: unrecognized option: $1
35432 Try \`$0 --help' for more information." >&2;}
35433    { (exit 1); exit 1; }; } ;;
35434
35435   *) ac_config_targets="$ac_config_targets $1" ;;
35436
35437   esac
35438   shift
35439 done
35440
35441 ac_configure_extra_args=
35442
35443 if $ac_cs_silent; then
35444   exec 6>/dev/null
35445   ac_configure_extra_args="$ac_configure_extra_args --silent"
35446 fi
35447
35448 _ACEOF
35449 cat >>$CONFIG_STATUS <<_ACEOF
35450 if \$ac_cs_recheck; then
35451   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35452   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35453 fi
35454
35455 _ACEOF
35456
35457 cat >>$CONFIG_STATUS <<_ACEOF
35458 #
35459 # INIT-COMMANDS section.
35460 #
35461
35462
35463             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35464             LN_S="${LN_S}"
35465
35466
35467
35468 _ACEOF
35469
35470
35471
35472 cat >>$CONFIG_STATUS <<\_ACEOF
35473 for ac_config_target in $ac_config_targets
35474 do
35475   case "$ac_config_target" in
35476   # Handling of arguments.
35477   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35478   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35479   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35480   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
35481   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35482   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35483   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35485    { (exit 1); exit 1; }; };;
35486   esac
35487 done
35488
35489 # If the user did not use the arguments to specify the items to instantiate,
35490 # then the envvar interface is used.  Set only those that are not.
35491 # We use the long form for the default assignment because of an extremely
35492 # bizarre bug on SunOS 4.1.3.
35493 if $ac_need_defaults; then
35494   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35495   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35496   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35497 fi
35498
35499 # Have a temporary directory for convenience.  Make it in the build tree
35500 # simply because there is no reason to put it here, and in addition,
35501 # creating and moving files from /tmp can sometimes cause problems.
35502 # Create a temporary directory, and hook for its removal unless debugging.
35503 $debug ||
35504 {
35505   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35506   trap '{ (exit 1); exit 1; }' 1 2 13 15
35507 }
35508
35509 # Create a (secure) tmp directory for tmp files.
35510
35511 {
35512   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35513   test -n "$tmp" && test -d "$tmp"
35514 }  ||
35515 {
35516   tmp=./confstat$$-$RANDOM
35517   (umask 077 && mkdir $tmp)
35518 } ||
35519 {
35520    echo "$me: cannot create a temporary directory in ." >&2
35521    { (exit 1); exit 1; }
35522 }
35523
35524 _ACEOF
35525
35526 cat >>$CONFIG_STATUS <<_ACEOF
35527
35528 #
35529 # CONFIG_FILES section.
35530 #
35531
35532 # No need to generate the scripts if there are no CONFIG_FILES.
35533 # This happens for instance when ./config.status config.h
35534 if test -n "\$CONFIG_FILES"; then
35535   # Protect against being on the right side of a sed subst in config.status.
35536   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35537    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35538 s,@SHELL@,$SHELL,;t t
35539 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35540 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35541 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35542 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35543 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35544 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35545 s,@exec_prefix@,$exec_prefix,;t t
35546 s,@prefix@,$prefix,;t t
35547 s,@program_transform_name@,$program_transform_name,;t t
35548 s,@bindir@,$bindir,;t t
35549 s,@sbindir@,$sbindir,;t t
35550 s,@libexecdir@,$libexecdir,;t t
35551 s,@datadir@,$datadir,;t t
35552 s,@sysconfdir@,$sysconfdir,;t t
35553 s,@sharedstatedir@,$sharedstatedir,;t t
35554 s,@localstatedir@,$localstatedir,;t t
35555 s,@libdir@,$libdir,;t t
35556 s,@includedir@,$includedir,;t t
35557 s,@oldincludedir@,$oldincludedir,;t t
35558 s,@infodir@,$infodir,;t t
35559 s,@mandir@,$mandir,;t t
35560 s,@build_alias@,$build_alias,;t t
35561 s,@host_alias@,$host_alias,;t t
35562 s,@target_alias@,$target_alias,;t t
35563 s,@DEFS@,$DEFS,;t t
35564 s,@ECHO_C@,$ECHO_C,;t t
35565 s,@ECHO_N@,$ECHO_N,;t t
35566 s,@ECHO_T@,$ECHO_T,;t t
35567 s,@LIBS@,$LIBS,;t t
35568 s,@build@,$build,;t t
35569 s,@build_cpu@,$build_cpu,;t t
35570 s,@build_vendor@,$build_vendor,;t t
35571 s,@build_os@,$build_os,;t t
35572 s,@host@,$host,;t t
35573 s,@host_cpu@,$host_cpu,;t t
35574 s,@host_vendor@,$host_vendor,;t t
35575 s,@host_os@,$host_os,;t t
35576 s,@target@,$target,;t t
35577 s,@target_cpu@,$target_cpu,;t t
35578 s,@target_vendor@,$target_vendor,;t t
35579 s,@target_os@,$target_os,;t t
35580 s,@CC@,$CC,;t t
35581 s,@CFLAGS@,$CFLAGS,;t t
35582 s,@LDFLAGS@,$LDFLAGS,;t t
35583 s,@CPPFLAGS@,$CPPFLAGS,;t t
35584 s,@ac_ct_CC@,$ac_ct_CC,;t t
35585 s,@EXEEXT@,$EXEEXT,;t t
35586 s,@OBJEXT@,$OBJEXT,;t t
35587 s,@CPP@,$CPP,;t t
35588 s,@EGREP@,$EGREP,;t t
35589 s,@CXX@,$CXX,;t t
35590 s,@CXXFLAGS@,$CXXFLAGS,;t t
35591 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35592 s,@RANLIB@,$RANLIB,;t t
35593 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35594 s,@AR@,$AR,;t t
35595 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35596 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35597 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35598 s,@STRIP@,$STRIP,;t t
35599 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35600 s,@YACC@,$YACC,;t t
35601 s,@LEX@,$LEX,;t t
35602 s,@LEXLIB@,$LEXLIB,;t t
35603 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35604 s,@LN_S@,$LN_S,;t t
35605 s,@CXXCPP@,$CXXCPP,;t t
35606 s,@subdirs@,$subdirs,;t t
35607 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35608 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35609 s,@GTK_LIBS@,$GTK_LIBS,;t t
35610 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35611 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35612 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35613 s,@X_CFLAGS@,$X_CFLAGS,;t t
35614 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35615 s,@X_LIBS@,$X_LIBS,;t t
35616 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35617 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35618 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35619 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35620 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
35621 s,@RESCOMP@,$RESCOMP,;t t
35622 s,@DEREZ@,$DEREZ,;t t
35623 s,@SETFILE@,$SETFILE,;t t
35624 s,@LIBICONV@,$LIBICONV,;t t
35625 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35626 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35627 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
35628 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35629 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35630 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35631 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
35632 s,@VENDOR@,$VENDOR,;t t
35633 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
35634 s,@WXUNIV@,$WXUNIV,;t t
35635 s,@MONOLITHIC@,$MONOLITHIC,;t t
35636 s,@EXTRALIBS@,$EXTRALIBS,;t t
35637 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
35638 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
35639 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
35640 s,@UNICODE@,$UNICODE,;t t
35641 s,@BUILD@,$BUILD,;t t
35642 s,@SHARED@,$SHARED,;t t
35643 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35644 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35645 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35646 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
35647 s,@SET_MAKE@,$SET_MAKE,;t t
35648 s,@MAKE_SET@,$MAKE_SET,;t t
35649 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
35650 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
35651 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35652 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35653 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35654 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35655 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35656 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35657 s,@DLLPREFIX@,$DLLPREFIX,;t t
35658 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
35659 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35660 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35661 s,@PIC_FLAG@,$PIC_FLAG,;t t
35662 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35663 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35664 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35665 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35666 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35667 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
35668 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
35669 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35670 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
35671 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
35672 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
35673 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
35674 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
35675 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
35676 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
35677 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
35678 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
35679 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
35680 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
35681 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
35682 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
35683 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
35684 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
35685 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
35686 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
35687 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
35688 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
35689 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
35690 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
35691 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35692 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35693 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
35694 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
35695 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
35696 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35697 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
35698 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35699 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
35700 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
35701 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t
35702 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
35703 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
35704 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35705 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
35706 s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t
35707 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35708 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
35709 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
35710 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
35711 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
35712 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
35713 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t
35714 s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35715 s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
35716 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35717 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
35718 s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t
35719 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35720 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35721 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
35722 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35723 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
35724 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35725 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35726 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
35727 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
35728 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35729 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35730 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35731 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35732 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35733 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35734 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
35735 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
35736 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
35737 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
35738 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
35739 s,@LEX_STEM@,$LEX_STEM,;t t
35740 s,@PATH_IFS@,$PATH_IFS,;t t
35741 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35742 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35743 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35744 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35745 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35746 s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35747 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35748 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35749 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35750 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35751 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35752 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35753 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35754 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35755 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35756 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35757 s,@WX_ALL@,$WX_ALL,;t t
35758 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35759 s,@SHARED_LD@,$SHARED_LD,;t t
35760 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35761 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35762 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35763 s,@USE_GUI@,$USE_GUI,;t t
35764 s,@AFMINSTALL@,$AFMINSTALL,;t t
35765 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35766 s,@TOOLKIT@,$TOOLKIT,;t t
35767 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35768 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35769 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35770 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35771 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35772 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35773 s,@cross_compiling@,$cross_compiling,;t t
35774 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35775 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35776 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35777 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35778 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35779 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35780 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
35781 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35782 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
35783 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35784 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35785 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35786 s,@GUIDIST@,$GUIDIST,;t t
35787 s,@PORT_FILES@,$PORT_FILES,;t t
35788 s,@DISTDIR@,$DISTDIR,;t t
35789 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35790 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35791 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35792 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35793 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35794 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35795 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35796 s,@RESFLAGS@,$RESFLAGS,;t t
35797 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35798 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35799 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35800 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35801 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35802 s,@MACRESCOMP@,$MACRESCOMP,;t t
35803 s,@MACSETFILE@,$MACSETFILE,;t t
35804 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35805 s,@GCC@,$GCC,;t t
35806 s,@DLLTOOL@,$DLLTOOL,;t t
35807 s,@AS@,$AS,;t t
35808 s,@NM@,$NM,;t t
35809 s,@LD@,$LD,;t t
35810 s,@MAKEINFO@,$MAKEINFO,;t t
35811 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35812 s,@ESD_LINK@,$ESD_LINK,;t t
35813 s,@LIBOBJS@,$LIBOBJS,;t t
35814 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35815 CEOF
35816
35817 _ACEOF
35818
35819   cat >>$CONFIG_STATUS <<\_ACEOF
35820   # Split the substitutions into bite-sized pieces for seds with
35821   # small command number limits, like on Digital OSF/1 and HP-UX.
35822   ac_max_sed_lines=48
35823   ac_sed_frag=1 # Number of current file.
35824   ac_beg=1 # First line for current file.
35825   ac_end=$ac_max_sed_lines # Line after last line for current file.
35826   ac_more_lines=:
35827   ac_sed_cmds=
35828   while $ac_more_lines; do
35829     if test $ac_beg -gt 1; then
35830       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35831     else
35832       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35833     fi
35834     if test ! -s $tmp/subs.frag; then
35835       ac_more_lines=false
35836     else
35837       # The purpose of the label and of the branching condition is to
35838       # speed up the sed processing (if there are no `@' at all, there
35839       # is no need to browse any of the substitutions).
35840       # These are the two extra sed commands mentioned above.
35841       (echo ':t
35842   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35843       if test -z "$ac_sed_cmds"; then
35844         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35845       else
35846         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35847       fi
35848       ac_sed_frag=`expr $ac_sed_frag + 1`
35849       ac_beg=$ac_end
35850       ac_end=`expr $ac_end + $ac_max_sed_lines`
35851     fi
35852   done
35853   if test -z "$ac_sed_cmds"; then
35854     ac_sed_cmds=cat
35855   fi
35856 fi # test -n "$CONFIG_FILES"
35857
35858 _ACEOF
35859 cat >>$CONFIG_STATUS <<\_ACEOF
35860 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35861   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35862   case $ac_file in
35863   - | *:- | *:-:* ) # input from stdin
35864         cat >$tmp/stdin
35865         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35866         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35867   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35868         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35869   * )   ac_file_in=$ac_file.in ;;
35870   esac
35871
35872   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35873   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35874 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35875          X"$ac_file" : 'X\(//\)[^/]' \| \
35876          X"$ac_file" : 'X\(//\)$' \| \
35877          X"$ac_file" : 'X\(/\)' \| \
35878          .     : '\(.\)' 2>/dev/null ||
35879 echo X"$ac_file" |
35880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35882           /^X\(\/\/\)$/{ s//\1/; q; }
35883           /^X\(\/\).*/{ s//\1/; q; }
35884           s/.*/./; q'`
35885   { if $as_mkdir_p; then
35886     mkdir -p "$ac_dir"
35887   else
35888     as_dir="$ac_dir"
35889     as_dirs=
35890     while test ! -d "$as_dir"; do
35891       as_dirs="$as_dir $as_dirs"
35892       as_dir=`(dirname "$as_dir") 2>/dev/null ||
35893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35894          X"$as_dir" : 'X\(//\)[^/]' \| \
35895          X"$as_dir" : 'X\(//\)$' \| \
35896          X"$as_dir" : 'X\(/\)' \| \
35897          .     : '\(.\)' 2>/dev/null ||
35898 echo X"$as_dir" |
35899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35900           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35901           /^X\(\/\/\)$/{ s//\1/; q; }
35902           /^X\(\/\).*/{ s//\1/; q; }
35903           s/.*/./; q'`
35904     done
35905     test ! -n "$as_dirs" || mkdir $as_dirs
35906   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35907 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35908    { (exit 1); exit 1; }; }; }
35909
35910   ac_builddir=.
35911
35912 if test "$ac_dir" != .; then
35913   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35914   # A "../" for each directory in $ac_dir_suffix.
35915   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35916 else
35917   ac_dir_suffix= ac_top_builddir=
35918 fi
35919
35920 case $srcdir in
35921   .)  # No --srcdir option.  We are building in place.
35922     ac_srcdir=.
35923     if test -z "$ac_top_builddir"; then
35924        ac_top_srcdir=.
35925     else
35926        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35927     fi ;;
35928   [\\/]* | ?:[\\/]* )  # Absolute path.
35929     ac_srcdir=$srcdir$ac_dir_suffix;
35930     ac_top_srcdir=$srcdir ;;
35931   *) # Relative path.
35932     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35933     ac_top_srcdir=$ac_top_builddir$srcdir ;;
35934 esac
35935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35936 # absolute.
35937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35941
35942
35943   case $INSTALL in
35944   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35945   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35946   esac
35947
35948   if test x"$ac_file" != x-; then
35949     { echo "$as_me:$LINENO: creating $ac_file" >&5
35950 echo "$as_me: creating $ac_file" >&6;}
35951     rm -f "$ac_file"
35952   fi
35953   # Let's still pretend it is `configure' which instantiates (i.e., don't
35954   # use $as_me), people would be surprised to read:
35955   #    /* config.h.  Generated by config.status.  */
35956   if test x"$ac_file" = x-; then
35957     configure_input=
35958   else
35959     configure_input="$ac_file.  "
35960   fi
35961   configure_input=$configure_input"Generated from `echo $ac_file_in |
35962                                      sed 's,.*/,,'` by configure."
35963
35964   # First look for the input files in the build tree, otherwise in the
35965   # src tree.
35966   ac_file_inputs=`IFS=:
35967     for f in $ac_file_in; do
35968       case $f in
35969       -) echo $tmp/stdin ;;
35970       [\\/$]*)
35971          # Absolute (can't be DOS-style, as IFS=:)
35972          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35973 echo "$as_me: error: cannot find input file: $f" >&2;}
35974    { (exit 1); exit 1; }; }
35975          echo $f;;
35976       *) # Relative
35977          if test -f "$f"; then
35978            # Build tree
35979            echo $f
35980          elif test -f "$srcdir/$f"; then
35981            # Source tree
35982            echo $srcdir/$f
35983          else
35984            # /dev/null tree
35985            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35986 echo "$as_me: error: cannot find input file: $f" >&2;}
35987    { (exit 1); exit 1; }; }
35988          fi;;
35989       esac
35990     done` || { (exit 1); exit 1; }
35991 _ACEOF
35992 cat >>$CONFIG_STATUS <<_ACEOF
35993   sed "$ac_vpsub
35994 $extrasub
35995 _ACEOF
35996 cat >>$CONFIG_STATUS <<\_ACEOF
35997 :t
35998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35999 s,@configure_input@,$configure_input,;t t
36000 s,@srcdir@,$ac_srcdir,;t t
36001 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36002 s,@top_srcdir@,$ac_top_srcdir,;t t
36003 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36004 s,@builddir@,$ac_builddir,;t t
36005 s,@abs_builddir@,$ac_abs_builddir,;t t
36006 s,@top_builddir@,$ac_top_builddir,;t t
36007 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36008 s,@INSTALL@,$ac_INSTALL,;t t
36009 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36010   rm -f $tmp/stdin
36011   if test x"$ac_file" != x-; then
36012     mv $tmp/out $ac_file
36013   else
36014     cat $tmp/out
36015     rm -f $tmp/out
36016   fi
36017
36018 done
36019 _ACEOF
36020 cat >>$CONFIG_STATUS <<\_ACEOF
36021
36022 #
36023 # CONFIG_HEADER section.
36024 #
36025
36026 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36027 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36028 #
36029 # ac_d sets the value in "#define NAME VALUE" lines.
36030 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
36031 ac_dB='[        ].*$,\1#\2'
36032 ac_dC=' '
36033 ac_dD=',;t'
36034 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36035 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
36036 ac_uB='$,\1#\2define\3'
36037 ac_uC=' '
36038 ac_uD=',;t'
36039
36040 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36041   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36042   case $ac_file in
36043   - | *:- | *:-:* ) # input from stdin
36044         cat >$tmp/stdin
36045         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36046         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36047   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36048         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36049   * )   ac_file_in=$ac_file.in ;;
36050   esac
36051
36052   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36053 echo "$as_me: creating $ac_file" >&6;}
36054
36055   # First look for the input files in the build tree, otherwise in the
36056   # src tree.
36057   ac_file_inputs=`IFS=:
36058     for f in $ac_file_in; do
36059       case $f in
36060       -) echo $tmp/stdin ;;
36061       [\\/$]*)
36062          # Absolute (can't be DOS-style, as IFS=:)
36063          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36064 echo "$as_me: error: cannot find input file: $f" >&2;}
36065    { (exit 1); exit 1; }; }
36066          echo $f;;
36067       *) # Relative
36068          if test -f "$f"; then
36069            # Build tree
36070            echo $f
36071          elif test -f "$srcdir/$f"; then
36072            # Source tree
36073            echo $srcdir/$f
36074          else
36075            # /dev/null tree
36076            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36077 echo "$as_me: error: cannot find input file: $f" >&2;}
36078    { (exit 1); exit 1; }; }
36079          fi;;
36080       esac
36081     done` || { (exit 1); exit 1; }
36082   # Remove the trailing spaces.
36083   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
36084
36085 _ACEOF
36086
36087 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36088 # `conftest.undefs', that substitutes the proper values into
36089 # config.h.in to produce config.h.  The first handles `#define'
36090 # templates, and the second `#undef' templates.
36091 # And first: Protect against being on the right side of a sed subst in
36092 # config.status.  Protect against being in an unquoted here document
36093 # in config.status.
36094 rm -f conftest.defines conftest.undefs
36095 # Using a here document instead of a string reduces the quoting nightmare.
36096 # Putting comments in sed scripts is not portable.
36097 #
36098 # `end' is used to avoid that the second main sed command (meant for
36099 # 0-ary CPP macros) applies to n-ary macro definitions.
36100 # See the Autoconf documentation for `clear'.
36101 cat >confdef2sed.sed <<\_ACEOF
36102 s/[\\&,]/\\&/g
36103 s,[\\$`],\\&,g
36104 t clear
36105 : clear
36106 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36107 t end
36108 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36109 : end
36110 _ACEOF
36111 # If some macros were called several times there might be several times
36112 # the same #defines, which is useless.  Nevertheless, we may not want to
36113 # sort them, since we want the *last* AC-DEFINE to be honored.
36114 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36115 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36116 rm -f confdef2sed.sed
36117
36118 # This sed command replaces #undef with comments.  This is necessary, for
36119 # example, in the case of _POSIX_SOURCE, which is predefined and required
36120 # on some systems where configure will not decide to define it.
36121 cat >>conftest.undefs <<\_ACEOF
36122 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36123 _ACEOF
36124
36125 # Break up conftest.defines because some shells have a limit on the size
36126 # of here documents, and old seds have small limits too (100 cmds).
36127 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36128 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36129 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36130 echo '  :' >>$CONFIG_STATUS
36131 rm -f conftest.tail
36132 while grep . conftest.defines >/dev/null
36133 do
36134   # Write a limited-size here document to $tmp/defines.sed.
36135   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36136   # Speed up: don't consider the non `#define' lines.
36137   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
36138   # Work around the forget-to-reset-the-flag bug.
36139   echo 't clr' >>$CONFIG_STATUS
36140   echo ': clr' >>$CONFIG_STATUS
36141   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36142   echo 'CEOF
36143   sed -f $tmp/defines.sed $tmp/in >$tmp/out
36144   rm -f $tmp/in
36145   mv $tmp/out $tmp/in
36146 ' >>$CONFIG_STATUS
36147   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36148   rm -f conftest.defines
36149   mv conftest.tail conftest.defines
36150 done
36151 rm -f conftest.defines
36152 echo '  fi # grep' >>$CONFIG_STATUS
36153 echo >>$CONFIG_STATUS
36154
36155 # Break up conftest.undefs because some shells have a limit on the size
36156 # of here documents, and old seds have small limits too (100 cmds).
36157 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
36158 rm -f conftest.tail
36159 while grep . conftest.undefs >/dev/null
36160 do
36161   # Write a limited-size here document to $tmp/undefs.sed.
36162   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36163   # Speed up: don't consider the non `#undef'
36164   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
36165   # Work around the forget-to-reset-the-flag bug.
36166   echo 't clr' >>$CONFIG_STATUS
36167   echo ': clr' >>$CONFIG_STATUS
36168   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
36169   echo 'CEOF
36170   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36171   rm -f $tmp/in
36172   mv $tmp/out $tmp/in
36173 ' >>$CONFIG_STATUS
36174   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36175   rm -f conftest.undefs
36176   mv conftest.tail conftest.undefs
36177 done
36178 rm -f conftest.undefs
36179
36180 cat >>$CONFIG_STATUS <<\_ACEOF
36181   # Let's still pretend it is `configure' which instantiates (i.e., don't
36182   # use $as_me), people would be surprised to read:
36183   #    /* config.h.  Generated by config.status.  */
36184   if test x"$ac_file" = x-; then
36185     echo "/* Generated by configure.  */" >$tmp/config.h
36186   else
36187     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
36188   fi
36189   cat $tmp/in >>$tmp/config.h
36190   rm -f $tmp/in
36191   if test x"$ac_file" != x-; then
36192     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36193       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36194 echo "$as_me: $ac_file is unchanged" >&6;}
36195     else
36196       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36198          X"$ac_file" : 'X\(//\)[^/]' \| \
36199          X"$ac_file" : 'X\(//\)$' \| \
36200          X"$ac_file" : 'X\(/\)' \| \
36201          .     : '\(.\)' 2>/dev/null ||
36202 echo X"$ac_file" |
36203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36205           /^X\(\/\/\)$/{ s//\1/; q; }
36206           /^X\(\/\).*/{ s//\1/; q; }
36207           s/.*/./; q'`
36208       { if $as_mkdir_p; then
36209     mkdir -p "$ac_dir"
36210   else
36211     as_dir="$ac_dir"
36212     as_dirs=
36213     while test ! -d "$as_dir"; do
36214       as_dirs="$as_dir $as_dirs"
36215       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36217          X"$as_dir" : 'X\(//\)[^/]' \| \
36218          X"$as_dir" : 'X\(//\)$' \| \
36219          X"$as_dir" : 'X\(/\)' \| \
36220          .     : '\(.\)' 2>/dev/null ||
36221 echo X"$as_dir" |
36222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36224           /^X\(\/\/\)$/{ s//\1/; q; }
36225           /^X\(\/\).*/{ s//\1/; q; }
36226           s/.*/./; q'`
36227     done
36228     test ! -n "$as_dirs" || mkdir $as_dirs
36229   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36231    { (exit 1); exit 1; }; }; }
36232
36233       rm -f $ac_file
36234       mv $tmp/config.h $ac_file
36235     fi
36236   else
36237     cat $tmp/config.h
36238     rm -f $tmp/config.h
36239   fi
36240 done
36241 _ACEOF
36242 cat >>$CONFIG_STATUS <<\_ACEOF
36243
36244 #
36245 # CONFIG_COMMANDS section.
36246 #
36247 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36248   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36249   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36250   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36251 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36252          X"$ac_dest" : 'X\(//\)[^/]' \| \
36253          X"$ac_dest" : 'X\(//\)$' \| \
36254          X"$ac_dest" : 'X\(/\)' \| \
36255          .     : '\(.\)' 2>/dev/null ||
36256 echo X"$ac_dest" |
36257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36258           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36259           /^X\(\/\/\)$/{ s//\1/; q; }
36260           /^X\(\/\).*/{ s//\1/; q; }
36261           s/.*/./; q'`
36262   ac_builddir=.
36263
36264 if test "$ac_dir" != .; then
36265   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36266   # A "../" for each directory in $ac_dir_suffix.
36267   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36268 else
36269   ac_dir_suffix= ac_top_builddir=
36270 fi
36271
36272 case $srcdir in
36273   .)  # No --srcdir option.  We are building in place.
36274     ac_srcdir=.
36275     if test -z "$ac_top_builddir"; then
36276        ac_top_srcdir=.
36277     else
36278        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36279     fi ;;
36280   [\\/]* | ?:[\\/]* )  # Absolute path.
36281     ac_srcdir=$srcdir$ac_dir_suffix;
36282     ac_top_srcdir=$srcdir ;;
36283   *) # Relative path.
36284     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36285     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36286 esac
36287 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36288 # absolute.
36289 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36290 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36291 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36292 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36293
36294
36295   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36296 echo "$as_me: executing $ac_dest commands" >&6;}
36297   case $ac_dest in
36298     default )
36299                                                                                                 if test ! -h wx-config; then
36300                 chmod +x wx-config
36301                 mv wx-config wx${TOOLCHAIN_NAME}-config
36302                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
36303             fi
36304
36305             if test ! -d lib; then
36306               mkdir lib
36307             fi
36308             if test ! -d lib/wx; then
36309               mkdir lib/wx
36310             fi
36311             if test ! -d lib/wx/include; then
36312               mkdir lib/wx/include
36313             fi
36314             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36315               mkdir lib/wx/include/${TOOLCHAIN_NAME}
36316             fi
36317             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36318               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
36319             fi
36320             if test -f setup.h; then
36321               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
36322             fi
36323            ;;
36324   esac
36325 done
36326 _ACEOF
36327
36328 cat >>$CONFIG_STATUS <<\_ACEOF
36329
36330 { (exit 0); exit 0; }
36331 _ACEOF
36332 chmod +x $CONFIG_STATUS
36333 ac_clean_files=$ac_clean_files_save
36334
36335
36336 # configure is writing to config.log, and then calls config.status.
36337 # config.status does its own redirection, appending to config.log.
36338 # Unfortunately, on DOS this fails, as config.log is still kept open
36339 # by configure, so config.status won't be able to write to it; its
36340 # output is simply discarded.  So we exec the FD to /dev/null,
36341 # effectively closing config.log, so it can be properly (re)opened and
36342 # appended to by config.status.  When coming back to configure, we
36343 # need to make the FD available again.
36344 if test "$no_create" != yes; then
36345   ac_cs_success=:
36346   ac_config_status_args=
36347   test "$silent" = yes &&
36348     ac_config_status_args="$ac_config_status_args --quiet"
36349   exec 5>/dev/null
36350   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36351   exec 5>>config.log
36352   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36353   # would make configure fail if this is the last instruction.
36354   $ac_cs_success || { (exit 1); exit 1; }
36355 fi
36356
36357 #
36358 # CONFIG_SUBDIRS section.
36359 #
36360 if test "$no_recursion" != yes; then
36361
36362   # Remove --cache-file and --srcdir arguments so they do not pile up.
36363   ac_sub_configure_args=
36364   ac_prev=
36365   for ac_arg in $ac_configure_args; do
36366     if test -n "$ac_prev"; then
36367       ac_prev=
36368       continue
36369     fi
36370     case $ac_arg in
36371     -cache-file | --cache-file | --cache-fil | --cache-fi \
36372     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36373       ac_prev=cache_file ;;
36374     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36375     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36376     | --c=*)
36377       ;;
36378     --config-cache | -C)
36379       ;;
36380     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36381       ac_prev=srcdir ;;
36382     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36383       ;;
36384     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36385       ac_prev=prefix ;;
36386     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36387       ;;
36388     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36389     esac
36390   done
36391
36392   # Always prepend --prefix to ensure using the same prefix
36393   # in subdir configurations.
36394   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36395
36396   ac_popdir=`pwd`
36397   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36398
36399     # Do not complain, so a configure script can configure whichever
36400     # parts of a large source tree are present.
36401     test -d $srcdir/$ac_dir || continue
36402
36403     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36404 echo "$as_me: configuring in $ac_dir" >&6;}
36405     { if $as_mkdir_p; then
36406     mkdir -p "$ac_dir"
36407   else
36408     as_dir="$ac_dir"
36409     as_dirs=
36410     while test ! -d "$as_dir"; do
36411       as_dirs="$as_dir $as_dirs"
36412       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36414          X"$as_dir" : 'X\(//\)[^/]' \| \
36415          X"$as_dir" : 'X\(//\)$' \| \
36416          X"$as_dir" : 'X\(/\)' \| \
36417          .     : '\(.\)' 2>/dev/null ||
36418 echo X"$as_dir" |
36419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36420           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36421           /^X\(\/\/\)$/{ s//\1/; q; }
36422           /^X\(\/\).*/{ s//\1/; q; }
36423           s/.*/./; q'`
36424     done
36425     test ! -n "$as_dirs" || mkdir $as_dirs
36426   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36427 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36428    { (exit 1); exit 1; }; }; }
36429
36430     ac_builddir=.
36431
36432 if test "$ac_dir" != .; then
36433   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36434   # A "../" for each directory in $ac_dir_suffix.
36435   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36436 else
36437   ac_dir_suffix= ac_top_builddir=
36438 fi
36439
36440 case $srcdir in
36441   .)  # No --srcdir option.  We are building in place.
36442     ac_srcdir=.
36443     if test -z "$ac_top_builddir"; then
36444        ac_top_srcdir=.
36445     else
36446        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36447     fi ;;
36448   [\\/]* | ?:[\\/]* )  # Absolute path.
36449     ac_srcdir=$srcdir$ac_dir_suffix;
36450     ac_top_srcdir=$srcdir ;;
36451   *) # Relative path.
36452     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36453     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36454 esac
36455 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36456 # absolute.
36457 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36458 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36459 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36460 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36461
36462
36463     cd $ac_dir
36464
36465     # Check for guested configure; otherwise get Cygnus style configure.
36466     if test -f $ac_srcdir/configure.gnu; then
36467       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
36468     elif test -f $ac_srcdir/configure; then
36469       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
36470     elif test -f $ac_srcdir/configure.in; then
36471       ac_sub_configure=$ac_configure
36472     else
36473       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36474 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36475       ac_sub_configure=
36476     fi
36477
36478     # The recursion is here.
36479     if test -n "$ac_sub_configure"; then
36480       # Make the cache file name correct relative to the subdirectory.
36481       case $cache_file in
36482       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36483       *) # Relative path.
36484         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
36485       esac
36486
36487       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36488 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36489       # The eval makes quoting arguments work.
36490       eval $ac_sub_configure $ac_sub_configure_args \
36491            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
36492         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36493 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36494    { (exit 1); exit 1; }; }
36495     fi
36496
36497     cd $ac_popdir
36498   done
36499 fi
36500
36501
36502 echo
36503 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36504 echo ""
36505 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
36506 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
36507
36508 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
36509 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
36510 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
36511
36512 echo "  What level of wxWindows compatibility should be enabled?"
36513 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
36514 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
36515 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
36516
36517 echo "  Which libraries should wxWindows use?"
36518 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
36519 echo "                                       png                ${wxUSE_LIBPNG-none}"
36520 echo "                                       regex              ${wxUSE_REGEX}"
36521 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
36522 echo "                                       zlib               ${wxUSE_ZLIB}"
36523 echo "                                       odbc               ${wxUSE_ODBC}"
36524
36525 echo ""
36526